I’m looking to set up 2-way communication between a tag and a Raspberry Pi, triggered when the tag comes within range of the Pi. The Pi should send a message to the tag to turn on one of its LEDs, and continue to send that message as long as the tag is nearby. Once the tag is out of range and no longer receives the messages, it should turn the LED off. Additionally, I would like to take advantage of Eddystone-EID to keep everything secure.
To that end, here are some questions:
How can I send a message to turn on an LED?
Will I need to rewrite part of the firmware?
Can I still use Eddystone to take advantage of Eddystone-EID?
Is Eddystone even a 2-way protocol?
Can I mix-and-match protocols?
Can I use Eddystone-EID just for the beacon’s broadcast, and then send messages with another protocol?
Is Espruino the way to do it?
Can the ruuvitag_sensor Python package give me proximity data? I’m hoping to trigger everything when the tag is within a few meters of the Pi.
You’ll need to send an actuation message as described in the protocol. The actuation messages are not implemented yet, but if you’re eager to try it out I can bump it up on my todo list. Ask me again with the tag @otso if you do not hear a follow-up in a few weeks.
With this firmware, not really. If you want to use Eddystone-EID you’d need to implement the changes on to of Eddystone firmware. Essentially you’d need to add a custom service to Eddystone program, as changing Eddystone service itself would invalidate the Eddystone certification.
Eddystone hsa configuration protocol which is 2-way. Eddystone broadcasts are 1-way.
Yes, but please add a custom service rather than modifying existing standard. A Bluetooth profile can contain many services, such as Eddystone Configuration service and Led configuration service.
yes, and that would be recommended
Probably not, Espruino is not Eddystone-certified and I don’t think a full Eddystone implementation would fit into Espruino with the RAM and Flash available on RuuviTag. If you do not need a compliant Eddystone configuration service, maybe. The Eddystone crypto implementation would probably require a lot of work, though.
You can get the RSSI, which is not exactly proximity data but can give a rough guess of when a tag is nearby.