#46 SerialConnection class doesn't support random ports

closed-rejected
None
5
2012-08-11
2012-08-11
Julie Haugh
No

The RXTX library has a known limitation where CommPortIdentifier does not find all available serial ports. In particular, it may miss serial ports on operating systems where the port name doesn't conform to RXTX's concept of a serial port name. This is particularly hard to deal with when trying to use PTYs for testing where RXTX does not enumerate PTYs.

The solution (IMHO) is to use the RXTXPort() constructor with the device name, then cast the result to the SerialPort() superclass.

Discussion

    • status: open --> closed-rejected
     
    • assigned_to: nobody --> wimpi