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

Cannot write to device with 413d:2107 #2

Open
schniepp opened this issue Jun 19, 2018 · 1 comment
Open

Cannot write to device with 413d:2107 #2

schniepp opened this issue Jun 19, 2018 · 1 comment

Comments

@schniepp
Copy link

I also have a 413d:2107 device. It is supposed to do both T and R.H.: vendor, Amazon. By pressing the button, I can get it to operate like a keyboard and just dump its output to /dev/stdin. So I know it works, and it puts out T and R.H. in a human readable way. But that's not really practical.

My biggest issue right now is that hid-query /dev/hidraw3 0x01 0x86 0xff 0x01 0x00 0x00 0x00 0x00 gives me this error: Write failed: (null). I am doing this as root, and hid-query detects it successfully (that's how I know that it is hidraw3). Is this perhaps a slightly different device? Does it need a different string sent? Or is something about permissions set up the wrong way, so that writing does not work?

@mreymann
Copy link
Owner

Unfortunately there are many different devices that use this vendor ID, but you can try this:
Please look at https://github.com/mreymann/temperx under "Prerequesites". Make sure the hidquery binary uses libusb not hidraw! /usr/local/bin/hid-query -e should then give you a USB path like this: 000x:000x:01.
Then use this path with hidquery. E. g.:
$ /usr/local/bin/hid-query 0005:0003:01 0x01 0x80 0x33 0x01 0x00 0x00 0x00 0x00
Device 0005:0003:01 : 0c45:7401 interface 1 : RDing TEMPerV1.4

Writing data (9 bytes):
00 01 80 33 01 00 00 00 00

Response from device (8 bytes):
80 02 18 80 8c 0f be 00

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

2 participants