Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Common disconnects using ble_app_interactive

Hello,

I am attempting to test slew of Rigado BMD-350 module BLE radios (uses nRF52832) using a Rigado BMD-301 series Eval Kit to act as the central.  The BMD-350 device is running the stock firmware from Rigado, BMDware v3.2.1.

Currently, I'm simply running the "ble_app_interactive" example application (pca10040) from the current nRF5 SDK 15.1.0 (a8c0c4d) and loading it on the Evaluation Kit to connect and query the peripheral GATT server.  I did modify this a bit to disable terminal colors, shorten the prompt, and output RSSI on advertisement packet events.

The SDK application works most of the time when I "connect <mac>", but I somewhat frequently get a "CENTRAL: Disconnect ... reason: 0x8" shortly after the connection.  The sequence looks like this:


> connect 94:54:93:2F:CA:9B
<info> app: CENTRAL: Connecting...
<info> app: CENTRAL: RSSI from Peripheral: -29 dBm
Connected to address: 94 54 93 2F CA 9B
<info> app: CENTRAL: Connected, handle: 0.
Current MTU: 247
MTU changed successfully
<info> app: Data length updated to 54 bytes.
> connected_devices
Connected devices:
0. 94:54:93:2F:CA:9B Security level: 1
Connection parameters update success
<info> app: Data length updated to 54 bytes.
>
<info> app: CENTRAL: Disconnected, handle: 0, reason: 0x8


Does anyone know how I might debug what's going on here?  I'm new to these soft devices and BLE in general, so I thought using a S132 SDK example application would be an easy way to design my test module, but it's not being reliable enough and I'm getting way more failures than I expect due to random disconnects.  It is possible it's the stock BMDware as well.

If anyone knows of any way I could work around this issue, or avoid it by adjusting some parameters, it would be greatly appreciated.  I'm still looking at all of the things the soft device in this particular application is doing...

Parents Reply
  • The soft device on the BMD-301-EVAL running as peripheral is the latest S132 v6.1.0.  In this I am running of the LFXO, NOT the RC oscillator.  This is equivalent PCA10040 (the 832-DK)

    I did have to go look it up (i'm not modifying the stock Rigado code yet), but the peripheral device is apparently running S132 v3.1.0:

    Perhaps the version difference could be an issue?

Children
  • I did have to go look it up (i'm not modifying the stock Rigado code yet), but the peripheral device is apparently running S132 v3.1.0

    Looking here, it could be S132 v3.0.0? Could you check the FWID of the SoftDevice to confirm this?

    If you use nrfjprog to read 0x0000300C, it will give you the FWID:

    nrfjprog --memrd 0x0000300C

    If you get FFFF008C, it's S132 v.3.0.0, if you get FFFF0091 it's S132 v3.1.0

    Perhaps the version difference could be an issue?

    Since increasing the LFXO ppm for the BLE central resolves this issue, a hardware issue is more likely. 

    CENTRAL: Disconnected, handle: 0, reason: 0x8

    Do you get the same disconnect reason at the BLE peripheral ?

Related