bluetooth

How do you send an extended-ascii AT-command (CCh) from Android bluetooth to a serial device?

↘锁芯ラ 提交于 2020-01-14 05:57:07
问题 This one really has me banging my head. I'm sending alphanumeric data from an Android app, through the BluetoothChatService, to a serial bluetooth adaptor connected to the serial input of a radio transceiver. Everything works fine except when I try to configure the radio on-the-fly with its AT-commands. The AT+++ (enter command mode) is received OK, but the problem comes with the extended-ascii characters in the next two commands: Changing the radio destination address (which is what I'm

print image via bluetooth printer prints string

有些话、适合烂在心里 提交于 2020-01-14 05:49:07
问题 I have been working in printing an image via bluetooth printer. When I test it for text printing it works perfectly. But when it comes to image, prints only string characters. I have converted the layout into bitmap. And saved it into sd card. Do I need to convert the bitmap into something that supports for printer. Am using "ZEBRA EZ320" printer for my application. I have used the following code to convert the layout into bitmap, View rootView = findViewById(android.R.id.content).getRootView

Read Bluetooth RSSI on Windows 7/Vista/XP

*爱你&永不变心* 提交于 2020-01-14 05:28:29
问题 I need to read the RSSI of the Bluetooth link on a Windows desktop - ideally Windows 7 and XP, but would be enough Windows 7 too. From what I studied in Windows CE and Mobile, there is a method in the Microsoft Bluetooth stack API called BthReadRSSI, but for desktop I couldn't found anything yet. Does anybody have an workarround solution? 回答1: The response is that in Windows if you are using MS Bluetooth driver stack you cannot get the RSSI. This apply for Windows dekstop versions: XP, Vista

Bluetooth programming in Linux - cross compiler issue

依然范特西╮ 提交于 2020-01-14 04:18:26
问题 I've installed sudo apt-get install libbluetooth-dev to have bluetooth package in my environment. Hence, using the following command can successfully compile the bluetooth code using gcc. gcc -o bt bt.c -lbluetooth However, when I tried to use the cross-compiler to compile the source code $CC -o bt2 bt.c -lbluetooth I got the fatal error: fatal error: bluetooth/bluetooth.h: No such file or directory compilation terminated Is there anything I've done wrong or I need to link this library to

how can scan bluetooth devices using core bluetooth sdk?

痴心易碎 提交于 2020-01-14 04:06:50
问题 I'm currently creating an iPhone app (Xcode 6.2, IOS 8.2) that could use Bluetooth devices! Main goal of this application is only search the available bluetooth devices and whenever you go to out of range from bluetooth devices one alert message pop up.and when ever you come in range automatically connected. The only solution I see here (to keep my app on AppStore) is to try scan for available bluetooth devices! I tried to use CoreBluetooth framework, but I don't get list of available devices

how can scan bluetooth devices using core bluetooth sdk?

无人久伴 提交于 2020-01-14 04:06:19
问题 I'm currently creating an iPhone app (Xcode 6.2, IOS 8.2) that could use Bluetooth devices! Main goal of this application is only search the available bluetooth devices and whenever you go to out of range from bluetooth devices one alert message pop up.and when ever you come in range automatically connected. The only solution I see here (to keep my app on AppStore) is to try scan for available bluetooth devices! I tried to use CoreBluetooth framework, but I don't get list of available devices

How to read continuous data and display it

妖精的绣舞 提交于 2020-01-13 07:08:43
问题 I'm sending continuous data from PIC (from analog input) to the bluetooth module and then I'm trying to read them with android (in HyperTerminal I get values from 0 to 255). How could I change my code to read strings of 3 bytes and immediately display them into the TextView. Now I can display data but it's too slow and values update only when button is pressed. Here is my MainActivity.java: public class MainActivity extends Activity { private static final String TAG = "bluetooth2"; Button

How to read continuous data and display it

ぐ巨炮叔叔 提交于 2020-01-13 07:07:18
问题 I'm sending continuous data from PIC (from analog input) to the bluetooth module and then I'm trying to read them with android (in HyperTerminal I get values from 0 to 255). How could I change my code to read strings of 3 bytes and immediately display them into the TextView. Now I can display data but it's too slow and values update only when button is pressed. Here is my MainActivity.java: public class MainActivity extends Activity { private static final String TAG = "bluetooth2"; Button

How to detect bluetooth device and get the bluetooth address of detected device from android app

旧城冷巷雨未停 提交于 2020-01-13 06:46:31
问题 I want to the detect bluetooth device and get the bluetooth address of detected device from my android app . My task is to print a bill by using Bluetooth printer from my android app . 回答1: For the Bluetooth Searching Activity you require following things, Add Permissions in to your AndroidManifest.xml <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH" /> Minimum API level 7 and Android 2.1 version is required.

iOS 7 Bluetooth - app that handles events in background even after phone restart

强颜欢笑 提交于 2020-01-13 03:15:28
问题 I want to write a tracking application, which reacts/record when users get in a car and phone automatically pair with Bluetooth hands free. I need also Id of the hands free device. On Android it is easy, using Broadcast Receiver your app listen to broadcasts that device had been paired with phone. It is working even after phone had been restarted and App did not run after restart. Is it possible on iOS(7+) ? 回答1: You can do it by reading the "Performing Long-Term Actions in the Background"