Bug 127555 - comms/rxtx : USB serial device can not use
Summary: comms/rxtx : USB serial device can not use
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-23 07:50 UTC by Takeshi MUTOH
Modified: 2008-11-14 12:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takeshi MUTOH 2008-09-23 07:50:01 UTC
The comms/rxtx which is serial and parallel I/O libraries for Java
don't know "/dev/ttyU*" are valid serial devices, so we can not use
USB serial using this library.

Fix: Apply patch below:



I am not familier about FreeBSD USB serials, so I don't know this
patch is enough. 
For example, "/dev/cuaU*" devices is not support in this patch.

If more device letter is needed, please comment.
--
Takeshi MUTOH	<mutoh@openedu.org>--VPWjdqC5T9dt9ngD6NUSmNjonVM0fV3kOlvCInXmBr25kosV
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -ruN rxtx.org/files/patch-RXTXCommDriver.java rxtx/files/patch-RXTXCommDriver.java
--- rxtx.org/files/patch-RXTXCommDriver.java	1970-01-01 09:00:00.000000000 +0900
+++ rxtx/files/patch-RXTXCommDriver.java	2008-09-22 20:23:05.000000000 +0900
@@ -0,0 +1,10 @@
+--- src/RXTXCommDriver.java.org	2008-09-22 20:39:29.000000000 +0900
++++ src/RXTXCommDriver.java	2008-09-22 20:40:08.000000000 +0900
+@@ -591,6 +591,7 @@
+ 							"ttyd",    //general purpose serial ports
+ 							"cuaa",    //dialout serial ports
+ 							"ttyA",    //Specialix SI/XIO dialin ports
++							"ttyU",    //USB serial ports
+ 							"cuaA",    //Specialix SI/XIO dialout ports
+ 							"ttyD",    //Digiboard - 16 dialin ports
+ 							"cuaD",    //Digiboard - 16 dialout ports
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2008-11-14 12:19:55 UTC
State Changed
From-To: open->closed

Committed, thanks! I have added cuaU too.
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-11-14 12:32:05 UTC
pav         2008-11-14 12:31:51 UTC

  FreeBSD ports repository

  Modified files:
    comms/rxtx           Makefile 
  Added files:
    comms/rxtx/files     patch-RXTXCommDriver.java 
  Log:
  - Recognize USB serial ports
  
  PR:             ports/127555
  Submitted by:   Takeshi MUTOH <mutoh@openedu.org>
  
  Revision  Changes    Path
  1.19      +1 -1      ports/comms/rxtx/Makefile
  1.1       +11 -0     ports/comms/rxtx/files/patch-RXTXCommDriver.java (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"