2

This could be a wrong question but just need to know whether this is feasible For one of our ble devices the manufcaturer data comes as when scanned using the noble package using the [peripheral.advertisement.manufacturerData]

manufacturerData: <Buffer 59 00 08 8a 00 00 50 f8 c8 f0 6e b9 cd> }.This data mainly has some data related to the device like the battery level and hardware versions. Can this device work as a beacon as well as a ble device if we change the advertising package ?

rahulmr
  • 681
  • 1
  • 7
  • 19

1 Answers1

4

Yes, any BLE device can act as a beacon as long as you can control the advertisement payload. Beacons are a subset of BLE devices. By definition, beacons are BLE devices that are constantly/continuously advertising data that are relevant to other remote devices, usually containing information about its location/proximity.

So to answer your question, as Mike Petrichenko suggested, all you need to do is alter your advertisement data to something that is relevant to remote devices. If you still need to send your current adverts, then you'll need to alternate between sending the current advert data and the relevant beacon data. You can control the frequency at which each data is sent depending on your application (e.g. For every 10 adverts of your current payload you can send the beacon advert if it's less frequently needed).

Some references:-

What Are Beacons and How Beacons Technology Works

5 Things You Need to Know about Beacon Technology

What Are Beacons, and How Are They Used in IoT Applications

I hope this helps.

Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72