简体   繁体   English

通信树莓和 Android 智能手机

[英]Communication Raspberry and Android Smartphone

I tried to install Openauto on my Raspberry Pi 3b+ and everything seems to start normal.我尝试在我的 Raspberry Pi 3b+ 上安装 Openauto,一切似乎都开始正常。 But when I connect my old Samsung Galaxy S5 (Android 6) with it, sometimes Android Auto starts to work for some seconds and the quits.但是当我将旧的三星 Galaxy S5 (Android 6) 与它连接时,有时 Android Auto 会开始工作几秒钟然后退出。 Most of the time it states an error message with "Unable to open MTP device".大多数情况下,它会显示“无法打开 MTP 设备”的错误消息。

When I run mtp-detect from the shell this is the result:当我从 shell 运行 mtp-detect 时,结果如下:

Listing raw device(s)
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
   Found 1 device(s):
   Samsung: Galaxy models (MTP) (04e8:6860) @ bus 1, dev 47
Attempting to connect device(s)
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
OK.

I tried the Crankshaft Image on the Raspberry where Android Auto works without any problems.我在 Android Auto 工作的 Raspberry 上尝试了曲轴图像,没有任何问题。 So I guess there is a configuration problem with the android smartphone and the Raspberry.所以我猜android智能手机和树莓有配置问题。 Did anybody had a similar issue?有没有人有类似的问题?

Thanks in advance!提前致谢!

The error you are getting is LIBUSB_ERROR_BUSY , in documents it states that this error code is received when the resource you are trying to access is busy.您收到的错误是LIBUSB_ERROR_BUSY ,在文档中它指出当您尝试访问的资源很忙时会收到此错误代码。 This usually happens if a program or driver has claimed the interface, meaning that 2 processes try to claim the same interface at the same time.如果程序或驱动程序已声明接口,通常会发生这种情况,这意味着 2 个进程试图同时声明相同的接口。

Try to check the processes currently running on your raspberry pi, maybe you opened multiple instances at the same time, or you are trying to use multiple programs that use the same interface.尝试检查当前在您的树莓派上运行的进程,也许您同时打开了多个实例,或者您正在尝试使用使用相同界面的多个程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM