Announcement

Collapse
No announcement yet.

Programming a UDP tunnel from scratch

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 07:35 PM. Reason: Clarity

  • #2
    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 ;-)

    Comment

    Working...
    X