Am Dienstag, 26. Dezember 2006 14:07 schrieb 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.

Isn't tty1 (without S) a terminal?

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

I don't know to access the tools.
It should not be that difficult, because the same code works with USB-serial 
converters ('/dev/ttyUSB0') correctly.
Only reading is not possible with the built in serial ports at the PC.
The connected Hardware indicates the receive of the writing data correctly.

Rainer

> Michael.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to