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

Why is there no advertisment for a beacon with services?

I'm creating a custom beacon, similar to iBeacon, but with a custom data format. It advertises only once every 8 seconds, but the iPhone app doesn't receive advertisements when the app is in the background. In order to get around this, I've added a service to the advertisement data (BLE_UUID_DEVICE_INFORMATION_SERVICE) but now the device won't advertise at all. When I remove the service UUID from the advertisement data, then the device will advertise again. Am I violating some sort of spec? I can't tell what's going on inside the soft device, why won't it advertise?

Parents
  • The default behavior of APP_ERROR_CHECK is to reset the device, so this is expected. It seems like the adv_data_set() function do not like your parameters then, either because they are invalid or because they are larger than what you can fit in the advertisement. I do not know the SDK well enough to know exactly how the mechanism works, so hopefully someone else can answer you on this.

Reply
  • The default behavior of APP_ERROR_CHECK is to reset the device, so this is expected. It seems like the adv_data_set() function do not like your parameters then, either because they are invalid or because they are larger than what you can fit in the advertisement. I do not know the SDK well enough to know exactly how the mechanism works, so hopefully someone else can answer you on this.

Children
No Data
Related