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

nrf52832 , SDK_V15.3 , ble_app_uart sample code , data communication noncontinuous & disappear problem.

nrf52832 , SDK_V15.3 , ble_app_uart sample code , data communication problem.

Hello there...


I use the SDK V15.2, ble_app_uart sample code, on the nrf52832

seems the ble already could support long write,


but actually I found the BLE communication data is sperate in 20 bytes chunk,


then cause the nrf52832 cann't control the device normally.


I serach the "long write", "ble uart" ,"ble_uart 20 bytes" key word on the DevZone,


but I cann't get it. I sure about the problem by the test:


I make the "ble_nus_data_send(&m_nus, data_array, data_array_len, m_conn_handle)" send out


declared data_array & data_array_len , the device contorl by nrf52832 is correct.


But when I send the same data from the APP through the nrf52832 to the device,


the device working abnormal.


Then I use the UART output the data, the data after the 20th byte disappear become zero.


But I can out put the recevice data from the APP by UART on PC before I send out the data through the nrf52832 to the device,

, although the data is sperate in 20 bytes chunk. ( I use the "app_uart_put(0xFF) to test that, after the whole data (25bytes) out put by uart on the PC by for loop i "app_uart_put(data_array[i]);", then the "0xFF" become the 21th byte on the PC putty tool ).


So I like to know what's different about the declared data_array and the BLE communication data workink on the nrf52832, use the same "app_uart_put( ) & ble_nus_data_send" function?


And how to solve the problem?

Related