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?


  • Mod

    #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.


  • Mod

    @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.


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.