Has anyone made their own serial over ethernet converter? - Page 1
Forum section: electronics / projects

author: e100
author_rank: Frequent Contributor
timestamp: September 01, 2019, 03:33:17 am
content: As in serial -> Ethernet -> serialUsing commonly available hardware what sort of latency and max baud rate are practical?

author: Rerouter
author_rank: Super Contributor
timestamp: September 01, 2019, 03:41:26 am
content: Latency will be determined by the packet routing and normal network stuff, maximum baud rate comes down to the end points, and how congested your links are, e.g. what happens when a packet goes missing, what happens when they arrive out of order, and if it responds differently to what you expect midway through you sending the next command, how do you handle this?

author: e100
author_rank: Frequent Contributor
timestamp: September 01, 2019, 03:46:56 am
content: Quote from: Rerouter on September 01, 2019, 03:41:26 amI was thinking of a dedicated point to point ethernet link.

author: Rerouter
author_rank: Super Contributor
timestamp: September 01, 2019, 03:53:16 am
content: same wire, or through a switch / router?

author: SparkyFX
author_rank: Frequent Contributor
timestamp: September 01, 2019, 03:59:57 am
content: No need to reinvent the wheel:https://www.lantronix.com/products/xport/Questions for latency and bandwidth: depends on application. Usually UART and interrupts limit realtime capabilities of e.g. RS232 serial connections as well.Should you intend to packetize the whole serial protocol with handshakes and such... i kind of doubt it works the way you think, because of flow control, frame sizes and checksums.

author: NiHaoMike
author_rank: Super Contributor
timestamp: September 01, 2019, 04:13:51 am
content: Trivial to do with a microcontroller that has Ethernet. But if a dedicated point to point link over twisted pair is all you're looking for, why not use RS485 or RS422?

author: e100
author_rank: Frequent Contributor
timestamp: September 01, 2019, 05:09:30 am
content: Quote from: NiHaoMike on September 01, 2019, 04:13:51 amBecause I have an ethernet network.

author: GeorgeOfTheJungle
author_rank: Super Contributor
timestamp: September 01, 2019, 07:42:12 am
content: Interesting question. For minimum latency you want small packets and no delay. For maximum throughput you want them large => buffering + delays. And for flow control you need the ability to buffer at both ends and a sort of side channel. You've got to choose between TCP for ease/comfort and UDP for speed. Choose UDP and you've got to handle out of order and dropped packets, errors and retransmissions. Ouch! What at first glance seemed simple, becomes a rather complicated thing.In my to-do list is a TTL serial port to WiFi with an ESP-01 that I can connect to with a netcat. Progress is being slow, though.https://youtu.be/Q0C7FKYk2aM

author: tszaboo
author_rank: Super Contributor
timestamp: September 01, 2019, 07:48:48 am
content: Quote from: e100 on September 01, 2019, 05:09:30 amSo you have a network, or do you have a dedicated cable?Please make up your mind.If it is a dedicated cableyou can just connect whatever signals you want on an ethernet cable. I've run 1KM long CAN bus on regular CAT6 cabling.

author: German_EE
author_rank: Super Contributor
timestamp: September 01, 2019, 08:10:35 am
content: Exactly. An RJ45 plug gives you eight pins to play with so wire a DB9 (without the Ring Indicator pin) to a patch plug at each end and send RS232 over your cables. You will probably go via at least one patch panel but this isn't a problem, just connect port A directly to port B without going through your network switch.

author: 2N3055
author_rank: Super Contributor
timestamp: September 01, 2019, 08:25:12 am
content: What people allready said .For converter you have X-port and ready made devices that are not so expensive if you shop around a bit.They will be fast enough. Latencies are more of a problem over Internet or complicated network with lot of routers..If you have CAT6 cable point to point, that is what RS485 and RS422 are made for..You can get ready made RS485 really cheap, and also can make them quite easily..If you have cable go RS485 way.