[ML] Canon PTP commands

735 views
Skip to first unread message

Trammell Hudson

unread,
Apr 21, 2010, 7:21:20 PM4/21/10
to ml-d...@googlegroups.com
Thanks to an anonymous .net programmer, here are the PTP commands
from the SDK:

public const uint PtpNextPhase_NoData = 0;
public const uint PtpNextPhase_ReadData = 1;
public const uint PtpNextPhase_WriteData = 2;
public const int PtpOpe_CLOSE_SESSION = 0x1003;
public const int PtpOpe_DELETE_OBJECT = 0x100b;
public const int PtpOpe_DS_CANCELTRANSFER = 0x9118;
public const int PtpOpe_DS_CREAGE_OBJECT = 0x9112;
public const int PtpOpe_DS_DELETE_OBJECT = 0x9105;
public const int PtpOpe_DS_FAPI_MESSAGERX = 0x91ff;
public const int PtpOpe_DS_FAPI_MESSAGETX = 0x91fe;
public const int PtpOpe_DS_FORMAT_STORE = 0x9106;
public const int PtpOpe_DS_GET_DEVICEINFOEX = 0x9108;
public const int PtpOpe_DS_GET_EVENT = 0x9116;
public const int PtpOpe_DS_GET_OBJECT = 0x9104;
public const int PtpOpe_DS_GET_OBJECTINFO = 0x9103;
public const int PtpOpe_DS_GET_OBJECTINFOEX = 0x9109;
public const int PtpOpe_DS_GET_OBJECTTIME = 0x910d;
public const int PtpOpe_DS_GET_PARTIALOBJECT = 0x9107;
public const int PtpOpe_DS_GET_REMOTEMODE = 0x9113;
public const int PtpOpe_DS_GET_STORAGEIDS = 0x9101;
public const int PtpOpe_DS_GET_STORAGEINFO = 0x9102;
public const int PtpOpe_DS_GET_THUMB_EX = 0x910a;
public const int PtpOpe_DS_KEEPDEVICE_ON = 0x911d;
public const int PtpOpe_DS_PCHDDCAPACITY = 0x911a;
public const int PtpOpe_DS_REMOTE_RELEASE = 0x910f;
public const int PtpOpe_DS_RESET_UILOCK = 0x911c;
public const int PtpOpe_DS_RESETTRANSFER = 0x9119;
public const int PtpOpe_DS_SEND_OBJECTEX = 0x9111;
public const int PtpOpe_DS_SEND_PARTIAL_OBJECT = 0x910b;
public const int PtpOpe_DS_SET_DEVICEPROPVALUEEX = 0x9110;
public const int PtpOpe_DS_SET_EVENTMODE = 0x9115;
public const int PtpOpe_DS_SET_NULLPACKETMODE = 0x911e;
public const int PtpOpe_DS_SET_OBJECTATRIBUTES = 0x910c;
public const int PtpOpe_DS_SET_OBJECTTIME = 0x910e;
public const int PtpOpe_DS_SET_REMOTEMODE = 0x9114;
public const int PtpOpe_DS_SET_UILOCK = 0x911b;
public const int PtpOpe_DS_TRANFERCOMPLETE = 0x9117;
public const int PtpOpe_DS_UPDATE_FIRMWARE = 0x911f;
public const int PtpOpe_GET_DEVICEINFO = 0x1001;
public const int PtpOpe_GET_NUMOBJECTS = 0x1006;
public const int PtpOpe_GET_OBJECT = 0x1009;
public const int PtpOpe_GET_OBJECTHANDLES = 0x1007;
public const int PtpOpe_GET_OBJECTINFO = 0x1008;
public const int PtpOpe_GET_PARTIALOBJECT = 0x101b;
public const int PtpOpe_GET_STORAGEIDS = 0x1004;
public const int PtpOpe_GET_STORAGEINFO = 0x1005;
public const int PtpOpe_GET_THUMB = 0x100a;
public const int PtpOpe_OPEN_SESSION = 0x1002;
public const int PtpOpe_SEND_OBJECT = 0x100d;
public const int PtpOpe_SEND_OBJECTINFO = 0x100c;
public const int PtpOpe_UNDEFINED = 0x1000;

--
Trammell

--
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

Curt von Badinski

unread,
Apr 22, 2010, 1:02:40 AM4/22/10
to ml-d...@googlegroups.com
Very handy, thanks Trammell!
--
Curt von Badinski
Maker of Things

pel

unread,
Apr 22, 2010, 3:49:55 PM4/22/10
to ml-d...@googlegroups.com
A few more from the EDSDK.dll

DS_TRANFERCOMPLETE_DT = 0x9120;
DS_CANCELTRANSFER_DT = 0x9121;
DS_INITIATEVIEWFINDER = 0x9151;
DS_TERMINATEVIEWFINDER = 0x9152;
DS_GETVIEWFINDERDATA = 0x9153;
DS_DRIVELENS = 0x9155;
DS_DEPTHOFFIELDPREVIEW = 0x9156;
DS_CLICKWB = 0x9157;
DS_ZOOM = 0x9158;
DS_ZOOM_POSITION = 0x9159;
DS_SETLIVEAF_FRAME = 0x915a;
DS_SETWFTPROFILE = 0x9122;
DS_GETWFTPROFILE = 0x9123;
DS_SETPROFILETOWFT = 0x9124;
DS_BULB_START = 0x9125;
DS_BULB_END = 0x9126;
DS_REQUESTDEVICEPROPVALUE = 0x9127;
DS_REMOTERELEASEON = 0x9128;
DS_REMOTERELEASEOFF = 0x9129;
DS_DOAF = 0x9154;
DS_AFCANCEL = 0x9160;
DS_FAPI_MESSAGETX = 0x91fe;
DS_FAPI_MESSAGERX = 0x91ff;
DS_REGISTBACKGROUNDIMAGE = 0x912a;
DS_CHANGEPHOTOSTADIOMODE = 0x912b;
DS_GETPARTIALOBJECTEX = 0x912c;
DS_RESETMIRRORLOCKUPSTATE = 0x9130;
DS_POPUPBUILTINLFLASH = 0x9131;
DS_ENDGETPARTIALOBJECTEX = 0x9132;
DS_MOVIESELECTSWON = 0x9133;
DS_MOVIESELECTSWOFF = 0x9134;

Curt von Badinski

unread,
Apr 22, 2010, 6:48:30 PM4/22/10
to ml-d...@googlegroups.com

Found this EDSDK API reference online... might be of use to someone...

-Curt

Antony Newman

unread,
Apr 23, 2010, 9:30:49 AM4/23/10
to ml-d...@googlegroups.com

Great find Curt.

Reply all
Reply to author
Forward
0 new messages