.Net MTP / PTP Wrapper?

2019-04-06 07:26发布

I'm writting a hobby project to deal with files on cameras. Previously I found issues with the camera and the FolderBrowserDialog.

What I believe is happing is that the camera is using MTP or PTP (Picture Transfer Protocol not peer-to-peer).

In order to make interfacing with the camera more seamless I'd like to use PTP or MTP to access the camera. Are there any MTP / PTP Wrappers for .Net people can recommend? I'm keen to avoid writing my own or dabbling in unmanaged code if possible.

1条回答
趁早两清
2楼-- · 2019-04-06 08:00

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

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:

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)

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

Have you had any success with this project?

查看更多
登录 后发表回答