You are not logged in.

#1 2015-10-30 21:59:12

pwkpete
Member
Registered: 2015-10-30
Posts: 17

USB dev incorrectly detected as HID, correctly detected at boot

Hello, I hope this is the right place to ask the question, out of ideas searching the internets for this... (Maybe I queried incorrectly, but...)

I have a CC3D (CopterControl board), when I connect it to my running laptop (Arch Linux latest update) - it always seems to come up as a HID device. There is no tty device.

[  448.911082] usb 2-1: new full-speed USB device number 6 using xhci_hcd
[  449.110885] usbcore: registered new interface driver usbhid
[  449.110889] usbhid: USB HID core driver
[  449.113548] hid-generic 0003:20A0:415B.0002: hiddev0,hidraw1: USB HID v1.10 Device [openpilot.org CopterControl] on usb-0000:00:14.0-1/input0
[  579.595536] usb 2-1: USB disconnect, device number 6

If I reboot with the CC3D plugged in, I have a device node that I can connect to (/dev/ttyACM0).

[    1.182669] usb 2-1: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes

[    3.396249] cdc_acm 2-1:1.0: ttyACM0: USB ACM device
[    3.396467] usbcore: registered new interface driver cdc_acm
[    3.396471] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

If I unplug it and plug it in again it's a HID... I suspect there is something  telling it to treat the device as a HID that is not enabled at the point of registration at boot but my searches have not been fruitful.

I have tried various USB ports on this laptop Inspiron 15 5000, I know not all are USB3.
Any ideas? Thanks!

Last edited by pwkpete (2015-10-30 22:08:05)

Offline

#2 2015-10-31 01:50:35

pwkpete
Member
Registered: 2015-10-30
Posts: 17

Re: USB dev incorrectly detected as HID, correctly detected at boot

Additional info:

I wonder if this has any bearing as to what is going on - lsusb -v results for this device:

Bus 002 Device 009: ID 20a0:415b Clay Logic CopterControl
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x20a0 Clay Logic
  idProduct          0x415b CopterControl
  bcdDevice            4.01
  iManufacturer           1 (error)
  iProduct          can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
cannot read device status, Resource temporarily unavailable (11)
Couldn't open device, some information will be missing
      2 (error)

Offline

#3 2015-11-09 16:37:55

pwkpete
Member
Registered: 2015-10-30
Posts: 17

Re: USB dev incorrectly detected as HID, correctly detected at boot

Anyone have an idea as to what is going on? Is there any additional info that I can get from the system that will help?

Offline

#4 2015-11-09 18:46:12

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB dev incorrectly detected as HID, correctly detected at boot

So you have separate USB2 and USB3 ports and the same happens everywhere?

Is lsusb -v output the same in both cases?

Does running lsusb as root provide more information?

Offline

#5 2015-11-09 19:33:03

pwkpete
Member
Registered: 2015-10-30
Posts: 17

Re: USB dev incorrectly detected as HID, correctly detected at boot

Hi, thanks for the quick reply.

Yes, I just verified again on the USB 2.0 port, I get the same results as I describe in my 2nd post. (That post was from the USB 3.0 port)

I have been running lsusb as root, just in case...

This is really odd, I'm stumped. When I reboot it is does not come up as a HID but get a valid /dev/ttyACM0 device

Offline

#6 2015-11-09 21:03:21

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: USB dev incorrectly detected as HID, correctly detected at boot

Actually, I asked whether lsusb is the same when it works and when it doesn't work. I suppose it isn't.

If other devices work then I would blame this controller. Maybe it needs some time after power-up before it's ready to accept USB connection? Try few times to insert the plug very slowly so that 5V supply connects long before data lines smile

Maybe it will work if you connect it to USB3 and reload the xhci_hcd module.

Offline

#7 2015-11-09 21:05:53

pwkpete
Member
Registered: 2015-10-30
Posts: 17

Re: USB dev incorrectly detected as HID, correctly detected at boot

Appreciate your suggestions, I'll give them a try!

Offline

#8 2015-11-10 21:34:32

pwkpete
Member
Registered: 2015-10-30
Posts: 17

Re: USB dev incorrectly detected as HID, correctly detected at boot

I used a powered hub and that seems to cause it to work out. Thanks for the idea!

Offline

Board footer

Powered by FluxBB