Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Getting Data Packets from USB Device

Status
Not open for further replies.

gopintj

Member level 4
Member level 4
Joined
Sep 1, 2010
Messages
77
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
Thirukalukalukundra, Kanchipuram, Tamilnadu, India
Visit site
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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top