EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: bhj99 on February 19, 2023, 05:08:10 pm

Title: Serial over Ethernet implementation solutions?
Post by: bhj99 on February 19, 2023, 05:08:10 pm
Hello all,

Does anyone have experience with implementing Serial over Ethernet solutions on a PCB design? Basically, the aim is to convert RS232, RS422, or RS485 interfaces from legacy devices to 10/100/1000BASE-T Ethernet packets. I do know of many serial-to-Ethernet converters available as cables dongles or modules, but I'm interested if anyone knows of any chip/ICs that will support translation between these protocols. I'm thinking a microcontroller would be needed to provide drivers to both serial and Ethernet sides. Any help would be greatly appreciated.
Title: Re: Serial over Ethernet implementation solutions?
Post by: fcb on February 19, 2023, 05:22:36 pm
Wiznet W5100/W5500
WCH CH9121
Title: Re: Serial over Ethernet implementation solutions?
Post by: coppice on February 19, 2023, 05:44:24 pm
These are surprisingly high volume production devices. So, if you find an MCU with the right resources, you'll probably find a reference design for the software to support it.
Title: Re: Serial over Ethernet implementation solutions?
Post by: rstofer on February 19, 2023, 09:15:24 pm
I would use Berkeley Sockets which just about every Ethernet interface/library supports.  I used it with an mbed LPC1768 by using the provided library.  Do a little homework on sockets and you will see how easy it is.

http://networkprogrammingnotes.blogspot.com/p/berkeley-sockets.html (http://networkprogrammingnotes.blogspot.com/p/berkeley-sockets.html)

You can write a trivial host and client application program and run them both on a Linux box using either the assigned IP address or the default.  Start the server and it will listen on a port.  Then start the client and do whatever.  Or, start the server and use it with  something like PuTTY and you will have it.

PuTTY won't be useful for machine to machine communication but it will be helpful for debugging the host.  You would simply type commands into PuTTY and it will forward them to the server and grab up any replies.
Title: Re: Serial over Ethernet implementation solutions?
Post by: konohimawm on August 18, 2023, 11:22:24 am
Eğer bir mikrodenetleyici ile kendiniz tasarlayacaksanız WIZnet Firmasının W5500 yongasını tavsiye ederim.
https://www.signal.com.tr/urundetay/W5500/SGNLidV1Q4G2AF/WIZID00005 (https://www.signal.com.tr/urundetay/W5500/SGNLidV1Q4G2AF/WIZID00005)
Bu entegre devre full-Stack TCP/IP içeriyor.
Başlık dosyalarını doğrudan işlemcinize entegre ederek ürün geliştirebilirsiniz. Tavsiye edilen uygulama şemaları da mevcut.

Eğer PC ya da Ethernet üzerinden konfigüre edilebilir ön programlanmış bir SoC IC arıyorsanız. Bu konuda en iyi çözüm W7500P-S2E
İçerisinde PHY yongası var, ön tanımlı MAC IP var, ve hepsi ARM cortex M-0 Bir işlemciye yüklü firmware ile yönetiliyor.
Sadece PC'den kofigürasyon ile kullanımı var.
https://www.signal.com.tr/urundetay/W7500P-S2E/SGNLidQKPWUO1S/WIZID00010 (https://www.signal.com.tr/urundetay/W7500P-S2E/SGNLidQKPWUO1S/WIZID00010)
Title: Re: Serial over Ethernet implementation solutions?
Post by: kripton2035 on August 18, 2023, 11:42:04 am
the W32-ETH01 module, has been made for this. it is 10/100 Mb only, but you even have an ESP32 to program the way you want
https://www.aliexpress.com/item/1005002023196214.html (https://www.aliexpress.com/item/1005002023196214.html)

(https://iooner.io/content/uploads/2021/02/espethcover.jpg)
Title: Re: Serial over Ethernet implementation solutions?
Post by: Terry Bites on August 19, 2023, 02:35:08 pm
We used a startech NETRS2321P very easy set up.
Not cheap, but great vfm for our machine shop needs.
We're milling for England now.
Title: Re: Serial over Ethernet implementation solutions?
Post by: m k on August 20, 2023, 05:28:07 pm
Some PCs have Intel's AMT SOL.
Title: Re: Serial over Ethernet implementation solutions?
Post by: Doctorandus_P on August 20, 2023, 07:03:59 pm
It also depends on what you want to do with the ethernet part. Do you want to interface with something as old fashioned as telnet or netcat. Or do you want to use something more modern and encrypted such as with SSH.

I guess that each small linux platform can quite easily pipe one protocol to the other (and there are quite small and cheap linux SBC's). And as already mentioned. It's quite common, so when you've got Ethernet running on any microcontroller, then connecting it to a uart is quite trival, and I would be surprised if there are less than 100 or such projects on github.

I once experimented shortly with serial/sathosimn on a "Blue Pill" (stm32f103) This project plugs into an USB port and then acts as three serial ports. I only did a few short tests though. Just started some terminal emulators, and copied text between those ports by connecting though some pins on the breadboard.