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

nRF8001[server] Device disconnected after 10 minutes automatically?

"Hi Guys, my nRF8001 BLE is working perfectly, But recently i was performing regression testing to check BLE connection, their i faced one issue after 10 minutes from nRF8001[server] device disconnected message received on nRF master control Android APP. i tried this many times same issue came. i don't want device disconnection from server. How do i prevent this disconnecion. For power saving i have my own user API function to let server goto sleep.

regards, gbiradar"

Parents
  • Hi @Anders Strand, Timing is same(After looking in Verbose message in APP, time stand around 9M50Sec to 9M56Sec), as i tried multiple times, i don't have any other nRF device to act as sniffer. Debug messages from APP.

    [Server]Server started

    gatt=device.connectGatt(autoconnect = false)

    [Server Callback]Connection state changed with status: 0 and new sate:Connected

    [Callback]Connection state changed with status: 0 and new sate:Connected

    wait(600ms)

    gatt.discoverServices()

    [Callback]Services discovered with status: 0

    services discovered

    and soon

    [Server callback] Connection state changed with status: 0 and new state:DISCONNECTED (0)

    [Server]Device Disconnected

    [Callback]Connection state changed with status: 0 and new state:DISCONNECTED (0)

    "Disconnected"

    "gatt.refresh()"

    "gatt.close()"

Reply
  • Hi @Anders Strand, Timing is same(After looking in Verbose message in APP, time stand around 9M50Sec to 9M56Sec), as i tried multiple times, i don't have any other nRF device to act as sniffer. Debug messages from APP.

    [Server]Server started

    gatt=device.connectGatt(autoconnect = false)

    [Server Callback]Connection state changed with status: 0 and new sate:Connected

    [Callback]Connection state changed with status: 0 and new sate:Connected

    wait(600ms)

    gatt.discoverServices()

    [Callback]Services discovered with status: 0

    services discovered

    and soon

    [Server callback] Connection state changed with status: 0 and new state:DISCONNECTED (0)

    [Server]Device Disconnected

    [Callback]Connection state changed with status: 0 and new state:DISCONNECTED (0)

    "Disconnected"

    "gatt.refresh()"

    "gatt.close()"

Children
No Data
Related