This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

【Chained Advertisement/Nordic 52832 or 52840】How to generate the chained advertisement with the nRF Connect SDK

Hi Nordic experts,

Recently, I tested and found that I failed to start the advertisement with NCS 1.7.0  if the length of advertising data is greater than 251 Bytes, for instance, 500bytes, or 300 bytes.

the log system showed me the too big advertising data error information, I tried to debug and found that the root is caused by BT_HCI_LE_EXT_ADV_FRAG_MAX_LEN. However, I searched the answer here and it showed me that the NCS 1.7.0 (How to scan multiple tags that are sent periodic advertising in ncs v1.6.0? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)) can support up to 1650bytes. so my question is :

1. How to generate the chained advertisement when the length of advertising data is greater than 251Bytes. is it possible at this moment?

  • Hi @Simnor Bro,

    1. Thanks for your patient responses, as you said above, the max packet length is limit to 255Bytes at this moment. so users can only configure the length up to 255 bytes and then the controller can split these 255 bytes into two packets one is 245bytes, another is 10bytes? am I right?

    2. so users need to split their packet into 255bytes by themselves if the packet length is greater than 255bytes.

    3. as for 1650bytes, this feature will be supported in the future.

    the understanding above is correct?

    thanks again,

  • Hi

    1 and 3 are understood correctly.

    2. For clarification. If the advertisement you would like to send is larger than 255 bytes, you will need to do as Hung suggests and have two segments of payload in which you change the advertising packet itself with bt_le_ext_adv_set_data().

    Best regards,

    Simon

  • clear, big thanks, you can close this ticket now.

Related