Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37919703
en ru br
ALT Linux repos
S:2.2-alt3_0.24.20100211jpp11

Group :: System/Libraries
RPM: rxtx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: rxtx-2.2-Add-Arduino-driver-ttyACM-rxtxcomm-as-device.patch
Download


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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin