android-4.3-jelly-bean

Communicating between iOS and Android with Bluetooth LE

限于喜欢 提交于 2019-11-26 17:55:30
问题 I've got a working app using CoreBluetooth to communicate between an iPad (central) and iPhone (peripheral). I have one service that has two characteristics. I have a Nexus 7 running the latest Android 4.3 with BTLE support. Android is a bit late to jump on the BTLE bandwagon but it appears they are approaching it similarly to how iOS did, where initially they only support acting as a central with the peripheral mode coming in a later version. I can load the sample Android BTLE app and browse

Android 4.3 Bluetooth Low Energy unstable

两盒软妹~` 提交于 2019-11-26 11:57:48
I am currently developing an application that will use Bluetooth Low Energy (testing on the Nexus 4). After getting started with the official BLE APIs in Android 4.3, I have noticed that after I connect a device for the first time I am rarely able to successfully connect to / communicate with that device or any other device again. Following the guide here , I can successfully connect to a device, scan services and characteristics, and read/write/receive notifications without any issues. However, after disconnecting and re-connecting, I am often unable to either scan services/characteristics or

startLeScan with 128 bit UUIDs doesn't work on native Android BLE implementation

南楼画角 提交于 2019-11-26 08:01:40
问题 I am having trouble using startLeScan( new UUID[]{ MY_DESIRED_128_BIT_SERVICE_UUID }, callback ) on the new introduced BLE API of Android 4.3 on my Nexus 4. The callback just doesn\'t get called. I still can see incoming packages in the log: 08-02 15:48:57.985: I/bt-hci(1051): btu_ble_process_adv_pkt 08-02 15:48:58.636: I/bt-hci(1051): BLE HCI(id=62) event = 0x02) If I don\'t use the parameter to filter for UUIDs it works. We are using a manufacturer specific 128bit UUID for device of our

IOException: read failed, socket might closed - Bluetooth on Android 4.3

自古美人都是妖i 提交于 2019-11-25 23:00:59
问题 Currently I am trying to deal with a strange Exception when opening a BluetoothSocket on my Nexus 7 (2012), with Android 4.3 (Build JWR66Y, I guess the second 4.3 update). I have seen some related postings (e.g. https://stackoverflow.com/questions/13648373/bluetoothsocket-connect-throwing-exception-read-failed), but none seems to provide a workaround for this issue. Also, as suggested in these threads, re-pairing does not help, and constantly trying to connect (through a stupid loop) also has