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.

USB Set Address problem

Status
Not open for further replies.

joebazoka

Advanced Member level 4
Joined
May 17, 2001
Messages
105
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Argentina
Activity points
730
usb set address

Hi. I have a problem with a Set Address setup packet. I am working in a DOS driver for USB. First I send a Get_Device_Descriptor packet to an USB device to the address 0, Endpoint 0 (Default address). The device repond correctly to this requirement. Then I send a Set_Address packet (0x00,0x05,0x0001,0x0000,0x0000) with address number 1 and the device accept this packet, but when I send a new Get_Device_Descriptor to the new address of the device(1), this give me an error (Transfer Descriptor Status=0x44). Please if anybody have information about this help me. Regards.
 

get_device_descriptor

u must send one data packet before u send any other packet, otherwise the address is disable
 

USB problem

Please, can you be more specific?. What data packet must be send after of Get_Device_Descriptor?. Regards.
 

Are you writing a device driver or are u using a one on the PC side?
 

i think visualart's meaning is that u have to IN a zero-length packet before sending out the new Get_Device_Descriptor to the new assigned address
 

USB Set Address

I can fix the problem. Thanks to all. I just add a zero lenght IN packet after the Set_Address packet. Regards.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top