gopintj
Member level 4
- Joined
- Sep 1, 2010
- Messages
- 77
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,298
- Activity points
- 1,953
Hi all.
I am writing a program for PIC24FJ256DA206 microcontroller as USB host. I have successfully created BDT, InBuffer[maxInBytes] and OutBuffer[MaxOutBytes]. I am using an USB Mouse as USB device.
My simple program could successfully detect the device attach and sending setup command and here comes my problem.
When i transmit my setup command from usb host(0x80,0x06,0x00,0x01,0x00,0x00,0x12,0x00), i receive only 8 byte Device descriptor from USB Mouse.
Could someone help me how to retrieve the remaining 10 bytes from usb device?
Note: I checked the 8 bytes that i have received from Mouse. In that, the 8th byte representing 0x08 which means, max buffer length of EndPoint 0 of usb mouse is only 8 bytes.
I am writing a program for PIC24FJ256DA206 microcontroller as USB host. I have successfully created BDT, InBuffer[maxInBytes] and OutBuffer[MaxOutBytes]. I am using an USB Mouse as USB device.
My simple program could successfully detect the device attach and sending setup command and here comes my problem.
When i transmit my setup command from usb host(0x80,0x06,0x00,0x01,0x00,0x00,0x12,0x00), i receive only 8 byte Device descriptor from USB Mouse.
Could someone help me how to retrieve the remaining 10 bytes from usb device?
Note: I checked the 8 bytes that i have received from Mouse. In that, the 8th byte representing 0x08 which means, max buffer length of EndPoint 0 of usb mouse is only 8 bytes.