From owner-freebsd-current@freebsd.org Fri Jul 22 16:52:57 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 0FD5EBA16A7 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 E2B321A23 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-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: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--