??? 03/31/06 10:59 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#113469 - Isn't it the config. desc. request? Responding to: ???'s previous message |
- Did you receive ZLP from the host after the step 7 ?
yes,i find it through LCD clear screen Then, the 2nd Get_Descriptor(DEVICE) successfully finishes. No problem on this command handling. If any problem would exist, the contents of the device descriptor itself. Host request 255 bytes of device descriptor 3 times? Isn't it the Get_Descriptor(CONFIGURATION) request? If you get this request from the host after your step 7, it may be this request. Check the wValue field. 80H 06H 00H 01H 00H 00H 12H 00H Get_Descriptor(DEVICE) 80H 06H 00H 02H 00H 00H FFH 00H Get_Descriptor(CONFIGURATION) If the request is actually Get_Descriptor(CONFIGURATION), you must return the Configuration and other descriptors as a contiguous single block. Of course, split this block into Ep0_packet_size chunks, send one chunk by one according to host request. - Return these descriptors in this order - - Configuration, Interface, HID class and Endpoint descriptors - wTotalLength field of the Configuration descriptor holds the number of bytes of these whole descriptors. - HID_Report and string descriptor are not included in this reply. It is requested separately by the host afterward. Tsuneo |