From owner-freebsd-usb@freebsd.org Sun Jul 24 13:58:56 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 21C61BA325C for ; Sun, 24 Jul 2016 13:58:56 +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 D773612DE for ; Sun, 24 Jul 2016 13:58:55 +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 DD302188C4E for ; Sun, 24 Jul 2016 08:58:52 -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> <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> <1469306951.84197.31.camel@freebsd.org> <20160724080330.3a27e875.ohartman@zedat.fu-berlin.de> <20160724083859.4c0dd392@ernst.home> <20160724105134.184f0b7f.ohartman@zedat.fu-berlin.de> From: Karl Denninger Message-ID: Date: Sun, 24 Jul 2016 08:58:48 -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: <20160724105134.184f0b7f.ohartman@zedat.fu-berlin.de> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms050601030606060402080705" 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: Sun, 24 Jul 2016 13:58:56 -0000 This is a cryptographically signed message in MIME format. --------------ms050601030606060402080705 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 7/24/2016 03:51, O. Hartmann wrote: > Am Sun, 24 Jul 2016 08:38:59 +0200 > Gary Jennejohn schrieb: > >> On Sun, 24 Jul 2016 08:03:30 +0200 >> "O. Hartmann" wrote: >> >>> Am Sat, 23 Jul 2016 14:49:11 -0600 >>> Ian Lepore schrieb: >>> =20 >>>> On Sat, 2016-07-23 at 22:04 +0200, O. Hartmann wrote: =20 >>>>> Am Fri, 22 Jul 2016 10:52:54 -0600 >>>>> Ian Lepore schrieb: >>>>> =20 >>>>>> On Fri, 2016-07-22 at 18:35 +0200, O. Hartmann wrote: =20 >>>>>>> For temperature monitoring, we have a bunch of Digi Watchport/T >>>>>>> sensors:=20 >>>>>>> >>>>>>> http://ftp1.digi.com/support/documentation/90000406_H.pdf >>>>>>> >>>>>>> =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). >>>>>> >>>>>> 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 hav= e >>>>>> the >>>>>> ugensa driver attach to that device, for quick testing of this sor= t >>>>>> of >>>>>> thing. >>>>>> >>>>>> -- Ian =20 >>>>> 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 =20 >>>> 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 =20 >>> man ugensa doesn't exist! As I wrote earlier, I tried everything to l= oad what I could >>> find. It seems, the patch and the hint about ugensa.ko did the magic = ;-) Thank you >>> very much! Could the patch be made permanent to FreeBSD CURRENT? >>> >>> And also important: where is the man page for ugensa? Can the the mod= ule be compiled >>> staitcally into the kernel or are there pitfalls? >>> =20 >> Even the most complete man page found in the internet, the one from >> Dragonfly, doesn't list your Digi International device as being one >> of those supported. > Yes. That is a pity. But Linux seems to operate this serial device. I h= ave to check next > time I get hands on a Linux box, what driver is attached to the sensor.= > >> Still, having the man page under FreeBSD would at least provide a hint= >> that the driver even exists. > Agreed. > >> I added device ugensa to my config file and the kernel was generated >> without an error. > Me, too. > >>> root@localhost: [src] kldload ugensa >>> >>> ugen2.7: at usbus2 >>> ugensa0: on us= bus2 >>> ugensa0: Found 1 interfaces. >>> root@thor: [src] man ugensa >>> No manual entry for ugensa >>> root@localhost: [src] ll /dev/cuaU0* >>> 203 crw-rw---- 1 uucp dialer - 0xcb Jul 24 07:51 /dev/cuaU0 >>> 204 crw-rw---- 1 uucp dialer - 0xcc Jul 24 07:51 /dev/cuaU0.init >>> 205 crw-rw---- 1 uucp dialer - 0xcd Jul 24 07:51 /dev/cuaU0.lock >>> >>> >>> I'll try now to get informations out of the device, I let you know wh= ether that is a >>> success. But anyway, again, thank you for helping making the device v= isible and >>> available.=20 > > I had no luck with retrieving informations out of the device by the Per= l5 script provided > by Nagios.org. A prerequisite for the Perl script is the FreeBSD port > > comms/p5-Device-SerialPort > > Patching the script is trivial, but I do not know whether the backend, > comms/p5-Device-SerialPort, works a sexpected. So the first, dirty, tri= al ended up in > nothing - since the information gained from the sensor is an empty stri= ng/nothing. > > I'm not familiar with serial devices, so far, so probably there is some= thing trivial > missing. I looked them up and those little SOBs are expensive! I was considering grabbing one just to play with, but not at that price :) You should be able to "cu" to the port and send the ASCII command it wants to provide a reading; that would verify it is working. --=20 Karl Denninger karl@denninger.net /The Market Ticker/ /[S/MIME encrypted email preferred]/ --------------ms050601030606060402080705 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 MAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM TEMxHjAcBgNVBAMTFUthcmwgRGVubmluZ2VyIChPQ1NQKTCCAiIwDQYJKoZIhvcNAQEBBQAD ggIPADCCAgoCggIBALmEWPhAdphrWd4K5VTvE5pxL3blRQPyGF3ApjUjgtavqU1Y8pbI3Byg XDj2/Uz9Si8XVj/kNbKEjkRh5SsNvx3Fc0oQ1uVjyCq7zC/kctF7yLzQbvWnU4grAPZ3IuAp 3/fFxIVaXpxEdKmyZAVDhk9az+IgHH43rdJRIMzxJ5vqQMb+n2EjadVqiGPbtG9aZEImlq7f IYDTnKyToi23PAnkPwwT+q1IkI2DTvf2jzWrhLR5DTX0fUYC0nxlHWbjgpiapyJWtR7K2YQO aevQb/3vN9gSojT2h+cBem7QIj6U69rEYcEDvPyCMXEV9VcXdcmW42LSRsPvZcBHFkWAJqMZ Myiz4kumaP+s+cIDaXitR/szoqDKGSHM4CPAZV9Yh8asvxQL5uDxz5wvLPgS5yS8K/o7zDR5 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