# Serial Driver will not reconnect automatically

**URL:** <https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185>\
**Category:** Ignition\
**Created:** [April 9, 2013, 7:05pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185 "2013-04-09T19:05:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 9, 2013, 7:05pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/1 "2013-04-09T19:05:50Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 9, 2013, 10:40pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/2 "2013-04-09T22:40:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 9, 2013, 10:43pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/3 "2013-04-09T22:43:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 11, 2013, 4:43pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/4 "2013-04-11T16:43:38Z")

</div>

What version of Ignition are you running?

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 11, 2013, 4:54pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/5 "2013-04-11T16:54:45Z")

</div>

7.5.6 b1317

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 11, 2013, 8:16pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/6 "2013-04-11T20:16:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 11, 2013, 8:25pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/7 "2013-04-11T20:25:34Z")

</div>

lantronix UDS1100 serial to ethernet

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 11, 2013, 10:43pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/8 "2013-04-11T22:43:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [April 11, 2013, 10:47pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/9 "2013-04-11T22:47:57Z")

</div>

the lantronix device

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [April 17, 2013, 4:54pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/10 "2013-04-17T16:54:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![scott\_stc](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@scott\_stc](https://forum.inductiveautomation.com/u/scott_stc)\
**Post date:** [September 14, 2013, 3:46am UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/11 "2013-09-14T03:46:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Alexandre\_Potvin](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Alexandre\_Potvin](https://forum.inductiveautomation.com/u/Alexandre_Potvin)\
**Post date:** [October 5, 2022, 6:20pm UTC](https://forum.inductiveautomation.com/t/serial-driver-will-not-reconnect-automatically/6185/12 "2022-10-05T18:20:20Z")

</div>

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