Issue when Creating new service in nRF Connect for desktop

Hi,

I am trying to create a new custom service in nRF Connect for desktop and play around with its characteristic properties.

I Use an nRF52840 DK as peripheral and my mobile as a central device.

When I set the "Write" property only and I press "save" and "apply to device" a message saying "Server setup was applied" is displayed in the log area.

Then by going to "Connection Map" tab and I start advertising with the DK, the new service is displayed and I can see it in my smartphone. So far so good (image 1).

But when I set the "Notify" or "Indicate" property along with the "Write" property and I press "save" and "Apply to Device"

no "Server setup was applied" message is displayed in the log area (image 2) and the new service is not detected in my smartphone. What am I doing wrong here?

                              

Parents
  • Hi Kostoulas

    I can't really say that I use this tool much, but I was able to replicate what you described . 

    Could you start your application with verbose logging on post the log when you try to do step 2? You can enable verbose logging from the about tab on the BLE app. 

    Regards

    Runar

  • Hi, here is the verbose log file. I performed two tests. One without notifications and then one with notifications. I attach the verbose log file. In the verbose log file, the log part that corresponds to the first test is up to line 34 " 2024-02-23T10:09:30.822Z INFO Server setup was applied" and the rest of the log corresponds to the update with the notification enabled.

    2024-02-23T10:08:41.157Z INFO Server setup was cleared
    2024-02-23T10:09:30.800Z DEBUG       29 ->  [00 7c 01 11 05 00 01 6e 52 46 35 75 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:2 payload_length:c data_integrity:1 header_checksum:60 err_code:0x0
    2024-02-23T10:09:30.801Z DEBUG    26/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.801Z DEBUG    27/ 0 <-  [01 7c 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:3 payload_length:6 data_integrity:1 header_checksum:b8 err_code:0x0
    2024-02-23T10:09:30.801Z DEBUG       30 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.801Z DEBUG       31 ->  [00 7a 01 ff ff ff ff 00 00 ff ff ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:3 payload_length:b data_integrity:1 header_checksum:67 err_code:0x0
    2024-02-23T10:09:30.802Z DEBUG    28/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.802Z DEBUG    29/ 0 <-  [01 7a 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:4 payload_length:6 data_integrity:1 header_checksum:af err_code:0x0
    2024-02-23T10:09:30.802Z DEBUG       32 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.802Z DEBUG       33 ->  [00 63 10 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:4 payload_length:15 data_integrity:1 header_checksum:bd err_code:0x0
    2024-02-23T10:09:30.803Z DEBUG    30/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.804Z DEBUG    31/ 0 <-  [01 63 05 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:5 payload_length:6 data_integrity:1 header_checksum:a6 err_code:0x0
    2024-02-23T10:09:30.804Z DEBUG       34 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.804Z DEBUG       35 ->  [00 78 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:5 payload_length:4 data_integrity:1 header_checksum:c5 err_code:0x0
    2024-02-23T10:09:30.805Z DEBUG    32/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.805Z DEBUG    33/ 0 <-  [01 78 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:6 payload_length:6 data_integrity:1 header_checksum:9d err_code:0x0
    2024-02-23T10:09:30.805Z DEBUG       36 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.805Z DEBUG       37 ->  [00 62 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:6 payload_length:14 data_integrity:1 header_checksum:bb err_code:0x0
    2024-02-23T10:09:30.805Z DEBUG    34/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.807Z DEBUG    35/ 0 <-  [01 62 00 00 00 00 01 02 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:7 payload_length:8 data_integrity:1 header_checksum:74 err_code:0x0
    2024-02-23T10:09:30.807Z DEBUG       38 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.807Z DEBUG       39 ->  [00 63 10 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:7 payload_length:15 data_integrity:1 header_checksum:a2 err_code:0x0
    2024-02-23T10:09:30.808Z DEBUG    36/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.809Z DEBUG    37/ 0 <-  [01 63 00 00 00 00 01 00 00 02 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:0 payload_length:a data_integrity:1 header_checksum:8b err_code:0x0
    2024-02-23T10:09:30.809Z DEBUG       40 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.809Z DEBUG       41 ->  [00 a0 01 01 00 00 02 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:0 payload_length:8 data_integrity:1 header_checksum:b2 err_code:0x0
    2024-02-23T10:09:30.811Z DEBUG    38/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.811Z DEBUG    39/ 0 <-  [01 a0 00 00 00 00 01 0b 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:1 payload_length:9 data_integrity:1 header_checksum:9a err_code:0x0
    2024-02-23T10:09:30.811Z DEBUG       42 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.813Z DEBUG       43 ->  [00 a2 0b 00 01 08 00 00 00 00 00 00 00 00 00 00 01 01 00 00 02 01 11 11 03 00 00 14 00 00 00 01 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:1 payload_length:21 data_integrity:1 header_checksum:17 err_code:0x0
    2024-02-23T10:09:30.814Z DEBUG    40/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.814Z DEBUG    41/ 0 <-  [01 a2 00 00 00 00 01 0d 00 00 00 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:2 payload_length:f data_integrity:1 header_checksum:31 err_code:0x0
    2024-02-23T10:09:30.814Z DEBUG       44 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:09:30.822Z INFO Server setup was applied
    2024-02-23T10:11:38.986Z DEBUG       45 ->  [05 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:2 payload_length:2 data_integrity:1 header_checksum:0 err_code:0x0
    2024-02-23T10:11:38.993Z DEBUG    42/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:38.994Z DEBUG State change: STATE_ACTIVE -> STATE_CLOSED
    2024-02-23T10:11:38.994Z DEBUG serial port read on port COM4 aborted.
    2024-02-23T10:11:38.996Z INFO serial port COM4 closed.
    2024-02-23T10:11:39.011Z INFO Opening adapter connected to COM4
    2024-02-23T10:11:39.966Z INFO Successfully opened COM4. Baud rate: 1000000. Flow control: none. Parity: none.
    2024-02-23T10:11:39.966Z DEBUG State change: STATE_START -> STATE_RESET
    2024-02-23T10:11:39.966Z DEBUG     1/ 0 <-  [01 7e ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC]
    2024-02-23T10:11:39.966Z DEBUG        1 ->  [N/A] type:          RESERVED_5 reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:39.967Z INFO Reset performed on adapter COM4
    2024-02-23T10:11:40.276Z DEBUG State change: STATE_RESET -> STATE_UNINITIALIZED
    2024-02-23T10:11:40.276Z DEBUG        2 ->  [01 7e ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC]
    2024-02-23T10:11:40.277Z DEBUG     2/ 0 <-  [02 7d ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC_RESP]
    2024-02-23T10:11:40.277Z DEBUG State change: STATE_UNINITIALIZED -> STATE_INITIALIZED
    2024-02-23T10:11:40.277Z DEBUG        3 ->  [03 fc 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:40.539Z DEBUG        4 ->  [03 fc 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:40.677Z DEBUG     3/ 0 <-  [01 7e ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC]
    2024-02-23T10:11:40.677Z DEBUG        5 ->  [02 7d ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:2 data_integrity:0 err_code:0x0 [SYNC_RESP]
    2024-02-23T10:11:40.803Z DEBUG        6 ->  [03 fc 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:40.804Z DEBUG     4/ 0 <-  [03 fc 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:40.804Z DEBUG        7 ->  [04 7b 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG_RESP [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:41.067Z DEBUG        8 ->  [03 fc 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:41.068Z DEBUG     5/ 0 <-  [04 7b 11 ] type: LINK_CONTROL_PACKET reliable: no seq#:0 ack#:0 payload_length:3 data_integrity:0 err_code:0x0 [CONFIG_RESP [ sliding-window-size:1 out-of-frame:0 data-integrity-check-type:1 version-number:0 ]]
    2024-02-23T10:11:41.068Z DEBUG State change: STATE_INITIALIZED -> STATE_ACTIVE
    2024-02-23T10:11:41.076Z INFO Adapter connected to COM4 opened
    2024-02-23T10:11:41.076Z DEBUG        9 ->  [00 69 20 00 00 00 01 01 08 a0 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:0 payload_length:b data_integrity:1 header_checksum:82 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG     6/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG     7/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:1 payload_length:6 data_integrity:1 header_checksum:ca err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       10 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       11 ->  [00 69 23 00 00 00 01 01 f7 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:1 payload_length:a data_integrity:1 header_checksum:89 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG     8/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG     9/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:2 payload_length:6 data_integrity:1 header_checksum:c1 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       12 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       13 ->  [00 69 01 00 00 00 01 0a ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:2 payload_length:8 data_integrity:1 header_checksum:a0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    10/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    11/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:2 ack#:3 payload_length:6 data_integrity:1 header_checksum:b8 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       14 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:3 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       15 ->  [00 69 40 00 00 00 01 01 07 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:3 payload_length:a data_integrity:1 header_checksum:77 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    12/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    13/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:3 ack#:4 payload_length:6 data_integrity:1 header_checksum:af err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       16 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:4 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       17 ->  [00 69 a0 00 00 00 01 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:4 payload_length:8 data_integrity:1 header_checksum:8e err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    14/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    15/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:4 ack#:5 payload_length:6 data_integrity:1 header_checksum:a6 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       18 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:5 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG       19 ->  [00 69 a1 00 00 00 01 80 05 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:5 payload_length:b data_integrity:1 header_checksum:55 err_code:0x0
    2024-02-23T10:11:41.077Z DEBUG    16/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.078Z DEBUG    17/ 0 <-  [01 69 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:5 ack#:6 payload_length:6 data_integrity:1 header_checksum:9d err_code:0x0
    2024-02-23T10:11:41.078Z DEBUG       20 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:6 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:41.078Z DEBUG       21 ->  [00 60 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:6 payload_length:2 data_integrity:1 header_checksum:dc err_code:0x0
    2024-02-23T10:11:41.079Z DEBUG    18/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.039Z DEBUG    19/ 0 <-  [01 60 00 00 00 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:6 ack#:7 payload_length:6 data_integrity:1 header_checksum:94 err_code:0x0
    2024-02-23T10:11:42.039Z DEBUG       22 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:7 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.039Z DEBUG       23 ->  [00 65 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:7 payload_length:3 data_integrity:1 header_checksum:c3 err_code:0x0
    2024-02-23T10:11:42.049Z DEBUG    20/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.049Z DEBUG    21/ 0 <-  [01 65 00 00 00 00 09 59 00 a5 00 ] type:     VENDOR_SPECIFIC reliable:yes seq#:7 ack#:0 payload_length:b data_integrity:1 header_checksum:7b err_code:0x0
    2024-02-23T10:11:42.049Z DEBUG       24 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:0 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.053Z DEBUG       25 ->  [00 7d 01 f8 00 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:0 payload_length:6 data_integrity:1 header_checksum:d2 err_code:0x0
    2024-02-23T10:11:42.053Z DEBUG    22/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.053Z DEBUG    23/ 0 <-  [01 7d 00 00 00 00 01 05 00 6e 52 46 35 78 ] type:     VENDOR_SPECIFIC reliable:yes seq#:0 ack#:1 payload_length:e data_integrity:1 header_checksum:4a err_code:0x0
    2024-02-23T10:11:42.053Z DEBUG       26 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:1 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.057Z DEBUG       27 ->  [00 6d 01 ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:1 payload_length:3 data_integrity:1 header_checksum:f9 err_code:0x0
    2024-02-23T10:11:42.057Z DEBUG    24/ 0 <-  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.057Z DEBUG    25/ 0 <-  [01 6d 00 00 00 00 02 d7 24 32 83 9f fd ] type:     VENDOR_SPECIFIC reliable:yes seq#:1 ack#:2 payload_length:d data_integrity:1 header_checksum:51 err_code:0x0
    2024-02-23T10:11:42.058Z DEBUG       28 ->  [N/A] type:                 ACK reliable: no seq#:0 ack#:2 payload_length:0 data_integrity:0 err_code:0x0
    2024-02-23T10:11:42.066Z DEBUG SoftDevice BLE stack enabled.
    

  • Thanks, I have asked internally and will update as soon as I have anything

    Regards

    Runar

Reply Children
No Data
Related