Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frame_get_one: libusb_bulk_transfer returned -7 #11

Open
Qingzaiuuuu opened this issue Mar 8, 2023 · 1 comment
Open

frame_get_one: libusb_bulk_transfer returned -7 #11

Qingzaiuuuu opened this issue Mar 8, 2023 · 1 comment

Comments

@Qingzaiuuuu
Copy link

Hi! When I run test-viewer.py with Raspberrypi 4B the fisrt time, it runs well. But when i exit the program and restart it, the Terminal shows frame_get_one: libusb_bulk_transfer returned -7
. And I have to reboot the pi then it works.
I have also tried adding libusb_clear_halt(handle, 0x81); before res = libusb_bulk_transfer(handle, 0x81, &frame.m->rawdata[done], todo, &actual_length, 500);in seek.cpp and compiling again. But it didn't work.

@Qingzaiuuuu
Copy link
Author

我重新安装了libusb sudo apt-get install libusb-1.0-0-dev 然后在seek.cpp 将#include <libusb.h> 改为 #include <libusb-1.0/libusb.h> 问题似乎得到了改善,只是偶尔会返回-7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant