SOLVED: ESP8266 RFM69H Gateway



  • Hey,

    I got a little question regarding my ESP RFM gateway. I think the PCB should be oke.
    I got the ESP working, i can connect to it though MYSController but Sensors dont report to it.
    So I think, I may messed up my sketch or the connections between the ESP and the RFM.

    Is there someone who can Judge this?

    I cleaned up the Diagram. I should have plenty of caps for the ESP and RFM to work, 100Uf for the chips, some 100nf for and after the regulators.
    The question is, are the connections oke?
    0_1499418297327_upload-82fa2a3e-7435-4db2-9015-f9b32aca7dcd

    The second is my Gateway sketch.

    #ifdef ESP8266
    #define MY_RADIO_RFM69
    #define MY_RFM69_FREQUENCY RF69_868MHZ // Set your frequency here
    #define MY_IS_RFM69HW // Omit if your RFM is not "H"
    #define MY_RF69_IRQ_PIN 5 // GPIO5
    #define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN
    #define MY_RF69_SPI_CS 15 // NSS
    #endif
    

    I got this working on my NODEMCU but not on this PCB.

    If your willing to help out, that would be great!.
    Thnx.

    If I got it working, ill upload it to openhardware.io.

    13-7-2017: GPIO 4 & 5 are switched on the ESP12. changing the IRQ from 5 to 4 did the trick.


  • Hardware Contributor

    Hi,

    would be easier if you could post your gw logs 😉



  • This post is deleted!


  • Here it is:

    Last line is when connecting MYScontroller

    when I boot up the sensor (with new uploaded sketches..) it stays silent.

    When I connect my other gateway a couple of minutes later, it start showing up at my other controllers

    0;255;3;0;9;TSF:LRT:OK
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    0;255;3;0;9;TSM:INIT:TSP OK
    0;255;3;0;9;TSM:INIT:GW MODE
    0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;MCO:REG:NOT NEEDED
    scandone
    f 0, scandone
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    aid 4
    cnt 
    
    connected with ***************, channel 3
    ip:192.168.2.111,mask:255.255.255.0,gw:192.168.2.254
    .IP: 192.168.2.111
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    pm open,type:2 0
    0;255;3;0;9;Client 0 connected
    


  • Seems like the ESP-12 switches GPIO5 and GPIO4.

    Changing the the GPIO 5 => 4 did the trick:

    #define MY_RF69_IRQ_PIN 4 // GPIO5```

Log in to reply
 

Suggested Topics

0
Online

11.4k
Users

11.1k
Topics

112.6k
Posts