Hello,
I am not able to make the gateway and the switch communicate when gateway is RPI (meaning RFM69 is directly plugged onto the pi GPIOs)
It seems that both the gateway and the switch are setup correctly (see code and logs below).
(My radio modules are functional because everything is working fine when I use an ardouino gateway.)
gateway : pi 3 + rfm69cw
switch: ardouino pro-mini + rfm69cw
MySensors: 2.3.1 on both gateway and switch
I am able to setup the PI serial GW properly: (same result if I set direct port ttyAMA0)
./configure --my-transport=rfm69 --my-rfm69-frequency=868 --my-gateway=serial --my-serial-port=/dev/ttyMySensorsGateway --my-serial-baudrate=115200 --my-serial-is-pty
INFO Starting gateway...
INFO Protocol version - 2.3.1
DEBUG Serial port /dev/ttyMySensorsGateway (115200 baud) created
DEBUG MCO:BGN:INIT GW,CP=RPNGL---,REL=255,VER=2.3.1
DEBUG TSF:LRT:OK
DEBUG TSM:INIT
DEBUG TSF:WUR:MS=0
DEBUG TSM:INIT:TSP OK
DEBUG TSM:INIT:GW MODE
DEBUG TSM:READY:ID=0,PAR=0,DIS=0
DEBUG MCO:REG:NOT NEEDED
DEBUG MCO:BGN:STP
DEBUG MCO:BGN:INIT OK,TSP=1
DEBUG TSM:READY:NWD REQ
DEBUG TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
switch setup:
#define MY_DEBUG
#define MY_PARENT_NODE_ID 0
#define MY_NODE_ID 1
#define CHILD_ID 3
#define MY_RFM69_NEW_DRIVER
#define MY_RADIO_RFM69
#define RFM69_868MH
#define MY_PASSIVE_NODE
#include <MySensors.h>
#include <Bounce2.h>
#include <SPI.h>
MCO:BGN:INIT NODE,CP=RPNPA---,REL=255,VER=2.3.1
TSM:INIT
TSF:WUR:MS=0
TSM:INIT:TSP OK
TSM:INIT:TSP PSM
TSM:INIT:STATID=1
TSF:SID:OK,ID=1
TSM:FPAR
TSM:FPAR:STATP=0
TSM:ID
TSM:ID:OK
TSM:UPL:DISABLED
TSM:READY:ID=1,PAR=0,DIS=1
TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
TSF:MSG:SEND,1-1-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.1
TSF:MSG:SEND,1-1-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
TSF:MSG:SEND,1-1-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
MCO:REG:NOT NEEDED
MCO:BGN:STP
MCO:BGN:INIT OK,TSP=1
PUSHED
0
TSF:MSG:SEND,1-1-0-0,s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=OK:0
I am running out of ideas to debug this...
Thank you.