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

nRF52 NUS ble_app_uart transmitting data double presented

Hi everyone:

I am using the NUS (nordic UART service) in my project, and find one problem in this project. The development bench is: SDK13.0, nRF52 DK.

If I build a NUS communication with 2 nRF52 DK, one is programmed with ble_app_uart (peripheral) project, the other is programmed with ble_app_uart_c (central). The two device can communicate correctly as expected through serial terminals.

When I send data from central terminal to peripheral terminal, the data can go through UART, BLE, UART, and present correctly on the receiving terminal. When I send data from peripheral terminal to central, the data also is received correctly at the central terminal, but at the same time the data is showed on the peripheral terminal again. If I send data from peripheral BLE chip (means the data is generated or sampled by the BLE device) to central terminal through NUS, the data can be transferred correctly to the central terminal, but at the same time, the data showed on the peripheral terminal again. 

I check at the ble_app_uart program code, there is a nus_data_handler, which is used to handle the data from the Nordic UART Service. It is initialized as services handler. 

So, how can I stop showing the data on peripheral terminal when sending the data to the central terminal? 

Thanks a lot, By Jacky

Parents Reply Children
No Data
Related