Le Sat, Jan 04, 2003 � 03:53:52PM -0000, Nick Forbes a �crit : > > Hi Nicolas, > > Thanks for your offer of help. > > So far I have been reading the USB 1.1 spec >(http://www.usb.org/developers/docs/usbspec.zip) and had a look at the source for the >usb drivers in OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/usb/).
I begin the reading... > The best idea I have had so far is from the USB specs: > To send a command to the hub to reset the port that the modem is attached to. > There is a function usbd_reset_port() in the usbd_subr.c file that does this, though >I'm not sure if this would trigger the necessary events to ensure that device was >re-detected succesfully. If not we would need to know what other actions are required >(port disable/enable/power on/power off etc from looking at the specs), and how to >initiate a new explore of the bus. > > This is beyond my coding ability (which is mainly limited to tinkering), but might >be quite easy to someone who knew the USB sub-system(?). Who in this list would be ready to code a small piece of program to test this reset ? > Other options would be to reset the entire usb sub-system (though that would reset >all devices), or to simulate a device detach/attach, unless of course we can get the >specs ;-) though I have yet to try to work out how to do these, and whether they >would be simpler or more difficult. Hum, seems like a little brute ! It would be better to reset it more precisely. > I have also written to Lennart Augustsson who wrote the original USB stack for >NetBSD to ask if he had such a utility. Let us know about the answer. > I hope some of that is useful, and will help. If you could ask the OpenBSD coder you >know for any advice (or help) that would be fantastic! (it's the *precisely* bit that >is hard!) I just did. He does not know very much about usb, but gave me the address of the guy who manages usb for openbsd. I'm writing him right know, and keep you aware. -- Nicolas Ecarnot Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
