Fazecast / jSerialComm

Platform-independent serial port access for Java
GNU Lesser General Public License v3.0
1.34k stars 287 forks source link

SerialPort.getCommPorts() doesn't return list array in Linux(Linux Mint 17.1) #16

Closed moisesbenzan closed 9 years ago

moisesbenzan commented 9 years ago

The expected behavior would be a list returning at least one port (checked using another program), however, it returns empty. No stack trace, no errors, just an empty list.

hedgecrw commented 9 years ago

Thanks for the issue report. Could you give me a little more detail about the device you are trying to connect to. It is a USB device or an actual serial port? What is the native device descriptor it is using (on Linux, should be something like "/dev/tty****")? Are the other programs you are using able to actually open/read/write to the port, or just enumerate it? Thanks.

moisesbenzan commented 9 years ago

It is an arduino mega 2560 connected through USB serial port. In Linux it appears as /dev/ttyACM0 and yes, I can confirm it being existent as I am able to open, read and write from processing and from the arduino IDE. Thanks for the quick response, hope we get to a solution soon.

hedgecrw commented 9 years ago

Sorry for the very delayed response. Please try the following library version and comment back whether or not your device is now enumerating properly. Thanks!

https://dl.dropboxusercontent.com/u/3274122/jSerialComm-1.3.8.jar

moisesbenzan commented 9 years ago

Thanks for the support hedgecrw, the library now enumerates correctly. Great library with excellent support!

oneTallkid commented 8 years ago

I'm having the same issue, and the dropbox link 404's. I'm currently using JSerialComm 1.3.11. I'm Using Ubuntu14.04.4 LTS. Any thoughts? Thanks in advance/

marcuspag commented 8 years ago

Having the same issue. Where could I find any previous version, such as jSerialComm-1.3.8.jar? Thank you