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. MQTT Gateway help - keeps intializing

MQTT Gateway help - keeps intializing

Scheduled Pinned Locked Moved Troubleshooting
8 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.
  • H Offline
    H Offline
    HogBil
    wrote on last edited by
    #1

    Had it working with no controller and could operate my mysensors relay via mosquitto_pub. After trying to use with OpenHAB, My gateway will not work. It keeps cycling through the initialization repeatedly. see log below

    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.1.80
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    IP: 192.168.1.80
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
    0;255;3;0;9;!TSF:RTE:1 UNKNOWN
    0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
    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.1.80
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    IP: 192.168.1.80
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
    0;255;3;0;9;!TSF:RTE:1 UNKNOWN
    0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
    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.1.80
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    IP: 192.168.1.80
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
    0;255;3;0;9;!TSF:RTE:1 UNKNOWN
    0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
    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.1.80
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    IP: 192.168.1.80
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;MQTT connected
    0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
    0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
    0;255;3;0;9;!TSF:RTE:1 UNKNOWN
    0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0

    T 1 Reply Last reply
    0
    • H Offline
      H Offline
      HogBil
      wrote on last edited by
      #2

      Gateway - Arduino Duemilanove with ethernet shield.
      Sensor - knock off Nano
      Mosquitto Broker -cRaspberry Pi

      1 Reply Last reply
      0
      • H HogBil

        Had it working with no controller and could operate my mysensors relay via mosquitto_pub. After trying to use with OpenHAB, My gateway will not work. It keeps cycling through the initialization repeatedly. see log below

        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.1.80
        0;255;3;0;9;MCO:BGN:STP
        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
        IP: 192.168.1.80
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
        0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
        0;255;3;0;9;!TSF:RTE:1 UNKNOWN
        0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
        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.1.80
        0;255;3;0;9;MCO:BGN:STP
        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
        IP: 192.168.1.80
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
        0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
        0;255;3;0;9;!TSF:RTE:1 UNKNOWN
        0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
        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.1.80
        0;255;3;0;9;MCO:BGN:STP
        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
        IP: 192.168.1.80
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
        0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
        0;255;3;0;9;!TSF:RTE:1 UNKNOWN
        0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0
        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.1.80
        0;255;3;0;9;MCO:BGN:STP
        0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
        IP: 192.168.1.80
        0;255;3;0;9;Attempting MQTT connection...
        0;255;3;0;9;MQTT connected
        0;255;3;0;9;Sending message on topic: mygateway1-out/0/255/0/0/18
        0;255;3;0;9;Message arrived on topic: mygateway1-in/1/1/1/0/2
        0;255;3;0;9;!TSF:RTE:1 UNKNOWN
        0;255;3;0;9;!TSF:MSG:SEND,0-0-1-1,s=1,c=1,t=2,pt=0,l=1,sg=0,ft=0,st=NACK:0

        T Offline
        T Offline
        tboha
        wrote on last edited by
        #3

        @HogBil
        Did you check your "boards.txt"?
        Please have a look at
        https://forum.mysensors.org/topic/5786/ethernet-gateway-no-lan-traffic-after-initial-controller-setup/2
        respectively
        https://forum.mysensors.org/topic/5716/solved-w5100-ethernet-gateway-with-nrf24-stable-mysensors-2-1-0-problem/3

        1 Reply Last reply
        1
        • H Offline
          H Offline
          HogBil
          wrote on last edited by
          #4

          Thanks tboha. That got it working, but.....My gateway only connects to the router when I have it hooked up to my PC. If I plug it into a 2A USB power supply it never shows up on my router and doesn't work with OpenHAB. Any suggestions? Thanks again.

          T 1 Reply Last reply
          0
          • H HogBil

            Thanks tboha. That got it working, but.....My gateway only connects to the router when I have it hooked up to my PC. If I plug it into a 2A USB power supply it never shows up on my router and doesn't work with OpenHAB. Any suggestions? Thanks again.

            T Offline
            T Offline
            tboha
            wrote on last edited by
            #5

            @HogBil
            Seems to be a tricky problem. To get some debug messages you have to hook it to the computer ... and there you won't get any because it's working.

            Maybe it is worth to look at debug output from some node. Does it get parent (especially Parent 0)?, will TSM:UPL be ok? At least it would prove your node is working, regardless of network connection.

            Maybe you try supplying power via power jack (i.e. 9V).

            But this still doesn't solve the problem to get a message without connecting to a computer ..... At the moment - no practical idea leading to any benefit.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              HogBil
              wrote on last edited by
              #6

              Thanks. I'll try some different power supplies tonight and see if I get anything useful from the debug of my node. Is there anything to be gleaned from the LED's on my arduino/shield? It seems to be in that continuous state of trying to connect. But that is just me guessing. I'll let you know what I come up with.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                scr
                wrote on last edited by
                #7

                @HogBil, did you make any progress on the topic node working only if hooked up to a computer? I am asking because I am facing exactly the same problem and have no idea on how to track this down...

                Really hoping you came up with an idea here, I am lost...

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  HogBil
                  wrote on last edited by
                  #8

                  I never got a 100% solution. I finally tried enough times. I think I turned it on with no Ethernet plugged in, let it boot, plugged in Ethernet and pressed the reset button. It may be the other way around, but it definitely involved having to use the reset button. Hope it helps, I may try to power cycle mine later and get a better procedure.

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


                  20

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.0k

                  Posts


                  Copyright 2019 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