Page 1 of 1

xxxxx-hid

Posted: Wed Apr 29, 2009 8:56 pm
by fred6531
Hello everybody

I'm a very new programmer and I'm trying to implement the xxxxx-hid on a breadbord. When I connect the device to the PC, the syslog file looks like :

Apr 29 20:32:57 fred-desktop kernel: [ 622.032298] usb 3-2.4.2: new full speed USB device using ehci_hcd and address 7
Apr 29 20:32:57 fred-desktop kernel: [ 622.104297] usb 3-2.4.2: device descriptor read/64, error -32
Apr 29 20:32:57 fred-desktop kernel: [ 622.280299] usb 3-2.4.2: device descriptor read/64, error -32
Apr 29 20:32:57 fred-desktop kernel: [ 622.456298] usb 3-2.4.2: new full speed USB device using ehci_hcd and address 8
Apr 29 20:32:57 fred-desktop kernel: [ 622.528298] usb 3-2.4.2: device descriptor read/64, error -32
Apr 29 20:32:57 fred-desktop kernel: [ 622.704302] usb 3-2.4.2: device descriptor read/64, error -32
Apr 29 20:32:57 fred-desktop kernel: [ 622.880304] usb 3-2.4.2: new full speed USB device using ehci_hcd and address 9
Apr 29 20:32:58 fred-desktop kernel: [ 623.288013] usb 3-2.4.2: device not accepting address 9, error -32
Apr 29 20:32:58 fred-desktop kernel: [ 623.360309] usb 3-2.4.2: new full speed USB device using ehci_hcd and address 10
Apr 29 20:32:58 fred-desktop kernel: [ 623.768012] usb 3-2.4.2: device not accepting address 10, error -32
Apr 29 20:32:58 fred-desktop kernel: [ 623.768321] hub 3-2.4:1.0: unable to enumerate USB device on port 2

Does someone have an idea of what's happening and what I could try to fix this issue ?
A remark : is it normal that the device is detected as the full speed device ?
(I run a PC with Ubintu 8.10 and I tested the Atmega8 with a blinking led program : all was OK)

Regards

Frederic

Re: [SOLVED] xxxxx-hid

Posted: Sun May 03, 2009 12:16 pm
by fred6531
Hello,

I fixed the problem. I use a USB cable I modified to connect to the PC a breadboard for development. I inverted D+ and D- lines !
So a very simple way to verify a USB cable is the following :
1 - to connect a 1.5 kOhm between the lines supposed to be VCC and V-,
2 - to plug this loaded cable to the PC or a USB HUB,
3 - To verify this "device" is detected as a low speed one. On linux sytem, type the command lsusb in a terminal to get the answer. On windows, ??? ... If it is detected as a full-speed, a hi-speed device, then the resistor as been connected between VCC and D+.

Regards

Frederic