[Lazarus] Transfer between RS232 and TCP/IP
Bo Berglund
bo.berglund at gmail.com
Sat Jul 23 10:38:16 CEST 2016
On Sat, 23 Jul 2016 02:16:42 +0300, "Dimitrios Chr. Ioannidis"
<d.ioannidis at nephelae.eu> wrote:
>On 22/7/2016 7:34 ??, Bo Berglund wrote:
>> I have an application which talks to a data collection system via
>> serial comm (RS232).
>>
>> Now the instrumentation has switched to WiFi instead and I need to
>> somehow make a "go-between" program that can channel data between a
>> TCP port on the WiFi network and a regular serial port (on Windows)
>> which the existing application can use.
>>
>> The data into and out of the TCP port is exactly the same as the data
>> previously trasnferred via RS232, in fact behind the scenes on the
>> instrument there is still the serial channel but it s now hooked to
>> WiFi.
>>
>> Is there something in Lazarus/Fpc I can use to create such a glue
>> program?
>
>I used ser2net on debian wheezy to control a serial device connected to
>that box a while go.
>
>You can try it ...
The problem is opposite.
I have a windows application which only understands RS232 and a device
that used to be RS232 but now instead has a WiFi access point to
connect to whereafter the same data stream is available via a TCP port
on the device.
Cannot change the application so I need a utility that can channel
binary data between the TCP port and a regular com port.
Of course not having to bridge two regular hardware ports in order to
do this (using a virual com port) would be good but not necessary.
Furthermore after checking out the suggestions posted I really would
like to have more control, i.e. I want a source solution for Delphi or
Lazarus (prefer Lazarus) on Windows.
--
Bo Berglund
Developer in Sweden
More information about the Lazarus
mailing list