BluetoothGatt shows 10,000 identical features for service

I have a problem that I'm completely confused, mainly because of how stable it is.

I wrote a small Android application to chat with my Bluegiga BLE113. I previously connected to this device, but recently I made a GATT modification that did not affect the Android device (in none of the applications I tried), and I checked from the desktop and iOS application that my GATT was updated as expected) .

I tried turning off / on Bluetooth and rebooting my Nexus 7, and still nothing. Lastly, I despaired and tried the solution mentioned here: https://stackoverflow.com/a/166268/2129 , which uses reflection to get into a private BluetoothGatt method called refresh.

It seemed that everything worked fine, since my new service appeared, however, I was faced with the fact that my service (with 1 characteristic) showed several hundred characteristics with the same UUID. The number of identical characteristics rose every time I started my application, and even through restarting the device and cycling BT.

Finally, I despaired and made a factory reset on my Nexus (this is a test device, so I don't care). Failed to fix something, and this image shows what I see (10k specifications):

Bluetooth Gatt with 10k characteristics

My BLE113 GATT looks like 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 is just BluetoothGatt.discoverServices () (which is the first time I see this happening).

BT, Nexus factory reset. , , BLE , , iOS.

Nexus 7, 5.0.2, 4.4 .

+4
1

, , . , .

( Q & A, ), .

0

All Articles