Adafruit RFM69HCW Raspberry Gateway issue
-
Hi guys,
I buy several things from adafruit
RFM69HCW
Feather 32u4 RFMBoth in 915Mhz.
I can run RelayActuator example from MySensors with this define#define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RFM69_915MHZ // Set your frequency here #define MY_IS_RFM69HW // Omit if your RFM is not "H" #define MY_RFM69_CS_PIN 8 #define MY_RFM69_IRQ_PIN 7 #define MY_RFM69_IRQ_NUM 4 #define MY_NODE_ID 55
But it only works with the serial gateway on another feather 32u4.
I try to run mqtt gateway on rpi but it doesn't works.
RST pin on afadruit RFM69HCW is wiring to GND
G0 (Di0) is on pin 22
I compile mysgw with./configure --my-transport=rfm69 --my-rfm69-frequency=915 --my-is-rfm69hw --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1
Here is the debus log when i launch mysgw
Jan 09 10:29:12 INFO Starting gateway... Jan 09 10:29:12 INFO Protocol version - 2.3.1 Jan 09 10:29:12 DEBUG MCO:BGN:INIT GW,CP=RPNGL---,REL=255,VER=2.3.1 Jan 09 10:29:12 DEBUG TSF:LRT:OK Jan 09 10:29:12 DEBUG TSM:INIT Jan 09 10:29:12 DEBUG TSF:WUR:MS=0 Jan 09 10:29:12 DEBUG TSM:INIT:TSP OK Jan 09 10:29:12 DEBUG TSM:INIT:GW MODE Jan 09 10:29:12 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Jan 09 10:29:12 DEBUG MCO:REG:NOT NEEDED Jan 09 10:29:12 DEBUG MCO:BGN:STP Jan 09 10:29:12 DEBUG MCO:BGN:INIT OK,TSP=1 Jan 09 10:29:12 DEBUG GWT:RMQ:MQTT RECONNECT Jan 09 10:29:12 DEBUG connected to 127.0.0.1 Jan 09 10:29:12 DEBUG GWT:RMQ:MQTT CONNECTED Jan 09 10:29:12 DEBUG GWT:TPS:TOPIC=mysensors-out/0/255/0/0/18,MSG SENT Jan 09 10:29:12 DEBUG TSM:READY:NWD REQ Jan 09 10:29:12 DEBUG TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: Jan 09 10:29:36 DEBUG GWT:IMQ:TOPIC=mysensors-in/55/1/1/0/2, MSG RECEIVED Jan 09 10:29:36 DEBUG !TSF:RTE:55 UNKNOWN Jan 09 10:29:37 DEBUG !TSF:MSG:SEND,0-0-55-55,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:1
I try to send via mqtt but always get NACK.
Can someone help here ?
-
I finally solve it !
I forget to add #define MY_RFM69_NEW_DRIVER on the arduino node side ! Now it seems working fine