PDA

View Full Version : Serial port to TCP redirect



nunojpg
March 2nd, 2009, 02:38 PM
I have a app that is designed to talk via serial port with a device.
The new device can be connected directly to the network but the software is not capable.
Modding the app is not trivial so I would prefer to do a little program that would redirect the TCP socket comm to a virtual serial port where the app would connect.

Is there anything already available for this?

Nuno

dwhitney67
March 2nd, 2009, 03:19 PM
For the last few weeks I have been working on porting VS C++ apps to support UDP, in lieu of being strictly serial-port dependent.

After my modifications were made (which btw were somewhat extensive, but not daunting), I still needed to re-test the application's serial interface. So I relied on the "COM/IP Redirector" from Tactical Software. It handles two-way comm between serial port(s) and TCP port(s). It was easy to install and configure.

If you are on a *nix-only platform, then I do not know if there is an equivalent app. I'm sure there is.

supirman
March 2nd, 2009, 04:07 PM
I've not tried it, but see http://linux.die.net/man/8/ser2net

supirman
March 2nd, 2009, 04:10 PM
Also perhaps http://freshmeat.net/projects/socat/