简体   繁体   English

Windows USB 大容量存储 - Garmin Alpha 200i 安装为“设备”而不是“驱动器”

[英]Windows USB mass storage - Garmin Alpha 200i mounted as a 'Device' but not a 'Drive'

We have a python program that scans the mounted drive letters (or volumes, for Linux) for a certain file that indicates a Garmin handheld GPS.我们有一个 python 程序,它扫描已安装的驱动器号(或 Linux 的卷)以查找指示 Garmin 手持设备 GPS 的某个文件。 But, the Garmin Alpha 200i is mounted by windows as a 'Device' and not as a 'Drive', and therefore it has no drive letter and you can't get to it from Windows batch or Powershell in the standard C:/Folder notation. But, the Garmin Alpha 200i is mounted by windows as a 'Device' and not as a 'Drive', and therefore it has no drive letter and you can't get to it from Windows batch or Powershell in the standard C:/Folder符号。

How can we go about accessing the files on the 'Device' from python (or batch or PowerShell)?我们如何 go 从 python(或批处理或 PowerShell)访问“设备”上的文件?

在此处输入图像描述

It's definitely a mass storage device and has a directory structure - just not sure how to get to it programmatically:它绝对是一个大容量存储设备,并且有一个目录结构——只是不知道如何以编程方式访问它:

在此处输入图像描述

在此处输入图像描述

Thinking that this is a Windows or python question, rather than a Garmin question.认为这是 Windows 或 python 问题,而不是 Garmin 问题。 This is the first Garmin handheld GPS model we've encountered that mounts as a 'Device' instead of a 'Drive'.这是我们遇到的第一款安装为“设备”而非“驱动器”的 Garmin 手持设备 GPS model。

The Garmin manual says that the handheld should be recognized as one or two removable drives, but, that is not the case. Garmin 手册说手持设备应该被识别为一个或两个可移动驱动器,但事实并非如此。 Earlier GPS models do mount up as two drives - one for the handheld's internal storage and another for its memory card if any.早期的 GPS 型号确实安装为两个驱动器 - 一个用于手持设备的内部存储,另一个用于其 memory 卡(如果有)。

Modern devices use Media Transfer Protocol (MTP) instead of USB Mass storage.现代设备使用媒体传输协议 (MTP)而不是 USB 大容量存储。

This protocol is intentionally nerved, however, and cannot provide drive letters.然而,这个协议是故意紧张的,并且不能提供驱动器号。

You can try one of the Python wrappers for LibMTP .您可以尝试 LibMTP 的Python包装器之一。

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

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