Search found 6 matches

by sjrcgtek
15:14, 11 May 2016
Forum: Questions and answers
Topic: Reconnecting to a Known Device
Replies: 1
Views: 49943

Reconnecting to a Known Device

I am building an app where I keep a list of known devices (i.e. devices that I previously scanned for and connected to). When my app restarts, I want to reconnect to these devices, but I can't reinitiate the scan because the device is not in pairing mode. The problem is that i no longer have a devic...
by sjrcgtek
22:48, 08 Mar 2016
Forum: Questions and answers
Topic: BLE enableNotification works on iOS but not Android
Replies: 6
Views: 51165

Re: BLE enableNotification works on iOS but not Android

For the sake of completeness, I was finally able to talk to the engineer of the device and it was a misunderstanding on my part. The device was set up specifically to support indications and NOT notifications, so now it makes perfect sense that replacing 1,0 with 2,0 worked in my case. I mistakenly ...
by sjrcgtek
19:21, 08 Mar 2016
Forum: Questions and answers
Topic: BLE enableNotification works on iOS but not Android
Replies: 6
Views: 51165

Re: BLE enableNotification works on iOS but not Android

The spec here: https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.client_characteristic_configuration.xml would seem to suggest 1,0 for notification and 2,0 for indication, but when it didn't work, I tried setting the other bit out of curiosi...
by sjrcgtek
23:39, 07 Mar 2016
Forum: Questions and answers
Topic: BLE enableNotification works on iOS but not Android
Replies: 6
Views: 51165

Re: BLE enableNotification works on iOS but not Android

I actually figured this out. I was originally write [0x01,0x00] to the descriptor based on the following that I found in the actual android BLE java code: public static final byte[] ENABLE_NOTIFICATION_VALUE = {0x01, 0x00}; It turns out that value is wrong and should be [0x02,0x00]. When i made the ...
by sjrcgtek
15:46, 07 Mar 2016
Forum: Questions and answers
Topic: BLE enableNotification works on iOS but not Android
Replies: 6
Views: 51165

Re: BLE enableNotification works on iOS but not Android

Sorry, i should have included more specifics. The win callback is fired after the call to writeDescriptor, so there is no error on there write though I guess it is possible that I am writing the wrong value. Neither of the callbacks are fired after the call to enableNotification. I added a log messa...
by sjrcgtek
03:06, 07 Mar 2016
Forum: Questions and answers
Topic: BLE enableNotification works on iOS but not Android
Replies: 6
Views: 51165

BLE enableNotification works on iOS but not Android

Using easyble, after calling, device.enableNotification(MY_UUID,win,fail) I get notifications on iOS but not on Android. After some searching, it seems as if on android, I have to first enable notifications by writing a bit value to the client characteristic configuration descriptor which I have att...

Go to advanced search