Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

BLE data received from nRF52832 are incorrect

Hi, I am using nRF52832 module (GAP peripheral, GATT server) with ble_app_uart_pca10040_s112 application.

Also, I am using nRF connect app to test the data communication.

The data sent from the nRF connectivity chip is seen in nRF connect app, however the received data seen in app seems to be incorrect. i.e., same data is being sent for a regular period of time, but incorrect values are received randomly.

In the following example, received data 3 and data x are incorrect.

Data 1: 07-08-09-01-30-34-37-31-30-31-30-30-30-30-31-30-30-30-30-34

Data 2: 07-08-09-01-30-34-37-31-30-31-30-30-30-30-31-30-30-30-30-34

Data 3: 07-08-09-01-30-34-37-31-30-0A-30-30-30-30-31-30-30-30-30-34

Data 4: 07-08-09-01-30-34-37-31-30-31-30-30-30-30-31-30-30-30-30-34

:

Data x: 01-00-00-00-0C-00-00-00-01-00-00-00-02-00-00-00-57-8A-00-34

Data y: 07-08-09-01-30-34-37-31-30-31-30-30-30-30-31-30-30-30-30-34

I understand that this issue might be due to not handling the buffers in a proper way. But, since I don't have a debugger I am not able to trace it through code.

Please let me know what could be the actual cause for this problem and suggest what can be done. Thanks in advance.

Related