Is there any way to export Services and characteristics UUID values to say text file using nrfconnect, as shown in image attached below
.
Is there any way to export Services and characteristics UUID values to say text file using nrfconnect, as shown in image attached below
.
Hi,
It is possible to find and copy UUIDs from the log file.
I did a test with the ble_app_uart example and got the following log lines for the Nordic UART Service and characteristics:
2020-10-13T07:48:17.792Z DEBUG 212/ 0 <- [02 36 00 00 00 00 00 00 00 0b 00 00 00 10 00 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e ] type: VENDOR_SPECIFIC reliable:yes seq#:2 ack#:4 payload_length:1f data_integrity:1 header_checksum:1f err_code:0x0
2020-10-13T07:49:27.388Z DEBUG 258/ 0 <- [02 36 00 00 00 00 00 00 00 0c 00 00 00 13 00 0c 0d 00 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 02 00 40 6e ] type: VENDOR_SPECIFIC reliable:yes seq#:1 ack#:3 payload_length:22 data_integrity:1 header_checksum:f7 err_code:0x0
2020-10-13T07:49:27.455Z DEBUG 261/ 0 <- [02 36 00 00 00 00 00 00 00 0e 00 00 00 13 00 10 0f 00 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 03 00 40 6e ] type: VENDOR_SPECIFIC reliable:yes seq#:3 ack#:4 payload_length:22 data_integrity:1 header_checksum:ed err_code:0x0
The UUID is the last 16 byte values of the list of hex values, e.g. "9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e" for the service UUID.
Corresponding to the NUS base UUID as defined in ble_nus.c:
#define NUS_BASE_UUID {{0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0, 0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E}}
With values 0x0001, 0x0002 and 0x0003 for the 16 bit UUID part. (Respectively the UART service, RX characteristic and TX characteristic.)
You can open the log with the following button:
I have put in a request to enabling copying of UUIDs from the graphical view as well.
Regards,
Terje