Serial Driver will not reconnect automatically

Occasionally our lantronix device will lose connection and the driver will not reconnect. we have to go into the devices on the gateway and click edit then save to force a reconnnect.

the error in the console we see every 10 seconds is:

[quote]11:49:10 AM TCPDriver[TruckScale] Error creating socket session at 10.3.20.15 on port 10001
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at com.inductiveautomation.xopc.drivers.tcp.TCPDriver$ReconnectDaemon.run(TCPDriver.java:476)
at java.lang.Thread.run(Unknown Source)

[/quote]

That error message is saying that Ignition is trying to connect to the device at the IP address and port specified but the device is actively refusing the connection. It may be a situation where the connection is lost for one reason or another and the device is keeping the port open like it’s still connected instead of closing the TCP connection.

We have tried on numerous occasions to power cycle the device with no luck. it always comes down to going into the devices on the gateway going to edit then clicking save.

What version of Ignition are you running?

7.5.6 b1317

Are you connected directly to the device via ethernet or are you using some sort of serial-to-ethernet converter?

lantronix UDS1100 serial to ethernet

So when you say you power cycle the device are you talking about the actual device or the serial-to-ethernet adapter?

the lantronix device

I’m not quite sure what is going on. That error message is pretty specific to the device refusing the connection and I’m not sure what resetting the connection on the Ignition side is doing to make the device then respond to the next connect request that’s made. You may have to call into support and have us take a look at it when it’s happening.

Jonathan - Did you ever find a solution? We have multiple Lantronix serial to Ethernet (wireless) on scales, and have been having the same problem. Sometimes they work great…for a short bit, then we can’t get them to connect, sometimes not at all, even after restarting the driver. Restarting the driver used to work fairly often, but after we upgraded to 7.6.2 we are lucky if we can connect at all.
That being said, we also are using the same driver to get data from a different scale with built in Ethernet and it works almost flawlessly. Have you found anything that works - be it a different Ignition configuration or a different Lantronix config?

I have the same issue to if anyone have found a solution