Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to up- and download data from an USB device using MTP (Device is not a camera)

Tags:

c++

c#

usb

mtp

I hope you can help me - my task is to up- and download some files to an USB device using MTP.

I found this great example: http://www.codeproject.com/Articles/30726/Transferring-D90-images-with-WIA and now I can transfer some images from my Smartphone to the PC and I was able to enhance this example towards giving me the same device information like in Device Manager (e.g. ID, Manufacturer, PnP ID String etc.) So far so good. This example uses WIA and I guess it will be only possible to transfer images from the device, isn´t it?

So my question is - What technique is needed to up- and download files to an USB device which is connected via MTP? I spend days with asking google, but I found not a working solution or an working example. Microsoft is not a help in this issue, mostly all links on their page are dead.

I hope here´s someone who can push me into right direction, so that I can solve this one.

Thanks in advance.

like image 741
Tom Avatar asked Dec 12 '12 20:12

Tom


People also ask

How do I fix my MTP USB device driver?

Fix MTP USB Device Driver Problem - Option 1Download MPT (Media Transfer Protocol) Porting Kit from Microsoft's official website. Install it to your computer. Reboot your computer. Reconnect your mobile phone to your computer by using the USB cable.

How do I update my USB to MTP?

You can install MTP USB device driver via Windows Update. Go to Windows Setting > Update & Security > Check for Updates. Windows will download and install the latest update of the MTP USB driver on your computer.


1 Answers

I believe the Windows Portable Devices (WPD) API is what you're after.

http://msdn.microsoft.com/en-us/library/dd389005(v=vs.85).aspx

like image 129
gigaplex Avatar answered Nov 05 '22 06:11

gigaplex