LowPowerLab Forum

Software support => Pi Gateway => Topic started by: Roger2016 on October 25, 2016, 12:09:06 PM

Title: I receive data on my gateway, but I can't seem to transmit
Post by: Roger2016 on October 25, 2016, 12:09:06 PM
Hi,
I'm totally new to Moteino & Raspberry Pi.   I'm quite interested in creating a home automation network to replace my quite ancient X10 system.  I ordered a few Moteinos and I followed the example in Johns DIY Playground 3 part series example and I got some success.  To start I followed John's example exactly using the photo resistor & External LED.   My Pi Gateway is up and I receive data from my node when I shine light on the photo resistor I get a higher number displayed as expected, so to me this confirms my network settings and encryption key are correct, but I can't seem to transmit data to the node.  When I push the LED On Button nothing happens.  Even when I go into the gateway console and send to Node 121 the code LON nothing happens.  I tried opening the monitor console on the gateway (minicom -b 19200 -D /dev/ttyUSB0).  I see the inbound messages to the gateway, but no evidence that it's sending anything.    Any ideas what I'm doing wrong?  Thanks!
Title: Re: I receive data on my gateway, but I can't seem to transmit
Post by: Felix on October 25, 2016, 02:14:00 PM
Check the logs/gateway.sys.log for these types of messages: NODEACTION: LON or NODEACTION: LOF, those should show when you click the button. At that point your gateway Moteino, if you have it programmed with the appropriate sketch (https://github.com/LowPowerLab/RFM69/blob/master/Examples/PiGateway/PiGateway.ino) and radio settings match the hardware and your network ID/encryption/HW setting etc, the gateway should pick up that message and send it to your node which in turn should do something with the LED (assuming again your node has the proper sketch etc).
BTW if you keep minicom open you will stop the gateway from properly interfacing with the serial port.
Let me know how this goes.
Title: Re: I receive data on my gateway, but I can't seem to transmit
Post by: Roger2016 on October 25, 2016, 09:08:09 PM
Thanks Felix!

Your linked code fixed my problem  https://github.com/LowPowerLab/RFM69/blob/master/Examples/PiGateway/PiGateway.ino

I was using the version from the John's DIY Playground example and perhaps it was out of date with the newest Pi Build?  Or perhaps I just screwed it up somehow?  Either way I have 2 way communication now working beautify!! Just got my door bell working also.  I have a lot more to learn, but I have a lot of ideas for this system.  No doubt I'll have more questions.

Thanks Again! 

Roger
Title: Re: I receive data on my gateway, but I can't seem to transmit
Post by: Felix on October 26, 2016, 08:27:52 AM
Awesome, good work, congrats!
Happy IoT-ing  ;)