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

Service UUID advertised by non-connectable device

Hello,

I would like to make an iOS app read BLE advertising packets (sent by nRF51) in background mode. The nRF51 sends ADV_SCAN_IND packets and is not connectable.

iOS method scanForPeripheralsWithServices forces me to include an service UUID into the advertising packet. From documentation:

Apps that have specified the bluetooth-central background mode are allowed to scan while in the background. That said, they must explicitly scan for one or more services by specifying them in the serviceUUIDs parameter.

I've included some random 128 bit service UUID into the advertising packet to have my device scannable by the iOS app. Is that legal when the service is in fact not supported (as the device is not connectable)?

I went through Bluetooth Core Specification and CSS, but I didn't find any mention.

Thank you,

Adam

Parents
  • Hi Adam,

    This is perfectly fine to do. Per the Bluetooth Spec, you are allowed to advertise a 128-bit custom UUID. In addition, you are essentially performing the Broadcaster role since the advertising packets are sent as non-connectable. iOS will report the advertising packets to you. In fact, this is very similar to how their iBeacon (and other Beacon) technology works. The main difference is that you are simply doing normal advertisements where Beacons have a specific Beacon packet structure.

    Hope this helps,

    Eric

Reply
  • Hi Adam,

    This is perfectly fine to do. Per the Bluetooth Spec, you are allowed to advertise a 128-bit custom UUID. In addition, you are essentially performing the Broadcaster role since the advertising packets are sent as non-connectable. iOS will report the advertising packets to you. In fact, this is very similar to how their iBeacon (and other Beacon) technology works. The main difference is that you are simply doing normal advertisements where Beacons have a specific Beacon packet structure.

    Hope this helps,

    Eric

Children
Related