[fpc-pascal] Linux serial interface

Daniël Mantione daniel.mantione at freepascal.org
Tue Dec 26 14:45:32 CET 2006



Op Tue, 26 Dec 2006, schreef Michael Van Canneyt:

> 
> 
> 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.

The raw decives are no longer in use, they are even no longer on my 
system:

laptop:~ # ls -al /dev/cua*
/bin/ls: /dev/cua*: Onbekend bestand of map
laptop:~ #

/dev/ttyS0 is the correct device, you have to disable most of the terminal 
handling through ioctls.

Daniël


More information about the fpc-pascal mailing list