RF24 MQTT Gateway not receiving messages

  • Hello all.

    I'm trying to test the Raspberry Pi gateway using MQTT as the destination. I want also to use the interruption mechanism. I've followed the instructions carefully (I have a RPi 3) but I can't see anything on the gateway (same wiring connections).
    This is the configuration command:

    ./configure --extra-cxxflags="-DMY_RF24_DATARATE=\(RF24_1MBPS\)" --my-transport=nrf24 --my-rf24-pa-level=RF24_PA_MAX --my-rf24-channel=1 --my-rf24-irq-pin=15 --my-gateway=mqtt --my-controller-ip-address= --my-mqtt-publish-topic-prefix=domo --my-mqtt-subscribe-topic-prefix=domo-in --my-mqtt-client-id=1 --my-debug=enable

    And this, the output:

    Jun 22 17:04:55 INFO  Starting gateway...
    Jun 22 17:04:55 INFO  Protocol version - 2.3.0
    Jun 22 17:04:55 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,VER=2.3.0
    Jun 22 17:04:55 DEBUG TSF:LRT:OK
    Jun 22 17:04:55 DEBUG TSM:INIT
    Jun 22 17:04:55 DEBUG TSF:WUR:MS=0
    Jun 22 17:04:55 DEBUG TSM:INIT:TSP OK
    Jun 22 17:04:55 DEBUG TSM:INIT:GW MODE
    Jun 22 17:04:55 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
    Jun 22 17:04:55 DEBUG MCO:REG:NOT NEEDED
    Jun 22 17:04:55 DEBUG MCO:BGN:STP
    Jun 22 17:04:55 DEBUG MCO:BGN:INIT OK,TSP=1
    Jun 22 17:04:55 DEBUG connected to
    Jun 22 17:04:55 DEBUG GWT:TPS:TOPIC=vesta/0/255/0/0/18,MSG SENT

    Everything seems to be ok and the gateway is installed in a dedicated Rasperry Pi. However, I can't receive anything from other radios. I should see something because I have some PIC micros, each with a RF24 radio connected transmitting to the air.

    Concretely, I have two sets of transmitters:

    1. One, which has only one transmitter, sending a 32 byte payload message every second. This should be the event based or real time approach. I'm using it for testing the gateway.
    2. The other one, consisting of several peripheral units (a PIC with a RF24 radio), being interrogated by another Raspberry Pi (different from the gateway). This is the polling approach. The peripheral units don't emit unless the RPi asks for it.

    This second environment is working fine (I'm using TMHR20 libraries, without using the Network classes, just the RF24 class): I can read values and work with them. But, as I said, I want a different approach: I want the remote radios to transmit by their own and the Raspberry Pi (the central unit) to act as gateway and place the raw messages in a MQTT buffer.

    So, briefly, I have:

    1. One RPi interrogating peripheral units using a C++ software made by me and working in polling mode.
    2. One RPi with the Gateway software from my sensors apparently well configured, but not receiving anything. By the way, I should see traffic from peripheral units when the other RPi asks them for it and nothing appears in the gateway output.

    Any help will be appreciated in order to make the gateway receive messages.

    Thank you.

  • Mod

    @elelement hi and welcome to the MySensors community!

    The gateway debug low shows that the gateway is not receiving any MySensors messages.
    What does the debug log from your sensor nodes say?


Suggested Topics