LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   MTP gadget driver (https://www.linuxquestions.org/questions/programming-9/mtp-gadget-driver-651491/)

Robert_A 06-25-2008 03:45 AM

MTP gadget driver
 
Hi all,

is there a MTP gadget driver implementation for the mainline kernel?

Even if the driver is an alpha/beta release i would be interested to test/improve the sources.

Thanks in advance,
Robert

schneidz 06-25-2008 01:10 PM

if you are talking about media transfer protocol then i have had success with libusb and libmtp

Robert_A 06-26-2008 01:35 AM

Quote:

Originally Posted by schneidz (Post 3194942)
if you are talking about media transfer protocol then i have had success with libusb and libmtp

Yes, I mean Media Transfer Protocol. I know the two libs: libusb/libmtp but i thought they are only used to access USB/MTP devices?

But what I want to do is to create a MTP device, so I thought I have to use a Gadget driver for this. E.g. the usbfs gadget driver takes a Filesystem and provides it as an USB Mass storage device.

I want the same thing, but only with the Media Transfer Protocol.

Thanks,
Robert

schneidz 06-26-2008 10:18 AM

so you want drag-and-drop functionality from mtp devices. i am not a device driver expert so i will suggest using libmtp to emulate that functionality.

like:
Code:

ls -> mtp-files
rm -> mtp-delfile
mkdir -> mtp-newfolder
cp -> mtp-sendfile

like creating a front end for the libmtp calls. sorry i couldnt be of more help.

schneidz 06-26-2008 10:54 AM

this thread mentions mtpfs
http://www.linuxquestions.org/questi...nux...-624099/
never heard of it
good luck

Robert_A 06-30-2008 03:08 AM

Quote:

Originally Posted by schneidz (Post 3195896)
this thread mentions mtpfs
http://www.linuxquestions.org/questi...nux...-624099/
never heard of it
good luck

Hi schneidz,
thx for your response.

I know the mtpfs, but for my understanding it is used to map the contents of a MTP device in the Userspace Filesystem (FUSE). But what I want to do is to take the contents of my Userspace Filesytem and provide it to e.g. a normal Windows PC.

So it is the other direction.
Robert

schneidz 06-30-2008 11:49 AM

i have a creative zen vision w that doesnt work with win2k. so instead of paying $400 for windows vista my solution was to download and run knoppix-live-cd.

are you taliking about a specific media player. i think the manufacturer (in my case creative) makes the device drivers so if your using a current version of windows it should work.

i dont have much experience with windows programming (is fuse available for windows ?) if more than one pc consider running samba.

v.o. 01-14-2010 02:51 PM

Robert_A, Did you find anything?


All times are GMT -5. The time now is 02:27 PM.