android - BluetoothGatt showing 10,000 identical characteristics for service -


i've got problem i'm flummoxed about, because of how persistent is.

i writing small android app communicate bluegiga ble113. i've connected device before, i'd made gatt modification not being reflected on android device (in none of apps tried - , verified desktop , ios app gatt updated expected).

i tried turning off/on bluetooth , restarting nexus 7, , still nothing. finally, got desperate , tried solution mentioned here: https://stackoverflow.com/a/22709467/992509 uses reflection hit private bluetoothgatt method called refresh.

it seemed work perfectly, new service showing up, however, ran service (with 1 characteristic) showing few hundred characteristics same uuid. number of identical characteristics climbed everytime ran app, , through device restarts , bt cycling.

finally, got desperate , did factory reset on nexus (it's test device, don't care). didn't fix thing, , image shows i'm seeing (10k characteristics):

bluetoothgatt 10k characteristics

my ble113 gatt looks this:

<service uuid="deadbeef-cdcd-cdcd-cdcd-cdcdcdcdcdcd">     <description>debugging service</description>     <characteristic uuid="deadbeef-0000-0000-0000-000000000000" id="xgatt_debug">         <description>debugging output</description>         <properties read="true" notify="true" />         <value length="20" />     </characteristic> </service> 

the android code bluetoothgatt.discoverservices() (that's first time see happen).

and again, have tried resetting bt, restarting nexus, , doing factory reset. also, i've confirmed ble peripheral works expected via desktop app , ios.

i'm on nexus 7, running 5.0.2, , targeting 4.4 in app.

you implementing hack in order call method not made publicly available. don't know modifications have been made method customized firmware.

the hack worked (as in q&a showed), cannot guaranteed work everywhere.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -