Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown device subtype string: TEMPerHumV4.0rHu - 0c45:7402 #41

Open
insightevancrouch opened this issue Apr 11, 2016 · 3 comments
Open

Comments

@insightevancrouch
Copy link

Hi -

I'm attempting to read from my TemperHum USB device 0c45:7402 on Ubuntu 14.04 eeepc

I've built tempered using the 1.2/1.3 branch, but when I run it, I get the following message:
/dev/hidraw1: Could not open device: Unknown device subtype string: TEMPerHumV4.0rHu

Here is my lsusb result
lsusb
Bus 002 Device 002: ID 0c45:7402 Microdia TEMPerHUM Temperature & Humidity Sensor

Any ideas? Trying to tie an old netbook into my network of raspberry pi temperature sensors ( https://www.crouchhouse.com )

Thanks!

@dememax
Copy link

dememax commented Jun 9, 2016

Hi,

I've got the same device:

Jun  9 00:33:47 maxprecision kernel: usb 1-6: Product: TEMPERHUM1V1.3
Jun  9 00:33:47 maxprecision kernel: usb 1-6: Manufacturer: RDing
Jun  9 00:33:47 maxprecision kernel: usb 1-6: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Jun  9 00:33:47 maxprecision kernel: usb 1-6: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Jun  9 00:33:47 maxprecision kernel: input: RDing TEMPERHUM1V1.3 as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:0C45:7402.0002/input/input27
Jun  9 00:33:48 maxprecision kernel: hid-generic 0003:0C45:7402.0002: input,hidraw1: USB HID v1.10 Keyboard [RDing TEMPERHUM1V1.3] on usb-0000:00:14.0-6/input0
Jun  9 00:33:48 maxprecision kernel: hid-generic 0003:0C45:7402.0003: hiddev0,hidraw2: USB HID v1.10 Device [RDing TEMPERHUM1V1.3] on usb-0000:00:14.0-6/input1
Jun  9 00:33:48 maxprecision kernel: usbcore: registered new interface driver usbkbd
Jun  9 00:33:58 maxprecision kernel: usb 1-6: USB disconnect, device number 4
Jun  9 00:33:59 maxprecision acpid[1843]: input device has been disconnected, fd 29
Jun  9 00:34:12 maxprecision kernel: usb 1-3: new low-speed USB device number 5 using xhci_hcd
Jun  9 00:34:12 maxprecision kernel: usb 1-3: New USB device found, idVendor=0c45, idProduct=7402
Jun  9 00:34:12 maxprecision kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun  9 00:34:12 maxprecision kernel: usb 1-3: Product: TEMPERHUM1V1.3
Jun  9 00:34:12 maxprecision kernel: usb 1-3: Manufacturer: RDing
Jun  9 00:34:12 maxprecision kernel: usb 1-3: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
Jun  9 00:34:12 maxprecision kernel: usb 1-3: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
Jun  9 00:34:12 maxprecision kernel: input: RDing TEMPERHUM1V1.3 as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:0C45:7402.0004/input/input28
Jun  9 00:34:12 maxprecision kernel: hid-generic 0003:0C45:7402.0004: input,hidraw1: USB HID v1.10 Keyboard [RDing TEMPERHUM1V1.3] on usb-0000:00:14.0-3/input0
Jun  9 00:34:12 maxprecision kernel: hid-generic 0003:0C45:7402.0005: hiddev0,hidraw2: USB HID v1.10 Device [RDing TEMPERHUM1V1.3] on usb-0000:00:14.0-3/input1

And obviously, it doesn't work:

maxprecision TEMPered # ./utils/tempered --scale Celsius
Device 093a:2521 if 0 rel  100 | /dev/hidraw0 | (null) USB OPTICAL MOUSE
Device 0c45:7402 if 0 rel    1 | /dev/hidraw1 | RDing TEMPERHUM1V1.3
Device 0c45:7402 if 1 rel    1 | /dev/hidraw2 | RDing TEMPERHUM1V1.3
/dev/hidraw2: Could not open device: Unknown device subtype string: TEMPerHumM12V1.3

Is there a solution? (apart from just brute overriding of strings in known_temper_types structure)

Thanks!

@drabels
Copy link

drabels commented Aug 16, 2016

I have this same device, so I added an additional subtype, with the same settings as the "TEMPerHumM12V1.0" subtype above it. No problems compiling or running, but the results are definitely "off":


geekie:/usr/local/admin/build/TEMPered/_build# ./utils/tempered --scale Celsius
/dev/hidraw4 0: temperature 778.25 °C, relative humidity 27009.7%, dew point -3292.9 °C

Using the settings from "TEMPer2HumiV1.x" is little better:

geekie:/usr/local/admin/build/TEMPered/_build# ./utils/tempered --scale Celsius
/dev/hidraw4 0: temperature 224.74 °C, relative humidity 100.0%, dew point 224.7 °C

@drabels
Copy link

drabels commented Aug 16, 2016

It turns out google is our friend, the solution is here:

#38

Once those code changes are implemented, the output looks pretty good:

geekie:/usr/local/admin/build/TEMPered/_build# ./utils/tempered
/dev/hidraw4 0: temperature 23.67 °C, relative humidity 42.1%, dew point 10.0 °C

I'll keep an eye on it and see how it compares to my other temperature sensor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants