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