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

Too much scan response data to fit - strategy?

OK, so I have figured out that I can put some of my advertising content into the scan response if there is no room in the advertising packet, but what do I do if there is too much data even for that?

I have one (for now) standard BLE SIG service, and three custom services based upon two different base addresses.

And of course there is no room for all that and I get a 12 error back.

Can there be multiple scan response packets sent, or similar?  How is this issue dealt with?

Thanks!

-David B. 'Ben' Burch

BTR Controls, Inc.

Parents
  • Hi,

    You have at least two options:

    1. Remove some data from the advertising and scan response packets. Do you really need to put all the data there?

    2. Use advertising extensions which allows you larger advertising packets (up to BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_MAX_SUPPORTED = 255). There is also support for chaining advertisement packets. However, advertising extensions with long and/or chained advertising packets is not supported by all Bluetooth devices, so it may not be a good idea to rely on it. You can refer to the Running Speed and Cadence Application for an example of extended advertising, though this does not use large advertisement packets.

Reply
  • Hi,

    You have at least two options:

    1. Remove some data from the advertising and scan response packets. Do you really need to put all the data there?

    2. Use advertising extensions which allows you larger advertising packets (up to BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_MAX_SUPPORTED = 255). There is also support for chaining advertisement packets. However, advertising extensions with long and/or chained advertising packets is not supported by all Bluetooth devices, so it may not be a good idea to rely on it. You can refer to the Running Speed and Cadence Application for an example of extended advertising, though this does not use large advertisement packets.

Children
Related