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? -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login