RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0
-
Well there's your problem! You have a 868MHz CW version. So NOT the HCW That means both of the above mentioned defines ar not valid. The only define you'd have to make is
#define MY_RADIO_RFM69. That should work.You can tell that it is not the H version because of the missing components that make up the extra RF amplifier on the module.
Hope this helps! Good luck!
-
I think @DavidZH was confused by @archiijs post about the H version.
I double-checked your sketches and none has the definition for H so now that's out of the way at least.
@Floca could you post debug output from the gateway and the node (preferably from the same time) ?
Also, just to double-check, have you made any modifications to MyConfig.h or are you using the untouched original version?
-
GW 2.0.0 Ê$OH˜KlKùið¤0;255;3;0;9;Starting gateway (RRNGE-, 2.0.0) 0;255;3;0;9;TSM:INIT 0;255;3;0;9;TSM:RADIO:OK 0;255;3;0;9;TSM:GW MODE 0;255;3;0;9;TSM:READY scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 4 cnt f r0, scandone connected with N3tw0rk.NET, channel 1 dhcp client start... ..ip:192.168.178.118,mask:255.255.255.0,gw:192.168.178.1 .IP: 192.168.178.118 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 pm open,type:2 0 0;255;3;0;9;TSP:MSG:READ 100-100-255 s=255,c=3,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:BC 0;255;3;0;9;TSP:MSG:FPAR REQ (sender=100) 0;255;3;0;9;TSP:CHKUPL:OK 0;255;3;0;9;TSP:MSG:GWL OK 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1 0;255;3;0;9;TSP:MSG:PINGED (ID=100, hops=1) 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 0;255;3;0;9;!TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=fail:0100 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=11,pt=0,l=22,sg=0:TemperatureAndHumidity 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=0,c=0,t=7,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=0,t=6,pt=0,l=0,sg=0: 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=255,c=3,t=26,pt=1,l=1,sg=0:2 0;255;3;0;9;TSP:MSG:SEND 0-0-100-100 s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=ok:1 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=1,c=1,t=0,pt=7,l=5,sg=0:22.8 0;255;3;0;9;TSP:MSG:READ 100-100-0 s=0,c=1,t=1,pt=7,l=5,sg=0:80.7 0;255;3;0;9;TSP:SANCHK:OKSENSOR 2.0.0 Starting sensor (RRNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSP:ASSIGNID:OK (ID=100) TSM:FPAR TSP:MSG:SEND 100-100-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSP:MSG:READ 0-0-100 s=255,c=3,t=8,pt=1,l=1,sg=0:0 TSP:MSG:FPAR RES (ID=0, dist=0) TSP:MSG:PAR OK (ID=0, dist=1) TSM:FPAR:OK TSM:ID TSM:CHKID:OK (ID=100) TSM:UPL TSP:PING:SEND (dest=0) TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1 TSP:MSG:READ 0-0-100 s=255,c=3,t=25,pt=1,l=1,sg=0:1 TSP:MSG:PONG RECV (hops=1) TSP:CHKUPL:OK TSM:UPL:OK TSM:READY TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100 !TSP:MSG:SEND 100-100-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0 !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=fail:0 TSP:MSG:READ 0-0-100 s=255,c=3,t=15,pt=6,l=2,sg=0:0100 TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=11,pt=0,l=22,sg=0,ft=2,st=ok:TemperatureAndHumidity !TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=fail:1.1 TSP:MSG:SEND 100-100-0-0 s=0,c=0,t=7,pt=0,l=0,sg=0,ft=1,st=ok: TSP:MSG:SEND 100-100-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok: Request registration... TSP:MSG:SEND 100-100-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2 TSP:MSG:READ 0-0-100 s=255,c=3,t=27,pt=1,l=1,sg=0:1 Node registration=1 Init complete, id=100, parent=0, distance=1, registration=1 TSP:MSG:SEND 100-100-0-0 s=1,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:22.8 T: 22.80 TSP:MSG:SEND 100-100-0-0 s=0,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:80.8 H: 80.80Gateway 2.2.0 ÈDpÈtAhÀD´ðCXXüü0;255;3;0;9;238 MCO:BGN:INIT GW,CP=RRNGE---,VER=2.2.0-beta 0;255;3;0;9;299 TSF:LRT:OK 0;255;3;0;9;327 TSM:INIT 0;255;3;0;9;353 TSF:WUR:MS=0 scandone state: 0 -> 2 (b0) state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 4 cnt 0;255;3;0;9;470 TSM:INIT:TSP OK 0;255;3;0;9;502 TSM:INIT:GW MODE 0;255;3;0;9;537 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;582 MCO:REG:NOT NEEDED connected with N3tw0rk.NET, channel 1 dhcp client start... f r0, scandone .....ip:192.168.178.118,mask:255.255.255.0,gw:192.168.178.1 .IP: 192.168.178.118 0;255;3;0;9;3682 MCO:BGN:STP 0;255;3;0;9;3735 MCO:BGN:INIT OK,TSP=1 pm open,type:2 0Sensor 2.2.0 0 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0-beta 4 TSM:INIT 4 TSF:WUR:MS=0 8 TSM:INIT:TSP OK 10 TSM:FPAR 1228 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 3237 !TSM:FPAR:NO REPLY 3239 TSM:FPAR 4468 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6477 !TSM:FPAR:NO REPLY 6479 TSM:FPAR 7698 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 9707 !TSM:FPAR:NO REPLY 9709 TSM:FPAR 10928 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 12937 !TSM:FPAR:FAIL 12939 TSM:FAIL:CNT=1 12941 TSM:FAIL:DIS 12943 TSF:TDI:TSL 22947 TSM:FAIL:RE-INIT 22949 TSM:INIT 22951 TSM:INIT:TSP OK 22956 TSM:FPAR 24174 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 26183 !TSM:FPAR:NO REPLY 26185 TSM:FPAR 27404 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 29413 !TSM:FPAR:NO REPLY 29415 TSM:FPAR 30633 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 32643 !TSM:FPAR:NO REPLY 32645 TSM:FPAR 33867 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 35876 !TSM:FPAR:FAIL 35878 TSM:FAIL:CNT=2 35880 TSM:FAIL:DIS 35883 TSF:TDI:TSL 45887 TSM:FAIL:RE-INIT 45889 TSM:INIT 45891 TSM:INIT:TSP OK 45895 TSM:FPAR 47114 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 49123 !TSM:FPAR:NO REPLY 49125 TSM:FPAR 50370 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 52379 !TSM:FPAR:NO REPLY 52381 TSM:FPAR 53600 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 55609 !TSM:FPAR:NO REPLY 55611 TSM:FPAR 56829 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 58839 !TSM:FPAR:FAIL 58841 TSM:FAIL:CNT=3 58843 TSM:FAIL:DIS 58845 TSF:TDI:TSL 68849 TSM:FAIL:RE-INIT 68851 TSM:INIT 68853 TSM:INIT:TSP OK 68857 TSM:FPAR 70076 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 72085 !TSM:FPAR:NO REPLY 72087 TSM:FPAR 73306 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 75315 !TSM:FPAR:NO REPLY 75317 TSM:FPAR 76535 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 78546 !TSM:FPAR:NO REPLY 78548 TSM:FPAR 79767 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 81776 !TSM:FPAR:FAIL 81778 TSM:FAIL:CNT=4 81780 TSM:FAIL:DIS 81782 TSF:TDI:TSL 91785 TSM:FAIL:RE-INIT 91787 TSM:INIT 91789 TSM:INIT:TSP OK 91793 TSM:FPAR 93011 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 95021 !TSM:FPAR:NO REPLY 95023 TSM:FPAR 96241 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 98250 !TSM:FPAR:NO REPLY 98252 TSM:FPAR 99471 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 101480 !TSM:FPAR:NO REPLY 101482 TSM:FPAR 102703 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 104712 !TSM:FPAR:FAIL 104714 TSM:FAIL:CNT=5 104716 TSM:FAIL:DIS 104718 TSF:TDI:TSL 114722 TSM:FAIL:RE-INIT 114724 TSM:INIT 114728 TSM:INIT:TSP OK 114731 TSM:FPAR 115951 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 117960 !TSM:FPAR:NO REPLY 117962 TSM:FPAR 119183 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 121192 !TSM:FPAR:NO REPLY 121194 TSM:FPAR 122443 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 124452 !TSM:FPAR:NO REPLY 124454 TSM:FPAR 125673 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 127682 !TSM:FPAR:FAIL 127684 TSM:FAIL:CNT=6 127686 TSM:FAIL:DIS 127688 TSF:TDI:TSL 137691 TSM:FAIL:RE-INIT 137693 TSM:INIT 137697 TSM:INIT:TSP OK 137699 TSM:FPAR 138919 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 140929 !TSM:FPAR:NO REPLY 140931 TSM:FPAR 142151 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 144160 !TSM:FPAR:NO REPLY 144162 TSM:FPAR 145381 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:-
The Config is the Standard Config which comes with the Package on Github.
-
The Scripts from above are used to flash the devices.
-
The Gateway on 2.2.0-beta gives only these lines as in Codebox, then, nothing else happens.
-
I have cleaned the EEPROM from the devices with the eeprom clean example in mysensors examples
-
-
@Floca
thx for logs. Logs are always useful ;)I tried a few weeks ago rfm69 with atsam, esp32 etc and was working well here.
So I'll take a look asap. Need to find a wemos to have same setup.Note:
- in your first post, you say that you tried with a nano. But nano is 5v whereas rfm69 is not 5v tolerant. So this can't work.
- all rfm69 modules works the same. C, W the same. HW and HCW the same too. These are just different package and mapping, that's all. But sure, if using HW, HCW, needs the high power dfine in MySensors (not your case here)
-
I use this Module...
https://www.openhardware.io/view/386/Minimalist-RFM69CW-WeMos-D1-Mini-ShieldIRQ=DIO0= GPIO4=D2
CS=NSS=GPIO15=D8 -
I have researched and have found out that an arduino nano as a serial gateway also does not seem to work (same log as above).
I hope this helps you a bit.
@Floca - A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
And this hardware: https://forum.mysensors.org/topic/6809/easy-newbie-pcb-rfm69-hw-w-edition-for-mysensors/16
-
@Floca - A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
And this hardware: https://forum.mysensors.org/topic/6809/easy-newbie-pcb-rfm69-hw-w-edition-for-mysensors/16
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
whoops, i forget that, but it still works ^^
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
Seems to be an Gateway problem, because the Sensor waits for the gateway...
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
@mfalkvidd doublechecked my script, tht should not be the Problem :(
-
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
A nano will fry your radio (5v SPI/data lines) but maybe you wrote the wrong mcu?
whoops, i forget that, but it still works ^^
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
I can comfirm that a RFM69w and Pro Mini 3.3v 8mhz works great on dev branch.
Seems to be an Gateway problem, because the Sensor waits for the gateway...
@sundberg84 said in RFM69CW Gateway and Nodes are not working with Api newer then 2.0.0:
im using this code: https://github.com/sundberg84/MySensors2.0.0/blob/master/RFM69gw/Rfm69gw.ino
@mfalkvidd doublechecked my script, tht should not be the Problem :(
@Floca which controller do you use ? I have a gw and two sensors working great.
-
@Floca good maybe the issue is rfm+vemos but which controller do you use?