This page last changed on Feb 21, 2015 by dhomyk.

Hi all,

I was running OpenRemote controller on a Windows 7 system without any problem for 5 months. But since 3 weeks it fails to establish a tunnel to the KNX bus through the IP interface (BJ 6186/32). I tried a lot (IP interface replaced, re-installed ORController in two versions,..), without any success. Messages and logs see below. It drives me crazy. Any idea what to do or which further analysis could be done?

Addendum: Just installed OR on my iMac for testing, if it might be related to my Windows mini-pc I'm normally using for OR. Outcome: Same occurs also on my Mac.

Cheers

Dieter

Controller runtime:

------ snip --------

ERROR KNX IP reconnector: Disconnect failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Disconnect failed
at org.openremote.controller.protocol.knx.ip.IpTunnelClient.disconnect(I
pTunnelClient.java:147)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$KNXConn
ectionImpl.stop(KNXIpConnectionManager.java:811)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$KNXConn
ectionImpl.access$000(KNXIpConnectionManager.java:647)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager.stop(KN
XIpConnectionManager.java:208)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$Connect
ionTask.removeConnection(KNXIpConnectionManager.java:999)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$Connect
ionTask.run(KNXIpConnectionManager.java:986)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

------- snip-------

KNX logfile

------- snip -------

DEBUG 2015-02-21 18:12:27,928 (KNX): Creating KNX bus with org.openremote.controller.protocol.port.DatagramSocketPort
INFO 2015-02-21 18:12:27,944 (KNX): Found a KNX IP interface at /192.168.178.38:3671
INFO 2015-02-21 18:12:27,944 (KNX): Connection created for KNX IP interface at /192.168.178.38:3671
DEBUG 2015-02-21 18:12:27,944 (KNX): Creating KNX bus with org.openremote.controller.protocol.port.DatagramSocketPort
INFO 2015-02-21 18:12:27,960 (KNX): Notified with KNX interface status = connected
INFO 2015-02-21 18:12:27,960 (KNX): Connected to KNX-IP interface /192.168.178.38:3671
INFO 2015-02-21 18:12:27,960 (KNX): KNX-IP socket listener IOException
java.net.SocketException: socket closed
at java.net.DualStackPlainDatagramSocketImpl.socketReceiveOrPeekData(Native Method)
at java.net.DualStackPlainDatagramSocketImpl.receive0(DualStackPlainDatagramSocketImpl.java:120)
at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143)
at java.net.DatagramSocket.receive(DatagramSocket.java:781)
at org.openremote.controller.protocol.port.DatagramSocketPort.receive(DatagramSocketPort.java:78)
at org.openremote.controller.protocol.knx.ip.IpProcessor$PhysicalBusListener.run(IpProcessor.java:82)
WARN 2015-02-21 18:12:27,960 (KNX): KNX-IP socket listener stopped
INFO 2015-02-21 18:12:27,960 (KNX): Stopping connection timer
WARN 2015-02-21 18:12:27,975 (KNX): KNX IP heartbeat request failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Monitor failed : 39
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.monitor(IpTunnelClient.java:282)
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.run(IpTunnelClient.java:244)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
WARN 2015-02-21 18:12:27,975 (KNX): KNX IP heartbeat request failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Monitor failed : 39
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.monitor(IpTunnelClient.java:282)
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.run(IpTunnelClient.java:244)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
WARN 2015-02-21 18:12:27,975 (KNX): KNX IP heartbeat request failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Monitor failed : 39
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.monitor(IpTunnelClient.java:282)
at org.openremote.controller.protocol.knx.ip.IpTunnelClient$HeartBeatTask.run(IpTunnelClient.java:244)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
INFO 2015-02-21 18:12:27,975 (KNX): KNX-IP socket listener IOException
java.net.SocketException: socket closed
at java.net.DualStackPlainDatagramSocketImpl.socketReceiveOrPeekData(Native Method)
at java.net.DualStackPlainDatagramSocketImpl.receive0(DualStackPlainDatagramSocketImpl.java:120)
at java.net.AbstractPlainDatagramSocketImpl.receive(AbstractPlainDatagramSocketImpl.java:143)
at java.net.DatagramSocket.receive(DatagramSocket.java:781)
at org.openremote.controller.protocol.port.DatagramSocketPort.receive(DatagramSocketPort.java:78)
at org.openremote.controller.protocol.knx.ip.IpProcessor$PhysicalBusListener.run(IpProcessor.java:82)
WARN 2015-02-21 18:12:27,975 (KNX): KNX-IP socket listener stopped
INFO 2015-02-21 18:12:27,975 (KNX): Notified with KNX interface status = disconnected
INFO 2015-02-21 18:12:27,975 (KNX): Scheduled reconnection task
INFO 2015-02-21 18:12:27,975 (KNX): Disconnected gracefully from /192.168.178.38:3671
INFO 2015-02-21 18:12:27,975 (KNX): Notified with KNX interface status = disconnected
INFO 2015-02-21 18:12:27,991 (KNX): Trying to create connection
INFO 2015-02-21 18:12:27,991 (KNX): Removing connection
INFO 2015-02-21 18:12:27,991 (KNX): Notified with KNX interface status = disconnected
ERROR 2015-02-21 18:12:27,991 (KNX): Disconnect failed
org.openremote.controller.protocol.knx.ip.KnxIpException: Disconnect failed
at org.openremote.controller.protocol.knx.ip.IpTunnelClient.disconnect(IpTunnelClient.java:147)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$KNXConnectionImpl.stop(KNXIpConnectionManager.java:811)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$KNXConnectionImpl.access$000(KNXIpConnectionManager.java:647)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager.stop(KNXIpConnectionManager.java:208)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$ConnectionTask.removeConnection(KNXIpConnectionManager.java:999)
at org.openremote.controller.protocol.knx.KNXIpConnectionManager$ConnectionTask.run(KNXIpConnectionManager.java:986)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

----- snip -------

All,

I could fix the problem. After having seen, that the same error occurs also when using my iMac as OR host, I focussed again on hardware around the IP-interface. I renewed the bus cabling to the IP-interface's KNX connector, et voilĂ : it worked again.

The tricky thing was, that the KNX status LED on the interface indicated that bus connection was fine. There must have been a contact resistance somewhere in the cabling that caused the problem.

Cheers

Dieter

Posted by dhomyk at Feb 22, 2015 17:22
Document generated by Confluence on Jun 05, 2016 09:35