[fpc-pascal] serial ports under Unix using Freepascal

Luca Olivetti luca at ventoso.org
Thu Oct 4 12:27:37 CEST 2007

En/na papelhigienico at gmail.com ha escrit:
> 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?

I'd suggest to take a look at synaser:

http://synapse.ararat.cz (it's included in synasnap.zip)


More information about the fpc-pascal mailing list