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/). 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(?). 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. I have also written to Lennart Augustsson who wrote the original USB stack for NetBSD to ask if he had such a utility. 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!) Regards, Nick. -----Original Message----- From: Nicolas Ecarnot [mailto:[EMAIL PROTECTED]] Sent: Sat 04/01/2003 01:43 To: [EMAIL PROTECTED] Cc: Subject: [speedtouch] Re: Reset modem/usb in OpenBSD (or NetBSD) Le Fri, Jan 03, 2003 � 02:34:57PM -0000, Nick Forbes a �crit : > > Hi Edouard, > > Thanks for your reply. I'm glad to here that it is possible to reset the device in >GNU\Linux at least. > > I don't think that function exists yet in *BSD, but from my very basic knowledge it >looks like there are commands to reset ports, and change their power state within the >*BSD driver. > > I will ask the maintainers of the *BSD USB system, and see if they can help - if not >it looks like a long weekend of reading specs :-) > > Nick. As I'm facing exaclty them same problem as you (Speedtouch + OpenSDB 3.2), I'm offering any help you could need. As I don't realy know HOW to help, maybe you could (or Edouard) could guide us on some interesting readings (URLs ?, src ?...) I'm also ready for as many tests as necessary, but I'd like to find a way. Another humble question, addressed to the coders of this driver : As this driver begins to be well-know by the open source community, have you ever wrote to Alcatel to ask them openly the specs ? I say that because that's what I did years ago for the specs of an olitec modem, and they gave them to me ! Anyway, if we can't get the specs, the only way out is to find a way to reset the usb bus. I know very well one of the openbsd core coder, and I could ask him how to do this, if I knew *what* to ask *precisely*. So Nick, what do you expect ? -- Nicolas Ecarnot Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe ___________________________________________________________ VirusChecked for Citigate Marchcom by the Incepta Group plc ___________________________________________________________ ___________________________________________________________ VirusChecked for Citigate Marchcom by the Incepta Group plc ___________________________________________________________ -- Binary/unsupported file stripped by Listar -- -- Type: application/ms-tnef -- File: winmail.dat Liste de diffusion modem ALCATEL SpeedTouch USB Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe
