This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Urgent!!!!

My app works well when working with Master control pannel, but when I use nRF Connect (Android App of Nordic) I have a disconnection without any reason. Especially when I do enable services!!

My nrf51822 is the peripheral.. Any idea ?

here is the log :

V 17:44:45.238 Connecting to DA:0E:85:31:E4:16...
D 17:44:45.238 gatt = device.connectGatt(autoConnect = false)
D 17:44:45.252 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 17:44:45.252 Connected to DA:0E:85:31:E4:16
D 17:44:45.252 wait(600ms)
V 17:44:45.862 Discovering services...
D 17:44:45.862 gatt.discoverServices()
D 17:44:46.830 [Callback] Services discovered with status: 0
I 17:44:46.833 Services discovered
V 17:44:46.875 Generic Access (0x1800)
- Device Name [R] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
Generic Attribute (0x1801)
Device Information (0x180A)
- Manufacturer Name String [R] (0x2A29)
- Software Revision String [R] (0x2A28)
Alert Notification Service (0x1811)
- HID Information [N R] (0x2A4A)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
- Alert Status [N R] (0x2A3F)
   Client Characteristic Configuration (0x2902)
   Characteristic User Description (0x2901)
Unknown Service (00002aa0-0000-1000-8000-00805f9b34fb)
- CGM Status [R W] (0x2AA9)
   Characteristic User Description (0x2901)
- System ID [R W] (0x2A23)
   Characteristic User Description (0x2901)
*V 17:44:54.552 Reading descriptor 00002902-0000-1000-8000-00805f9b34fb
D 17:44:54.552 gatt.readDescriptor(00002902-0000-1000-8000-00805f9b34fb)*
D 17:45:17.081 [Callback] Connection state changed with status: 59 and new state: DISCONNECTED (0)
****E 17:45:17.081 Error 59 (0x3b): UNKNOWN (59)****
I 17:45:17.081 Disconnected
D 17:45:17.092 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D 17:45:19.153 gatt.close()

image description

Here is a picture of what is happening, I took it with a sniffer. What I did is , I clicked on Read all characteristics in nrF Connect, and then the app nRF Connect end the connection with code 0x13

image description

Related