BT NUS logging corruption

In our development using NCS-2.6.1 it is desirable to have logs using BT NUS.

"Serial Bluetooth Terminal" android application is used. Logs are having corruption.

Looks like remains of longer message is spilled out to following shorter messages.

Same behaviour shows sample application ble_backend. To show issue better the ble_backend application while loop part modified to

static int c = 0;
while (1) {

uint32_t uptime_secs = k_uptime_get_32()/1000U;
if ( c == 0)
LOG_INF("hello");
else
LOG_INF("Uptime %d secs", uptime_secs,c);
c = (c+1) % 2;
k_sleep(K_MSEC(1000));
}

in such case output is
[00:00:00.818,939] ble_backend: BLE Logger Backend enabled.
[00:00:01.005,340] ble_backend: Uptime 1 secs
end enabled.
[00:00:02.005,493] ble_backend: hello
1 secs
end enabled.
[00:00:03.005,645] ble_backend: Uptime 3 secs
end enabled.
[00:00:04.005,798] ble_backend: hello
3 secs
end enabled.
[00:00:05.005,950] ble_backend: Uptime 5 secs
end enabled.
[00:00:06.006,103] ble_backend: hello
5 secs
end enabled.

Kind Regards

Parents Reply
  • If opened in wireshark in colon with titlle No. value is 4459, colon Time value is 24.136

    Issue related data is

    0000 10 58 00 03 cc 07 06 0a 01 20 26 82 00 2c 71 df .X....... &..,q.
    0010 26 13 ac 9a af 0e 45 41 00 04 00 1b 12 00 5b 30 &.....EA......[0
    0020 30 3a 30 30 3a 35 32 2e 30 31 32 2c 33 39 30 5d 0:00:52.012,390]
    0030 20 62 6c 65 5f 62 61 63 6b 65 6e 64 3a 20 68 65 ble_backend: he
    0040 6c 6c 6f 0d 0a 35 31 20 73 65 63 73 0d 0a 6e 64 llo..51 secs..nd
    0050 20 65 6e 61 62 6c 65 64 2e 0d 0a 00 88 4d 0b enabled.....M.

Children
No Data
Related