This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to clear bluetooth stack

hi,

i have a issue with bluetooth stack. i have established connection with app to communication to send and receive the data.

due to link loss the connection, i have reconnected the communication and start to receive receive data from begin of packet, but i had received lost failed packet. thas has retain in ble stack.

any one please explain how to clear ble stack.

please it very urgent

thanks in advance

  • Hello Satheesh, could you be much more specific about what HW+SW you run on both sides of the link and what kind of transfer (GATT methods, amount of data) you perform? Also having radio BLE analyzer/sniffer log would help a lot. I'm asking because it's unlikely that Nordic stack would "cache" some packets when timeout/disconnect happens and flush it to your app only after next connection (with the same device?) happens. I suppose you actually send these data over radio so it's an issue/misunderstanding on application level not in the stack.

  • hi thanks for reply. i am using s110 7.1.0 and nrf51822 hardware. i checked app log files it has cleared app cache, it sends new data packet, but i have received last received packet

  • OK so you use two nRF51 boards with S110 and your custom FW (app) against each other? You use GAP and GATT? I still believe that if you do detailed logging on SD function calls and events (meaning what SD function and with what data parameters you call on transmitter's side and what event and data you get on receiver's side) and compare it with RF analyzer (BLE sniffer) log you will see that actually no mysterious packet get cached by stack and flushed later... there is pretty much no other way to debug (except if you want someone else to debug it for you, then past full FW projects for two nRF51 DK boards or similar and hope that someone wants to spend hours on your project).

Related