Blob Blame History Raw
From 850683db3beb92309b29f2afc1d3769abc7ac918 Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Wed, 25 Feb 2015 13:52:06 +0100
Subject: [PATCH] Add Arduino driver ttyACM + generic rxtxcomm as device
 candidates.

The Arduino ttyACM is documented as a possible device in the source.
Without the patch, rxtx does not work with Arduino devices

The source contains a "Linux-alltargets" configuration target which
contains this and some other less used devices. It could be argued
that this could be used nowadays, since the original reason not to use
it was the very large number of /dev/* nodes before udev reduced this
to something more sane. However, the status of this code is generally
questionable, at least some device names are probably out of date.

Instead the patch also adds a /dev/rxtxcomm* device. There is no driver
using this, but it can be used as a udev link for any device not
otherwise supported.
---
 src/gnu/io/RXTXCommDriver.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gnu/io/RXTXCommDriver.java b/src/gnu/io/RXTXCommDriver.java
index 33c0882..23b274a 100644
--- a/src/gnu/io/RXTXCommDriver.java
+++ b/src/gnu/io/RXTXCommDriver.java
@@ -577,6 +577,8 @@ public class RXTXCommDriver implements CommDriver
 						"ttyS", // linux Serial Ports
 						"ttySA", // for the IPAQs
 						"ttyUSB", // for USB frobs
+                                                "ttyACM", // Arduino driver
+                                                "rxtxcomm", // Generic udev link target
 						"rfcomm",       // bluetooth serial device
 						"ttyircomm", // linux IrCommdevices (IrDA serial emu)
 						};
-- 
2.1.0