简体   繁体   English

Android找不到第二次连接外部设备的文件

[英]Android can't find files external device connecting second time

I know this is a long shot, but I'm all out of ideas. 我知道这是一个远景,但我全都没主意。

Basically, I have a Motorola TC55 that needs to mail a .pdf file from a TempTale 4 USB (connected by USB to the device). 基本上,我有一个Motorola TC55,它需要从TempTale 4 USB(通过USB连接到设备)中邮寄.pdf文件。

The app itself is already working great, so no issues there, but here's the catch. 该应用程序本身已经运行良好,因此没有任何问题,但这很重要。 When the TempTale 4 is connected for the first time, it displays the files in the /udisk directory so everything works great, but if I disconnect the TempTale and reconnect it the /udisk directory stays empty. 第一次连接TempTale 4时,它将在/ udisk目录中显示文件,因此一切正常,但是如果我断开TempTale的连接并重新连接,则/ udisk目录将保持为空。

The phone doesn't recognise the TempTale as a USB device when connecting the second time and instead displays a message along the lines of "the SD card can now be safely removed" as soon as the TempTale is connected. 第二次连接时,手机无法将TempTale识别为USB设备,而是在连接TempTale后立即显示一条消息,提示“现在可以安全地卸下SD卡”。 I've looked everywhere but the files are nowhere to be found. 我到处都看过,但找不到文件。

The only thing that helps is rebooting the TC55, which is a real pain in the ass if you're going to have to do that every time before being able to upload the temperature statistics. 唯一有用的是重新启动TC55,如果您每次都必须执行此操作才能上传温度统计信息,这将是实实在在的麻烦。

It's running Android 4.1.2 and it's a company phone so I can't root it to try some coded (un)mounting magic to see if that helps. 它运行的是Android 4.1.2,并且是公司的电话,因此我无法启动它来尝试一些编码(取消)安装的魔术,以查看是否有帮助。

Any help or ideas on how to solve this would be greatly appreciated, because I'm baffled by this strange behaviour. 对于解决此问题的任何帮助或想法,将不胜感激,因为我对这种奇怪的行为感到困惑。

It looks like the TempTale device is not handling the USB disconnect properly. 看起来TempTale设备无法正确处理USB断开连接。 Does it help if you unmount the udisk before you disconnect it the first time? 如果您在第一次断开udisk之前将其卸载,是否有帮助?

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

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