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

BLE advertisement using all 31 bytes for user data

Is there a way using the API to utilize all 31 bytes of advertisement data for a user application?  I'm porting an application, which sends data in advertisement packets, to the nRF52811 from another manufacturers part.  The API does validity checks on the data and therefore fails because things like flags, etc, aren't valid since they are user data.

Parents
  • Hi

    Please check out this discussion on advertisement data in order to understand how you can maximize the data usage of your advertisement. You can also check out our BLE advertising tutorial if you want a more in-depth explanation.

    If you need more than 31 bytes in your advertisement you can also add a scan response packet in order to send an additional 31 bytes in a separate event in order to add to your advertisement. This is also covered in the aforementioned advertising tutorial.

    Best regards,

    Simon

  • Thanks for the reply.  Unfortunately, as I mentioned I am porting an application so I am constrained by maintaining interoperability with existing equipment which uses all 31 bytes of the advertisement payload for user data.  If there is a way around the format checks of sd_ble_gap_adv_set_configure() or a way to directly load the buffer which the radio uses to send the advertisement packets that would probably solve my problem.

Reply
  • Thanks for the reply.  Unfortunately, as I mentioned I am porting an application so I am constrained by maintaining interoperability with existing equipment which uses all 31 bytes of the advertisement payload for user data.  If there is a way around the format checks of sd_ble_gap_adv_set_configure() or a way to directly load the buffer which the radio uses to send the advertisement packets that would probably solve my problem.

Children
No Data
Related