rodel-talampas / java-simple-serial-connector

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

Feature request: port enumeration on inux #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From what I can see, port enumeration seems to use dmesg to find serial ports, 
but the kernel ring buffer can be overwritten.  Can this mechanism be improved 
in some way?

Ideas:

1) explore /sys/class/tty and see if there's a way to figure out which ones of 
those are serial port

2) just make some assumptions based on the device name in /dev similar to what 
you do for SunOS.  If you're on linux, the serial ports are probably all 
/dev/ttyS* or /dev/ttyACM* or /dev/ttyUSB*

Original issue reported on code.google.com by cpigg...@gmail.com on 15 Jun 2012 at 12:56

GoogleCodeExporter commented 9 years ago
Fixed in 2.1.0 
https://github.com/scream3r/java-simple-serial-connector/commit/2819f0ceaf0ebaf3
7a3b35f64b9d1252f38f7104

Original comment by scream3r.org@gmail.com on 11 Apr 2013 at 5:53