Enumeration portIdentifiers = CommPortIdentifier.getPortIdentifiers();
Vector<String> sPorts = new Vector<String>();
if( DEBUGMODE )
geco().debug("*** CommPort listing ***");
while( portIdentifiers.hasMoreElements() ){
CommPortIdentifier port = (CommPortIdentifier) portIdentifiers.nextElement();
if( port.getPortType()==CommPortIdentifier.PORT_SERIAL ){
if( DEBUGMODE )
geco().debug(port.getName());
sPorts.add(port.getName());
}
}
serialPorts = createFriendlyPorts(sPorts);
}
return serialPorts;