Problem with Serial Gateway equipped with RFM69W and 1st sensor
I'm french, so my english might be strange sometimes...
I use RFM69W to communicate between Arduino Nano Serial Gateway and prototype sensor, based on Arduino Duemilanove.
As it's written in the title it doesn't work.
You can see here below the gateway log:
0;255;3;0;9;MCO:BGN:INIT GW,CP=RRNGA--,VER=2.1.1 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSF:WUR:MS=0 0;255;3;0;9;TSM:INIT:TSP OK 0;255;3;0;9;TSM:INIT:GW MODE 0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.1.1 0;255;3;0;11;Thermostat Meuble NAS-Box 0;255;3;0;12;1.0 0;0;0;0;6; 0;1;0;0;3; 0;2;0;0;6; 0;3;0;0;6; 0;255;3;0;9;MCO:BGN:STP 0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
And herebelow, the sensor log:
0 MCO:BGN:INIT REPEATER,CP=RRNRA--,VER=2.1.1 3 MCO:BGN:BFR 5 TSM:INIT 6 TSF:WUR:MS=0 8 TSM:INIT:TSP OK 9 TSM:FPAR 139 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2146 !TSM:FPAR:NO REPLY 2148 TSM:FPAR 2278 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4285 !TSM:FPAR:NO REPLY 4287 TSM:FPAR 4417 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6424 !TSM:FPAR:NO REPLY 6426 TSM:FPAR 6556 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8563 !TSM:FPAR:FAIL 8564 TSM:FAIL:CNT=1 8566 TSM:FAIL:PDT
Of course, both have the same MySensors library version (2.1.1, also tested with 2.1.0 and 2.0.0).
47uF capacitor has been added between 3.3V and GND in sensor and gateway.
3.3V is provided by Arduino Nano in gateway and Arduino Duemilanove in sensor.
In order to adapt arduino voltage, an "8 Channel I2C IIC Logic Level Converter Module Bi-Directional for Arduino" bought on eBay is used to convert 5V <=> 3.3V for RFM69W I/O.
I've browsed forum topics find on Google, but nothing works.
Of course, I've started by following the page "Debugging Sensors and the Gateway"
I've just made a strange observation, when I connect the sensor and the gateway on my computer USB, if I connect or disconnect the gateway USB from my computer, the LED "L" on my arduino duemilanove (sensor) blinks several times before recovering its initial state.
Could you help me please ?
If I can give you more informations, do not hesitate.
Thanks in advance for your help !
@moumout31 welcome to the MySensors community, and thanks for the detailed description.
How far is between the gateway and the sensor? If it is less than 2m, try to increase the distance. If it is >10m, try to decrease the distance.
From the logs we can see that both nodes are happy with the radio connection, so everything seems to be correctly wired.
The gateway does not "hear" the message from the node, which is a bit strange.
Thanks for your answer. For tests the sensor and the gateway are separated by nearly 4m... I tried to move them but it doesn't work.
I also precise that first I didn't use a level shifter to reduce 5V Arduino to 3,3V for RFM69W pins. Thus when I tried again, I used new RFM69W chips.