我正在寫一個應用程序,通過libusb與磁帶閱讀器進行通信。在Ubuntu 14.04它完美的作品,但在PI rasperry當我執行相同的代碼就說明我這個錯誤:Rasperry pi上的Libusb問題
libusb: error [reap_for_handle] reap failed error -1 errno=14 libusb: error [handle_events] backend handle_events failed with error -1 libusb: error [sync_transfer_wait_for_completion] libusb_handle_events failed: LIBUSB_ERROR_IO, cancelling transfer and retrying,
這種情況發生時,他試圖讀什麼來通過與功能的端口:
u_char * answer ={'\0'};
u_char epAdress;
epAdress=0x81;
r=libusb_bulk_transfer(dev_handle,epAdress,answer,sizeof(answer),&actual, 0);