On Tue, 13 Jul 2004 [EMAIL PROTECTED] wrote: > Hi all. > > I'm working with an host usb 1.1. > I need to set an interface by usb_set_interface and immediatly an > usb_bulk_msg(EP2OUT). > If an USB transaction are made successfully I look the led on top of the > host blink. > > When I make the sequence usb_set_interface(dev,0,2) and immediatly > usb_bulk_msg(EP2OUT) > the led doesn't blink. > If I make an usb_control_msg(EP0OUT) between usb_set_interface and usb_bulk_msg > the led blink and bulk transfer succed > > I'm sure that the host firmware works fine than I think that the matter > is in the sequence of the operations in the driver. > > Any matters about? > > Kind regards > Mauro
If the usb_bulk_msg() call returns with no error then the data has been sent correctly. Maybe your host firmware needs some time between the set_interface and the bulk_msg, and adding the extra usb_control_msg() provides that additional time delay. Alan Stern ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel