/** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName=System.getProperty("os.name"); deviceDirectory=getDeviceDirectory(); /* First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ if (!registerSpecifiedPorts(CommPortIdentifier.PORT_SERIAL)) { if (!registerKnownPorts(CommPortIdentifier.PORT_SERIAL)) { registerScannedPorts(CommPortIdentifier.PORT_SERIAL); } } }
/** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName=System.getProperty("os.name"); deviceDirectory=getDeviceDirectory(); /* First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ if (!registerSpecifiedPorts(CommPortIdentifier.PORT_SERIAL)) { if (!registerKnownPorts(CommPortIdentifier.PORT_SERIAL)) { registerScannedPorts(CommPortIdentifier.PORT_SERIAL); } } }
/** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName = System.getProperty("os.name"); deviceDirectory = getDeviceDirectory(); /* * First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ for (int PortType = CommPortIdentifier.PORT_SERIAL; PortType <= CommPortIdentifier.PORT_PARALLEL; PortType++) { if (!registerSpecifiedPorts(PortType)) { if (!registerKnownPorts(PortType)) { registerScannedPorts(PortType); } } } }
/** * Determine the OS and where the OS has the devices located */ public void initialize() { if (debug) System.out.println("RXTXCommDriver:initialize()"); osName=System.getProperty("os.name"); deviceDirectory=getDeviceDirectory(); /* First try to register ports specified in the properties file. If that doesn't exist, then scan for ports. */ for (int PortType=CommPortIdentifier.PORT_SERIAL;PortType<=CommPortIdentifier.PORT_PARALLEL;PortType++) { if (!registerSpecifiedPorts(PortType)) { if (!registerKnownPorts(PortType)) { registerScannedPorts(PortType); } } } }