PTP CHDK interface

179 views
Skip to first unread message

Alex

unread,
Mar 11, 2011, 4:41:20 AM3/11/11
to Magic Lantern firmware development
As you may know, I'm trying to port CHDK PTP functions to ML.

Background:

There were two efforts of reverse engineering for PTP communications:
- from Trammell Hudson (search for PTP in this mailing list)
- from Mweerden: http://www.mweerden.net/chdk_ptp.html

An interesting discussion between Trammell and Mweerden regarding this: http://chdk.setepontos.com/index.php?topic=4338.0;wap2

And here are my attempts to find some code equivalence between CHDK and ML PTP implementations: http://chdk.setepontos.com/index.php?topic=3290.msg62079#msg62079

Short term goal: to be able to upload autoexec.bin via USB (in order to protect the SD card slot from mechanical wear).

First step of progress: I'm able to read camera memory via PTP, with ptpcam:

alex@karmic:~/src/ml/my109/550d/ptp/libptp2-1.1.10/src$ ./ptpcam --chdk
<conn> m 0x350080-0x350180
00350080  c8 24 00 00 92 32 b6 5d  5b 4d 41 47 49 43 5d 20  |.$...2.][MAGIC] |
00350090  64 65 62 75 67 5f 6c 6f  6f 70 5f 74 61 73 6b 3a  |debug_loop_task:|
003500a0  31 31 38 30 3a 20 4d 6f  76 52 65 63 53 74 61 74  |1180: MovRecStat|
003500b0  65 3a 20 30 00 00 00 00  00 00 00 00 00 00 00 00  |e: 0............|
...


Alex

unread,
Mar 11, 2011, 11:25:44 AM3/11/11
to Magic Lantern firmware development
File upload/download works, although a bit slow. You can now install ML without swapping the card, by typing:

make ptpinstall

(only for developers)

PTP source code is committed.

Details here: http://magiclantern.wikia.com/wiki/PTP-CHDK
magiclantern-2011Mar11.550d.fw109.AudioMon.PTP.alex.zip

K.

unread,
Mar 11, 2011, 2:16:47 PM3/11/11
to ml-d...@googlegroups.com
wow this is great :)

2011/3/11 Alex <broscu...@gmail.com>

--
http://magiclantern.wikia.com/
 
To post to this group, send email to ml-d...@googlegroups.com
To unsubscribe from this group, send email to ml-devel+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en

Reply all
Reply to author
Forward
0 new messages