NRF52840 Wont Respond to LL_FEATURE_REQ without Clearing Android Bluetooth Storage

Hi Everyone,

I'm having an issues connecting a Lenovo TB-X606F tablet (running android 10) to an nRF52840 (running SDK 15.3). The issue start randomly but once I begin having issue they happen repeatedly for each subsequent connection attempt. I try power cycling the Nordic, restarting my app, and restarting the tablet but the only way I can reliably resolve the issue is to go into the android system apps of the tablet and clear the storage for the system Bluetooth app. 

This all lead me to believe that this is an issue with the tablet. However when I look at protocol analyzer traces I see the tablet sending a CONNECT_IND packet followed by several retries of the same CONNECT_IND packet sent from the tablet and the Nordic completely ignoring said packet. 

Connect_07_Pass.xlsx : Successful connection CONNECT_IND packet #3676 (line 143)

Connect_01_Fail.xlsx : Failed connection first CONNECT_IND packet #722 (line 18). File contains many connection attempts

I'm at a bit of a loss as to how to proceed since the resolution would suggest the tablet is at fault however the protocol analyzer seems to indicate the device is misbehaving. 

Thanks!

 

 

edit: added capture after adding ble_advertising_restart_without_whitelist. Noticed lost data in FDS possible flash corruption. 

Parents
  • I am pretty sure the the problem is occuring due to an issue with the peripheral, and that the peripheral have enabled whitelist, and likely the whitelist is with the wrong and/or missing peer that it want to allow to connect. As a simple test you can try to call ble_advertising_restart_without_whitelist() on the peripheral side when advertising, this will disable whitelist while advertising, and I suspect in such case that the central will be allowed to connect.

    In general I suggest to take a look at the ble hid keyboard or mouse example for reference, search for whitelist in main.c.

    Best regards,
    Kenneth

  • Ok thank you. I will try this out. Unfortunately it will be a week or so before I will be able to use the sniffer again but I'll let you know what I find.   

Reply Children
No Data
Related