* [9front] Patch for nusbrc to recognise CH340
@ 2023-09-25 9:55 Dave Woodman
2023-09-25 10:20 ` Dave Woodman
0 siblings, 1 reply; 2+ messages in thread
From: Dave Woodman @ 2023-09-25 9:55 UTC (permalink / raw)
To: 9front
Hi,
I have been successfully playing with some boards containing the CH340 USB
to serial converter (official Vendor ID 1A86 / Device ID 7523), and would
like to propose the following parch to /rc/bin/nusbrc to enable recognition
of same:
diff dbba80166456ce2797f776646595781d50f0145e uncommitted
--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -30,7 +30,7 @@
nusb/ptp $id
case *
switch($2$3){
- case 12d11003 0403* # HUAWEI, FTDI
+ case 12d11003 0403* 1a867523 # HUAWEI, FTDI, CH340
nusb/serial $id
case 59862113
nusb/cam $id
To accompany the above, a minor alteration to the nusb (4) man page:
diff dbba80166456ce2797f776646595781d50f0145e uncommitted
--- a/sys/man/4/nusb
+++ b/sys/man/4/nusb
@@ -331,8 +331,8 @@
.PP
USB ATA storage devices are not supported.
.PP
-The serial driver works only for the Prolific chip and Ftdi,
-and control of the
+The serial driver works only for the Prolific chip, Ftdi and
+and the CH340 - control of the
.B dcd
and
.B dsr
Regards,
Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [9front] Patch for nusbrc to recognise CH340
2023-09-25 9:55 [9front] Patch for nusbrc to recognise CH340 Dave Woodman
@ 2023-09-25 10:20 ` Dave Woodman
0 siblings, 0 replies; 2+ messages in thread
From: Dave Woodman @ 2023-09-25 10:20 UTC (permalink / raw)
To: 9front
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
I need a better mail client - one line of the patch appears to have been
split (see the line +CH340).
For the sake of accuracy I have attached the patches, and will ensure that
this does not happen again.
Dave.
[-- Attachment #2: nusbrc.diff --]
[-- Type: application/octet-stream, Size: 324 bytes --]
diff dbba80166456ce2797f776646595781d50f0145e uncommitted
--- a/rc/bin/nusbrc
+++ b/rc/bin/nusbrc
@@ -30,7 +30,7 @@
nusb/ptp $id
case *
switch($2$3){
- case 12d11003 0403* # HUAWEI, FTDI
+ case 12d11003 0403* 1a867523 # HUAWEI, FTDI, CH340
nusb/serial $id
case 59862113
nusb/cam $id
[-- Attachment #3: nusbMan.diff --]
[-- Type: application/octet-stream, Size: 385 bytes --]
diff dbba80166456ce2797f776646595781d50f0145e uncommitted
--- a/sys/man/4/nusb
+++ b/sys/man/4/nusb
@@ -331,8 +331,8 @@
.PP
USB ATA storage devices are not supported.
.PP
-The serial driver works only for the Prolific chip and Ftdi,
-and control of the
+The serial driver works only for the Prolific chip, Ftdi and
+and the CH340 - control of the
.B dcd
and
.B dsr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-25 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 9:55 [9front] Patch for nusbrc to recognise CH340 Dave Woodman
2023-09-25 10:20 ` Dave Woodman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).