From owner-freebsd-usb@freebsd.org Tue Aug 9 15:48:19 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 5A8C1BB2604 for ; Tue, 9 Aug 2016 15:48:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29D7A13A0 for ; Tue, 9 Aug 2016 15:48:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x234.google.com with SMTP id f6so18035692ith.0 for ; Tue, 09 Aug 2016 08:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5MGkVEx9p7NA/l/gDnUaneCK4+h9+6TR/zpl+ohvmrQ=; b=GdqNSQ6Peh2pQej68h1OVhiv7drqPoS1jxfuHdKuWKeiDnYMBoD3WY/BrlrwmxLR18 6zfQwPK6h0uOkzD/KU3lq17R66YLHoguQPcLQ/ShVPWgsS0M0Cn1cr2RXW3E+mQZO8QC ZhOH/Gs4Bz8CwqtOjuf2lFQj04eAZstsMRryvPVuIirqk+BhkKBLW/PzLeOolgbtsERU cngC3UW6+rpSKStDFmPosmZE/ENTkC7Li3GHbJwI/dhbrdTCX+i4cWwPp9PGLpzd9jXo YL5056Wml8LOORrHae81gC0deS2ChrEavm0IbY2N0H65cBe4Fbkh0QUaFQeg5pBArA9b Y2Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5MGkVEx9p7NA/l/gDnUaneCK4+h9+6TR/zpl+ohvmrQ=; b=DDJS4GNkxhQFjxDf2K8Z1l9/JOqIUsMIbHfwzyiIObci3nSUXV+D3D4qJoqdhs2/PU J2uNsA8QL9lBAno9Gb4qZ2bn3LwG6vLB6QgndQe926JWHdLq/YRAgIke9kHwgQnpH8gb ffqIQOxACptDnmPe0TPczKyLcde/xfcmtnH0snF6XXDV0TByEcWcO/7A7Acly9C3JpQu +8FRamKEn55ZeIwLUIt8/e+ufmGVMdm7JFLLEoMppIO7BhMuo6fZuRdPsAF+pxQoFQDg MWoMh+NNE5wlZyQ4qUbkLk6g42YZAnFxWg8R8XEV5Par0PnoYVV9wXARAchqqafXvm4k lpaQ== X-Gm-Message-State: AEkoouvk0PWBdVR6IhwffQYn3MEy8e+8HDPhU7QVIXUjTUPYpKg2TDzgquoGzdCiWEI3v/YxtKx+yj8kLlpmcw== X-Received: by 10.36.208.143 with SMTP id m137mr26532992itg.32.1470757698311; Tue, 09 Aug 2016 08:48:18 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.36.65.105 with HTTP; Tue, 9 Aug 2016 08:48:17 -0700 (PDT) X-Originating-IP: [69.53.245.200] 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> <1469387555.84197.48.camel@freebsd.org> <20160809083654.25d2ac67@freyja.zeit4.iv.bundesimmobilien.de> <57A9DA8F.5000603@denninger.net> <20160809141054.GA47566@in-addr.com> From: Warner Losh Date: Tue, 9 Aug 2016 09:48:17 -0600 X-Google-Sender-Auth: BM-iGJzsgVLS0PPcu9mHJ5fkXMg Message-ID: Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU To: Gary Palmer Cc: "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 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: Tue, 09 Aug 2016 15:48:19 -0000 On Tue, Aug 9, 2016 at 8:10 AM, 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 wrote: >> > >> >> On Sun, 2016-07-24 at 12:52 -0600, Warner Losh wrote: >> >>> On Sun, Jul 24, 2016 at 12:42 PM, Kevin Oberman >> >>> wrote: >> >>>> 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. >> >>> I tried to automate discovery of these things. However, the only way >> >>> 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 they >> >>> are >> >>> most (but not all) based on the standard plus extra bits. >> >>> >> >>> Warner >> >> 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 strictly 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 MCU >> >> interface, a multichannel DMA controller, and apparently even has the >> >> ability to download your own 8052-compatible microcontroller code into >> >> 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, prefereably 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 tempting ... >> > _______________________________________________ >> > 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. 18B20 doesn't support humidity. The kernel also supports reading it periodically and reporting the results via a sysctl now that we have onewire support in the kernel. This has worked better for me than reading them from Python... > 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 > haven't tried either of them personally. Those work, but same here. I've not tried them personally. Warner