From owner-freebsd-current@freebsd.org Fri Jul 22 16:35:42 2016 Return-Path: Delivered-To: freebsd-current@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-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current 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--