From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 2707 invoked from network); 25 Sep 2023 09:58:58 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 25 Sep 2023 09:58:58 -0000 Received: from naffnet.org.uk ([62.30.227.12]) by 9front; Mon Sep 25 05:55:30 -0400 2023 Received: from site.naffnet.org.uk (localhost [127.0.0.1]) by naffnet.org.uk (Postfix) with ESMTPS id 3DE645FAB6 for <9front@9front.org>; Mon, 25 Sep 2023 10:55:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=naffnet.org.uk; h= Message-ID:From:Subject:To:MIME-Version:Content-Type; s=adsp; bh=GjAwnSDDVAj2k07gf2JnadNegFg=; b=kovofXXAp7WGdCwhiL0pYF6mSxg8 mBxkBQ1Rqv2AbnMvgAiuMiDl4Ax/0oh5n+h2a5vZ6DJq9Q1CRb7n4LR+tUfXdwt5 b3h24K/Wha8b/+Tn29yDjnLhqSUOKDVo7mzeAA7ZGvSALQCFFuBm4oHgTmNKrW1T maLu1rAdrYpODrk= ARC-Seal: i=1; a=rsa-sha256; cv=none; d=naffnet.org.uk; s=adsp; t= 1695635728; b=gyb+oVVdTpRtRveDgpIlnCYjnDLA6yuqrmvw5d9kUuhn1PUrdn UkpW13QniGUps9qM0t4GUw5vYIbx0F+S7J2Q4oOLmKU4TOlxEhmcvtnXgiJF9+WF glEwNpfVbHoDE8wFEo3OistLtNW3y8YZhDSlNT5mys1iRC9jRRPtzv3Sk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= naffnet.org.uk; h=from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=adsp; bh=VELgm0nYWl9X 3xQPIcqPb8RqdhmtcoO/IMvrtoM0vcs=; b=S3p+uiIvbuU9FrGKFDaa5gCs8pRk 3nxWW7cPrtZDQhWhL5hm/p28RVTj8ZDnfKs8y3qP3qZiEZZ58TYHo4yWNKrL7OCJ 8+tYDPib7wDoMNwr7yAUue+uOOyy3X6zwWNNsY7lndvjHAtXExDt8/ShcHNKneKU du7zhxwkikpl5Qo= ARC-Authentication-Results: i=1; naffnet.org.uk; dkim=pass; spf=pass smtp.mailfrom=naffnet.org.uk (connected ip 192.168.0.7); dmarc=none X-Assp-Version: 2.8.1(23131) on naffnet.org.uk X-Assp-ID: naffnet.org.uk m1-35728-13997 X-Assp-Session: 7F88C7232670 (mail 1) X-Assp-Envelope-From: dave@naffnet.org.uk X-Assp-Intended-For: 9front@9front.org X-Assp-Client-TLS: yes X-Assp-Server-TLS: yes Received: from unknown ([192.168.0.7] helo=site.naffnet.org.uk) by naffnet.org.uk with SMTPS(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.8.1); 25 Sep 2023 10:55:27 +0100 Received: from DaveLaptop (Dave-Laptop.naffnet.org.uk [192.168.1.207]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by site.naffnet.org.uk (Postfix) with ESMTPSA id 89D10C1288 for <9front@9front.org>; Mon, 25 Sep 2023 10:55:27 +0100 (BST) From: "Dave Woodman" To: <9front@9front.org> Date: Mon, 25 Sep 2023 10:55:27 +0100 Message-ID: <000501d9ef96$69571d70$3c055850$@naffnet.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdnvlRWAYbcL0XqvTH+xz1IHNEL59w== Content-Language: en-gb List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: leveraged factory rich-client SVG strategy STM interface Subject: [9front] Patch for nusbrc to recognise CH340 Reply-To: 9front@9front.org Precedence: bulk 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