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. The gateway mqtt restarts when the node is absent

The gateway mqtt restarts when the node is absent

Scheduled Pinned Locked Moved Troubleshooting
17 Posts 5 Posters 2.8k Views 5 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
    miclane
    wrote on last edited by
    #1

    Hello,
    I have a malfunction on an MQTT ethernet gateway.
    When I publish from the controller to activate a relay type node, if the node is not powered on, the gateway restarts.
    Below the gateway trace :
    0;255;3;0;9;Message arrived on topic: mhs4-in0/205/1/1/0/2
    0;255;3;0;9;!TSF:MSG:SEND,0-0-205-205,s=1,c=1,t=2,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

    If the node is powered on, the gateway does not rebel and the message is sent to the node.
    Is there an explanation? a fix?
    Thank you.

    1 Reply Last reply
    0
    • rozpruwaczR Offline
      rozpruwaczR Offline
      rozpruwacz
      wrote on last edited by
      #2

      @miclane said in The gateway mqtt restarts when the node is absent:

      Is there an explanation? a fix?

      what is the hardware for the gateway ?

      1 Reply Last reply
      0
      • M Offline
        M Offline
        miclane
        wrote on last edited by
        #3

        Arduino UNO R3 + Ethernet shield W5100 + NRF24L01+

        Thank you.

        1 Reply Last reply
        0
        • rejoe2R Offline
          rejoe2R Offline
          rejoe2
          wrote on last edited by
          #4

          In case your' using Arduino IDE:
          What verion of the board definition are you using? (see board manager). Try a rather new one or one <=1.6.11, if that doesn't help.

          Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

          1 Reply Last reply
          0
          • rozpruwaczR Offline
            rozpruwaczR Offline
            rozpruwacz
            wrote on last edited by
            #5

            maybe your power supply is not able to provide enough current ? How you power it ? Do you use NRF24L01 with amplifier ? If yes than connecting nrf to 3.3v rail from the arduino mey be not a good idea, it can provide maximum of 150mA.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              miclane
              wrote on last edited by
              #6

              Arduino IDE : 1.8.2
              API MySensors : 2. 1. 1

              I rephrase my question:

              When the remote node is powered on, the gateway receives the MQTT message and transmits it to the node. It's OK.

              When the remote node is not powered on, the gateway receives the message MQTT but reboots immediately.
              It would seem that the remote node not powered up disturbs the gateway.

              Thank you.

              1 Reply Last reply
              0
              • rozpruwaczR Offline
                rozpruwaczR Offline
                rozpruwacz
                wrote on last edited by
                #7

                Yeah, and what seems to be is almost never what it actually is ;)

                1 Reply Last reply
                0
                • rozpruwaczR Offline
                  rozpruwaczR Offline
                  rozpruwacz
                  wrote on last edited by
                  #8

                  Oh, and my suspicion is that the gateway send much more packets when node is not responding which make it consume more power and this couses the voltage to drop and restarts the gateway.

                  rejoe2R 1 Reply Last reply
                  1
                  • rozpruwaczR rozpruwacz

                    Oh, and my suspicion is that the gateway send much more packets when node is not responding which make it consume more power and this couses the voltage to drop and restarts the gateway.

                    rejoe2R Offline
                    rejoe2R Offline
                    rejoe2
                    wrote on last edited by
                    #9

                    @rozpruwacz said in The gateway mqtt restarts when the node is absent:

                    Oh, and my suspicion is that the gateway send much more packets when node is not responding which make it consume more power and this couses the voltage to drop and restarts the gateway.

                    This sounds also logic to me.

                    Wrt. to the Point Board-Def:
                    1.8.2 is the IDE Version, but not the relevant Board Def. version. As already mentionned, to get this info you have to look inside the board manager (should be in tools menue).

                    Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      miclane
                      wrote on last edited by
                      #10

                      Maybe that's the explanation ...
                      My gateway is mains powered with 9V and 500mA power.

                      Nobody found this problem?

                      It is true that a node relay type should normally be always powered if you want to control ...

                      I will see if I can test with a more powerful diet.
                      Thank you.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        miclane
                        wrote on last edited by
                        #11

                        Board def :

                        BN: Carte inconnue
                        VID: 1A86
                        PID: 7523
                        SN: Envoyez un croquis pour l'obtenir

                        rejoe2R 1 Reply Last reply
                        0
                        • M miclane

                          Board def :

                          BN: Carte inconnue
                          VID: 1A86
                          PID: 7523
                          SN: Envoyez un croquis pour l'obtenir

                          rejoe2R Offline
                          rejoe2R Offline
                          rejoe2
                          wrote on last edited by
                          #12

                          @miclane said in The gateway mqtt restarts when the node is absent:

                          Board def :

                          BN: Carte inconnue
                          VID: 1A86
                          PID: 7523
                          SN: Envoyez un croquis pour l'obtenir

                          This is also not what I ment. Please click "Tools > Board > Board Manager" and then look for the Uno (or whatever you have chosen as target for compiling). Pictures you may find here: https://learn.sparkfun.com/pages/CustomBoardsArduino

                          Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            miclane
                            wrote on last edited by
                            #13

                            Arduino AVR Boards Built-In by Arduino version 1.6.18

                            zboblamontZ 1 Reply Last reply
                            0
                            • M miclane

                              Arduino AVR Boards Built-In by Arduino version 1.6.18

                              zboblamontZ Offline
                              zboblamontZ Offline
                              zboblamont
                              wrote on last edited by
                              #14

                              @miclane ![alt text](0_1512066961355_upload-eea51e95-1285-485f-842e-1e70998b00b5 image url)

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                miclane
                                wrote on last edited by
                                #15

                                Arduino/Genuino Uno :blush:

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  miclane
                                  wrote on last edited by
                                  #16

                                  The 2.2.0-rc.1 version in development seems to solve the problem.
                                  See also the message : https://forum.mysensors.org/topic/6684/serial-gateway-restarting/30
                                  Can you explain the change in the new version?
                                  Thank you.

                                  1 Reply Last reply
                                  1
                                  • M Offline
                                    M Offline
                                    Manuel Bardea
                                    wrote on last edited by
                                    #17

                                    I had the gateway reboot problem since 2.1.1. After initial startup, the gateway would keep rebooting after receiving messages from nodes. After a while it seems to stabilize.

                                    I tried 2.2.0-rc.1 as you suggested and I don't see that problem any more. Thank you!

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


                                    26

                                    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