requesttype=0x01
Downloads a full image or thumbnail from camera storage. Similar with command in old protocol, but parameters differ.
Command: variable length (here 0x76 bytes)
00000000 33 00 00 00 02 02 00 00 00 00 00 00 00 00 00 00 3............... 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000040 02 00 00 00 01 00 20 11 33 00 00 00 18 cd 12 00 ...... .3....... 00000050 01 00 00 00 41 3a 2f 44 43 49 4d 2f 31 30 30 43 ....A:/DCIM/100C 00000060 41 4e 4f 4e 2f 49 4d 47 5f 30 30 39 38 2e 43 52 ANON/IMG_0098.CR 00000070 32 00 00 2..
Parameters:
0x50: Flag for download of thumbnail: 0x00000001 for thumbnail, 0x00000000 for full image.
0x54: Pathname of file to download, terminated by a two NUL bytes
The example requests download of the full image in file A:/DCIM/100CANON/IMG_0098.C2R. Notice the forward slashes in this pathname.
Response: 0x40 bytes (EOS 20D)
00000000 00 00 00 00 02 03 d6 3a 0e 00 00 00 00 00 00 00 .......:........ 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
This indicates a total file size of 1647748 bytes
(0x000e3ad6 from offset 0x06). After this, a series of 14
messages with length 0x10000 was read, then one read of length
0x3ac0. Finally, a read of 0x16 finished download of the
image. This example seems to be downloading a CR2 raw image
file; notice the TIFF magic
II*
at the
sbeginning.
00000000 49 49 2a 00 10 00 00 00 43 52 02 00 20 ee 07 00 II*.....CR.. ... 00000010 0e 00 00 01 03 00 01 00 00 00 00 06 4c cc 01 01 ............L... 00000020 03 00 01 00 00 00 00 04 33 33 02 01 03 00 03 00 ........33...... 00000030 00 00 be 00 00 00 03 01 03 00 01 00 00 00 06 00 ................ 00000040 cc cc 0f 01 02 00 06 00 00 00 c4 00 00 00 10 01 ................ 00000050 02 00 0e 00 00 00 ca 00 00 00 11 01 04 00 01 00 ................ 00000060 00 00 00 26 00 00 12 01 03 00 01 00 00 00 01 00 ...&............ 00000070 22 33 17 01 04 00 01 00 00 00 28 2a 03 00 1a 01 "3........(*.... 00000080 05 00 01 00 00 00 ea 00 00 00 1b 01 05 00 01 00 ................ 00000090 00 00 f2 00 00 00 28 01 03 00 01 00 00 00 02 00 ......(......... 000000a0 27 33 32 01 02 00 14 00 00 00 fa 00 00 00 69 87 '32...........i. 000000b0 04 00 01 00 00 00 0e 01 00 00 28 50 03 00 08 00 ..........(P.... 000000c0 08 00 08 00 43 61 6e 6f 6e 00 43 61 6e 6f 6e 20 ....Canon.Canon 000000d0 45 4f 53 20 32 30 44 00 dc cc cc cc 8c cc cc de EOS 20D......... 000000e0 33 33 77 b3 13 b6 cf f9 32 33 48 00 00 00 01 00 33w.....23H..... 000000f0 00 00 48 00 00 00 01 00 00 00 32 30 30 34 3a 31 ..H.......2004:1 00000100 31 3a 31 30 20 30 36 3a 34 33 3a 30 36 00 1c 00 1:10 06:43:06... 00000110 9a 82 05 00 01 00 00 00 64 02 00 00 9d 82 05 00 ........d....... 00000120 01 00 00 00 6c 02 00 00 22 88 03 00 01 00 00 00 ....l..."....... ... 00000000 ec ca cc cc ec cc ed ee cc d6 cc cc ef cc cc 48 ...............H 00000010 cc ae 33 33 b3 b7 ..33..