Date: Fri, 26 Aug 2016 19:52:56 +0200 From: "O. Hartmann" <ohartman@zedat.fu-berlin.de> To: Hans Petter Selasky <hps@selasky.org> Cc: Ian Lepore <ian@freebsd.org>, 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: <20160826195256.67a63dbd.ohartman@zedat.fu-berlin.de> In-Reply-To: <36ca2c4c-bf9d-ed12-0b14-a2afc861c5f7@selasky.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> <20160826153842.586a559b@freyja.zeit4.iv.bundesimmobilien.de> <36ca2c4c-bf9d-ed12-0b14-a2afc861c5f7@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/rPUBVDOm7DXQbqCeJwoBe+7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 26 Aug 2016 15:53:55 +0200 Hans Petter Selasky <hps@selasky.org> schrieb: > On 08/26/16 15:38, O. Hartmann wrote: > > It is a USB interface PCB with an AT90USB162 microcontroler chip. > > Attached to a FreeBSD 12-CURRENT system, it reports itself as a UHID de= vice. > > 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 b= inary, > > but it fails reading the sensor data - the uhid driver seems to be unlo= aded > > 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. =20 >=20 > Hi, >=20 > Could you send a link to this Linux software? >=20 > It should work basically! >=20 > Is your libusb up-to-date? >=20 > You can trace USB activity using "usbdump -i usbusX -f Y -s 65536 -vvv". >=20 > Maybe some command failed. >=20 > Did you try "usbhidaction" to decode the data received? >=20 > --HPS >=20 >=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" Hello, I would already have, but the site was offline due to maintenance cycles th= is noon. It is in German ;-) The software can be downloaded via http://www.led-genial.de/mediafiles//Sonstiges/TempSensorTester.zip Please do not misunderstand me: I just did a dirty test and it worked half = way, but never got values from the temperature sensor. Since the device is recognized by FreeBSD as a UHID device, I guess there i= s a much more convenient and standardized way to look for the device and pick up data for= , say ICINGA-2 or other measurements. The software provided works well on Linux. On FreeBS= D, running the binary as root, firt unloads the uhid kernel module. So I guess the procedu= re is Linux'ish and needs to be rewritten for proper *BSD usage. Anyway - this part is more bringing up my personal thoughts and intentions = and not so much related to the initial stuff I asked the list for - this PCB in questi= on is much to expensive for a simple temp sensor via 1-wire protocol, so I'm looking for = something much cheaper. There are offerings for very small Arduino PCBs with USB port and = I2C or 1-wire connectors for approx. 3 - 5 EUR. For a server-based USB attached DS18B20 s= ensor which could be simply interrogated by some simple C code via tty/uhid or somethin= g high level would be very nice. The digi Watchport provided this with Linux - the acces= s was done via Perl. Looking for a small and autonomous sensor station I stumbled over a lot of = useful Linux stuff realized via Raspberry Pi. There is very little for FreeBSD and I hes= itate buying a nice RaspberryPi 3 B or ODROID-C2 for that purpose. For autonomous monitori= ng of a server room we use very expensive (~300 EUR each) web based devices. It is a littl= e box with a DS18B20, I guess and fancy LEDs as well as a NIC. attached to the network, = you can configure the device and there is some rrdtool-like graphical output.=20 I think, with the fancy framework of FreeBSD it should be possible to adapt= NanoBSD with small nginx or reduced Apache to perform the stuff ... So, sorry for listening to my little-boy's dreaming Kind regards, Oliver --Sig_/rPUBVDOm7DXQbqCeJwoBe+7 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXwIH4AAoJEOgBcD7A/5N8NcIH/1gUYKlIZY1yalDtmzNSBAF5 tgm7gDKvx5OcBRZrCgUVMOxoqyr/w8cgaDnf0yx2ow93+L4ybZLYcmf8RyGDvW1Z bvRRZGY7pd7dXcq+cQcKT5N06mm2T1F8YFrb936r2a4vmo03d/F4c6ULQNMjOBo7 ZFI53Q7VnNAA0rR7KndEC+WEjBF3RJp5Kkz6a/7lijyUCuUb/q0InLEhJOEYbWu3 QNWf+kps2xarYBgKS7+aSlIBA22MphO9OQq3QjpCsQmJmqb/6ZQFQkRBwTbHXOQZ YbaZXpr5snM3S/mljE4FOqVEON02wr7Xg4fzS9J+FaQph4LwexDsozb5JUnUqFg= =YQqT -----END PGP SIGNATURE----- --Sig_/rPUBVDOm7DXQbqCeJwoBe+7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160826195256.67a63dbd.ohartman>