[fpc-pascal] Linux serial interface

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Dec 26 14:07:02 CET 2006

On Tue, 26 Dec 2006, Rainer Stratmann wrote:

> How to open correct the serial interface ('/dev/ttyS0')

As far as I know, this is a terminal, so the terminal emulator will mess up
the IO. You should open the raw device.

> In my program it works for writing, but reading is not possible at the moment.
> Has someone an idea or example code?

If you have access to Toolbox, it comes with a TSerial component. It should
work with FPC and Linux.

I also think there is a serial unit distributed with FPC, but I am sure
about it's inner workings.


More information about the fpc-pascal mailing list