NUS ble_app_uart freezes when client app is closed while receiving data from peripheral

When the nRF52840 Dev Kit is sending data as a peripheral, connected to client running nRF Connect all works.

I am sending (streaming) a text file to iOS phone or Android tablet.

1)

If I close nRF Connect while streaming, the peripheral (nRF52840) stays connected.

I have to power cycle to get nRF52840 to start advertising again.

2)

If I send a 340-character text file to NUS, all is fine. I can disconnect and reconnect.

If I send a 360-character text file, NUS locks up (Freezes).s

Only a power cycle can get the Dev Kit to function.again.

Any help appreciated

I am using:

nRF52840
nRF5_SDK_17.1.0_ddde560
s140_nrf52_7.2.0_softdevice

When I use:

ble_app_uart
nRF5_SDK_15.3.0_59ac345
s132_nrf52_6.1.1_softdevice.hex

nRF52832 Dev Kit

I can send a file of320 bytes, no problem

When I send a file of 360 bytes, the nRF52832 Dev Kit (Peripheral) automatically disconnects, but does NOT freeze.

So the Client, (Android tablet), can reconnect.

Parents
  • Hi, 

    Sorry for the delay. 

    From the team:

    I modified the ble_app_uart example in the nRF5 SDK so that the firmware sends 360-byte text to the smartphone on button 4 press. However, I cannot reproduce the problem with my nRF52840 Dev Kit (PCA10056 v1.0.0) and nRF Connect Android application. The firmware does not freeze, it is able to send another 360-byte packet. On the Android side, it is also confirmed that the packets are received and the connection maintained.

    I am attaching a modified main.c file for the BLE UART example. It has a license tag instead of an actual license because I modified the files in our Bitbucket code repository instead of doing it with the release package. You may want to add a proper license. 

    -Amanda

Reply
  • Hi, 

    Sorry for the delay. 

    From the team:

    I modified the ble_app_uart example in the nRF5 SDK so that the firmware sends 360-byte text to the smartphone on button 4 press. However, I cannot reproduce the problem with my nRF52840 Dev Kit (PCA10056 v1.0.0) and nRF Connect Android application. The firmware does not freeze, it is able to send another 360-byte packet. On the Android side, it is also confirmed that the packets are received and the connection maintained.

    I am attaching a modified main.c file for the BLE UART example. It has a license tag instead of an actual license because I modified the files in our Bitbucket code repository instead of doing it with the release package. You may want to add a proper license. 

    -Amanda

Children
No Data
Related