Re: MTP extensions

Richard Low <[email protected]> Wed, 28 Dec 2005 22:22:26 +0000
Newsgroups gmane.comp.multimedia.libnjb.user
Message-ID <[email protected]>
On 28 Dec 2005, at 13:08, Linus Walleij wrote:

> We would prefer to keep libnjb BSD-licensed so we must be careful  
> on linking here. Myself I don't mind making libnjb GPL but it may  
> be problematic to some people.

Probably best anyway if we keep the libraries separate.  But then  
build some common interface with lots of if (mtp_device) ... else ...

> Also I didn't quite get it if your implementation was, say "inside"  
> of libptp2 (a patched libptp2) or "on top" of libptp2 so it'd be  
> stand-alone, something like libmtp on top of libptp2...

What I've done is both: a bit about how data is sent and received  
needed to be changed in libptp2.  Then I've added an extra file mtp.c  
with extra mtp commands.

>> So I think the only remaining question on this front is about the  
>> enhanced MTP spec.  The licence gives an email address to ask  
>> about this.
>
> Why not ask? If the answer is "no" for GPL:ed drivers, we'll  
> reverse-engineer it. (I'm getting myself an MTP device ASAP.)

Will do.  I won't reverse engineer it as I've seen the spec so can't  
claim to have done it without using the spec.  But, having sniffed  
the WMP10 output, it is fairly easy to work out how it works,  
especially knowing the PTP protocol.

> That rules...! What kinds of device info? Battery stats and FW  
> versions too?

AFAIK you can get everything you could get before - certainly I've  
got battery, device/FW version, disk level, etc.  Only exception is I  
can't get the time - it gives me the not implemented reply.   
Interestingly the transfer is very quick - peak upload (PC->player)  
rate is about 55 Mbps, download (player->PC) about 60 Mbps - so about  
2x as fast as with PDE.

Richard.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click