File: ttyACM_port.patch

package info (click to toggle)
rxtx 2.2pre2-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,764 kB
  • sloc: ansic: 14,347; sh: 10,742; java: 7,629; cpp: 2,717; makefile: 150
file content (28 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Allows for the enumeration of many additional ports, including ttyACM for Arduino Unos
Author: Scott Howard <showard314@gmail.com>

Index: rxtx/src/gnu/io/RXTXCommDriver.java
===================================================================
--- rxtx.orig/src/gnu/io/RXTXCommDriver.java	2010-10-04 23:14:47.236148507 -0400
+++ rxtx/src/gnu/io/RXTXCommDriver.java	2010-10-04 23:18:56.976108303 -0400
@@ -574,20 +574,7 @@
 					if(osName.equals("Linux"))
 					{
 						String[] Temp = {
-						"ttyS", // linux Serial Ports
 						"ttySA", // for the IPAQs
-						"ttyUSB", // for USB frobs
-						"rfcomm",       // bluetooth serial device
-						"ttyircomm", // linux IrCommdevices (IrDA serial emu)
-						};
-						CandidatePortPrefixes=Temp;
-					}
-					else if(osName.equals("Linux-all-ports"))
-					{
-					/* if you want to enumerate all ports ~5000
-					   possible, then replace the above with this
-					*/
-						String[] Temp = {
 						"comx",      // linux COMMX synchronous serial card
 						"holter",    // custom card for heart monitoring
 						"modem",     // linux symbolic link to modem.