Is this an Anchor/Cypress EZ-usb-based device?
On our devices, we use the EZ-USB reset/toggle command after downloading
firmware. We don't use ReEnumerateDevice or ResetDevice. The device
automatically renumerates, we find it after the renumeration, do a
SetConfiguration, and the Bulk IN/OUT and Interrupt endpoints can then
be found.
Tim Desrochers
>
> [demime could not interpret encoding binary - treating as
> plain text] Hi all, I'm writing an ethernet usb driver. I
> need do download Firmware to the device and after that I must
> reset my device to get new desciptors(configuration, bulk in
> and bulk out). If I use the recommended
> ReEnumerateDevice() then the driver calls again init(), probe() and
> start() and I go into a loop in
> my code. So I use ResetDevice() and reconfigure the device
> but I could not get bulk in and bulk out endpoints. Here is
> the general procedure.
>
> myClass:: start(..)
> {
> IOUSBInterface *fInterface;
> IOUSBFindEndpointRequest myEndPointRequest;
>
> 1)Enumeration of the device
> 2)DFU procedure to download firmware
> 3)Reset the Device and configure it again
> //here fInterface->GetNumEndpoints returns 0 endpoints
> 4)get bulk in and bulk out enpoints (fInterface->FindNextPipe(0,
> &myEndPointRequest)->fail)
> 5)get Firmware Version->success
> 6)get Mac Address->success
> ...
> }
>
> Any ideas?
>
> TIA
> Phil Nest
>
> -------------------------------------------------------------
> http://www.mail.gr/ - Get Your Private Free Email Address!
http://www.ringtone.gr/ - Ringtones & Logos for your mobile!
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.