MySensors & RPi?
-
Hello Everyone!
I'm using a Serial Gateway Arduino Pro Mini/NRF24 on Rpi2/RPi3; is there a way to use NRF24 directly on RPi? I know that is available a porting but seems to not be updated with last release (2.0)...is it?
Thanks so much!
-
So far, no-one has done the work required to bring the MySensors Raspi gateway up to 2.0. It is quite a lot of work and the serial gateway works fine so the gain vs effort is not very good.
-
https://forum.mysensors.org/topic/2759/mysensors-raspberry-port-suggestions/12
what about that one?
-
No one in the core group use a rpi and nrf combo for their setup, so we have no possibility to develop support. We need someone to create a PR for it.
A lot of changes went in the last month's, so something that worked 5 months ago is way behind the current state of the library.
-
What would be involved in getting it working with 2.0? Are we talking modifying/writing a few new methods or is it closer to a full re-write of the entire application? I can put in some work but my coding skills are somewhat limited. I can however fight my way through it. I just recently became a very happy user of the PiSerialGateway and would hate to have to abandon it.
-
There may be more things, but these are the areas I know
- Merge with or update to use the MySensors 2.0 code base (the current code is somewhat of a fork of MySensors 1.4 and the differences from 2.0 are unknown (at least to me))
- Integrate getting random numbers (required for the signing feature)
- Emulate persistent eeprom or similar (required for the signing feature and would also better handle gateway restarts, today the MySensors routing table is lost on restart I think)
The thread references by mvader above indicates that this is already solved though.
-
@mfalkvidd said:
The thread references by mvader above indicates that this is already solved though.
Wait, you mean there may already be a working version of PiSerialGateway out there? I hope that is the case and I'll check it out.
-
@jerseyguy1996 almost.
There is a working version of PiGateway on https://github.com/marceloaqno/MySensors/archive/7d51087e589afb1296e71442fe2164807da399ef.zip thanks to @marceloaqnoThe last commits do not seem to work for me, but it may be a problem on my side.
PiGateway create a gateway that can be accessed on the network, so on your controller choose 127.0.0.1 port 5003 and it works!
Only drawbacks for now:
- You have to add your devices again
- No proper init script, either launch it manually or add a cron task at boot
-
@emc2 Does this work with a serial connection? I have my radio connected directly to the SPI pins of the raspberry pi.
-
@jerseyguy1996 Well yes and no.
My radio is connected as explained in https://forum.mysensors.org/topic/2437/step-by-step-procedure-to-connect-the-nrf24l01-to-the-gpio-pins-and-use-the-raspberry-as-a-serial-gateway
Radio is detected, but it does not appear as a "serial" by that I mean it's not showing as "/dev/tty*" you have to set it up as as Ethernet gateway, with the IP being your Pi.
-
@Nexus I see. I'm kinda thinking more and more that I may just switch to the arduino based serial gateway. It seems like there is more support for it in terms of keeping up with the mysensors development branch. I really liked the idea of just attaching the radio directly to the Raspi because I felt that it eliminated a potential point of failure but i'm probably wrong. Anyway this whole mysensors community is fantastic! Thanks for all of the hard work you guys do!
-
I am using 1.5.1 and it seems to be worse to have Serial GW than Ethernet GW.
After I changed to Serial GW I got lots of not reporting Nodes.
I change from Ethernet GW to Serial GW around 2016-07-27 16:00
I only had a few not reporting before change and after change I have much more not reporting nodesBefore
After