Hi Nick, hi Others,
You'd better know, I'm not a coder at all, and I don't even uderstand what I'm
reading, neither saying ;o)
Anyway, I'll try to help you trying to help me.
Well, I began reading the usb 1.1 specs... very interesting...zzzzzz
Then, I got back to the speedtouch code, and the link Nick posted recently
(usb_subr.c).
In usb_subr.c, as he found, there is a function usbd_reset_port.
This function sends a request to the device via its handle (dev).
The request contains many informations to say it's a reset.
On another hand, in the pusb-bsd.c code (portable usb librairies, apparently
Beno�t-home-made - not the libusb itself...), there is a function
pusb_control_msg that also sends messages to the device, on a port.
Why could'nt we use this function to try to send the same type of reset as in
usbd_reset_port ?
As I said, I don't know anything about coding, so you'll surely code it better
than me.
I haven't already searched *where* do the CONSTANTS come from (found in
usb_subr.c), but I guess Fran�ois knows that better than me and will answer ;o)
Why not start with something like :
int pusb_reset(pusb_device_t dev, int index)
{
int ret;
ret = pusb_control_msg(dev,
UT_WRITE_CLASS_OTHER, UR_SET_FEATURE,
UHF_PORT_RESET, index,
NULL, 0, dev->timeout);
return ret;
}
--
Nicolas Ecarnot
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe