1.The Linux distro is ubuntu9.10 and the kernel is 2.6.24.
2.the kernel is not debug , so the relevant output of "dmesg" is only "usb 1-6:
USB disconnect, address 13".
3. for Most of U disk the user mode driver is ok, but for a few U disk
which is made by Unknow manufacturer, it is not ok.
libusb_interrupt_or_bulk_transfer return ERROR and it got lost on the
bus . I am very confused
thanks!
发件人: Xiaofan Chen
发送时间: 2012-05-02 14:01
收件人: fushuaibing; libusbx-devel
主题: Re: [Libusbx-devel] issue: libusb_interrupt_or_bulk_transfer result in
device disappear
On Wed, May 2, 2012 at 1:35 PM, 付帅兵 <fushuaib...@centerm.com.cn> wrote:
> I used libusbx which version is 1.0.10 for LINUX OS,
> copy data from PC to U disk, sometimes the device disapeared for
> special U disk.
> I look for code and find the libusb_interrupt_or_bulk_transfer return
> error which
> is " libusb_interrup_or_bulk_transfer read fail:
> LIBUSB_ERROR_NO_DEVICE(-4 )".
> Must pull out and insert U disk again!
>
> The phenomenon is not inevitable !
>
Firstly since you are using digest mode, please cut the unnecessary
part. Thanks.
What is the Linux distro and the kernel version you are using?
It seems to me that this has nothing to do with libusbx but rather
your device is problematic if it got lost on the bus. Could you post the
relevant output of "dmesg" when you run your libusb program?
--
Xiaofan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel