Page 1 of 1

Device may init with USB 2.0 instead of 1.1?

Posted: Tue Mar 09, 2010 2:33 pm
by schwa226
Hi,

I were testing the HID-Data example.
Now my project is almost over.

But I have a problem with the init of the AVR.

If the comunication of the device looks like this:
Image

The comunication, reading/writing eeprom, polling the device is working without any problems.

When I connect the device on the same PC on another USB port it look like this:
Image

It is still working, but sometimes the polling fails, reading of eeprom fails... impossible to handle the device.
The picture looks like a faster comunication between host and device, may USB 2.0?

Who this can be happen? I have the pull up resistor on D- for Low speed 1.1 device.
Missconfiguration of the "usbconfig.h"?

EDIT:
It looks like not higher Speed, but much more comunication between host & device..

Why?

This is my descriptor now:
PROGMEM char usbHidReportDescriptor[60] = {
0x06, 0x00, 0xff, // USAGE_PAGE (Generic Desktop)
0x09, 0x01, // USAGE (Vendor Usage 1)
0xa1, 0x01, // COLLECTION (Application)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
0x75, 0x08, // REPORT_SIZE (8)
0x85, 0x01, // REPORT_ID (1)
0x95, 0x06, // REPORT_COUNT (6)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0x85, 0x02, // REPORT_ID (2)
0x95, 0x01, // REPORT_COUNT (1)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0x85, 0x03, // REPORT_ID (3)
0x95, 0x06, // REPORT_COUNT (6)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0x85, 0x04, // REPORT_ID (4)
0x95, 0x01, // REPORT_COUNT (1)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0x85, 0x05, // REPORT_ID (5)
0x95, 0x06, // REPORT_COUNT (6)
0x09, 0x00, // USAGE (Undefined)
0xb2, 0x02, 0x01, // FEATURE (Data,Var,Abs,Buf)
0xc0 // END_COLLECTION
};


I'am polling report ID 1

Re: Device may init with USB 2.0 instead of 1.1?

Posted: Tue Mar 09, 2010 9:50 pm
by schwa226
Here I have some log and the AVR source!

I use the same functions like the HID-Data example.
On one USB Port it is working fine, on the other:
20:43:08 usbhidOpenDevice faild, 0
..
..
20:43:09 usbhidGetReport faild, 31
20:43:09 Polling faild, PollingFaildCounter: 1


31 is from GetLastError = Device not working.
GetReport is from the HID.dll: HidD_GetFeature

Source + LOG:
http://www.megaupload.com/?d=MXSRTKA1

The Hex file is included, Atmega8, 12MHz.

Please Help!!!