Got it figured out. If anyone has this trouble in the future. If you are using a pro mini at 3.3V and 8mhz it isn't compatible with 115200 baud for serial communications. Switch BAUD_RATE to 57600 in MyConfig.h and it will fix the problem. You'll also need to change the baud to match in your demo.items, or whatever your site is called. (for openhab)
etrombly
@etrombly
Best posts made by etrombly
-
RE: [SOLVED] 8MHz Gateway : node not receiving any data
Latest posts made by etrombly
-
RE: MyController.org
@diggs I was looking into doing the same thing. There are ways to duplicate a serial port using utilities like socat that should work. I was having issues with one side of the redirect disconnecting when there was no data to read. I was thinking of just writing up a quick python utility that would have the features I wanted. ser2net would work well, but it only redirects the port to the network, it doesn't do local redirection.
-
RE: Low Power Temperature Sensor
You could try this https://www.adafruit.com/products/1782 pretty accurate and a lot lower power. Also look into other options to cut power, like removing any LEDs and sleeping between measurements.
-
RE: [SOLVED] 8MHz Gateway : node not receiving any data
@rene_2k2 no problem, it was a really frustrating issue to troubleshoot. I ended up adding some debug prints to serialEvent() in the serialGateway code. Noticed that the first character on a send was fine, then the rest was garbled. A little googling showed what the problem was.
-
RE: [SOLVED] 8MHz Gateway : node not receiving any data
Got it figured out. If anyone has this trouble in the future. If you are using a pro mini at 3.3V and 8mhz it isn't compatible with 115200 baud for serial communications. Switch BAUD_RATE to 57600 in MyConfig.h and it will fix the problem. You'll also need to change the baud to match in your demo.items, or whatever your site is called. (for openhab)
-
RE: [SOLVED] 8MHz Gateway : node not receiving any data
I just switched over to mysensors, and am having the same issue. Using RFM69's with arduino pro mini's and openhab. The sensor registers with the serial gateway, and receives acks, but the gateway does not send any other messages to the node. I'll try to dig more into it, but since I'm new to mysensors I'm getting familiar with how everything works. Here's the debug info from the gateway:
2015-09-12 19:17:24 - Arduino state updated to 0;0;3;0;9;read: 100-100-0 s=255,c=3,t=11,pt=0,l=5,sg=0:Relay 100;255;3;0;11;Relay 0;0;3;0;9;read: 100-100-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0 100;255;3;0;12;1.0 0;0;3;0;9;read: 100-100-0 s=1,c=0,t=3,pt=0,l=0,sg=0: 100;1;0;0;3; 2015-09-12 19:17:43 - KitchenPower received command ON 2015-09-12 19:17:44 - Arduino received command 100;1;1;0;2;1 2015-09-12 19:17:45 - KitchenPower state updated to ON
and the relay node:
send: 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0 sensor started, id=100, parent=0, distance=1 send: 100-100-0-0 s=255,c=3,t=11,pt=0,l=5,sg=0,st=ok:Relay send: 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0 send: 100-100-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,st=ok: