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

device name

hi

I use  nrf52 sdk17.  i want to change device name .

1. if device name is less 19, more 18 ,it is ok. for example 

#define DEVICE_NAME                         "123456789123456789" .  it is OK

2 if device name is 19 or more , it is fail

  "12345678912345678912" .  it is only 18. 

I want device name is more 18 . how to do, please!

Parents
  • Hello,

    2 if device name is 19 or more , it is fail

      "12345678912345678912" .  it is only 18. 

    I want device name is more 18 . how to do, please!

    What else does your advertising data packet contain? Please keep the 31 advertising data byte limit in mind when building the advertising packet. Please also keep in mind that every advertising data field will require 2 bytes of overhead, so if you have a 18 byte name, it will take up 20 bytes out of the 31 available advertising data bytes.

    If you exceed the 31 byte limit, the SoftDevice will truncate the device name field.

    Best regards,
    Karl

  • HI

    Thanks, I try mark some advdata,it is ok。

    i am not sure  : which data can be mark, does not effect host link

    now advdata data include:

    Encode LE Bluetooth Device Address,Encode appearance.,Encode Flags,Encode TX power level.Encode 'more available' uuid list.,Encode 'complete' uuid list.Encode 'solicited service' uuid list.,Encode Slave Connection Interval Range.Encode Manufacturer Specific Data.Encode Service Data.Encode name

  • bear_xiong said:

    Thanks, I try mark some advdata,it is ok。

    i am not sure  : which data can be mark, does not effect host link

    I am sorry, but I do not understand what you mean by this. Could you clarify?

    bear_xiong said:
    now advdata data include:

    This will certainly exceed the 31 byte limit of a legacy advertising packet.
    Are you dividing this into a scan response packet as well? If so, which of these fields is placed in the scan response, and which of them is in the advertising packet?
    How many bytes is the entire data payload you plan to advertise?
    Have you looked into the possibility to use the Extended Advertising feature of BLE 5.0?

    Best regards,
    Karl

Reply
  • bear_xiong said:

    Thanks, I try mark some advdata,it is ok。

    i am not sure  : which data can be mark, does not effect host link

    I am sorry, but I do not understand what you mean by this. Could you clarify?

    bear_xiong said:
    now advdata data include:

    This will certainly exceed the 31 byte limit of a legacy advertising packet.
    Are you dividing this into a scan response packet as well? If so, which of these fields is placed in the scan response, and which of them is in the advertising packet?
    How many bytes is the entire data payload you plan to advertise?
    Have you looked into the possibility to use the Extended Advertising feature of BLE 5.0?

    Best regards,
    Karl

Children
Related