Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Aug 2016 15:38:42 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Ian Lepore <ian@freebsd.org>
Cc:        Warner Losh <imp@bsdimp.com>, Kevin Oberman <rkoberman@gmail.com>, FreeBSD CURRENT <freebsd-current@freebsd.org>, "freebsd-usb@FreeBSD.org\"  <freebsd-usb@freebsd.org>
Subject:   Re: Digi Watchport/T temperature sensor as /dev/ttyU
Message-ID:  <20160826153842.586a559b@freyja.zeit4.iv.bundesimmobilien.de>
In-Reply-To: <1469387555.84197.48.camel@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> <1469379334.84197.40.camel@freebsd.org> <CAN6yY1tUg0GeNn6hkO9NPKyKO2z58erzOYT3PkYSQ1yiX0t0Gg@mail.gmail.com> <CANCZdfoVnZHmmvNcrJgaZ2k8o6e150LGFa0svufgodn6jeJu0Q@mail.gmail.com> <1469387555.84197.48.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.com>
> > 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

It is me again.

I opened one of those digi watchports since I read that Ti has discontinued the
TI5052 chip and encourage developers to use a newer one. The print on the chip
itself residing on the PCB is TUSB3410I and this refers to a Ti TUSB3410 as it
is referred to by the TI 5052 page:
 
http://www.ti.com/product/TUSB3410

I never wrote a driver my own, so starting from scratch would be inefficient,
but for the long shot, it might be an idea.

Thanks anyway for the efford taken to look into it. I hope we will see at least
some manpage for ugensa.

I'm still looking for simple sensor devices which could be attached to FreeBSD
for monitoring temperature and/or humidity - as it was intended by using the
digi watchport. I'm now with an experimental piece of hardware with two DALLAS
DS18B20 temperature sensors.

It is a USB interface PCB with an AT90USB162 microcontroler chip.
Attached to a FreeBSD 12-CURRENT system, it reports itself as a UHID device.
there is also a software package available - for Windows and Linux, but it
doesn't work for FreeBSD, the package compiles and produces a cmdline binary,
but it fails reading the sensor data - the uhid driver seems to be unloaded
during the call. I have no skills in writing low-level USB software, so my
explanation is slopy, sorry. But there is hope I can use this one.

Kind regards,

Oliver 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160826153842.586a559b>