以编程方式访问 Sony MP3 播放器的内容
如何以编程方式访问/操作索尼 MP3 播放器的内容?
索尼 Walkman MP3 播放器 (NWZ-W202) 通过 USB 端口连接到 Vista Ultimate PC。
播放器内容在 Windows 资源管理器中显示为“Computer\WALKMAN NWZ-W202\Storage Media\MUSIC\MediaFile1.mp3”。
计算机管理\存储\磁盘管理将设备列为无名卷,状态为“正常(EISA 配置)”,但不允许对其执行任何操作(例如“更改驱动器卷和路径...”,因为上下文菜单出现) :
当然,以下代码没有任何用处:
foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
Console.WriteLine(driveInfo.Name);
网络搜索显示索尼随身听设备存在类似的未解决问题
experts-exchange.com/Storage/Misc/Q_24422039.htmlsocial.answers
快速 .microsoft.com/Forums/en-US/vistahardware/thread/cc1e7050-5c44-4eb4-97e7-8edfdb42f24d
谢谢。
How to access/manipulate Sony MP3 player’s contents programmatically?..
A Sony Walkman MP3 player (NWZ-W202) is connected to a Vista Ultimate PC through a USB port.
The player contents is visible by the Windows Explorer as “Computer\WALKMAN NWZ-W202\Storage Media\MUSIC\MediaFile1.mp3”.
Computer Management\Storage\Disk Management lists the device as a nameless volume with “Healthy (EISA Configuration)” Status, but would not let do anything with it (like “Change Drive Volume and Paths...”, as the context menu comes out empty of action entries.
And, of course, there is nothing useful coming out of the following code:
foreach (DriveInfo driveInfo in DriveInfo.GetDrives())
Console.WriteLine(driveInfo.Name);
Quick web search revealed similar unsolved problems with Sony Walkman devices:
experts-exchange.com/Storage/Misc/Q_24422039.html
social.answers.microsoft.com/Forums/en-US/vistahardware/thread/cc1e7050-5c44-4eb4-97e7-8edfdb42f24d
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来这个播放器是通过 MTP(媒体传输协议)而不是 MSC 连接(不知道它代表什么,但意味着您看到了一个驱动器号)。某些 MP3 播放器(Samsung、Sansa)可以在模式之间切换。
以下是一些关于连接到 MTP 设备以及从 MTP 设备传输文件的文章:
连接到 WPD 设备 --
http://blogs.msdn.com/dimeby8/archive/ 2006/09/27/774259.aspx
通过 WPD 发送 MTP 命令第 1 部分 --
http: //blogs.msdn.com/dimeby8/archive/2006/10/04/Sending-MTP-commands-through-WPD-_2800_Part-1_2900_.aspx
通过 WPD 发送 MTP 命令第 2 部分 --
http://blogs.msdn.com/dimeby8/archive/2006/10/13/sending-mtp-commands-through-wpd-part-2-data-to-the-device.aspx< /a>
通过 WPD 第 3 部分发送 MTP 命令 --
http://blogs.msdn.com/dimeby8/archive/2006/10/16/sending-mtp-commands-through-wpd-part-3-data-from-device.aspx
好运气!
It sounds like this player is connecting via MTP (media transfer protocol) instead of MSC (don't know what it stands for, but means that you see a drive letter). Some MP3 players (Samsung, Sansa) can be switched between modes.
Here are some posts written about connecting to and transferring files to a from an MTP device :
Connecting to a WPD device --
http://blogs.msdn.com/dimeby8/archive/2006/09/27/774259.aspx
Sending MTP commands through WPD part 1 --
http://blogs.msdn.com/dimeby8/archive/2006/10/04/Sending-MTP-commands-through-WPD-_2800_Part-1_2900_.aspx
Sending MTP commands through WPD part 2 --
http://blogs.msdn.com/dimeby8/archive/2006/10/13/sending-mtp-commands-through-wpd-part-2-data-to-the-device.aspx
Sending MTP commands through WPD part 3 --
http://blogs.msdn.com/dimeby8/archive/2006/10/16/sending-mtp-commands-through-wpd-part-3-data-from-device.aspx
Good Luck!