Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37728162
en ru br
Репозитории ALT
S:2.2-alt3_0.24.20100211jpp11
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: rxtx

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: rxtx-2.2-Add-Arduino-driver-ttyACM-rxtxcomm-as-device.patch
Скачать


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
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin