chendra
2016-08-10 05:25:27 UTC
LIBUSB_ERROR_PIPE when performing bulk transfer (IN)
Dear all,
I just started using libusb. I am trying to control a usb3 camera which
complies with usb3vision using libusb in Linux (Ubuntu 14.04, libusb
1.0.20).
In usb3vision spec, to retrieve information of the camera's setting, there
is a device control interface which consists of two endpoints (IN and OUT).
I tried to send a command through OUT endpoint using libusb_bulk_transfer
and read the ack and the requested data from the IN end point also using
libusb_bulk_transfer.
I could send the command successfully through the OUT end point. But I
always obtained LIBUSB_ERROR_PIPE when I attemped to read data from IN end
point right after sending the command.
The usbfs_snoop shows error "ep3 bulk-in, actual_length 0 status -32".
Any help or suggestion is very appreciated.
Chendra.
My snippet code:
-----------------------
--------------------------
----------------------
-----------------------
Compared with a 3rd party application that successfully accessed the device:
---------------------------------------------------------------------------------------
--
View this message in context: http://libusb.6.n5.nabble.com/LIBUSB-ERROR-PIPE-when-performing-bulk-transfer-IN-tp5715945.html
Sent from the LibUSB Dev mailing list archive at Nabble.com.
Dear all,
I just started using libusb. I am trying to control a usb3 camera which
complies with usb3vision using libusb in Linux (Ubuntu 14.04, libusb
1.0.20).
In usb3vision spec, to retrieve information of the camera's setting, there
is a device control interface which consists of two endpoints (IN and OUT).
I tried to send a command through OUT endpoint using libusb_bulk_transfer
and read the ack and the requested data from the IN end point also using
libusb_bulk_transfer.
I could send the command successfully through the OUT end point. But I
always obtained LIBUSB_ERROR_PIPE when I attemped to read data from IN end
point right after sending the command.
The usbfs_snoop shows error "ep3 bulk-in, actual_length 0 status -32".
Any help or suggestion is very appreciated.
Chendra.
My snippet code:
-----------------------
--------------------------
----------------------
-----------------------
Compared with a 3rd party application that successfully accessed the device:
---------------------------------------------------------------------------------------
--
View this message in context: http://libusb.6.n5.nabble.com/LIBUSB-ERROR-PIPE-when-performing-bulk-transfer-IN-tp5715945.html
Sent from the LibUSB Dev mailing list archive at Nabble.com.