steve
New Member
Posts: 3
|
Post by steve on Apr 22, 2017 15:09:41 GMT
|
|
steve
New Member
Posts: 3
|
Post by steve on Apr 3, 2017 4:24:23 GMT
Thanks Papa, there's a lot to read there, and a few listings that I missed. I also noticed that there are several posts of partial success and then silence, although the last in your list (one on lowpower.com) seems promising. Thanks for taking the time to put this list together. I'll keep looking.
|
|
steve
New Member
Posts: 3
|
Post by steve on Mar 28, 2017 23:11:52 GMT
papa: As I see it, this thread is about the "Holy Grail" of a Raspberry Pi Gateway or eliminating the Arduino Gateway. See below for links to earlier & later discussions.
Hello! I've been trawling the forum, and all over looking for someone who has already solved this problem.
I have some Moteinos. And think they are great. I also have a small openHAB server (running on a RPi) controlling a few lights and simple things. I would like to connect the Moteinos to openHAB in the simplest way. With two way traffic between openHAB and the Moteinos.
I have MQTT installed on the openHAB server (it's easy, and MQTT will also talk relatively easily to ESP8266 based nodes, if I ever get round to playing with those). I have a Moteino connected to the RPi GPIO header. The radio traffic from sensors is translated to serial in the Moteino with a simple gateway sketch. I can see this works on the RPi by monitoring the serial connection with minicom.
So I think a neat solution (and should be fairly straight forward!) would be to just read the serial input and send it to MQTT (and read other topics from MQTT and send to serial). I'm sure it can be done with a python script / daemon, or C program, but I can't seem to manage it. In fact I am sure it is possible for someone with a python background and time: I had a one way script for reading serial and writing to MQTT working. I was a fool and didn't back up the RPi sd card and you can guess what happened next... Corrupt SD card. So I'm back at square one - months later :-(
Can anyone please help with the script for the bridge? I imagine others will also be interested. If I'm the only one, then I'm probably on the wrong track, so hopefully someone will give me a gentle shove in the right direction...
I know Felix has spent quite a lot of effort on his gateway (which I have installed at one point). I can't see how to integrate this with an openHAB install, on the same box. Ie Moteino <> Gateway <> MQTT <> openHab. I don't want to have two servers (even if they are as low power as RPis) running for this (simple - oh it should be so simple!) translation task.
Lots of people use an arduino with RFM69 board (Moteino) with an ethernet shield to bridge the wireless to MQTT. While this will probably work, I don't see why I can't get the Moteino <> GPIO <> serial <> MQTT bridge working.
I also see there is a solution (https://github.com/computourist/RFM69-MQTT-client) that reads and writes via GPIO to a RFM69W and then on to MQTT (but not necessarily a RFM69HW). This seems quite active, and would be neat, but my Moteinos are RFM69HW, and the spare radio I have is HW...
Another (https://github.com/bbx10/nanohab) claims to work for Moteinos <> ESP8266 <> WiFi <> openHAB. I can't tell if this working or under development. If someone knows if this can be made to work, I'd be happy to try this out!
This solution (https://github.com/Gussoh/serial-mqtt-bridge) seems to work in Java (but I haven't had a chance to work out what it is doing - does it need to be that complex to move data back and forth?)
Help?
|
|