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

hid_write with hidraw back-end fails with EIO on EL7 #49

Open
opoplawski opened this issue May 23, 2017 · 1 comment
Open

hid_write with hidraw back-end fails with EIO on EL7 #49

opoplawski opened this issue May 23, 2017 · 1 comment

Comments

@opoplawski
Copy link
Contributor

I've been using some TEMPer1V1.1 usb probes for a while now with RHEL6 with no (or at least very few) problems. Just upgraded to RHEL7 and now hid_write() is failing with EIO. Kernel is 3.10.0-514.16.1.el7.x86_64.

open("/dev/hidraw1", O_RDWR)            = 3
ioctl(3, HIDIOCGRDESCSIZE or HIDIOCGVERSION or SNDRV_HWDEP_IOCTL_INFO, 0x7ffc0d8fa6ec) = 0
ioctl(3, HIDIOCAPPLICATION or HIDIOCGRDESC or SNDRV_HWDEP_IOCTL_DSP_STATUS, 0x7ffc0d8fa6f0) = 0
write(3, "\0\1\2003\1\0\0\0\0", 9)      = -1 EIO (Input/output error)
write(2, "/dev/hidraw1: Failed to read the"..., 67/dev/hidraw1: Failed to read the sensors: HID write failed: (null)
) = 67
close(3)                                = 0

The dev handle contains:

$6 = {device_handle = 7, blocking = 1, uses_numbered_reports = 0}

I switched to the libusb backend and that works, so perhaps it would be better to prefer that one over hidapi-hidraw?

@elkur
Copy link

elkur commented May 30, 2017

I have similar issue with Centos7. Everything worked until kernel was upgraded to 3.10.0-514 or newer. Error message: "/dev/hidraw1: Could not open device: HID write failed: (null)"

uname -r
3.10.0-514.10.2.el7.x86_64

./hid-query --enum
/dev/hidraw0 : 0c45:7402 interface 0 : RDing TEMPERHUM1V1.2
/dev/hidraw1 : 0c45:7402 interface 1 : RDing TEMPERHUM1V1.2

./tempered -e
/dev/hidraw1 : TEMPer2HumiV1.x (USB IDs 0C45:7402)

./tempered
/dev/hidraw1: Could not open device: HID write failed: (null)

Booting into older 3.10.0-327 kernel and no problems:
uname -r
3.10.0-327.28.3.el7.x86_64

./tempered
/dev/hidraw1 0: temperature 23.18 °C, relative humidity 26.3%, dew point 2.8 °C

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