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

Enable the data packet length extension (DLE) for advertising on NRF52

Hi,

I see that my device name is getting shortened on advertisements. I take it this is sue to the fact I have included some manufacturing data.

I need both unfortunately.

 

Data Packet Length Extension seems to be recommended, but I am not sure how to enable this for advertising. I need to scan through lots of devices, so I need the name to be the full name. How do I enable it?

 

PS Is there also a way to request the full name after a connection has been made?

Parents
  • Hello,

    The data length extension is only for connection communication, and not advertisement. An adverteisement packet is limited to 31 bytes, so if you have included something else in your advertisement as well, the name will typically be shortened. 

    One thing you can do if you want to include a longer name is to use something called scan response.

    To see how to use it, please refer to e.g. the ble_app_uart example in the SDK. Look at how it sets the advertising uuids in the scan response (.srdata) in advertising_init().

    Best regards,

    Edvin

Reply
  • Hello,

    The data length extension is only for connection communication, and not advertisement. An adverteisement packet is limited to 31 bytes, so if you have included something else in your advertisement as well, the name will typically be shortened. 

    One thing you can do if you want to include a longer name is to use something called scan response.

    To see how to use it, please refer to e.g. the ble_app_uart example in the SDK. Look at how it sets the advertising uuids in the scan response (.srdata) in advertising_init().

    Best regards,

    Edvin

Children
No Data
Related