Node can't find parent; what am I missing here?



  • Hi! After a long time of following mysensors I finally build my own setup, but I am stuck already. To prevent TL;DR: the node and gateway seem to work fine, according to the serial logs. But the gw and node just don't seem to 'see' each other.

    As controller I am using Home Assistant, although at first I started without the controller. I was expecting to see some incoming messages at the gateway when it's in debug mode, but that didn't work, so then I thought maybe the controller is already needed.

    As a gateway I used a Raspberry Pi 1 with .configure options: --my-transport=rfm69 --my-rfm69-frequency=868 --my-is-rfm69hw --my-gateway=ethernet --my-port-5003. This build fine and runs fine. When I start the gateway in debug mode I get this:

    mysgw: Starting gateway...
    mysgw: Protocol version - 2.3.0-alpha
    mysgw: MCO:BGN:INIT GW,CP=RPNGL---,VER=2.3.0-alpha
    mysgw: TSF:LRT:OK
    mysgw: TSM:INIT
    mysgw: TSF:WUR:MS=0
    mysgw: TSM:INIT:TSP OK
    mysgw: TSM:INIT:GW MODE
    mysgw: TSM:READY:ID=0,PAR=0,DIS=0
    mysgw: MCO:REG:NOT NEEDED
    mysgw: Listening for connections on 0.0.0.0:5003
    mysgw: MCO:BGN:STP
    mysgw: MCO:BGN:INIT OK,TSP=1
    mysgw: New connection from 192.168.1.202
    mysgw: GWT:TSA:C=0,CONNECTED
    mysgw: GWT:TSA:C=0,DISCONNECTED
    mysgw: Ethernet client disconnected.
    mysgw: New connection from 192.168.1.202
    mysgw: GWT:TSA:C=0,CONNECTED
    mysgw: GWT:RFC:C=0,MSG=0;255;3;0;2;
    mysgw: GWT:RFC:C=0,MSG=0;255;3;0;2;
    

    So in my opinion the gateway works fine, or at least no error messages.

    For the node I use the MySensorButton example on an Arduino Uno. I connected the radio to the 3.3v pin and I connected a 5V3A power supply as well as the USB cable (to be able to use the monitor). I think that should be enough power? I added defines for the rfm69 to the sketch like this:

    #define MY_RADIO_RFM69
    #define MY_IS_RFM69HW
    

    The serial monitor looks like this:

    16 MCO:BGN:INIT NODE,CP=RRNNA---,VER=2.2.0
    25 TSM:INIT
    26 TSF:WUR:MS=0
    29 TSM:INIT:TSP OK
    30 TSM:FPAR
    1250 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    3257 !TSM:FPAR:NO REPLY
    3259 TSM:FPAR
    4480 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    6487 !TSM:FPAR:NO REPLY
    6489 TSM:FPAR
    7708 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    9715 !TSM:FPAR:NO REPLY
    9717 TSM:FPAR
    10936 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
    12943 !TSM:FPAR:FAIL
    12944 TSM:FAIL:CNT=1
    12946 TSM:FAIL:DIS
    12948 TSF:TDI:TSL
    

    I think the radio seems to be working fine, no error messages about that.

    So I read the debug article. The range between the gateway and the node is about 10cm. I use an antenna as listed in the shopping guide at the "Connecting the radio" post. The capacitor that is being advised, I see it's mainly for the nrf24 radios. I don't see this comment for the rfm69. Should I use it here too? Could this cause the issue?

    What else can I try or test to get this going?

    Thanks in advance!


  • Hardware Contributor

    Hi,

    • The RFM69 is more power hungry than nrf24, so you also need the decoupling capacitor, especially if using the high power rfm69 version.
      To be sure, you're using high power version on your node, right? as you're using MY_IS_RFM69HW
    • RFM69 is not 5v tolerant (mentioned in the build howto). It's not only about rfm69 vcc, but also about its SPI signals pins, irq etc. when using arduino uno, the atmel mcu is 5v powered (the 3v regulator is external). so the atmel is 5v, and send signals to rfm69 with 5v voltage. not good. max voltage recommended by datasheet is 3.9v. so you could fry it or get malfunction.

    could you retry with a 3v arduino? if it's still not working then, try with a fresh radio module and check connection.


Log in to reply
 

Suggested Topics

  • 3
  • 2
  • 5
  • 6

11
Online

11.4k
Users

11.1k
Topics

112.7k
Posts