rodel-talampas / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

Include usbmodem in list of serial ports #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attach Arduino UNO to computer
2. Call serial.getPortNames()

What is the expected output? What do you see instead?
device names which start with usbmodem should be included in the list, as well 
as usbserial, and serial

What version of the product are you using? On what operating system?
JSSC 0.9 on OSX 10.8.2

Please provide any additional information below.
in SerialPortList.java#getMacPortNames, the line that reads:

if(!file.isDirectory() && !file.isFile() && 
file.getName().matches("tty.(serial.*|usbserial.*)")){

should be

if(!file.isDirectory() && !file.isFile() && 
file.getName().matches("tty.(serial.*|usbserial.*|usbmodem.*)")){

I presume this applies to Linux as well, but am not in a position to test it at 
the moment

Original issue reported on code.google.com by jockmur...@gmail.com on 20 Jan 2013 at 12:48

GoogleCodeExporter commented 9 years ago
Fixed in 2.1.0

Original comment by scream3r.org@gmail.com on 11 Apr 2013 at 7:03