MQTT Gateway help - keeps intializing



  • 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



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





  • 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.



  • @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.



  • 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.



  • @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...



  • 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.


Log in to reply
 

Suggested Topics

14
Online

11.4k
Users

11.1k
Topics

112.7k
Posts