Windows MTP / WPD与Android设备通信 [英] Windows MTP/WPD communication with Android device

查看:1151
本文介绍了Windows MTP / WPD与Android设备通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个在Windows上运行的PC c ++应用程序。应用程序应与使用MTP通过USB连接的Android手机通信。 idée是不安装存储卡。我发现是Windows有他们称为支持MTP的WPD(Windows便携式设备)。它看起来很可靠,但它要求安装WMP11。我想知道:




  • 有没有其他替代品库可以使用?

  • 任何人有任何使用WPD的提示或经验吗?

  • 是否有任何精简依赖关系可以安装,而不是WMP11 for xp?



任何帮助将非常感激。

解决方案<


我有这个问题的答案吗? /精简图书馆?





  • 您可以使用WIA,但只能用于图片。



  • 任何提示?





    • 查看由Microsoft提供的示例代码,这是一个很好的起点。我发现它正在MSDN上搜索便携式设备COM API示例

    • 对于服务,您可以查看此示例代码。我通过搜索wpdServicesApiSample
    • $ b发现了
    • WPD api可以使用。

    • 并非所有设备都支持MTP,有些设备仅支持部分。这导致我有一些问题,但我们使用的设备发布更新,支持更多的MTP

    • 我发现了关于XP的问题的答案从这个StackOverflow 由pcbbc真的有帮助。我也可以补充说,我们邮寄供应商,并要求一个自定义.INF文件来支持XP,他们真的有帮助,并提供给我们。但是在我们得到它之前需要一些时间。


    I'm developing a PC c++ application running on windows. The application shall communicate with an android phone connected thru USB, using MTP. The idée is to not mount the Storage Card. What I have found is that Windows have something they call WPD (Windows Portable Device ) which supports MTP. It looks pretty ok but it demands WMP11 to be installed. What I wondering:

    • Is there are any other alternatives libraries you can use?
    • Do any one have any tips or experience about using WPD?
    • Are there any "leaner" dependencies you can install instead of WMP11 for xp?

    Any help would be greatly appreciated.

    解决方案

    I here provide some answers to my question for the hope that it will help some one else.

    Is there any alternatives/leaner libraries?

    • You can use WIA but that is only used for images. but a part from that I have not found any.

    Any tips?

    • Check out the sample code provided by Microsoft, it is a good start point. I found it be searching for Portable Devices COM API Sample on MSDN
    • For Services you can check out this sample code. Which I found by googling for WpdServicesApiSample
    • The WPD api is pretty ok to use.
    • Not all devices support MTP and some only support part of it. This caused me some problem but the device we used released an update which supported more of MTP
    • I found the answer about XP-problems from this StackOverflow by pcbbc really helpful. I can also add that we mailed the supplier and asked for a custom .INF file to support XP and they were really helpful and provided us with it. But it took some time before we got it.

    这篇关于Windows MTP / WPD与Android设备通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆