Digi Watchport/T temperature sensor as /dev/ttyU
Karl Denninger
karl at denninger.net
Fri Jul 22 17:16:12 UTC 2016
On 7/22/2016 11:52, Ian Lepore wrote:
> 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
>
What do you think about my screwing with the driver to provide a
modest-sized dynamic stack that would use the sysctl interface to
add/delete vendor/product pairs for this purpose? With a modest but
reasonable limit this then becomes something that can be used in a
production environment since you probably would have a modest number of
these devices on USB for any particular individual system and now you
don't have to futz with the kernel to add/remove them.
I implemented an application read/write piece to a ugen-attached device
but it would have been nice to be able to poke this instead via such a
"hook"; if I write it and submit it as a PR what do people think about
its odds of being committed?
--
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2996 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20160722/f1295a5c/attachment.bin>
More information about the freebsd-usb
mailing list