Sending custom messages from a Raspberry Pi Gateway to Arduino node
-
Hello,
For my school project I have a Raspberry Pi and a Arduino Uno both connected with a NRF24 module. The Raspberry Pi is used as a Gateway. I am able to send signed and encrypted messages from the Arduino to the Raspberry Pi, but how can I send a custom message from my Raspberry Pi to my Arduino?
-
Hi @jurg, welcome to the forum!
Easiest way is to issue the messages from your controller. If you don't have a controller, look at https://www.mysensors.org/controller
An alternative is to modify the raspberry pi gateway sketch and add a call to send(). Documentation: https://www.mysensors.org/download/sensor_api_20#sending-data
-
If you compile Mysensors for Raspberry Pi as an ethernet gateway, you will be able to send commands to a socket on an IP of your Raspberry. You can use netcat command, or a python script, as described here: https://forum.mysensors.org/post/88439
This way, you won't need any controller software, if you are not planning anything big.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
MQTT-Help me understand about the MQTT Gateway.
Development • 28 days ago • dpcons 17 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51