Author Topic: 3x USART <-> Ethernet through Colibri Linux module  (Read 1188 times)

0 Members and 1 Guest are viewing this topic.

Offline daqqTopic starter

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
3x USART <-> Ethernet through Colibri Linux module
« on: July 11, 2018, 09:52:48 am »
Hi guys,

I've got an application that's got three different serial lines (at logic levels) from various blocks and I need to connect it to Ethernet. Two of them are slow management lines ( ~1kB/sec max), but one is pretty fast - 170kB/sec max (but only one way (Device -> Ethernet)). This can be used when using a custom baud rate, so hardware wise it is not be a problem.

I want to use a dedicated module for this, and we've had good experience with Toradex Colibri modules in the past, namely the VF50 ( https://www.toradex.com/computer-on-modules/colibri-arm-family/nxp-freescale-vybrid-vf5xx ) and VF61.

The Ethernet line is a dedicated line between the device and a receiving computer. As such the modules would be acting as a glorified Serial<->Ethernet converter. A small server application would be written to do the talking (or maybe just a few one of those magic Linux commands would do maybe?). Ideally I would just connect to an address, it would have three ports available and that's it.

My question is whether you think that these data rates are achievable with all of the overhead that an OS will add to this, without custom drivers? I contacted Toradex support, they said that it should work, provided that I use handshaking during the serial communication, which I can do, but it implies that there might be some kind of issue?

Thanks,

David
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: us
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #1 on: July 11, 2018, 06:01:17 pm »
Is there a reason you want to do a custom device instead of an off-the-shelf serial to ethernet adapter? 

Random google result for example: http://us.brainboxes.com/product/es-701/4-port-rs232-ethernet-to-serial-adapter
 

Offline daqqTopic starter

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #2 on: July 11, 2018, 07:41:01 pm »
Quote
Is there a reason you want to do a custom device instead of an off-the-shelf serial to ethernet adapter? 
Size (the module will fit inside of the device, the device will fit inside of the example you provided), voltage levels (3.3V -> 3.3V, instead of 3.3V -> RS232), data rate, power consumption...

I don't want to do a custom, but at the moment it seems the best option - I'm hoping that using Linux it will be pretty straight forward, ideally just some minimal code.

I know that there's a lot of off the shelf solutions where you get one UART, or where you get multiple RS232 lines, but none of them fit exactly.
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #3 on: July 11, 2018, 08:32:32 pm »
The least effort on the embedded side might be to just open 3 SSH connections, and run a terminal application in each. Since Linux isn't an RTOS (at least without a lot of tuning), there will be risk of the occasional dropped character, but then again data loss is always a risk in networked applications.

Offline MatjazB

  • Newbie
  • Posts: 4
  • Country: si
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #4 on: July 12, 2018, 06:10:37 am »
You can take a look at Lantronix XPort devices. But you will need one device for each serial channel (or they have multi serial device).
If you want to DIY then you can take a look into ESP8266 direction. Something like esp-link. But you have a lot of such things (even with many serial ports).
 

Offline daqqTopic starter

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #5 on: July 12, 2018, 09:44:38 am »
Thanks, I've already taken a look at the Xport device. The problem there is its low baud rate, as well as the fact that I would have to use three devices, and I have only one Ethernet connection available.

Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline Gribo

  • Frequent Contributor
  • **
  • Posts: 629
  • Country: ca
Re: 3x USART <-> Ethernet through Colibri Linux module
« Reply #6 on: July 12, 2018, 01:27:14 pm »
If you can change your board layout, The xPico has 2 UARTs that can go up to 900Kbps. IIRC, it is more expensive than the xPort. Digi also has similar modules (ME9210).
I am available for freelance work.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf