Author Topic: Serial over Ethernet implementation solutions?  (Read 1184 times)

0 Members and 1 Guest are viewing this topic.

Offline bhj99Topic starter

  • Contributor
  • Posts: 26
  • Country: us
Serial over Ethernet implementation solutions?
« 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.
 

Offline fcb

  • Super Contributor
  • ***
  • Posts: 2117
  • Country: gb
  • Test instrument designer/G1YWC
    • Electron Plus
Re: Serial over Ethernet implementation solutions?
« Reply #1 on: February 19, 2023, 05:22:36 pm »
Wiznet W5100/W5500
WCH CH9121
https://electron.plus Power Analysers, VI Signature Testers, Voltage References, Picoammeters, Curve Tracers.
 

Online coppice

  • Super Contributor
  • ***
  • Posts: 8657
  • Country: gb
Re: Serial over Ethernet implementation solutions?
« Reply #2 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.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Serial over Ethernet implementation solutions?
« Reply #3 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

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.
« Last Edit: February 19, 2023, 09:46:33 pm by rstofer »
 

Offline konohimawm

  • Newbie
  • Posts: 5
  • Country: tr
    • Signal Elektronik
Re: Serial over Ethernet implementation solutions?
« Reply #4 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
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
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2589
  • Country: fr
    • kripton2035 schematics repository
Re: Serial over Ethernet implementation solutions?
« Reply #5 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

 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2400
  • Country: gb
  • Recovering Electrical Engineer
Re: Serial over Ethernet implementation solutions?
« Reply #6 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.
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2013
  • Country: fi
Re: Serial over Ethernet implementation solutions?
« Reply #7 on: August 20, 2023, 05:28:07 pm »
Some PCs have Intel's AMT SOL.
Advance-Aneng-Appa-AVO-Beckman-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Triplett-YFE
(plus lesser brands from the work shop of the world)
 

Online Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3369
  • Country: nl
Re: Serial over Ethernet implementation solutions?
« Reply #8 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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf