From: Felipe B. <fel...@us...> - 2007-05-29 09:32:03
|
On 5/28/07, Peter Stuge <stu...@cd...> wrote: > On Mon, May 28, 2007 at 03:47:26PM +0300, Felipe Balbi wrote: > > When I issue usb_reset(udev) it's working fine... > > > > When I issue usb_control_msg(udev, USB_ENDPOINT_IN, > > USB_REQ_SET_FEATURE | 0x2300, USB_PORT_FEAT_TEST, TEST_FORCE_ENABLE, > > buf, sizeof(buf), TIMEOUT) I'm getting error -32 (ENODEV). > > > > Can anyone of you guys help me?? > > Maybe the operating system doesn't support this control request?? yes... it supports, I'm the one developing the driver for this controller and I know what the controller supports. > Maybe the device hasn't been opened properly?? yes... it was... I'm using the same usb_dev_handle used to do reset. > (usb_reset() deals with the hub port that the device is attached to > IIRC) Yeah... that's right... And I'm trying to set that port into test modes. The test modes you can check at usb2.0 Specs... but those are TEST_J, TEST_K, TEST_SE0_NAK, TEST_PACKET, SINGLE_STEP_GET_DESCRIPTOR, SINGLE_STEP_SET_FEATURE... and some others... > > > > How can I issue SOF packets?? > > You can't!! > > libusb and probably all host software you can find doesn't work with > packets but with transfers, or maybe transactions if you're lucky. > > I don't know if the HCI actually allows the programmer to deal with > packets - it wouldn't surprise me if it's handled completely or > mostly in hardware. Ok.. let me try again this one: Is there any way to send a control transfer to the HCI, using usb_control_msg() to force the HCI to send SOF packets?? According to the Specification of the USBHSET tool in lots of tests I have to send SOFs during 15secs... maybe it could be automatic... and I just need to sleep(15)... or something like that... > > > //Peter > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Libusb-devel mailing list > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libusb-devel > -- Best Regards, Felipe Balbi fel...@us... |