简体   繁体   English

.Net MTP / PTP包装器?

[英].Net MTP / PTP Wrapper?

I'm writting a hobby project to deal with files on cameras. 我正在写一个爱好项目来处理相机上的文件。 Previously I found issues with the camera and the FolderBrowserDialog . 以前我发现相机和FolderBrowserDialog有问题

What I believe is happing is that the camera is using MTP or PTP (Picture Transfer Protocol not peer-to-peer). 我认为讨厌的是相机正在使用MTP或PTP(图片传输协议而不是点对点)。

In order to make interfacing with the camera more seamless I'd like to use PTP or MTP to access the camera. 为了更加无缝地与相机连接,我想使用PTP或MTP来访问相机。 Are there any MTP / PTP Wrappers for .Net people can recommend? 是否有.Net人可以推荐的MTP / PTP包装器? I'm keen to avoid writing my own or dabbling in unmanaged code if possible. 如果可能的话,我很想避免编写我自己的或涉及非托管代码。

I have found this blog post by dimeby8 which has been a great starting point with a lot of useful information about how the protocol works, however it leaves a lot to be desired in the way of managed implementations 我发现这篇由dimeby8撰写的博客文章,它是一个很好的起点,提供了很多关于协议如何工作的有用信息,但是在托管实现的方式上还有很多不足之处。

http://blogs.msdn.com/dimeby8/archive/tags/C_2300_/default.aspx http://blogs.msdn.com/dimeby8/archive/tags/C_2300_/default.aspx

I have also found a crude C++/CLI MTP wrapper- it has next to no functionality but is a good demonstration of mixed managed/unmanged code: 我还发现了一个原始的C ++ / CLI MTP包装器 - 它几乎没有任何功能,但它是混合托管/非托管代码的良好演示:

http://ko.sourceforge.jp/projects/sfnet_mtpsharp/ http://ko.sourceforge.jp/projects/sfnet_mtpsharp/

And there's a CodePlex project but it doesn't demonstrate transfers or - what I'm interested in- editing camera metadata (specifically the camera date) 并且有一个CodePlex项目,但它没有演示传输或 - 我感兴趣的是 - 编辑相机元数据(特别是相机日期)

http://www.codeplex.com/portabledevicelib/ http://www.codeplex.com/portabledevicelib/

Have you had any success with this project? 你有这个项目的成功吗?

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

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