sean
New Member
Posts: 4
|
Post by sean on Feb 22, 2015 20:14:20 GMT
Using Alexandre Bouillot's excellent piGateway, I have successfully incorporated the RFM into the Raspberry Pi. I want to know how others that have taken this approach have accomplished running the resulting 'Gateway' program on boot. Right now - per instructions at raspberrywebserver.com/serveradmin/run-a-script-on-start-up.html - I have the command to launch the program in the background in rc.local. This seems hacky. While creating a startup service via init.d seemed more appropriate, I couldn't get it to work without me logging in and starting it and then it only ran until I logged off. I've considered daemonizing it, but haven't decided to tackle that task yet. Anyone use a better way? Awesome project by the way! I've been wanting to do something like this for quite a while but never got the motivation to do it until I found your Instructable. -Sean
|
|
|
Post by Gandalph on Mar 11, 2015 19:01:04 GMT
an update has been posted to for the abouillot Gateway run the gateway as a service. I have incorporated that but still have issues on the pi myself due to mosquitto not starting up at boot and the dependency with the gateway %)
|
|
sean
New Member
Posts: 4
|
Post by sean on Mar 14, 2015 5:29:11 GMT
Yeah, thanks. I've actually been meaning to update this post to let people know that I pushed my code to Alexandre and he incorporated it into the repo (after improving it a bit).
It's not as reliable as I'd like and eventually consumes significant load on the Pi (>95%) after a while (indicating *something* isn't quite right), but I don't know if it's the baseline code or something about it being a service.
I'm gonna keep poking at it and see if I can't track down the problem. I'm thinking about just blowing all the code away and starting from scratch. While it's nice that it looks very similar to the Arduino sketch - making it easy to get up to speed if you're coming from the Arduino gateway - I think it could use some TLC and cleanup.
|
|
|
Post by alexandreb on Apr 14, 2015 9:02:49 GMT
When the gateway CPU consumption goes over few %, it usually indicate a link problem between the pi and the rfm module. The gateway can also be lost in loop when some module send data over the RF link and doesn't stop. I experience this with one of my module.
|
|
|
Post by Mirko Ugolini on Jul 19, 2015 9:57:49 GMT
Hello Sean,
I was wondering...
Does the Alexandre Bouillot's piGateway is bidiretional or not?
I started to use the separate Arduino Etherneth shield approach but now I'm very interested about this new solution to buid a Gateway for HopenHab devices.
Let me know Please
Regards
Mirko
|
|