-
Notifications
You must be signed in to change notification settings - Fork 42
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
ubuntu下空闲设备接入,执行record时显示usb.core.USBError: [Errno 16] Resource busy错误 #14
Comments
这种情况一般是没有成功配对,从新配对下 |
对于您刚才提到的配对问题,我这边执行的命令是:ioscreen --udid 00008101001645560C42001E record -h264File=./out.h264 -wavFile=./out.avi
指定了设备的udid,并且在运行时保证同一时间只有一个设备处于usb链接状态。当出现usb.core.USBError: [Errno 16] Resource busy问题时,我对设备也
进行了重新插拔,但是依旧卡在这个问题上。
针对这个问题,我也进行了相关搜寻。最后在这个网址中在尝试使用pyusb从USB设备读取数据时,我一直收到"usb.core.USBError:[Errno 16] Resource busy“的提示 - 问答 - 腾讯云开发者社区-腾讯云 (tencent.com)
看到似乎是device.set_configuration()函数的问题,文章answer中建议注释掉此函数。当我注释掉util.py代码153行和165行代码中device.set_configuration()函数后,
脚本可以正常执行,但新问题是
2022-08-30 19:50:55,451 - util.py[line:58] - INFO: Find Device UDID: 00008101001645560C42001E
2022-08-30 19:50:55,452 - util.py[line:91] - INFO: Disabling hidden QT config
2022-08-30 19:50:55,453 - util.py[line:155] - INFO: enable_qt_config..
2022-08-30 19:50:55,453 - util.py[line:71] - INFO: Enabling hidden QT config
2022-08-30 19:50:55,455 - util.py[line:58] - INFO: Find Device UDID: 00008101001645560C42001E
2022-08-30 19:50:55,457 - util.py[line:178] - INFO: USB connection ready, waiting for ping..
2022-08-30 19:50:58,461 - util.py[line:193] - WARNING: [Errno 110] Operation timed out
2022-08-30 19:50:58,462 - meaasge.py[line:168] - INFO: Telling device to stop streaming..
2022-08-30 19:50:58,462 - util.py[line:91] - INFO: Disabling hidden QT config
脚本似乎监听不到信息。这个问题一直困扰着我,因为我对于usb通信方面知识很单薄,只好期盼能得到您的帮助。
…------------------ 原始邮件 ------------------
发件人: "YueChen-C/ios-screen-record" ***@***.***>;
发送时间: 2022年8月31日(星期三) 上午10:46
***@***.***>;
抄送: "Yiho ***@***.******@***.***>;
主题: Re: [YueChen-C/ios-screen-record] ubuntu下空闲设备接入,执行record时显示usb.core.USBError: [Errno 16] Resource busy错误 (Issue #14)
这种情况一般是没有成功配对,从新配对下
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
这个库没有提供配对的能力,你可以用我另外一个库来实现配对。或者用 idevicepair 命令来实现配对认证后,在进行尝试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: