2 iBeacon driver
gemu edited this page 2019-08-29 13:53:24 +02:00

The ibeacon driver uses a BLE4 module hm17 (hm16 should also work) which is capable of bluetooth central role
it is driven by AT cmds so there may be other compatible modules too.

all apple compatible ibeacon devices should work as beacons. this one is fully apple compatible and the battery lasts about a year (ibeacon)

another special beacon is supported. it has a build in speaker and can be made beeping by mqtt cmd. the battery however lasts only about a month (smart-tag)

the hm17 is connected to GND , 3.3 V, RX to TX of ESP and TX to RX of ESP. the module when delivered is in the peripheral mode and must be switched to central mode only once by the cmds sensor52 1 and sensor52 2. the settings are stored inside the module.

sensor52 us sets the (update) scanning interval in seconds s (5....n) sensor52 ts sets the timeout interval in seconds s (10....n)

the driver reports all beacons found during a scan with its ID and RSSI. if the beacon can no longer be found during scan and the timeout interval has passed the beacons RSSI is set to zero (0)

a beacon with beeper can made beeping by setting RSSI to 99 by MQTT cmd.