Help troubleshooting Ethernet Gateway



  • Hi Friends, I started upgrading my system to Openhab2
    I was using Openhab 1.8 with a MQTT gateway working fine. Now with same hardware I flashed the gateway to be Ethernet gateway, but I'm not able to make it work. I think the Gateway is not connecting with Openhab

    In Openhab is always in offline state and if I disable startup check it appears as online but Opebhab debug shows like connections retries.

    This is console output from my gateway

    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
    0;255;3;0;9;Eth: connect
    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.88.205
    0;255;3;0;9;MCO:BGN:STP
    0;255;3;0;9;MCO:BGN:INIT OK,TSP=1

    and this is the DEBUG output from Openhab

    21:01:31.744 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: []
    21:01:31.744 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:44)
    21:01:31.744 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Disconnecting from IP bridge ...
    21:01:31.745 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Stopping Writer thread
    21:01:31.753 [WARN ] [rsAbstractConnection$MySensorsWriter] - Interrupted MySensorsWriter
    21:01:31.759 [DEBUG] [rsAbstractConnection$MySensorsReader] - Stopping Reader thread
    21:01:31.762 [WARN ] [rsAbstractConnection$MySensorsReader] - Interrupted MySensorsReader
    21:01:31.767 [DEBUG] [ensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: []
    21:01:41.770 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Connecting to IP bridge [192.168.88.205:5003]
    21:01:41.777 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    21:01:42.774 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    21:01:43.775 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    21:01:44.775 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    21:01:45.775 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 0;0;3;0;2;
    21:01:46.775 [ERROR] [al.protocol.ip.MySensorsIpConnection] - Cannot start reading/writing thread, probably sync message (I_VERSION) not received. Try set skipStartupCheck to true

    Any Ideas

    Any help will be appreciated.


  • Mod

    May I ask why you changed from mqtt to ethernet? Did you change the connector type in Openhab?



  • Hi gohan.
    Sorry If I did not explain correctly. I upgraded to OpenHab 2.1.0
    I was previously using RaspberryPi with OpenHab 1.8 + MQTT gateway.

    Now I switched to a VM with Debian and OpenHab 2.1.0. and as I read that the MQTT gateway was not working with OH2.1 I flashed my gateway as an ethernet gw.

    Regarding the logs.
    I turned off the OpenHab machine and the gateway still repeats the output. Is it possible that the gateway is continuosly restarting?


  • Mod

    it looks like it has a problem, try using the library version 2.2 from development branch



  • Ok, I'll try that.
    Are you refering to the mySensors library, right?


  • Mod

    yes, I didn't thought about the version being similar number to OpenHab



  • Hi, It worked. using the 2.2 library solved my issue. Now I'll setup openhab. thanks for your quick and effective answer


Log in to reply
 

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.