💬 Building a Raspberry Pi Gateway
-
Going crazy here.
I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.
I did compile with:
./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020and answer is:
[SECTION] Detecting target machine. [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l. [SECTION] Detecting SPI driver. [OK] SPI driver detected:BCM. [SECTION] Detecting init system. [OK] init system detected: systemd. [SECTION] Saving configuration. [SECTION] Cleaning previous builds. [OK] Finished.Make ends with no error.
The debug
sudo ./bin/mysgw –dlocks here:
mysgw: Starting gateway... mysgw: Protocol version - 2.2.0-betaAnd no other lines.
I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.
Thank you
-
Going crazy here.
I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.
I did compile with:
./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020and answer is:
[SECTION] Detecting target machine. [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l. [SECTION] Detecting SPI driver. [OK] SPI driver detected:BCM. [SECTION] Detecting init system. [OK] init system detected: systemd. [SECTION] Saving configuration. [SECTION] Cleaning previous builds. [OK] Finished.Make ends with no error.
The debug
sudo ./bin/mysgw –dlocks here:
mysgw: Starting gateway... mysgw: Protocol version - 2.2.0-betaAnd no other lines.
I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.
Thank you
@sineverba said in 💬 Building a Raspberry Pi Gateway:
Going crazy here.
I did get success with MySensors and first Arduino node on a fresh Raspbian (last image) and branch development. All ok!Now I want re-do on other SD (same Pi, same WIring, same Radio). I did put "old" sd on a secure location and re-start from scratch.
I did compile with:
./configure --my-transport=nrf24 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020and answer is:
[SECTION] Detecting target machine. [OK] machine detected: SoC=BCM2835, Type=rpi1, CPU=armv6l. [SECTION] Detecting SPI driver. [OK] SPI driver detected:BCM. [SECTION] Detecting init system. [OK] init system detected: systemd. [SECTION] Saving configuration. [SECTION] Cleaning previous builds. [OK] Finished.Make ends with no error.
The debug
sudo ./bin/mysgw –dlocks here:
mysgw: Starting gateway... mysgw: Protocol version - 2.2.0-betaAnd no other lines.
I Repeat, same PI, same Radio, same wiring. If I try other SD, all goes ok and I can use it on domoticz.
Thank you
OK, re-re-done on fresh install and all went ok.
I think that problem was when I deleted the PI default user and created another one.
I did follow the gordon guide: https://gordonlesti.com/change-default-users-on-raspberry-pi/
Probably a permission issues changing or not changing root?
Thank you
-
Hi all
Hope someone can help MySensors noob :) I try to do Raspberry pi 3 gateway with nrf24 module.
Hardware:
Raspberry pi 3
nrf24 module
3.3v 0.5A regulator.
status leds (3pcs)
Domoticz BetaI start with this instructions:
https://www.mysensors.org/build/raspberry#improving-throughput-for-nrf24commands what i use:
git clone https://github.com/mysensors/MySensors.git --branch master
cd MySensors
./configure --my-transport=nrf24
./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway (try ttyUSBMySensorsGateway too, but now help)
./configure --my-transport=nrf24 --my-rf24-irq-pin=15
./configure --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18make
sudo ./bin/mysgw -dAfter that i get error what is same to that instruction site:
http://i.imgur.com/jpiaMdC.pngI douple check wiring that seems to be all right. I think Linux console tell wrong wiring, if wiring is problem? But anyway i douple checked that wiring.
Hope someone can help me with this problem.
I try many times different settings, dont know do i need delete some old files or can i try again and again do configure and give "make" command.
-
Hi all
Hope someone can help MySensors noob :) I try to do Raspberry pi 3 gateway with nrf24 module.
Hardware:
Raspberry pi 3
nrf24 module
3.3v 0.5A regulator.
status leds (3pcs)
Domoticz BetaI start with this instructions:
https://www.mysensors.org/build/raspberry#improving-throughput-for-nrf24commands what i use:
git clone https://github.com/mysensors/MySensors.git --branch master
cd MySensors
./configure --my-transport=nrf24
./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway (try ttyUSBMySensorsGateway too, but now help)
./configure --my-transport=nrf24 --my-rf24-irq-pin=15
./configure --my-leds-err-pin=12 --my-leds-rx-pin=16 --my-leds-tx-pin=18make
sudo ./bin/mysgw -dAfter that i get error what is same to that instruction site:
http://i.imgur.com/jpiaMdC.pngI douple check wiring that seems to be all right. I think Linux console tell wrong wiring, if wiring is problem? But anyway i douple checked that wiring.
Hope someone can help me with this problem.
I try many times different settings, dont know do i need delete some old files or can i try again and again do configure and give "make" command.
@lassivv please don't post the same question in multiple places. Posting in multiple places will result in people trying to help you in one place, even after the problem has been solved in the other place. That is a waste of people's time.
Anyone trying to help @lassivv please post in https://forum.mysensors.org/topic/7050/multi-node-project-mysensors-noob-raspberry-gateway-problem
-
I have a couple of nodes + PI working without issues from a couple of days.
Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
Could you please help me posting right configuration to add to the./configure
command?
Thank you very much!
-
I have a couple of nodes + PI working without issues from a couple of days.
Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
Could you please help me posting right configuration to add to the./configure
command?
Thank you very much!
@sineverba said in 💬 Building a Raspberry Pi Gateway:
I have a couple of nodes + PI working without issues from a couple of days.
Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
Could you please help me posting right configuration to add to the./configure
command?
Thank you very much!
Sorry..... I would UP! this :)
-
@sineverba said in 💬 Building a Raspberry Pi Gateway:
I have a couple of nodes + PI working without issues from a couple of days.
Now, I would add encryption / signing / security etc to protect traffic between Arduinos and PI.
Could you please help me posting right configuration to add to the./configure
command?
Thank you very much!
Sorry..... I would UP! this :)
@sineverba is there not a --help argument to get a list of settings?
-
@sineverba is there not a --help argument to get a list of settings?
@Anticimex sure... Bit I did read also the guide and .... I did noto understand very well whats I need to activate (if need) on gateway and on Arduinos to block, for example, the persone that live on third floor to play with my heater ..... :-) thank you in advance
PS security only software, no other hardware implied / want use
Thank you!
-
@Anticimex sure... Bit I did read also the guide and .... I did noto understand very well whats I need to activate (if need) on gateway and on Arduinos to block, for example, the persone that live on third floor to play with my heater ..... :-) thank you in advance
PS security only software, no other hardware implied / want use
Thank you!
@sineverba I am not sure I understand what you want. You want to enable signing? There is extensive documentation on how to enable that. As for what to pass to the configure command on a rPi I am unsure of the exact naming but I am pretty sure the names are very similar to the #define:s the signing documentation describes.
-
@sineverba I am not sure I understand what you want. You want to enable signing? There is extensive documentation on how to enable that. As for what to pass to the configure command on a rPi I am unsure of the exact naming but I am pretty sure the names are very similar to the #define:s the signing documentation describes.
@Anticimex Yes, the doc is ... maybe ... too extensive :)
By the way, I would signing. So I need to do on both? Gateway/Raspberry and Arduino?
Thank you
-
@Anticimex Yes, the doc is ... maybe ... too extensive :)
By the way, I would signing. So I need to do on both? Gateway/Raspberry and Arduino?
Thank you
@sineverba I am not sure I understand how it can be too excessive? It sounds like it is inadequate since you still have questions. :)
Of course you have to enable signing on both node and gateway. You also need to personalize the services with a hmac key. This is described. Please read the docs carefully. And if they are unclear, please provide a link to the documentation you have read, so I can verify you read the correct one. -
@sineverba I am not sure I understand how it can be too excessive? It sounds like it is inadequate since you still have questions. :)
Of course you have to enable signing on both node and gateway. You also need to personalize the services with a hmac key. This is described. Please read the docs carefully. And if they are unclear, please provide a link to the documentation you have read, so I can verify you read the correct one.@Anticimex
I'm talking about this: https://www.mysensors.org/about/signingSeems to me that probably need to be more clear your hint: you have to enable signing on both node and gateway.
I hope that soon I will can test on my network :)
Thank you for the moment :)
-
@Anticimex
I'm talking about this: https://www.mysensors.org/about/signingSeems to me that probably need to be more clear your hint: you have to enable signing on both node and gateway.
I hope that soon I will can test on my network :)
Thank you for the moment :)
@sineverba yes, well that is for the official release so so far so good. I assume you also run the official version of the library and not the beta version, right?
For details on rPi configuration, perhaps @marceloaqno can provide some assistance but you will find all information needed on that page for configuring signing on your nodes. -
@sineverba yes, well that is for the official release so so far so good. I assume you also run the official version of the library and not the beta version, right?
For details on rPi configuration, perhaps @marceloaqno can provide some assistance but you will find all information needed on that page for configuring signing on your nodes.@Anticimex On Raspberry PI V1 I can work only with branch development. With master the radio / serial doesn't work
-
@Anticimex On Raspberry PI V1 I can work only with branch development. With master the radio / serial doesn't work
@sineverba then please use this documentation instead.
-
@sineverba then please use this documentation instead.
@Anticimex thank you but... it is not the same?
-
@Anticimex thank you but... it is not the same?
@sineverba no, it isn't. There are newer features on beta branch. A third simplified option for signing exist (and if you have a hard time figuring out signing I highly recommend you use it).
-
Raspberry PI V1 Model B (2 USB ports, no wifi, 26 GPIO).
RASPBIAN JESSIE LITE v 2017-04-10-raspbian-jessie-lite.
Some day ago I did compile the gateway only with development branch, using this:
./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020And all works fantastic.
Today I did try a new fresh installation for a friend, same PI, and same commands and routine from zero:
- Logged with PI
- Changed Password
- Activate SSH
- Activate SPI
- Expand Filesystem
- Changed timezone
launched
./configure --my-transport=nrf24 --my-rf24-irq-pin=15 --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyUSB020No error on output, rebooted many times, gateways locked. See the screen:

With current setup (that works perfect), if I reconfigure to use Led TX/RX/Err, I get same lock.
I have SD and a copy of it, but I would setup another one from zero.... and I cannot.
Thank you