Gateway doesn't receive any message from node



  • Hi
    My setup is:

    Hardware

    GW
    Arduino Nano 5v
    RFM69
    DC-DC from 5v to 3.3v and 100uF capacitor

    Node
    Arduino ProMini 3.3v
    RFM69

    Software

    GW

    #define MY_DEBUG

    #define MY_RADIO_RFM69
    #define MY_RFM69_FREQUENCY RFM69_868MHZ
    #define MY_GATEWAY_SERIAL

    *#define MY_INCLUSION_MODE_FEATURE
    #define MY_INCLUSION_MODE_DURATION 60
    #define MY_DEFAULT_LED_BLINK_PERIOD 300

    #include <MySensors.h>*
    void setup(){}
    void presentation(){}
    void loop(){}

    Distance between GW and Node is aprox. 1m

    Node

    #define MY_NODE_ID 100

    #define MY_DEBUG
    #define MY_DEBUG_VERBOSE_RFM69
    #define MY_DEBUG_VERBOSE_RFM69_REGISTERS
    #define MY_DEBUG_VERBOSE_TRANSPORT
    #define MY_DEBUG_VERBOSE_CORE

    // Enable and select radio type attached MY_RADIO_RFM69
    #define MY_RADIO_RFM69
    #define MY_RFM69_FREQUENCY RFM69_868MHZ

    #define MY_PARENT_NODE_IS_STATIC
    #define MY_PARENT_NODE_ID 0x0

    #include <MySensors.h>
    void presentation() {
    sendSketchInfo("TestNode", "1.0");
    present(0, S_ARDUINO_NODE, "Counter");
    }

    Logs

    GW

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGA---,FQ=16,REL=255,VER=2.3.2
    0;255;3;0;9;5 TSM:INIT
    0;255;3;0;9;7 TSF:WUR:MS=0
    0;255;3;0;9;12 TSM:INIT:TSP OK
    0;255;3;0;9;19 TSM:INIT:GW MODE
    0;255;3;0;9;22 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;26 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.2
    0;255;3;0;9;30 MCO:BGN:STP
    0;255;3;0;9;37 MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;44 TSM:READY:NWD REQ
    0;255;3;0;9;49 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:

    Node

    16 MCO:BGN:INIT NODE,CP=RRNNA---,FQ=8,REL=255,VER=2.3.2
    28 TSM:INIT
    28 TSF:WUR:MS=0
    34 TSM:INIT:TSP OK
    38 TSM:INIT:STATID=100
    43 TSF:SID:OK,ID=100
    45 TSM:FPAR
    47 TSM:FPAR:STATP=0
    49 TSM:ID
    49 TSM:ID:OK
    51 TSM:UPL
    1269 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
    3278 TSM:UPL
    4497 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=1,st=NACK:1
    6506 TSM:UPL
    7725 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=2,st=NACK:1
    9734 TSM:UPL
    10952 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1
    12961 !TSM:UPL:FAIL
    12963 TSM:FPAR
    12963 TSM:FPAR:STATP=0
    12967 TSM:ID
    12967 TSM:ID:OK
    12969 TSM:UPL
    14190 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=4,st=NACK:1
    16199 TSM:UPL
    17418 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1
    19427 TSM:UPL
    20645 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=6,st=NACK:1
    22657 TSM:UPL

    Any info/suggestion is highly appreciated.
    Thank you


  • Mod

    @ctodor if you have more rfm modules, try swapping them in case one of your existing modules is faulty.

    What type of antennas do you use?

    Can you verify the modules are for 868MHz (and not some other frequency)?



  • @mfalkvidd I've create a new GW board with all new compoents ,same behaviour.
    I'm not using an antena for the GW. The radio is RFM_69 868Mhz on both GW and node


  • Mod

    @ctodor no antenna at all?

    sending without an antenna can fry the radio. Permanently.
    Receiving without an antenna will be quite hard.

    See also https://www.mysensors.org/build/connect_radio#rfm69-antenna



  • Antena added.

    Here is the log from GW

    0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RRNGA---,FQ=16,REL=255,VER=2.3.2
    0;255;3;0;9;6 MCO:BGN:BFR
    --- before ---
    0;255;3;0;9;11 TSM:INIT
    0;255;3;0;9;17 TSF:WUR:MS=1
    0;255;3;0;9;27 TSM:INIT:TSP OK
    0;255;3;0;9;34 TSM:INIT:GW MODE
    0;255;3;0;9;37 TSM:READY:ID=0,PAR=0,DIS=0
    0;255;3;0;9;45 MCO:REG:NOT NEEDED
    0;255;3;0;14;Gateway startup complete.
    0;255;0;0;18;2.3.2
    0;255;3;0;9;66 MCO:BGN:SETUP
    0;255;3;0;9;73 MCO:BGN:INIT OK,TSP=1
    --- loop ---



  • which radio version do you use HCW or CW?

    #define MY_IS_RFM69HW // this is for HCW or commnet out for CW



  • Radio version is CW
    MY_IS_RFM69HW is not defined



  • Q. Is there a way to find out if the radio module is working?



  • More info: I've performed some tests using the RFM69_LowPowerLab and it seems my both radio modules work on both GW and Node. I was able to send and receive messages, but the was not received on the Node side


  • Mod

    @ctodor do you mean that when using lowpowerlab’s library, the radio module on the gateway can receive messages from the node, but the radio module on the node can not receive messages from the gateway?



  • @mfalkvidd exactly. the GW(receiver) was not able to send the ACK. in fact, the GW isn't able to send something. probably is a HW issue.

    1. do you have any ideea where/what should I investigate?
    2. it is possible that radio module on the GW to be broken only on the "send side"? I'm asking because I have two different GW with the same behaviour, so definatly I do something wrong.

    Thank you


  • Mod

    @ctodor how do you differentiate between the gateway not being able to send (gateway is mute) and the node not being able to receive (node is deaf)?

    Best way to troubleshoot is usually to swap radios until you find a combination of two radios that can communicate both ways with eachother.



  • @mfalkvidd The node(sender), send a message with ack. The GW(receiver), receive the message and send the ack. The ack is never received on the node(sender) side.

    I've made the swap: I've load the gw(receiver) code to node(sender) and vice-versa. Technically, i've made the GWa sender and the Node a receiver.
    My GW (now a sender) is not able to send anything, or at least, the Node(now a receiver) doesn't receive anything.

    So it seems there is a HW issue on the "send side" of the GW.



  • @mfalkvidd the GW ia not totally mute, it sends at least the ACK, and also, the Node is not totallly deaf, it receives the ACK



  • @ctodor said in Gateway doesn't receive any message from node:

    GW ia not totally mute

    Better to have 3-rd device to play with. Preferably 3.3 V one. RFM is 3.3 volts radio. not sure if you used logic level shifters for Nano digital pins connected to radio. Also, SDR radio is handy to detect any radio emission.



  • @yury
    On the sende side (GW) I'm using Arduino Nano 5v and a logic shifter indeed.
    On the receiver side (Node) I'm using a "prebuild board" purchased from tindie.
    Btw, I think I bought from you, "easySensor" 😁 . Your devices works fine.

    The problem is on the "sender" side, built by me. I've already built two "boards" and both have the same problem. Sending doesn't work.



  • @ctodor said in Gateway doesn't receive any message from node:

    I bought from you, "easySensor"

    Yes. 👍

    may be detailed photo of the device can help...



  • Here are the pictures:
    pcb2.jpeg pcb1.jpeg

    But my question (maybe stupid question) is: It is possible the the radio module to be broken only on the "send side"?

    Thank you.



  • @ctodor said in Gateway doesn't receive any message from node:

    broken only on the "send side"

    As @mfalkvidd said, it is possible to burn with no antenna attached but I never actually did that. RFM is quite reliable. Is Schematics available? I see you have reset pad soldered. reset should be disconnected after reset is completed.



  • Unfortunately no schecma available. I've create the pcb on some website (don't know if is ok to say the site name here)
    The reset pad is indeed soldered, but the pad is not connected to anything.
    NSS->LV1->HV1->D10
    SCK->LV2->HV2->D13
    MOSI->LV3->HV3->D11
    MISO->LV4->HV4->D12
    DIO0->D2

    Btw. I've never reset the radio module



  • pinout looks ok.

    btw This line from the Node log

    1269 !TSF:MSG:SEND,100-100-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1

    Means node cannot send OR gateway cannot receive. may be node radio is HCW somehow?
    mysensors lib not broken\timeouts not tweaked?



  • @yury may be node radio is HCW somehow? no, it is not.

    I'll try to create a new board and give feedback.



  • Update: it seems the problem was the DC-DC convertor. I have replace it with an extwrnal power source and now it works.
    I still don't understand what was wrong there because the voltage on the radio module was correct:3.3V


  • Mod

    @ctodor nice work!

    When you checked the voltage, did you use a multimeter or an oscilloscope? If you used a multimeter, maybe there was a ripple or something that wasn’t visible.



  • @mfalkvidd multimeter


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 2
  • 6
  • 1
  • 1

48
Online

11.4k
Users

11.1k
Topics

112.6k
Posts