[fpc-pascal] Linux serial interface
Rainer Stratmann
RainerStratmann at t-online.de
Tue Dec 26 15:38:33 CET 2006
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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list