Pro Mini + RFM node and ESP8266 + RFM gateway not working
-
So I connected the radio to the ESP and the Pro Mini as described.
Installed the DHT sketch on the Pro Mini and added:
#define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RF69_433MHZ #define MY_IS_RFM69HW #define MY_RFM69_NETWORKID 99
The Serial output:
TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,Starting sensor (RRNNA-, 2.0.0) TSM:INIT TSM:RADIO:OK TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT TSM:INIT TSM:RADIO:OK TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc: !TSM:FPAR:FAIL !TSM:FAILURE TSM:PDT TSM:INIT TSM:RADIO:OK TSM:FPAR TSP:MSG:SEND 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
Installed the default ESP MQTT gateway sketch on the ESP and added:
#define MY_RADIO_RFM69 #define MY_RFM69_FREQUENCY RF69_433MHZ #define MY_IS_RFM69HW #define MY_RF69_IRQ_PIN D1 #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN #define MY_RF69_SPI_CS D8 #define MY_RFM69_NETWORKID 99
The serial output:
K⸮⸮q⸮⸮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) f 0, state: 2 -> 3 (0) state: 3 -> 5 (10) add 0 aid 3 cnt scandone connected with MPPort, channel 6 dhcp client start... .............ip:192.168.0.219,mask:255.255.255.0,gw:192.168.0.1 .IP: 192.168.0.219 0;255;3;0;9;No registration required 0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1 IP: 192.168.0.219 0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected pm open,type:2 0 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK 0;255;3;0;9;TSP:SANCHK:OK
I'm seeing the initial message in mqtt but not the messages from the node: mygateway1-out/0/255/0/0/18 2.1.1
Any idea what could be going wrong?
-
#define MY_RFM69_NETWORKID 99set your preferred network id if needed
You forgot to leave the // after the 99 and I think it can cause some problems
-
@gohan thanks for the reply but that was just a typo. The sketch compiles and uploads properly. Yet I keep seeing connections to my Wifi when I upload the ping pong script for example, this doesn't seem to be normal.
-
The problems seem to have been caused by a bad connection on D1.
Still I find it strange that a Wifi login appears on the serial interface after programming the pingpong sketch.
-
@mpp the esp stores (in a special area of the eeprom) ssid and key for the accesspoint it last connected to, and automatically connects back next time unless wifi is turned off in the sketch.
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47