Thanks Kan, i know this information, now i´m able to read data from device i´m thinking the problem is when i try send a message to device the setup packet is wrong for my device...
In a keyboard example, when host send message for turn on/off leds, before use _usb_host_recv_data() it´s build tr.DEV_REQ_PTR with values like:
tr.DEV_REQ_PTR = (uchar_ptr)malloc(8);
tr.DEV_REQ_PTR[0] = 0x21; // HOST --> DEVICE DIRECTION
tr.DEV_REQ_PTR[1] = 0x09; // SET_DESCRIPTOR_REQUEST
tr.DEV_REQ_PTR[2] = 0x02; // wValue [byte1]
tr.DEV_REQ_PTR[3] = 0x00; // wValue [byte0] -> 1024 (reporte tipo salida?)
tr.DEV_REQ_PTR[4] = 0x00; // wIndex [byte1]
tr.DEV_REQ_PTR[5] = 0x00; // wIndex [byte0] -> 0
tr.DEV_REQ_PTR[6] = 0x00; // number of bytes [byte1]
tr.DEV_REQ_PTR[7] = 0x08; // number of bytes [byte0]
**This request was explained in HID specification 1.11**
¿Is this request only valid for Keyboard/mouse? ¿in always necessary for send data?
Thanks a lot!