Hi! After a long time of following mysensors I finally build my own setup, but I am stuck already. To prevent TL;DR: the node and gateway seem to work fine, according to the serial logs. But the gw and node just don't seem to 'see' each other.
As controller I am using Home Assistant, although at first I started without the controller. I was expecting to see some incoming messages at the gateway when it's in debug mode, but that didn't work, so then I thought maybe the controller is already needed.
As a gateway I used a Raspberry Pi 1 with .configure options: --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw --my-gateway=ethernet --my-port-5003
. This build fine and runs fine. When I start the gateway in debug mode I get this:
mysgw: Starting gateway...
mysgw: Protocol version - 2.3.0-alpha
mysgw: MCO:BGN:INIT GW,CP=RPNGL---,VER=2.3.0-alpha
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: TSM:INIT:TSP OK
mysgw: TSM:INIT:GW MODE
mysgw: TSM:READY:ID=0,PAR=0,DIS=0
mysgw: MCO:REG:NOT NEEDED
mysgw: Listening for connections on 0.0.0.0:5003
mysgw: MCO:BGN:STP
mysgw: MCO:BGN:INIT OK,TSP=1
mysgw: New connection from 192.168.1.202
mysgw: GWT:TSA:C=0,CONNECTED
mysgw: GWT:TSA:C=0,DISCONNECTED
mysgw: Ethernet client disconnected.
mysgw: New connection from 192.168.1.202
mysgw: GWT:TSA:C=0,CONNECTED
mysgw: GWT:RFC:C=0,MSG=0;255;3;0;2;
mysgw: GWT:RFC:C=0,MSG=0;255;3;0;2;
So in my opinion the gateway works fine, or at least no error messages.
For the node I use the MySensorButton example on an Arduino Uno. I connected the radio to the 3.3v pin and I connected a 5V3A power supply as well as the USB cable (to be able to use the monitor). I think that should be enough power? I added defines for the rfm69 to the sketch like this:
#define MY_RADIO_RFM69
#define MY_IS_RFM69HW
The serial monitor looks like this:
16 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0
25 TSM:INIT
26 TSF:WUR:MS=0
29 TSM:INIT:TSP OK
30 TSM:FPAR
1250 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
3257 !TSM:FPAR:NO REPLY
3259 TSM:FPAR
4480 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
6487 !TSM:FPAR:NO REPLY
6489 TSM:FPAR
7708 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
9715 !TSM:FPAR:NO REPLY
9717 TSM:FPAR
10936 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
12943 !TSM:FPAR:FAIL
12944 TSM:FAIL:CNT=1
12946 TSM:FAIL:DIS
12948 TSF:TDI:TSL
I think the radio seems to be working fine, no error messages about that.
So I read the debug article. The range between the gateway and the node is about 10cm. I use an antenna as listed in the shopping guide at the "Connecting the radio" post. The capacitor that is being advised, I see it's mainly for the nrf24 radios. I don't see this comment for the rfm69. Should I use it here too? Could this cause the issue?
What else can I try or test to get this going?
Thanks in advance!