Dear Sir
My name jnut software house from Thailand.
Now I have some confuse about USB Host Shiled MAX3421E with HID Device interface
My detail
- After I read Device Description success
Device Descriptor-----------------
bLength :12
bDescriptorType :01
bcdUSB :0110
bDeviceClass :00
bDeviceSubClass :00
bDeviceProtocol :00
bMaxPacketSize0 :08
idVendor :04D9
idProduct :E000
bcdDevice :0110
iManufacturer :01
iProduct :02
iSerialNumber :03
bNumConfigurations:01
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
09 02 29 00 01 01 00 80 32 09 04 00 00 02 03 00 | ..).....2.......
00 00 09 21 10 01 00 01 22 2F 00 07 05 81 03 20 | ...!...."/.....
00 01 07 05 02 03 08 00 01
Interface Description HID :
interface descriptor structure
bLength :09
bDescriptorType :04
bInterfaceNumber :00
bAlternateSetting :00
bNumEndpoints :02
bInterfaceClass :03
bInterfaceSubClass :00
bInterfaceProtocol :00
iInterface :00
End Point Descriptor 0x81 :
Endpoint descriptor structure
bLength :07
bDescriptorType :05
wTotalLength :81
bNumInterfaces :03
bConfigurationValue:0020
iConfiguration :01
End Point Descriptor 0x02 :
Endpoint descriptor structure
bLength :07
bDescriptorType :05
wTotalLength :02
bNumInterfaces :03
bConfigurationValue:0008
iConfiguration :01
Read Device info Success....
Step 1 Set Address -------------
WRITE PSUD (8): 00 05 01 00 00 00 00 00 addr = 00 Enpoint = 00
WRITE BUFF (0): Data Empty...
Step 2 Set Config --------------
WRITE PSUD (8): 00 09 01 00 00 00 00 00 addr = 01 Enpoint = 00
WRITE BUFF (0): Data Empty...
- I send Command for init USB Host it reurn Error
Step 3
WRITE PSUD (8): 22 09 00 03 00 00 08 00 addr = 01 Enpoint = 00
WRITE BUFF (8): 43,01,07,00,00,00,00,00,
This Out Transfer rHCTL = 40
Step 4
WRITE PSUD (8): 21 09 00 03 00 00 08 00 addr = 01 Enpoint = 00
READ DATA From Device : >>>>> Error >>>>> FS Timeout
Question :
My process mistake ?
I am not sure mistake something
I'm sorry, my English is not good.
Best Regards
J.nut