[fpc-pascal] How to detect serial/usb-serial ports.
    Henry Vermaak 
    henry.vermaak at gmail.com
       
    Wed Jul 27 12:56:23 CEST 2011
    
    
  
On 27/07/11 09:22, P. vanderWal wrote:
> Hello,
> In my program I need to present the user with a list of available serial
> and usb-serial ports on the system they are using.
> How do I detect in my program these ports?. (something like
> GetPortList() in Delphi-7???).
Look here for how synaser does it:
http://synalist.svn.sourceforge.net/viewvc/synalist/trunk/synaser.pas?revision=146&view=markup#l2280
For linux you can look for /dev/ttyS* and /dev/ttyUSB*, but they may be 
called anything in practice.
Henry
    
    
More information about the fpc-pascal
mailing list