Date: Tue, 9 Aug 2016 09:19:48 -0500 From: Karl Denninger <karl@denninger.net> To: freebsd-usb@freebsd.org Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU Message-ID: <57A9E684.3020405@denninger.net> In-Reply-To: <20160809141054.GA47566@in-addr.com> References: <1469306951.84197.31.camel@freebsd.org> <20160724080330.3a27e875.ohartman@zedat.fu-berlin.de> <20160724083859.4c0dd392@ernst.home> <20160724105134.184f0b7f.ohartman@zedat.fu-berlin.de> <1469379334.84197.40.camel@freebsd.org> <CAN6yY1tUg0GeNn6hkO9NPKyKO2z58erzOYT3PkYSQ1yiX0t0Gg@mail.gmail.com> <CANCZdfoVnZHmmvNcrJgaZ2k8o6e150LGFa0svufgodn6jeJu0Q@mail.gmail.com> <1469387555.84197.48.camel@freebsd.org> <20160809083654.25d2ac67@freyja.zeit4.iv.bundesimmobilien.de> <57A9DA8F.5000603@denninger.net> <20160809141054.GA47566@in-addr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format. --------------ms000708030900080900090903 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 8/9/2016 09:10, Gary Palmer wrote: > On Tue, Aug 09, 2016 at 08:28:47AM -0500, Karl Denninger wrote: >> On 8/9/2016 01:36, O. Hartmann wrote: >>> On Sun, 24 Jul 2016 13:12:35 -0600 >>> Ian Lepore <ian@freebsd.org> wrote: >>> >>>> On Sun, 2016-07-24 at 12:52 -0600, Warner Losh wrote: >>>>> On Sun, Jul 24, 2016 at 12:42 PM, Kevin Oberman <rkoberman@gmail.co= m> >>>>> wrote: =20 >>>>>> There are several different USB serial drivers. Off-hand I see >>>>>> ubser, ubsa, >>>>>> uchcom, ucom, ucycom, uftdi, ubgensa, umcs, umct, umoscom, uplcom,= >>>>>> usb_serial, uslcom, and uvscom. Whether any of these will support >>>>>> the TI >>>>>> chip, I can't say. Most have man pages, but a few, as has been >>>>>> noted, are >>>>>> lacking one. =20 >>>>> I tried to automate discovery of these things. However, the only wa= y >>>>> you can really know for sure about the TI chip is to read it's >>>>> datasheet >>>>> and compare that with extant drivers. It's actually easier than it >>>>> sounds. >>>>> >>>>> I've often thought of unification of the TTY USB drivers, since the= y >>>>> are >>>>> most (but not all) based on the standard plus extra bits. >>>>> >>>>> Warner =20 >>>> To reiterate: we do not have a driver for TI 5052 chips. >>>> >>>> It's not much like other usb-serial chips. In fact it's not strictl= y a >>>> usb-serial chip, it's a multifunction chip that includes a software >>>> -controllable usb hub, 2 serial ports, gpio, an i2c bus master, an M= CU >>>> interface, a multichannel DMA controller, and apparently even has th= e >>>> ability to download your own 8052-compatible microcontroller code in= to >>>> the 5052 and have it take over from the built-in rom code. >>>> >>>> It would be reasonable enough to write a driver that initially >>>> supported only the uart part of the chip. >>>> >>>> -- Ian >>> Now, that I know that I can not use any of our plenty Digi Watchport/= T sensors >>> with FreeBSD, I'm looking for a cheap alternative of sensor, preferea= bly being >>> capable of taking temperature and humidity and being accessed as easy= as a >>> serial terminal - as the Digi Watchport/T does with Linux. >>> >>> I still have a "resistance" changing the OS of our infrastructure to = Linux due >>> to ZFS, but the very good support of drivers with the Linux OS is tem= pting ... >>> _______________________________________________ >>> freebsd-usb@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-usb >>> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org= " >> Does hardware platform matter? If not a very inexpensive alternative >> set is found on Adafruit's site for the Raspberry Pi and FreeBSD can >> easily talk to either some of the options directly or a cheap ($10) >> 4-channel 12-bit analog board. I am using this approach with the Pi2 = as >> a pool controller with multiple temperature inputs and drive (through = a >> relay board) to handle both the VFD-controlled pump motor and valves, >> plus spa heater. > If you go down that path the DS 18B20 is a digital temperature probe > that can be tied to the GPIO pins on a PI and read from python > quite easily. Don't think it does humidity, but as the temp. probes > have a hardware address you can hook multiple up to the same GPIO pin. > > If you want humidity also then there is the DHT22 or DHT11, both > of which can be tied to the PI but need a GPIO pin per sensor. I=20 > haven't tried either of them personally. > > Regards, > > Gary > _______________________________________________ > freebsd-usb@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" The code to read the Adafruit 12 and 16-bit I2c ADCs is trivial (about a dozen lines of "C" code) and would allow the use of very inexpensive (a buck each!) transistor-sized temperature sensors (such as the TMP36) Here's Adafruit's i2c temp/humidity options -- any of these should be trivially easy to interface as with the ADC code on the Pi2. One of these (pick based on your mounting and accuracy requirements) + FreeBSD + RPI2 + a bit of code and you're in business. https://www.adafruit.com/products/165?q=3Di2c%20humidity& --=20 Karl Denninger karl@denninger.net /The Market Ticker/ --------------ms000708030900080900090903 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/kNbKEjkRh5SsN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eqnbSF4phxaK8sY+X37mN5Wj2lMKYbB/0 brdR3cVOKwHrqprtB+vfVnrUdR/EsueZJ/VqEhdA/VLEhdwTADBZTCBu+y/VA5NGawwtP+cL NYYT4xE9hYbUkbhdZ/JxGYb/5b5LonboZP+NDmRfGGbY9Sn/P6UT/YYKRddOI0o+n7arvuIm Rs6xL7pRNGTNyaLVIoIq9tG8JHYAAAAAAAA= --------------ms000708030900080900090903--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57A9E684.3020405>