Hi everyone,
I'm using ble_app_interactive (SDK17.0.2) as a starting point for my application, which consists in sending commands from my PC to my nRF52DK, which is in charge to perform several BLE operations. I send the following commands to read some data from my BLE commercial device:
scan on
gatt services XX:XX:XX:XX:XX:XX
gatt characteristics XX:XX:XX:XX:XX:XX YYYY
gatt notification on XX:XX:XX:XX:XX:XX YYYY
It is all good until occur some problems with the buffering of the command that I sent. As echo messages, I sometimes get things such as:
gatt read D1:97:3C:2F:2F:C4 6f87:BF
where "87:BF" is a part of a previous command that I sent several seconds before the current command.
It seems there is a problem of buffering the command, so when this buffer is full, some parts of previous command appears concatenated with the current command. If I well understand, there is a ring buffer that implement the buffer for this commands, which seems to be initialized with:
NRF_CLI_UART_DEF(m_cli_uart_transport, 0, 256, 256);
in the main file of the ble_app_interactive example. If it is responsible for this buffering, is there a way to reset it whenever I need, in order to avoid the above problem?