From owner-freebsd-usb@freebsd.org Mon Jul 18 16:40:38 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02552B9C842 for ; Mon, 18 Jul 2016 16:40:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE3F116E6 for ; Mon, 18 Jul 2016 16:40:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6IGeb85029325 for ; Mon, 18 Jul 2016 16:40:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Mon, 18 Jul 2016 16:40:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dwvcfii@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 16:40:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 Bug ID: 211205 Summary: USB_ERR_TIMEOUT errors after upgrade from 10.2 Product: Base System Version: 10.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: dwvcfii@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 172668 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172668&action= =3Dedit dmesg output from Intel NUC running 10.3-RELEASE Had 10.2-RELEASE running stable on an Intel NUC (i5) for the past six month= s.=20 Decided to upgrade to 10.3-RELEASE using freebsd-update. On the first boot with the new kernel I began experiencing problems with the USB subsystem -- specifically, neither my USB keyboard nor USB mouse work anymore. Instead I get several warnings in the logs (and on the console): Jul 18 12:16:47 ren kernel: usbd_setup_device_desc: getting device descript= or at addr 1 failed, USB_ERR_TIMEOUT Jul 18 12:17:19 ren last message repeated 3 times Jul 18 12:17:30 ren kernel: usbd_setup_device_desc: getting device descript= or at addr 1 failed, USB_ERR_TIMEOUT Jul 18 12:17:30 ren kernel: ugen0.2: at usbus0 (disconnected) Jul 18 12:17:30 ren kernel: uhub_reattach_port: could not allocate new devi= ce When I boot without keyboard and mouse the machine boots as quickly as it usually does and I see no obvious error messages. I completed the upgrade process by calling "freebsd-update install" again to install the userspace stuff. Rebooted. Did another fetch and install to m= ake sure I was up to date. I searched online for the problem and found this thread: https://lists.freebsd.org/pipermail/freebsd-current/2016-February/059767.ht= ml and tried the suggested solution (tweak to /boot/loader.conf). It had no effect, so I removed it. I have attached dmesg output of two boot cycles -- the first with the keybo= ard (and the errors), and the second without. In both cases, the XHCI and EHCI controllers appear to be recognized without error. usbconfig confirms: ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DHIGH (480= Mbps) pwr=3DSAVE (0mA) ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5= .0Gbps) pwr=3DSAVE (0mA) ugen1.2: at usbus1, cfg=3D0 md=3DHOST spd=3D= HIGH (480Mbps) pwr=3DSAVE (0mA) I want to emphasize that the keyboard and mouse are the same units as prior= to the upgrade and were working with 10.2 without issue so this isn't strictly= a hardware compatibility issue. Something changed in the 10.3 USB subsystem = that breaks select (low speed in this case) USB device instantiation. Note also that I am plugging the keyboard and mouse into the rear ports of = the NUC, which I believe are USB2 only. The Superspeed ports are on the front.= I tried plugging the keyboard into the superspeed ports and I have the same problem. The devices won't instantiate. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Jul 18 18:49:52 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E4F1B9D16C for ; Mon, 18 Jul 2016 18:49:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 617B516FA for ; Mon, 18 Jul 2016 18:49:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6IInpre053729 for ; Mon, 18 Jul 2016 18:49:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Mon, 18 Jul 2016 18:49:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 18:49:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #1 from Hans Petter Selasky --- Hi, If you copy sys/dev/usb/controller/xhci*.[ch] from 10.2 to 10.3 and build a= new kernel - does the problem go away? --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Jul 18 19:48:07 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC7C7B9D386 for ; Mon, 18 Jul 2016 19:48:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 94A5C1336 for ; Mon, 18 Jul 2016 19:48:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6IJm7O8009330 for ; Mon, 18 Jul 2016 19:48:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211205] USB_ERR_TIMEOUT errors after upgrade from 10.2 Date: Mon, 18 Jul 2016 19:48:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dwvcfii@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2016 19:48:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211205 --- Comment #2 from Doug --- Not sure I want to just blindly copy the entire 10.2 USB subsystem inside a 10.3 tree. Even if it works, it doesn't tell me much other than someone ho= sed the 10.3 USB subsystem....which is pretty much what I know already. This is not a hardware fault. Therefore it must be a software problem. In any case, the original 10.2 tree was deleted during the upgrade so I'd h= ave to seek out that source and build a custom 10.3 kernel with the USB subsyst= em replaced with 10.2 stuff. Not work I have time for at the moment, but I wi= ll put it on my list. I'd rather play around with debug level and attach the relevant logs if you= or someone else can provide guidance with respect to the debug level desired / required. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Jul 21 07:26:57 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02CD0B9ED0B for ; Thu, 21 Jul 2016 07:26:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E61911C23 for ; Thu, 21 Jul 2016 07:26:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u6L7QuWr031521 for ; Thu, 21 Jul 2016 07:26:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 211247] Tascam US-144mkii usb soundcard not installed Date: Thu, 21 Jul 2016 07:26:56 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: product assigned_to keywords bug_status bug_severity version cc component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 07:26:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211247 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Product|Community |Base System Assignee|irc@FreeBSD.org |freebsd-usb@FreeBSD.org Keywords| |feature, needs-patch Status|New |Open Severity|Affects Many People |Affects Some People Version|unspecified |CURRENT CC| |freebsd-usb@FreeBSD.org Component|IRC |usb --- Comment #1 from Kubilay Kocak --- Thank you for your report Carlos. Can you include (as attachments) the following please: * /var/run/dmesg.boot output * pciconf -lv output * devinfo -v --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-usb@freebsd.org Fri Jul 22 16:35:42 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E676BA1154; Fri, 22 Jul 2016 16:35:42 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E64481E64; Fri, 22 Jul 2016 16:35:41 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bQdQC-001TmU-Vt>; Fri, 22 Jul 2016 18:35:32 +0200 Received: from x4e34affa.dyn.telefonica.de ([78.52.175.250] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bQdQC-001OoI-Lz>; Fri, 22 Jul 2016 18:35:32 +0200 Date: Fri, 22 Jul 2016 18:35:56 +0200 From: "O. Hartmann" To: freebsd-usb@freebsd.org, FreeBSD CURRENT Subject: Digi Watchport/T temperature sensor as /dev/ttyU Message-ID: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/yU=6rfK1L/9sco8CZOexKVw"; protocol="application/pgp-signature" X-Originating-IP: 78.52.175.250 X-ZEDAT-Hint: A X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 16:35:42 -0000 --Sig_/yU=6rfK1L/9sco8CZOexKVw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable For temperature monitoring, we have a bunch of Digi Watchport/T sensors:=20 http://ftp1.digi.com/support/documentation/90000406_H.pdf They work well with CentOS 5/6 systems and there is also a Nagios plugin, w= ritten in Perl, which makes those sensors usable with Nagios/Icinga/Icinga2:=20 =20 https://exchange.nagios.org/directory/Plugins/System-Metrics/Environmental/= check_watchptTemp/details When attached to FreeBSD 12-CURRENT, the sensor is seen as a generic USB de= vice, for instance ugen2.7: at usbus2, cfg=3D0 md=3DHOST spd= =3DFULL (12Mbps) pwr=3DON (80mA) I tried to load any available USB serial port/adaptor driver available to m= ake this sensor attach as a ttyU? as it does in Linux (/dev/ttyUSB), but no luck so = far. I'm not familiar with serial consoles or the derial capabilities of FreeBSD, so i m= ight have overseen something essential. I'd like to access the sensor to retrieve tem= perature data, even if it is in a crude way. Poking around with USB, I found that the sens= or device does release some informations, so hopefully there is a way to make it look like= a tty, see my attempts to get some informations out of the device below. If someone has some help, hints or advice, I'd appreciate an email (please = CC me, I do not subscribe the QUESTION list). Thanks in advance, Oliver # usbconfig -u 2 -a 7 dump_device_desc ugen2.7: at usbus2, cfg=3D0 md=3DHOST spd= =3DFULL (12Mbps) pwr=3DON (80mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0110=20 bDeviceClass =3D 0x00ff bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x00ff=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x1608=20 idProduct =3D 0x0304=20 bcdDevice =3D 0x0100=20 iManufacturer =3D 0x0001 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 bNumConfigurations =3D 0x0001=20 # usbconfig -u 2 -a 7 dump_all_config_desc ugen2.7: at usbus2, cfg=3D0 md=3DHOST spd= =3DFULL (12Mbps) pwr=3DON (80mA) Configuration index 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0002=20 wTotalLength =3D 0x0027=20 bNumInterfaces =3D 0x0001=20 bConfigurationValue =3D 0x0001=20 iConfiguration =3D 0x0000 bmAttributes =3D 0x00a0=20 bMaxPower =3D 0x0028=20 Interface 0 bLength =3D 0x0009=20 bDescriptorType =3D 0x0004=20 bInterfaceNumber =3D 0x0000=20 bAlternateSetting =3D 0x0000=20 bNumEndpoints =3D 0x0003=20 bInterfaceClass =3D 0x00ff bInterfaceSubClass =3D 0x0000=20 bInterfaceProtocol =3D 0x00ff=20 iInterface =3D 0x0000 Endpoint 0 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0081 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 1 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0001 bmAttributes =3D 0x0002 wMaxPacketSize =3D 0x0040=20 bInterval =3D 0x0000=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 Endpoint 2 bLength =3D 0x0007=20 bDescriptorType =3D 0x0005=20 bEndpointAddress =3D 0x0087 bmAttributes =3D 0x0003 wMaxPacketSize =3D 0x0008=20 bInterval =3D 0x0001=20 bRefresh =3D 0x0000=20 bSynchAddress =3D 0x0000=20 --Sig_/yU=6rfK1L/9sco8CZOexKVw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXkktsAAoJEOgBcD7A/5N8z34H/j3Zg8eBnzTHXMRX4sTeqQYd gojIaaCkejI5svgzT5UcpDBe7OVizZWNWtJCC+KkMoDKlKlfqMO85Qgd9rSVKw6c NGksLFPH5JHtxXQjYzEQBP4AI5ZifT99WIumyARHLS3okohi8mafyuzRIstetgTp c861/u6LjMGDXWgMl+c8E3Ds7khi2RQbl3wetPKhfAvziGlTZBIxEjre8rlgHD81 6y2mbTrkWVRpl4A1lHdHFhvb/zvXP8gJva2G/z8ao08rUFqJj1cL4t50/5ZQSaGY LUqi4LCRClVUDlM0Ex3BmhgGjeRvTg8tjQqbWZGeSxZykpqHG8DhLP8on2U9BkM= =D3zW -----END PGP SIGNATURE----- --Sig_/yU=6rfK1L/9sco8CZOexKVw-- From owner-freebsd-usb@freebsd.org Fri Jul 22 16:52:57 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F6C2BA16A6 for ; Fri, 22 Jul 2016 16:52:57 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2B8D1A24 for ; Fri, 22 Jul 2016 16:52:56 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: e2421fc6-502c-11e6-8929-8ded99d5e9d7 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound2.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Fri, 22 Jul 2016 16:53:58 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u6MGqsnB009175; Fri, 22 Jul 2016 10:52:54 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1469206374.84197.14.camel@freebsd.org> Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU From: Ian Lepore To: "O. Hartmann" , freebsd-usb@freebsd.org, FreeBSD CURRENT Date: Fri, 22 Jul 2016 10:52:54 -0600 In-Reply-To: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> Content-Type: multipart/mixed; boundary="=-UMmVGZVU10LQFsSYFmHD" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 16:52:57 -0000 --=-UMmVGZVU10LQFsSYFmHD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: > For temperature monitoring, we have a bunch of Digi Watchport/T > sensors: > > http://ftp1.digi.com/support/documentation/90000406_H.pdf > > [...] I think the attached patch will make it show up as a ttyU*/cuaU* device for you. (You should probably use the /dev/cuaU* flavor, to avoid problems with tty layer and modem control signals). I keep wishing we had a mechanism, like a sysctl that could be set or something, that would let you supply a vendor/product pair and have the ugensa driver attach to that device, for quick testing of this sort of thing. -- Ian --=-UMmVGZVU10LQFsSYFmHD Content-Disposition: inline; filename="watchportt.diff" Content-Type: text/x-patch; name="watchportt.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit Index: sys/dev/usb/serial/ugensa.c =================================================================== --- sys/dev/usb/serial/ugensa.c (revision 302505) +++ sys/dev/usb/serial/ugensa.c (working copy) @@ -158,6 +158,7 @@ static const STRUCT_USB_HOST_ID ugensa_devs[] = { {USB_VPI(USB_VENDOR_KYOCERA2, USB_PRODUCT_KYOCERA2_CDMA_MSM_K, 0)}, {USB_VPI(USB_VENDOR_HP, USB_PRODUCT_HP_49GPLUS, 0)}, {USB_VPI(USB_VENDOR_NOVATEL2, USB_PRODUCT_NOVATEL2_FLEXPACKGPS, 0)}, + {USB_VPI(USB_VENDOR_INSIDEOUT, USB_PRODUCT_INSIDEOUT_WATCHPORTT, 0)}, }; DRIVER_MODULE(ugensa, uhub, ugensa_driver, ugensa_devclass, NULL, 0); Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 302505) +++ sys/dev/usb/usbdevs (working copy) @@ -2456,6 +2456,7 @@ product INITIO INIC_1610P 0x1e40 USB to SATA Bridg /* Inside Out Networks products */ product INSIDEOUT EDGEPORT4 0x0001 EdgePort/4 serial ports +product INSIDEOUT WATCHPORTT 0x0304 WatchPort/T /* In-System products */ product INSYSTEM F5U002 0x0002 Parallel printer --=-UMmVGZVU10LQFsSYFmHD-- From owner-freebsd-usb@freebsd.org Fri Jul 22 17:16:12 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C599BA1C0A for ; Fri, 22 Jul 2016 17:16:12 +0000 (UTC) (envelope-from karl@denninger.net) Received: from mail.denninger.net (denninger.net [70.169.168.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0055B17DD for ; Fri, 22 Jul 2016 17:16:11 +0000 (UTC) (envelope-from karl@denninger.net) Received: from [192.168.1.40] (Karl-Desktop.Denninger.net [192.168.1.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.denninger.net (Postfix) with ESMTPSA id 964CE8D97F for ; Fri, 22 Jul 2016 12:16:09 -0500 (CDT) Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU To: freebsd-usb@freebsd.org References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> From: Karl Denninger Message-ID: <2e196c65-1de6-3627-9bd8-633763727a55@denninger.net> Date: Fri, 22 Jul 2016 12:16:07 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1469206374.84197.14.camel@freebsd.org> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms050707010908010705050204" X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 17:16:12 -0000 This is a cryptographically signed message in MIME format. --------------ms050707010908010705050204 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 7/22/2016 11:52, Ian Lepore wrote: > On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: >> For temperature monitoring, we have a bunch of Digi Watchport/T >> sensors:=20 >> >> http://ftp1.digi.com/support/documentation/90000406_H.pdf >> >> > [...] > > I think the attached patch will make it show up as a ttyU*/cuaU* device= > for you. (You should probably use the /dev/cuaU* flavor, to avoid > problems with tty layer and modem control signals). > > I keep wishing we had a mechanism, like a sysctl that could be set or > something, that would let you supply a vendor/product pair and have the= > ugensa driver attach to that device, for quick testing of this sort of > thing. > > -- Ian > What do you think about my screwing with the driver to provide a modest-sized dynamic stack that would use the sysctl interface to add/delete vendor/product pairs for this purpose? With a modest but reasonable limit this then becomes something that can be used in a production environment since you probably would have a modest number of these devices on USB for any particular individual system and now you don't have to futz with the kernel to add/remove them. I implemented an application read/write piece to a ugen-attached device but it would have been nice to be able to poke this instead via such a "hook"; if I write it and submit it as a PR what do people think about its odds of being committed? --=20 Karl Denninger karl@denninger.net /The Market Ticker/ /[S/MIME encrypted email preferred]/ --------------ms050707010908010705050204 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G A1UECBMHRmxvcmlkYTESMBAGA1UEBxMJTmljZXZpbGxlMRkwFwYDVQQKExBDdWRhIFN5c3Rl bXMgTExDMRwwGgYDVQQDExNDdWRhIFN5c3RlbXMgTExDIENBMSIwIAYJKoZIhvcNAQkBFhND dWRhIFN5c3RlbXMgTExDIENBMB4XDTE1MDQyMTAyMjE1OVoXDTIwMDQxOTAyMjE1OVowWjEL MAkGA1UEBhMCVV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r7JZmMIGa+FBfRRooG97panwZx/O0EqwcQc8qbjZgGANR05Fs/ 9mFQc0PD9vLFX/tQxOZfQhkXbRd1XxfGnCa/zSaK6qzQHMaEkDYyq29elZ8AKqITUdykQXHv QYxt2GAsoyPejhNSqfsHtP2lVMmm/zCWgCHWUiy2mZ/NwbCqI1SJMuMCHGvV4xAMSyPni2ai +pk1g4VXFp2M03P1zdRT1YTOWJjJ5Y7m1Kbz8UEQsTuVPte+7h65e2+ED+5vZWuy996D8dSA peOgEvBOZhAX0Bkruvqqio2hrifzn2IUcMofJN/v1K9G2BJhz69UQzUQnzu+hc9eN1MUZ3st qbp4jFNDiUojhlq+pRYofMyCD3KDrfcBg4UQD/pBTP2n0WMAauw9lfQ6EmuKhZ+XnsqF7uHK di5GQgrmatcUspDMEd7Zqt2JP10AAAAAAAA= --------------ms050707010908010705050204-- From owner-freebsd-usb@freebsd.org Fri Jul 22 18:00:52 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37288BA18CA for ; Fri, 22 Jul 2016 18:00:52 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01D8C18E9 for ; Fri, 22 Jul 2016 18:00:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 805711FE022; Fri, 22 Jul 2016 20:00:49 +0200 (CEST) Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU To: Karl Denninger , freebsd-usb@freebsd.org References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> <2e196c65-1de6-3627-9bd8-633763727a55@denninger.net> From: Hans Petter Selasky Message-ID: <58fa3f8a-cb10-7757-b5a8-862ae76770de@selasky.org> Date: Fri, 22 Jul 2016 20:04:54 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <2e196c65-1de6-3627-9bd8-633763727a55@denninger.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 18:00:52 -0000 On 07/22/16 19:16, Karl Denninger wrote: > What do you think about my screwing with the driver to provide a > modest-sized dynamic stack that would use the sysctl interface to > add/delete vendor/product pairs for this purpose? With a modest but > reasonable limit this then becomes something that can be used in a > production environment since you probably would have a modest number of > these devices on USB for any particular individual system and now you > don't have to futz with the kernel to add/remove them. > > I implemented an application read/write piece to a ugen-attached device > but it would have been nice to be able to poke this instead via such a > "hook"; if I write it and submit it as a PR what do people think about > its odds of being committed? Hi, It has been suggested to extend the quirks subsystem, to be able to add custom attach / detach rules to central USB device drivers. --HPS From owner-freebsd-usb@freebsd.org Sat Jul 23 04:52:53 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5593BBA0273; Sat, 23 Jul 2016 04:52:53 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id B9C5A1BC0; Sat, 23 Jul 2016 04:52:51 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp118-210-19-35.lns20.adl2.internode.on.net (HELO midget.dons.net.au) ([118.210.19.35]) by ipmail06.adl2.internode.on.net with ESMTP; 23 Jul 2016 14:17:39 +0930 Received: from [10.0.2.24] ([10.0.2.24]) (authenticated bits=0) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPSA id u6N4lbmD088884 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Jul 2016 14:17:37 +0930 (CST) (envelope-from darius@dons.net.au) Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "O'Connor, Daniel" In-Reply-To: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> Date: Sat, 23 Jul 2016 14:17:37 +0930 Cc: freebsd-usb@freebsd.org, FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <6117BF23-00D5-42D1-80E2-967621E81064@dons.net.au> References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> To: "O. Hartmann" X-Mailer: Apple Mail (2.3124) X-Spam-Score: -2.899 () ALL_TRUSTED,BAYES_00,URIBL_BLOCKED X-Scanned-By: MIMEDefang 2.75 on 10.0.2.1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2016 04:52:53 -0000 > On 23 Jul 2016, at 02:05, O. Hartmann = wrote: >=20 > I tried to load any available USB serial port/adaptor driver available = to make this > sensor attach as a ttyU? as it does in Linux (/dev/ttyUSB), but no = luck so far. I'm not > familiar with serial consoles or the derial capabilities of FreeBSD, = so i might have > overseen something essential. I'd like to access the sensor to = retrieve temperature data, > even if it is in a crude way. Poking around with USB, I found that the = sensor device does > release some informations, so hopefully there is a way to make it look = like a tty, see my > attempts to get some informations out of the device below. Do you know what driver picks it up in Linux? It's pretty likely you just need to add an entry in one of the existing = drivers to tell it about this device. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-usb@freebsd.org Sat Jul 23 20:04:12 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 370A2BA2D64; Sat, 23 Jul 2016 20:04:12 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBFC81DD2; Sat, 23 Jul 2016 20:04:11 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bR39X-001h2o-KT>; Sat, 23 Jul 2016 22:04:03 +0200 Received: from x5ce10335.dyn.telefonica.de ([92.225.3.53] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bR39X-003F1u-97>; Sat, 23 Jul 2016 22:04:03 +0200 Date: Sat, 23 Jul 2016 22:04:30 +0200 From: "O. Hartmann" To: Ian Lepore Cc: freebsd-usb@freebsd.org, FreeBSD CURRENT Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU Message-ID: <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> In-Reply-To: <1469206374.84197.14.camel@freebsd.org> References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> Organization: FU Berlin X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/IBmRcL4wiB=hvxacIjRHLde"; protocol="application/pgp-signature" X-Originating-IP: 92.225.3.53 X-ZEDAT-Hint: A X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2016 20:04:12 -0000 --Sig_/IBmRcL4wiB=hvxacIjRHLde Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 22 Jul 2016 10:52:54 -0600 Ian Lepore schrieb: > On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: > > For temperature monitoring, we have a bunch of Digi Watchport/T > > sensors:=20 > >=20 > > http://ftp1.digi.com/support/documentation/90000406_H.pdf > >=20 > > =20 > [...] >=20 > I think the attached patch will make it show up as a ttyU*/cuaU* device > for you. (You should probably use the /dev/cuaU* flavor, to avoid > problems with tty layer and modem control signals). >=20 > I keep wishing we had a mechanism, like a sysctl that could be set or > something, that would let you supply a vendor/product pair and have the > ugensa driver attach to that device, for quick testing of this sort of > thing. >=20 > -- Ian No, it doesn't change anything. I applied the patch to most recent CURRENT = and it is still the same. But thanks anyway. Kind regards, oh --Sig_/IBmRcL4wiB=hvxacIjRHLde Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXk83OAAoJEOgBcD7A/5N8fDEH/j6q8YZYfKessUcxUHdpkAbP CbfgY2tYOO0x0RzPxa21pghZ6IZIUbrUoZw6PovTH7pon0WCOudMOdHUTbF4azmf UyUKhQU8M0IslSZuw3DSHvmiMchSV35+lYMxXy3KK/o5fDnrLXTcrxoEB64qljKc TGAv9PkRJ99HzEE5BFuDn9rdzCs3KAloU1/VTa+LWNGGpoaL4fmB7+RsDTICVn1/ aHRsb1shTREHPO/wGIcPIu49izNbYg7Tedi+vr+tmrs5mykPluVm/Ub+k77rpZu9 h1qrPRp46y6eoaztyBGP/HFwZVgZ+Hhqny3sh+43aE3wPn2gNmSQuSiCIftb+ss= =HQcM -----END PGP SIGNATURE----- --Sig_/IBmRcL4wiB=hvxacIjRHLde-- From owner-freebsd-usb@freebsd.org Sat Jul 23 20:50:21 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE738BA2C0B for ; Sat, 23 Jul 2016 20:50:21 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75C721EC2 for ; Sat, 23 Jul 2016 20:50:21 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 0a9de0c8-5117-11e6-a0ff-e511cd071b9b X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 23 Jul 2016 20:50:08 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u6NKnCM9011992; Sat, 23 Jul 2016 14:49:12 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1469306951.84197.31.camel@freebsd.org> Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU From: Ian Lepore To: "O. Hartmann" Cc: freebsd-usb@freebsd.org, FreeBSD CURRENT Date: Sat, 23 Jul 2016 14:49:11 -0600 In-Reply-To: <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2016 20:50:21 -0000 On Sat, 2016-07-23 at 22:04 +0200, O. Hartmann wrote: > Am Fri, 22 Jul 2016 10:52:54 -0600 > Ian Lepore schrieb: > > > On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: > > > For temperature monitoring, we have a bunch of Digi Watchport/T > > > sensors: > > > > > > http://ftp1.digi.com/support/documentation/90000406_H.pdf > > > > > > > > [...] > > > > I think the attached patch will make it show up as a ttyU*/cuaU* > > device > > for you. (You should probably use the /dev/cuaU* flavor, to avoid > > problems with tty layer and modem control signals). > > > > I keep wishing we had a mechanism, like a sysctl that could be set > > or > > something, that would let you supply a vendor/product pair and have > > the > > ugensa driver attach to that device, for quick testing of this sort > > of > > thing. > > > > -- Ian > > No, it doesn't change anything. I applied the patch to most recent > CURRENT and it is > still the same. But thanks anyway. > > Kind regards, > > oh Oh, my bad, I forgot to mention: You'll have to manually "kldload ugensa" before plugging in the device (or load it from your loader.conf). When the change gets committed (assuming it works), the devd usb scripts will get regenerated, and that's what handles the auto-load of the driver. -- Ian