Lantronix Developer Forums  

Go Back   Lantronix Developer Forums > Other > Other Questions and Discussion

Thread Tools Search this Thread Display Modes
Old 05-15-2017, 07:34 PM
fam47 fam47 is offline
Junior Member
Join Date: May 2017
Posts: 1
Default Programming a UDP tunnel from scratch

I have a piece of equipment that runs on embedded, custom-programmable firmware. I can send and receive UDP packets with no problem from said system (I have established UDP connections with a PC host for a different application).

I also have about a half-dozen pieces of medical equipment that communicate via RS232 in different locations within my lab, which I want the above embedded system to talk to via a UDP/Serial tunnel, ideally with fail-safes built-in such that a default "shut down" command will be sent across the respective RS232 buses if a keep-alive signal is not received.

I've used the UDS/EDS product line with CPR in previous projects, and I'm betting I can use them in my application here, but I'm not finding instruction on how to format UDP packets or set up my fail-safes. I cannot use the Linux SDK, nor can I use CPR since my server is running on embedded (i.e., not any of the Big OSes) firmware. Can anyone point me in the right direction?

Last edited by fam47; 05-15-2017 at 07:35 PM. Reason: Clarity
Reply With Quote
Old 05-31-2017, 09:37 PM
garry0427 garry0427 is offline
Join Date: Apr 2008
Posts: 157

If I'm following along...
You want to hook a UDS to the medical equipment and communicate via UDP not TCP to each device from your embedded OS 'master'. The UDS can be configured for UDP mode, which will accept UDP packets on the UDP port (default is 10001). The UDP payload is forwarded to the serial port. Any response, is sent back to the sender of the UDP 'query'. (You can configure other options and datagram types, but the default should work for you.)
Your embedded system, just needs to send to the correct IP & port combination and not use 'broadcast IP' unless you really mean it ;-)
Reply With Quote

eds, rs232, udp, uds

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:25 PM.

Copyright Lantronix, Inc. 2013. All rights reserved.
Powered by vBulletin® Copyright ©2000 - 2017, vBulletin Solutions, Inc.