EasySensors / SwitchNode

Coincell powered Switch Controller. Atmega328p + RFM69HW 433 MHz radio on-board. Hardware debouncer. Arduino IDE compatible. IS4B2450
9 stars 0 forks source link

Switch doesn't connect to the gateway. Not sure if i'm using it right. #5

Closed nldroid closed 5 years ago

nldroid commented 5 years ago

I got my RFM69 radio and attached it to the Raspberry Pi zero. Installed the mysensors gateway and got it running. This is the log:

Sep` 08 06:11:53 INFO  Starting gateway...
Sep 08 06:11:53 INFO  Protocol version - 2.3.0
Sep 08 06:11:53 DEBUG MCO:BGN:INIT GW,CP=RPNGL---,VER=2.3.0
Sep 08 06:11:53 DEBUG TSF:LRT:OK
Sep 08 06:11:53 DEBUG TSM:INIT
Sep 08 06:11:53 DEBUG TSF:WUR:MS=0
Sep 08 06:11:53 DEBUG TSM:INIT:TSP OK
Sep 08 06:11:53 DEBUG TSM:INIT:GW MODE
Sep 08 06:11:53 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
Sep 08 06:11:53 DEBUG MCO:REG:NOT NEEDED
Sep 08 06:11:53 DEBUG MCO:BGN:STP
Sep 08 06:11:53 DEBUG MCO:BGN:INIT OK,TSP=1
Sep 08 06:11:53 DEBUG GWT:RMQ:MQTT RECONNECT
Sep 08 06:11:53 DEBUG connected to 192.168.86.110
Sep 08 06:11:53 DEBUG GWT:RMQ:MQTT CONNECTED
Sep 08 06:11:53 DEBUG GWT:TPS:TOPIC=mysensors-out/0/255/0/0/18,MSG SENT

This is the log from the switch:

16 MCO:BGN:INIT NODE,CP=RPONA---,VER=2.3.0
26 MCO:BGN:BFR
40 TSM:INIT
43 TSF:WUR:MS=0
45 TSM:INIT:TSP OK
47 TSM:INIT:STATID=78
49 TSF:SID:OK,ID=78
51 TSM:FPAR
53 TSM:FPAR:STATP=0
55 TSM:ID
55 TSM:ID:OK
57 TSM:UPL:DISABLED
59 TSM:READY:ID=78,PAR=0,DIS=1
1292 !TSF:MSG:SEND,78-78-0-0,s=255,c=4,t=0,pt=6,l=10,sg=0,ft=0,st=NACK:FFFFFFFFFFFFFFFF0300
2531 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=1,st=NACK:0100
5769 !TSF:MSG:SEND,78-78-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=2,st=NACK:2.3.0
7006 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=3,st=NACK:0
10254 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=11,pt=0,l=12,sg=0,ft=4,st=NACK:Switch Node 
11491 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=5,st=NACK:3.0
12728 !TSF:MSG:SEND,78-78-0-0,s=1,c=0,t=3,pt=0,l=0,sg=0,ft=6,st=NACK:
12734 MCO:REG:REQ
13965 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=7,st=NACK:2
13971 !TSM:READY:UPL FAIL,STATP
17201 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=NACK:2
20436 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=1,st=NACK:2
23672 !TSF:MSG:SEND,78-78-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=2,st=NACK:2
25679 MCO:BGN:STP
25681 MCO:BGN:INIT OK,TSP=1
25683 MCO:SLP:MS=0,SMS=0,I1=1,M1=3,I2=255,M2=255
25690 TSF:TDI:TSL

I'm not sure if i can verify both radio's work. I don't see a RADIO:OK message and the NACK in the swith log tells me there's no radio.

I've tried different options for the radio. With or without new driver, different requencies etc.

#define MY_RADIO_RFM69
//#define RFM69_433MHZ
#define MY_RFM69_FREQUENCY RFM69_433MHZ
//#define MY_RFM69_FREQUENCY   RF69_433MHZ
//#define MY_RFM69_FREQUENCY    RF69_868MHZ
//#define MY_RFM69_FREQUENCY    RF69_915MHZ

#define MY_RFM69_NEW_DRIVER

Any idea what might be wrong?

nldroid commented 5 years ago

It seems that they gave me a rfm69hw so needed to use that in the pi. I got some traffic.