💬 Building a Raspberry Pi Gateway
-
I just discovered these USB-to-NRF24 devices. Would it be possible to use that instead of connecting to the GPIO pins?
-
Background: I use signing software on some nodes + whitelisting on a node (of course only PI serial is on the whitelist).
With current --development branch (I think 2.3.0alpha) I cannot anymore set my previous personalized flags on gateway RPI3.
In detail, with current master (2.2.0) I can do:
sudo mysgw --set-soft-hmac-key=F618D4[...]848992B sudo mysgw --set-soft-serial-key=26[...]9 sudo mysgw --set-aes-key=EC7[...]CEB4WIth development I did see only the
--get[...]flags and cannot set anymore. Can you confirm?How can I set my previous values for signing?
-
Background: I use signing software on some nodes + whitelisting on a node (of course only PI serial is on the whitelist).
With current --development branch (I think 2.3.0alpha) I cannot anymore set my previous personalized flags on gateway RPI3.
In detail, with current master (2.2.0) I can do:
sudo mysgw --set-soft-hmac-key=F618D4[...]848992B sudo mysgw --set-soft-serial-key=26[...]9 sudo mysgw --set-aes-key=EC7[...]CEB4WIth development I did see only the
--get[...]flags and cannot set anymore. Can you confirm?How can I set my previous values for signing?
@sineverba I believe this change alters how rPi port handles signing related personalisation: https://github.com/mysensors/MySensors/commit/3c0b2727a56907277d4d04c985fd72b14e4a483c
And, as usual, the documentation is a good place to start ;) https://www.mysensors.org/apidocs-beta/group__MySigninggrpPub.html#MySigninggrphowuse
-
I'm currently compiling the code for connecting the NRF24l01+ directly to the Raspberry PI. Since I'm running the controller (on this case OpenHab) on the same Raspberry PI, would it be recommended the Ethernet or the serial flavor of it?
In the case of ethernet, can I place the own machine IP (127.0.0.1)? This way, if I need to change the IP address of the PI it wouldn't affect the communication between the controller and the MySensors code, right?
--my-gateway=ethernet --my-controller-url-address=127.0.0.1And by the way, for the signing configuration, it is mentioned in the documentation "Update the gateway config file with the generated keys/valeus", what file is that (name, path)?
I should be able to re-use the keys I have defined before, right? So I just go to step 2 (no need to generate new keys).
I'm refering to this link.Thanks,
-
I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.
Anyway, the file states that:
"Note: The gateway must have been built with signing support to use the options below."What flags should I include to have signing support?
OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference
-
I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.
Anyway, the file states that:
"Note: The gateway must have been built with signing support to use the options below."What flags should I include to have signing support?
OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference
-
I found that the configuration file is /etc/mysensors.conf but " The first time you start the gateway the configuration file will be created if it does not already exist.", so that's why I wasn't finding it.
Anyway, the file states that:
"Note: The gateway must have been built with signing support to use the options below."What flags should I include to have signing support?
OK, found it: just run ./configure -h and there is a list of options. Leaving it here just for future reference
-
Thanks for the replies.
I've changed the PI from a PI1 to a PI3 and was able to make it working with signing. Its running smoothly, I guess the GW is chosen :).
I'll now focus on the nodes, specially the SenseBender micros that are 2xAA battery powered and are consuming ~3% bat per day, but that will be for another post...
Thanks!
Joaoabs -
Hi, is there any way to check the current gateway operating parameters? My purpose is to check the radio channel and power level set before compilation but I would be glad if I could check other configurable parameters. I looked at Makefile.inc and found some flags set, but not the information I was looking for (does it mean that the default values are set)? Debug logs neither provide these informations.
-
Hi,
Is it normal to have frequently these errors in the RPI GW?
May 11 00:43:54 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:43:54 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:43:56 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:43:56 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:43:58 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:43:58 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:44:00 nettemp mysgw: RF24: Recovered from a bad interrupt trigger. May 11 00:44:00 nettemp mysgw: RF24: Recovered from a bad interrupt trigger.Thanks
-
Openhab2 on pi3b+ using nrf24 radios and mqtt. I can follow the wiring diagram, but the commands are a bit confusing and seem to jump around randomly. Do I put all the --my-blah-blah together after the ./configure to build a file? Should I do development version? Do the nfr improvements go together with everything else?
-
Openhab2 on pi3b+ using nrf24 radios and mqtt. I can follow the wiring diagram, but the commands are a bit confusing and seem to jump around randomly. Do I put all the --my-blah-blah together after the ./configure to build a file? Should I do development version? Do the nfr improvements go together with everything else?
@kberck3 said in 💬 Building a Raspberry Pi Gateway:
Do I put all the --my-blah-blah together after the ./configure to build a file?
From the article "Note: All options must be added to the same line, after ./configure"
Leave the development version for now, the stable works fine.
-
@kberck3 said in 💬 Building a Raspberry Pi Gateway:
Do I put all the --my-blah-blah together after the ./configure to build a file?
From the article "Note: All options must be added to the same line, after ./configure"
Leave the development version for now, the stable works fine.