[fpc-pascal] fpc and serial port

Nataraj S Narayan natarajsn at gmail.com
Tue Oct 27 14:35:45 CET 2009


Hi

May I have a few examples to access /dev/ttyS* using fpc?
My purpose is to connect my Arm handheld to a thermal printer
connected to /dev/ttyS0.

Presently, having a tough time using Qt Serialport classes in C++.

I need to read and write same time, keep on parsing the input stream
and respond simultaneously.
Do we need to use threads ? or does the /dev/ttyS0 abstracts us from
the innards of tthreading?

regards

Nataraj



More information about the fpc-pascal mailing list