testusb on a HID device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am trying to use testusb on a HID device for control tests.

>From this (http://permalink.gmane.org/gmane.linux.usb.general/55628)
discussion, I gather that it should be possible.

But, I get these messages for even test 9.

./testusb: /dev/bus/usb/004/002 may see only control tests
/dev/bus/usb/004/002 test 0 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 1 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 2 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 3 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 4 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 5 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 6 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 7 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 8 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 9 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 10 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 11 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 12 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 13 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 14 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 15 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 16 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 17 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 18 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 19 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 20 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 21 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 22 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 23 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 24 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 25 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 26 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 27 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 28 --> 25 (Inappropriate ioctl for device)
/dev/bus/usb/004/002 test 29 --> 25 (Inappropriate ioctl for device)

I presume this is because the hid-generic module is using that device.

Sep  8 22:19:00 master kernel: [  161.358553] uhci_hcd 0000:06:00.0:
reserve dev 2 ep02-INT, period 128, phase 0, 17 us
Sep  8 22:19:00 master kernel: [  161.358599] input: Sus USB
keyboard+mouse as
/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/0000:06:00.0/usb4/4-1/4-1:1.0/input/input17
Sep  8 22:19:00 master kernel: [  161.358612] uhci_hcd 0000:06:00.0:
reserve dev 2 ep81-INT, period 128, phase 0, 17 us
Sep  8 22:19:00 master kernel: [  161.359069] hid-generic
0003:03EB:204D.0007: input,hidraw4: USB HID v1.11 Keyboard [Sus USB
keyboard+mouse] on usb-0000:06:00.0-1/input0
Sep  8 22:19:00 master kernel: [  161.359102] hub 4-0:1.0: state 7
ports 2 chg 0000 evt 0002

Is there any way to not make a particular device to not use the
hid-generic module? When I use this command: smart_sudo modprobe
usbtest vendor=0x03eb product=0x204d, it seems to work fine. I do not
get any error/warnings that the the device is already bound, etc.

I do not want to rmmod the hid module as I think it will affect my
being-used usb keyboard and mouse too. I just want to rmmod the hid
module for the device being tested.

Any thoughts, please?

Thanks
Joe
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux