[fpc-pascal] Serial to TCP gateway in FPC?

Bo Berglund bo.berglund at gmail.com
Sun Jun 18 18:16:38 CEST 2017

On Sun, 18 Jun 2017 09:46:06 -0500, Snorkl e
<tony.caduto at gmail.com> wrote:

>Couldn't you read the serial port data and then stream it with Synapse to
>the remote location?
>You can use Synapse to read the serial port data and sent via TCP/IP.

Probably, but I was hoping for some ready-made example to get going a
bit faster...
I did another piece of software a year or so ago only involving
TCP/IP, also for remote control, but then I used an Indy TCP client
My problem is getting my head around serial port handlers, which I
have so-so experience of in the past. No RS232 work with FPC/Lazarus
earlier and in Delphi I used AsyncPro components, but these are so
complex that one is lost amongst all properties to set...

I would like a dead simple serial component where I could just specify
the comm parameters (baud, start/stop bits, handshaking and port) then
just open the connection and wait for receive *events*.

Yes, it is easier for me to have components with event generation on
data reception rather than using blocking components, which I must
make threads for and then figure out how to channel the data from the
thread into the main application...

Bo Berglund
Developer in Sweden

More information about the fpc-pascal mailing list