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

nRF51822/Android Error: (0x8): GATT CONN TIMEOUT

According the the nRF Logger app on Android I get a GATT CONN TIMEOUT error when running the HRS demo code on a nRF51822 QFAAG2 device (with custom_board.h) and connecting via nRF Toolbox app. This consistently occurs after about 10 seconds of being connected.

The exact same HRS demo code (excepting custom_board.h) works perfectly on the PCA10028 dev board.

If I increase FIRST_CONN_PARAMS_UPDATE_DELAY to some big value, say 500s, I can maintain a connection and receive the heart rate + battery updates seemingly reliably for at least up to this time.

What is going on?

PS: this is the same board I had a problem with HF oscillator on...maybe related? devzone.nordicsemi.com/.../

*edit: Attached a log session from the Android device. This time I used nRF Master Control Panel and enabled battery notifications - this works fine. Then I disabled this, and enabled notifications on heart rate info - this results in error 8 after just a few updates. See attached log Log sessions 2015-06-10 14-54-44.txt

Parents
  • @Mikaelbdl: Could you add a breakpoint at BLE_GAP_EVT_DISCONNECTED in on_ble_evt() to see what is the disconnect reasion ?

    Would the chip still work after you got disconnected ? I suspect that the chip got hang at some point and caused the connection to be timed out.

    Which S110 softdevice did you use with? Note that chip version 2 (your QFAAG2) would need a reconfiguration when starting the S110 v8.x to make it compatible with XLR2 chip. Please have a look at the Changes section in the S110 v8.0 release note.

Reply
  • @Mikaelbdl: Could you add a breakpoint at BLE_GAP_EVT_DISCONNECTED in on_ble_evt() to see what is the disconnect reasion ?

    Would the chip still work after you got disconnected ? I suspect that the chip got hang at some point and caused the connection to be timed out.

    Which S110 softdevice did you use with? Note that chip version 2 (your QFAAG2) would need a reconfiguration when starting the S110 v8.x to make it compatible with XLR2 chip. Please have a look at the Changes section in the S110 v8.0 release note.

Children
No Data
Related