Need help to parse the ptp data

Started by blacklake, November 07, 2014, 09:43:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blacklake

Hi,

This question is not about ML, but about the ptp comminication control with Canon camera.

I am going to use my computer to control the camera shooting with focus stacking,  i.e, take several images, each one moving closer to the subject by a tiny amount and each image will have a different part of the subject in focus. My Canon camera is 650D. Now I use the libgphoto with my Linux computer, it is based on the ptp command to communicate with my Canon camera.

After I sent the 0x9154 autofocus command in liveview mode, I could find the 0xd1d3 property changed. The following data blob was caught during the communication.

  line0     OUT    0c 00 00 00  01 00 16 91         
                         3d 06 00 00                       
                IN     78 01 00 00  02 00 16 91         
                         3d 06 00 00  10 00 00 00         
                         89 c1 00 00  c0 d1 00 00         
                         00 00 00 00  26 01 00 00         <-  datablob property 0xd1d3
                         89 c1 00 00  d3 d1 00 00       
                         1a 01 00 00  16 01 02 00         
                         1f 00 09 00  40 14 80 0d         
                         40 14 80 0d  81 00 81 00       
                         81 00 b5 00  de 00 b5 00       
                         81 00 81 00  81 00 00 00       
                         00 00 00 00  00 00 00 00         
                         00 00 00 00  00 00 00 00         
                         00 00 00 00  00 00 00 00         
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 ac 00  ac 00 ac 00       
                         75 00 e0 00  75 00 ac 00       
                         ac 00 ac 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         a8 fa cd fc  cd fc 00 00       
                         00 00 00 00  33 03 33 03       
                         58 05 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         83 01 7d fe  fb 02 00 00       
                         05 fd 83 01  7d fe 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  00 00 00 00       
                         00 00 00 00  10 00 00 00       
                         10 00 00 00  00 00 00 00       
                         ff ff 1e 00  00 00 a5 c1       
                         00 00 16 00  00 00 00 09     
                         00 00 00 00  00 00 01 00       
                         01 00 00 00  00 00 00 00       
                         10 00 00 00  89 c1 00 00     
                         b7 d1 00 00  01 00 00 00     
                         08 00 00 00  00 00 00 00       

I could find the beginning header of property 0xd1d3, but have no idea how to parse those following data. It seems that the following (0x1440,0xd80) are the pixel size of the camera CMOS. You ML developper know the Canon camera better than me, Could you give me more detail or clue to parse those data? It is really hard to find relative information on the Internet.

Thanks for your help!