# Camera Commands (CameraProto) Module **CAMERA_TELE** (ID=1) and **CAMERA_WIDE** (ID=2) share the same message types but use different command ID ranges. ## Camera Types | CameraType | camId | Description | |------------|-------|-------------| | Tele | 0 | Telescope camera (primary) | | Wide | 1 | Wide-angle camera | | General | 15 | Generic camera | ## TELE Commands (Module 1, base 10000) | ID | Command | Description | |----|---------|-------------| | 10000 | OPEN_CAMERA | Open camera | | 10001 | CLOSE_CAMERA | Close camera | | 10002 | PHOTOGRAPH | Take photo | | 10003 | BURST | Start burst capture | | 10004 | STOP_BURST | Stop burst | | 10005 | START_RECORD | Start video recording | | 10006 | STOP_RECORD | Stop recording | | 10007 | SET_EXP_MODE | Set exposure mode | | 10008 | GET_EXP_MODE | Get exposure mode | | 10009 | SET_EXP | Set exposure value | | 10010 | GET_EXP | Get exposure value | | 10011 | SET_GAIN_MODE | Set gain mode | | 10012 | GET_GAIN_MODE | Get gain mode | | 10013 | SET_GAIN | Set gain value | | 10014 | GET_GAIN | Get gain value | | 10015 | SET_BRIGHTNESS | Set brightness | | 10016 | GET_BRIGHTNESS | Get brightness | | 10017 | SET_CONTRAST | Set contrast | | 10018 | GET_CONTRAST | Get contrast | | 10019 | SET_SATURATION | Set saturation | | 10020 | GET_SATURATION | Get saturation | | 10021 | SET_HUE | Set hue | | 10022 | GET_HUE | Get hue | | 10023 | SET_SHARPNESS | Set sharpness | | 10024 | GET_SHARPNESS | Get sharpness | | 10025 | SET_WB_MODE | Set white balance mode | | 10026 | GET_WB_MODE | Get white balance mode | | 10027 | SET_WB_SCENE | Set WB scene | | 10028 | GET_WB_SCENE | Get WB scene | | 10029 | SET_WB_CT | Set WB color temperature | | 10030 | GET_WB_CT | Get WB color temperature | | 10031 | SET_IRCUT | Set IR-cut filter | | 10032 | GET_IRCUT | Get IR-cut filter | | 10033 | START_TIMELAPSE_PHOTO | Start timelapse | | 10034 | STOP_TIMELAPSE_PHOTO | Stop timelapse | | 10035 | SET_ALL_PARAMS | Set all parameters | | 10036 | GET_ALL_PARAMS | Get all parameters | | 10037 | SET_FEATURE_PARAM | Set feature parameter | | 10038 | GET_ALL_FEATURE_PARAMS | Get all feature parameters | | 10039 | GET_SYSTEM_WORKING_STATE | Get system working state | | 10040 | SET_JPG_QUALITY | Set JPG quality | | 10041 | PHOTO_RAW | Take RAW photo | | 10042 | SET_RTSP_BITRATE_TYPE | Set RTSP bitrate | | 10043 | DISABLE_ALL_ISP_PROCESSING | Disable all ISP | | 10044 | ENABLE_ALL_ISP_PROCESSING | Enable all ISP | | 10045 | SET_ISP_MODULE_STATE | Set ISP module state | | 10046 | GET_ISP_MODULE_STATE | Get ISP module state | | 10047 | SWITCH_RESOLUTION | Switch resolution | | 10048 | SWITCH_FRAMERATE | Switch framerate | | 10049 | SWITCH_CROP_RATIO | Switch crop ratio | | 10050 | SET_PREVIEW_QUALITY | Set preview quality | ## WIDE Commands (Module 2, base 12000) | ID | Command | Description | |----|---------|-------------| | 12000 | OPEN_CAMERA | Open camera | | 12001 | CLOSE_CAMERA | Close camera | | 12002 | SET_EXP_MODE | Set exposure mode | | 12003 | GET_EXP_MODE | Get exposure mode | | 12004 | SET_EXP | Set exposure value | | 12005 | GET_EXP | Get exposure value | | 12006 | SET_GAIN | Set gain value | | 12007 | GET_GAIN | Get gain value | | 12008 | SET_BRIGHTNESS | Set brightness | | 12009 | GET_BRIGHTNESS | Get brightness | | 12010 | SET_CONTRAST | Set contrast | | 12011 | GET_CONTRAST | Get contrast | | 12012 | SET_SATURATION | Set saturation | | 12013 | GET_SATURATION | Get saturation | | 12014 | SET_HUE | Set hue | | 12015 | GET_HUE | Get hue | | 12016 | SET_SHARPNESS | Set sharpness | | 12017 | GET_SHARPNESS | Get sharpness | | 12018 | SET_WB_MODE | Set white balance mode | | 12019 | GET_WB_MODE | Get white balance mode | | 12020 | SET_WB_CT | Set WB color temperature | | 12021 | GET_WB_CT | Get WB color temperature | | 12022 | PHOTOGRAPH | Take photo | | 12023 | BURST | Start burst | | 12024 | STOP_BURST | Stop burst | | 12025 | START_TIMELAPSE_PHOTO | Start timelapse | | 12026 | STOP_TIMELAPSE_PHOTO | Stop timelapse | | 12027 | GET_ALL_PARAMS | Get all parameters | | 12028 | SET_ALL_PARAMS | Set all parameters | | 12029 | PHOTO_RAW | Take RAW photo | | 12030 | START_RECORD | Start recording | | 12031 | STOP_RECORD | Stop recording | | 12032 | SET_RTSP_BITRATE_TYPE | Set RTSP bitrate | | 12035 | SET_WB_SCENE | Set WB scene | | 12036 | SET_PREVIEW_QUALITY | Set preview quality | > **Note**: WIDE has gaps at 12033-12034 (not assigned). ## Key Message Definitions ### ReqOpenCamera | Field | # | Type | Description | |-------|---|------|-------------| | `binning` | 1 | bool | Enable binning mode | | `rtspEncodeType` | 2 | int32 | RTSP encoding type | ### ReqSetAllParams / ReqGetAllParams | Field | # | Type | Description | |-------|---|------|-------------| | `expMode` | 1 | int32 | Exposure mode | | `expIndex` | 2 | int32 | Exposure index | | `gainMode` | 3 | int32 | Gain mode | | `gainIndex` | 4 | int32 | Gain index | | `ircutValue` | 5 | int32 | IR-cut value | | `wbMode` | 6 | int32 | White balance mode | | `wbIndexType` | 7 | int32 | WB index type | | `wbIndex` | 8 | int32 | WB index | | `brightness` | 9 | int32 | Brightness | | `contrast` | 10 | int32 | Contrast | | `hue` | 11 | int32 | Hue | | `saturation` | 12 | int32 | Saturation | | `sharpness` | 13 | int32 | Sharpness | | `jpgQuality` | 14 | int32 | JPG quality | ### IspModuleState | Field | # | Type | Description | |-------|---|------|-------------| | `moduleId` | 1 | int32 | ISP module ID | | `state` | 2 | bool | Module state (on/off) | ### ReqBurstPhoto | Field | # | Type | Description | |-------|---|------|-------------| | `count` | 1 | int32 | Number of burst frames |