Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. RF24 MQTT Gateway not receiving messages

RF24 MQTT Gateway not receiving messages

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 2 Posters 974 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elelement
    wrote on last edited by
    #1

    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=127.0.0.1 --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 GWT:RMQ:MQTT RECONNECT
    Jun 22 17:04:55 DEBUG connected to 127.0.0.1
    Jun 22 17:04:55 DEBUG GWT:RMQ:MQTT CONNECTED
    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.

    mfalkviddM 1 Reply Last reply
    0
    • E elelement

      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=127.0.0.1 --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 GWT:RMQ:MQTT RECONNECT
      Jun 22 17:04:55 DEBUG connected to 127.0.0.1
      Jun 22 17:04:55 DEBUG GWT:RMQ:MQTT CONNECTED
      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.

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #2

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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      23

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular