[fpc-pascal] serial ports under Unix using Freepascal

josepascual josepascual at almudi.com
Thu Oct 4 12:07:54 CEST 2007


Have you taken a look to synaser inside synapse packet software
http://synapse.ararat.cz/?

 

Jose Pascual

 

p.d. bonito nombre "papel higienico" ;-)

 

 

 

De: fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] En nombre de
papelhigienico at gmail.com
Enviado el: miƩrcoles, 03 de octubre de 2007 21:54
Para: fpc-pascal at lists.freepascal.org
Asunto: [fpc-pascal] serial ports under Unix using Freepascal

 

Hi!

I'm creating a component that handles serial port in windows/unix. Under
Windows I include in uses the unit windows, that open, close, read, write,
test if the configuration of serial port is valid (some set of
configurations of baudrate, stop bits and parity is invalid in windows)  and
if serial port exists. 

Under Unix I found the unit Serial, that open, close, read and write. How to
test if serial port exist? Unix accept any set of configurations of  the
serial port? I see fpopen that return the handle of serial port but I not
found anything that describes error codes returned by this function in fpc
rtl documentation. 

Somebody have tried to do this?

info: I newbie in FPC Unix (FreeBSD).



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20071004/4421b5c7/attachment.html>


More information about the fpc-pascal mailing list