# Lantronix Ethernet to RS485

**URL:** <https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775>\
**Category:** General Discussion\
**Created:** [May 8, 2019, 1:04am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775 "2019-05-08T01:04:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph.ldit](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@joseph.ldit](https://forum.inductiveautomation.com/u/joseph.ldit)\
**Post date:** [May 8, 2019, 1:04am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/1 "2019-05-08T01:04:26Z")

</div>

Hi,  
Just curious if anyone has used Lantronix to do this?  
How can I test this if it is actually working (ie loop back test)? I am using it for Modbus.

Thanks  
Joseph

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 8, 2019, 1:09am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/2 "2019-05-08T01:09:16Z")

</div>

Is there a reason you want to use this instead of a proper Modbus gateway?

---

<div class="post-metadata">

**Author:** ![joseph.ldit](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@joseph.ldit](https://forum.inductiveautomation.com/u/joseph.ldit)\
**Post date:** [May 8, 2019, 1:46am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/3 "2019-05-08T01:46:57Z")

</div>

Hi Kevin.  
Thanks for the response. Yes, client has it, several of it and it is a requirement that it goes from TCPIP to RTU.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 8, 2019, 1:49am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/4 "2019-05-08T01:49:31Z")

</div>

I assume this is just a “dumb” ethernet-to-serial converter.

The Modbus RTU over TCP driver _should_ work, but RTU over TCP is a terrible and unreliable protocol, so using a real Modbus TCP gateway is significantly more reliable.

---

<div class="post-metadata">

**Author:** ![joseph.ldit](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@joseph.ldit](https://forum.inductiveautomation.com/u/joseph.ldit)\
**Post date:** [May 8, 2019, 2:19am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/5 "2019-05-08T02:19:56Z")

</div>

What do you recommend that is less than $120?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 8, 2019, 2:24am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/6 "2019-05-08T02:24:20Z")

</div>

I’ve always recommended the Moxa MGate to people but I think they are more like $200-$220.

Maybe someone else can chime in with other suggestions.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [May 8, 2019, 2:28am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/7 "2019-05-08T02:28:48Z")

</div>

We use either MGates or Digi One IAPs. We have had luck with both.

---

<div class="post-metadata">

**Author:** ![joseph.ldit](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@joseph.ldit](https://forum.inductiveautomation.com/u/joseph.ldit)\
**Post date:** [May 8, 2019, 2:53am UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/8 "2019-05-08T02:53:41Z")

</div>

What is the difference between tcpip/RS485 converter and a “real Modbus TCP gateway”?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 8, 2019, 12:47pm UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/9 "2019-05-08T12:47:35Z")

</div>

Modbus on a serial line is different from Modbus TCP – different framing, escaping, and error checking. TCP/IP has its own error checking and guarantee of in-order, no missing byte delivery, so it can be simpler. A “real” gateway understands both protocols, unpacking requests on one port and re-packing into the other format for the other port. In both directions.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 8, 2019, 2:00pm UTC](https://forum.inductiveautomation.com/t/lantronix-ethernet-to-rs485/24775/10 "2019-05-08T14:00:10Z")

</div>

To add to this, when you just dump an RTU frame into a TCP-to-serial converter you have no framing at all, no sequencing of requests and no ability to match a response with a request other than hoping the response you got is for the last request you sent. Most of the time this is okay, but as soon as the device doesn’t respond or takes too long to respond things get weird. You also have an issue where if _any_ other system connects to this thing you’re potentially sending uncontrolled/mixed data over the serial line.
