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. My Project
  3. RFID sensor, no messages from MQTT GW (reboot on sending)

RFID sensor, no messages from MQTT GW (reboot on sending)

Scheduled Pinned Locked Moved My Project
12 Posts 3 Posters 2.5k Views 3 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.
  • M Offline
    M Offline
    mortommy
    wrote on last edited by
    #3

    hi @mfalkvidd ,
    yes that comment was from a different logic I had implemented, now I decided to send just the new status and don't request it to the controller (the new status will be sent anyway from the controller).

    The controller sends the status to the MQTT Gateway when it changes, I already verified that the mqtt broker receives the correct message from the controller (it the same message sent when the sensor requests the status in the initialization step). I have monitored the sensor, I can see log from the receive method only when the the sensor receives the first initialization message and then nothing.

    Thank you.

    mfalkviddM 1 Reply Last reply
    0
    • M mortommy

      hi @mfalkvidd ,
      yes that comment was from a different logic I had implemented, now I decided to send just the new status and don't request it to the controller (the new status will be sent anyway from the controller).

      The controller sends the status to the MQTT Gateway when it changes, I already verified that the mqtt broker receives the correct message from the controller (it the same message sent when the sensor requests the status in the initialization step). I have monitored the sensor, I can see log from the receive method only when the the sensor receives the first initialization message and then nothing.

      Thank you.

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

      @mortommy ok. So you know the mqtt broker receives the message and that the node does not receive it. That should mean that the message is getting lost in one of the following places:

      • from the broker to the gateway
      • in the gateway
      • from the gateway to the node

      What does the gateway log say when the initial message goes through all the way? What does the gateway log say when the later message is lost?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mortommy
        wrote on last edited by
        #5

        thank you again @mfalkvidd .
        We are in the in the second case: in the gateway

        I run this test.

        • Enabled debug in gateway
        • powered on the gateway
        • sent a test message to a knew working sensor (ID 3, V_STATUS = 0)
        • sent a test message to a knew working sensor (ID 3, V_STATUS = 1)
        • powered on the rfid sensor (ID 10)
        • then the rfid sensor sent the request initial status to the gateway
        • the controller sent the message to the gateway (V_LOCK_STATUS = 0)
        • the gateway sent the message to the sensor and the sensor went to V_LOCK_STATUS = 0
        • I sent manually a new status to the rfid sensor using directly the mqtt broker (same mqtt message used by the controller)
        • the gateway receives the message but it reboot by itself!

        I saw in the past this behavior for power issue, but my gateway is working for a while now, and it is working with other sensors.

        here's the gateway log

        IP: 192.168.XXX.XX
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/255/0/0/18
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/0/0/0/7
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/1/0/0/6
        0;255;3;0;9;Message arrived on topic: mysensors/SO/3/0/1/0/2
        0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=0,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
        0;255;3;0;9;TSF:MSG:READ,3-3-0,s=0,c=1,t=2,pt=2,l=2,sg=0:0
        0;255;3;0;9;Sending message on topic: mysensors/SI/3/0/1/0/2
        0;255;3;0;9;Message arrived on topic: mysensors/SO/3/0/1/0/2
        0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=0,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
        0;255;3;0;9;TSF:MSG:READ,3-3-0,s=0,c=1,t=2,pt=2,l=2,sg=0:1
        0;255;3;0;9;Sending message on topic: mysensors/SI/3/0/1/0/2
        0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
        0;255;3;0;9;TSF:MSG:BC
        0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10
        0;255;3;0;9;TSF:PNG:SEND,TO=0
        0;255;3;0;9;TSF:CKU:OK
        0;255;3;0;9;TSF:MSG:GWL OK
        0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
        0;255;3;0;9;TSF:MSG:PINGED,ID=10,HP=1
        0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
        0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/0/0/17
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/6
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=11,pt=0,l=9,sg=0:RFID Lock
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/11
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=12,pt=0,l=3,sg=0:2.0
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/12
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=0,c=0,t=19,pt=0,l=0,sg=0:
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/0/0/0/19
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
        0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
        0;255;3;0;9;TSF:MSG:READ,10-10-0,s=0,c=2,t=36,pt=0,l=0,sg=0:
        0;255;3;0;9;Sending message on topic: mysensors/SI/10/0/2/0/36
        0;255;3;0;9;Message arrived on topic: mysensors/SO/10/0/1/0/36
        0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=0,c=1,t=36,pt=0,l=1,sg=0,ft=0,st=OK:0
        0;255;3;0;9;Message arrived on topic: mysensors/SO/10/0/1/0/36
        0;255;3;0;9;!TSF:MSG:SEND,0-0-10-10,s=0,c=1,t=36,pt=0,l=1,sg=0,ft=0,st=NACK:1
        0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
        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
        IP: 192.168.178.34
        0;255;3;0;9;MCO:BGN:STP
        Setup start...
        Reading temperature from HTU21D
        T: 25
        H: 55
        Setup end.
        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
        IP: 192.168.178.34
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/255/0/0/18
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/0/0/0/7
        0;255;3;0;9;Sending message on topic: mysensors/SI/0/1/0/0/6
        

        thank you

        mfalkviddM 1 Reply Last reply
        0
        • M mortommy

          thank you again @mfalkvidd .
          We are in the in the second case: in the gateway

          I run this test.

          • Enabled debug in gateway
          • powered on the gateway
          • sent a test message to a knew working sensor (ID 3, V_STATUS = 0)
          • sent a test message to a knew working sensor (ID 3, V_STATUS = 1)
          • powered on the rfid sensor (ID 10)
          • then the rfid sensor sent the request initial status to the gateway
          • the controller sent the message to the gateway (V_LOCK_STATUS = 0)
          • the gateway sent the message to the sensor and the sensor went to V_LOCK_STATUS = 0
          • I sent manually a new status to the rfid sensor using directly the mqtt broker (same mqtt message used by the controller)
          • the gateway receives the message but it reboot by itself!

          I saw in the past this behavior for power issue, but my gateway is working for a while now, and it is working with other sensors.

          here's the gateway log

          IP: 192.168.XXX.XX
          0;255;3;0;9;Attempting MQTT connection...
          0;255;3;0;9;MQTT connected
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/255/0/0/18
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/0/0/0/7
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/1/0/0/6
          0;255;3;0;9;Message arrived on topic: mysensors/SO/3/0/1/0/2
          0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=0,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:0
          0;255;3;0;9;TSF:MSG:READ,3-3-0,s=0,c=1,t=2,pt=2,l=2,sg=0:0
          0;255;3;0;9;Sending message on topic: mysensors/SI/3/0/1/0/2
          0;255;3;0;9;Message arrived on topic: mysensors/SO/3/0/1/0/2
          0;255;3;0;9;TSF:MSG:SEND,0-0-3-3,s=0,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=OK:1
          0;255;3;0;9;TSF:MSG:READ,3-3-0,s=0,c=1,t=2,pt=2,l=2,sg=0:1
          0;255;3;0;9;Sending message on topic: mysensors/SI/3/0/1/0/2
          0;255;3;0;9;TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
          0;255;3;0;9;TSF:MSG:BC
          0;255;3;0;9;TSF:MSG:FPAR REQ,ID=10
          0;255;3;0;9;TSF:PNG:SEND,TO=0
          0;255;3;0;9;TSF:CKU:OK
          0;255;3;0;9;TSF:MSG:GWL OK
          0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
          0;255;3;0;9;TSF:MSG:PINGED,ID=10,HP=1
          0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
          0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=0,t=17,pt=0,l=5,sg=0:2.1.1
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/0/0/17
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/6
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=11,pt=0,l=9,sg=0:RFID Lock
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/11
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=12,pt=0,l=3,sg=0:2.0
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/255/3/0/12
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=0,c=0,t=19,pt=0,l=0,sg=0:
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/0/0/0/19
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
          0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
          0;255;3;0;9;TSF:MSG:READ,10-10-0,s=0,c=2,t=36,pt=0,l=0,sg=0:
          0;255;3;0;9;Sending message on topic: mysensors/SI/10/0/2/0/36
          0;255;3;0;9;Message arrived on topic: mysensors/SO/10/0/1/0/36
          0;255;3;0;9;TSF:MSG:SEND,0-0-10-10,s=0,c=1,t=36,pt=0,l=1,sg=0,ft=0,st=OK:0
          0;255;3;0;9;Message arrived on topic: mysensors/SO/10/0/1/0/36
          0;255;3;0;9;!TSF:MSG:SEND,0-0-10-10,s=0,c=1,t=36,pt=0,l=1,sg=0,ft=0,st=NACK:1
          0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
          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
          IP: 192.168.178.34
          0;255;3;0;9;MCO:BGN:STP
          Setup start...
          Reading temperature from HTU21D
          T: 25
          H: 55
          Setup end.
          0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
          IP: 192.168.178.34
          0;255;3;0;9;Attempting MQTT connection...
          0;255;3;0;9;MQTT connected
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/255/0/0/18
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/0/0/0/7
          0;255;3;0;9;Sending message on topic: mysensors/SI/0/1/0/0/6
          

          thank you

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

          @mortommy great! So we know there is nothing wrong with the node, which is great news.
          I think I have seen several posts in the forum the last few weeks about rebooting gateways. I don't think I have seen any solutions unfortunately :(

          gohanG 1 Reply Last reply
          0
          • M Offline
            M Offline
            mortommy
            wrote on last edited by
            #7

            thank you for your support, yes the sensor is working. It is the first time I'm using the request status logic, I'll try something different to be sure it is not related to the issue.

            1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              @mortommy great! So we know there is nothing wrong with the node, which is great news.
              I think I have seen several posts in the forum the last few weeks about rebooting gateways. I don't think I have seen any solutions unfortunately :(

              gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #8

              @mfalkvidd weren't the reboot related to boards definitions?

              M 1 Reply Last reply
              0
              • M Offline
                M Offline
                mortommy
                wrote on last edited by
                #9

                No news, nothing changes. It happens only if I define a sensor with an id greather then 9

                1 Reply Last reply
                0
                • gohanG gohan

                  @mfalkvidd weren't the reboot related to boards definitions?

                  M Offline
                  M Offline
                  mortommy
                  wrote on last edited by
                  #10

                  @gohan , boards definition? The sensor type?
                  Thank you.

                  gohanG 1 Reply Last reply
                  0
                  • M mortommy

                    @gohan , boards definition? The sensor type?
                    Thank you.

                    gohanG Offline
                    gohanG Offline
                    gohan
                    Mod
                    wrote on last edited by
                    #11

                    @mortommy i read that some people had the gateway reboot issue and downgraded the arduino board definitions (in board manager) back to 1.6.13 and they solved the problem

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mortommy
                      wrote on last edited by
                      #12

                      ok, some news here:

                      • first of all I fixed my issue with the gateway disabling the debug as suggested here.
                      • I had anyway some messages lost. Looking at the mqtt broker I couldn't see any message telling me the gw was rebooting and not only messages from gw to sensor were lost also between sensor and gw. I tried to remove the decoupling capacitor and is everything working.

                      thank you

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


                      27

                      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