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

nrf52832 ble_app_uart_pca10040_s132 uart loss data

Hi, I encountered the problem of losing data in uart serial port when using ble_app_uart_pca10040_s132 example.

sdk 16.0.0, s132, 7.0.1, nrf52832, 

APP_ADV_DURATION=0, init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE,

UART_TX_BUF_SIZE = 512, UART_RX_BUF_SIZE = 512, baud_rate = NRF_UART_BAUDRATE_9600

 use the mobile app nrf connect to connect to the ble_uart app of nrf52832. When I send the following utf8 data on the mobile app,

"1111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000",

the uart serial port of nrf52832 only receives

"11111111112222223333334444444444555555555566666666667777777777888888888899999999990000000000",

But through the jlink rtt viewer, I can see that the data has been transmitted to nrf52832 via Bluetooth, but the uart serial port has not received complete data from nrf52832.

It is the first time I use nrf52832. What is the problem and how to locate this kind of problem?

Please help me.

Best wishes.

  • I found the reason for the problem is that there is another process that is also reading the serial port of nrf52832, which causes the data read by my process to be abnormal.

  • Good you found the reason! Looks like it was only missing 8 bytes somewhere around the 2's and 3's.

    Best regards,

    Edvin