Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reversing keys for camera_info/param_info #825

Open
mrlt8 opened this issue Jun 2, 2023 · 2 comments
Open

Reversing keys for camera_info/param_info #825

mrlt8 opened this issue Jun 2, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@mrlt8
Copy link
Owner

mrlt8 commented Jun 2, 2023

These are some of the potential keys that I've been able to extract from the camera firmware for the K10020 tutk command which is what is called when using the camera_info and param_info MQTT/API topics.

1-60 seem identical for a couple of firmware versions I unpacked, but there are some differences for the rest.

1-60

{
   "1":"indicator",
   "2":"nightVision",
   "3":"bitRate",
   "4":"res",
   "5":"fps",
   "6":"horSwitch",
   "7":"verSwitch",
   "8":"osdSwitch",
   "9":"logsd",
   "10":"logUdisk",
   "11":"telntSwitch",
   "12":"recordType",
   "13":"MASwitch",
   "14":"MALevel",
   "15":"AASwitch",
   "16":"AALevel",
   "17":"SASwitch",
   "18":"CASwitch",
   "19":"TBStart",
   "20":"TBDuration",
   "21":"drawBoxSwitch",
   "22":"timezone",
   "23":"MMALevel",
   "24":"AMALevel",
   "25":"MAT",
   "26":"AST",
   "27":"motionTrack",
   "28":"motionCruisin",
   "29":"AASX",
   "30":"AASY",
   "31":"AALX",
   "32":"AALY",
   "33":"motionbackvalue",
   "34":"slide_x",
   "35":"slide_y",
   "36":"preset_x",
   "37":"preset_y",
   "38":"ubootflag",
   "39":"exposureModel",
   "40":"limit_max_x",
   "41":"limit_min_x",
   "42":"limit_max_y",
   "43":"limit_min_y",
   "44":"motor_limit_flag",
   "45":"resolution_select_flag",
   "46":"low_bitrate_num",
   "47":"watermark_flag",
   "48":"speaker_vol",
   "49":"pir_alarm_switch",
   "50":"NIGHT_LED_flag",
   "51":"sdcard_exist",
   "52":"autoRecordNum",
   "53":"autoRecordMem",
   "54":"dongle_led",
   "55":"alarmDate",
   "56":"alarmInterval",
   "57":"SDEVICE_ACTION",
   "58":"voice_switch",
   "59":"voice_scene",
   "60":"auto_clarity",
   ...
}

Older firmware 60-124

{
   ...
   "61":"cmc_upload",
   "62":"p2p_log",
   "63":"night_led_ex",
   "64":"night_cut_thr",
   "65":"slightEnable",
   "66":"slightMode",
   "67":"slightLowLight",
   "68":"slightBright",
   "69":"hms_enable",
   "70":"hms_state",
   "71":"slightPreemptSw",
   "72":"slightSwitch",
   "73":"lampPortMode",
   "74":"lampPortState",
   "75":"lampPortTriggeredH",
   "76":"lampPortTriggeredL",
   "77":"lampPortTimeOutH",
   "78":"lampPortTimeOutL",
   "79":"lampPortPreemptSw",
   "80":"floodSwitch",
   "81":"floodMode",
   "82":"floodBright",
   "83":"floodLightingTime",
   "84":"floodMasterSwitchA",
   "85":"floodMasterSwitchB",
   "86":"floodAlarmState",
   "87":"floodMMALevel",
   "88":"floodAudiograde",
   "89":"floodAlarmSwitch",
   "90":"floodAlarmAudioState",
   "91":"floodPIRMotionLevel",
   "92":"floodPIRChoose",
   "93":"floodPIRSilentTime",
   "94":"floodPIRDetection",
   "95":"floodPIRAlgorithmSwitch",
   "96":"slightAI",
   "97":"slightdurations",
   "98":"lampModeNew",
   "99":"lampEnvDark",
   "100":"lampMontion",
   "101":"lampSound",
   "102":"lampDurations",
   "103":"longitudeDegress",
   "104":"longitudeMinutes",
   "105":"longitudeSeconds",
   "106":"latitudeDegress",
   "107":"latitudeMinutes",
   "108":"latitudeMinutes",
   "109":"garageDoorZoneStartX",
   "110":"garageDoorZoneStartY",
   "111":"garageDoorZoneWidth",
   "112":"garageDoorZoneHeight",
   "113":"garageDoorZoneDirect",
   "114":"garageDoorScanEnabled",
   "115":"garageDoorNotifySwitch",
   "116":"garageDoorOpenTime",
   "117":"garageDoorState",
   "118":"garageResolution",
   "119":"garageStartX",
   "120":"garageStartY",
   "121":"garageAreaLenX",
   "122":"garageAreaLenY",
   "123":"garageWindowLen",
   "124":"garageWIndowStep"
}

Newer firmware 60-155

{
   ...
    "61":"p2p_log",
   "62":"CamPlus",
   "63":"HMSActiveAlarm",
   "64":"EdgeAI",
   "65":"ObjectDetection",
   "66":"FaceRecognition",
   "67":"EventInsight",
   "68":"SoundDetection",
   "69":"auto_clarity",
   "70":"cmc_upload",
   "71":"night_led_ex",
   "72":"night_cut_thr",
   "73":"slightEnable",
   "74":"slightMode",
   "75":"slightLowLight",
   "76":"slightBright",
   "77":"hms_enable",
   "78":"hms_state",
   "79":"slightPreemptSw",
   "80":"slightSwitch",
   "81":"lampPortMode",
   "82":"lampPortState",
   "83":"lampPortTriggeredH",
   "84":"lampPortTriggeredL",
   "85":"lampPortTimeOutH",
   "86":"lampPortTimeOutL",
   "87":"lampPortPreemptSw",
   "88":"floodSwitch",
   "89":"floodMode",
   "90":"floodBright",
   "91":"floodLightingTime",
   "92":"floodMasterSwitchA",
   "93":"floodMasterSwitchB",
   "94":"floodAlarmState",
   "95":"floodMMALevel",
   "96":"floodAudiograde",
   "97":"floodAlarmSwitch",
   "98":"floodAlarmAudioState",
   "99":"floodPIRMotionLevel",
   "100":"floodPIRChoose",
   "101":"floodPIRSilentTime",
   "102":"floodPIRDetection",
   "103":"floodPIRAlgorithmSwitch",
   "104":"main_ir_led_switch",
   "105":"ir_led_distance",
   "106":"system_log_level",
   "107":"garageDoorZoneStartX",
   "108":"garageDoorZoneWidth",
   "109":"garageDoorZoneHeight",
   "110":"garageDoorScanEnabled",
   "111":"deviceServiceSinker",
   "112":"deviceServiceWebRTC",
   "113":"deviceServiceServices",
   "114":"floodPIRAlgorithmSwitch",
   "115":"slightAI",
   "116":"slightdurations",
   "117":"lampModeNew",
   "118":"lampEnvDark",
   "119":"lampMontion",
   "120":"lampSound",
   "121":"lampDurations",
   "122":"longitudeDegress",
   "123":"longitudeMinutes",
   "124":"longitudeSeconds",
   "125":"latitudeDegress",
   "126":"latitudeMinutes",
   "127":"latitudeMinutes",
   "128":"garageDoorZoneStartY",
   "129":"garageDoorZoneDirect",
   "130":"garageDoorNotifySwitch",
   "131":"garageDoorOpenTime",
   "132":"garageDoorState",
   "133":"garageResolution",
   "134":"garageStartX",
   "135":"garageStartY",
   "136":"garageAreaLenX",
   "137":"garageAreaLenY",
   "138":"garageWindowLen",
   "139":"garageWIndowStep",
   "140":"ssid_enc",
   "141":"pass_enc",
   "142":"enr_enc",
   "143":"p2p_id_enc",
   "144":"video_resolution_width",
   "145":"video_resolution_height",
   "146":"whitelightDrightness",
   "147":"whitelightmode",
   "148":"whitelightenvdark",
   "149":"whitelightmontiondark",
   "150":"whitelightsounddark",
   "151":"whitelightduration",
   "152":"whitelightPreemptSw",
   "153":"whitelightai",
   "154":"spotlightenvdark",
   "155":"garageidentifyframe"
}
@mrlt8 mrlt8 added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 2, 2023
@gtxaspec
Copy link

gtxaspec commented Jun 30, 2023

@mrlt8 is there a way to set these via the API yet? param_info right? no changes when i try to modify the key using curl

@mrlt8
Copy link
Owner Author

mrlt8 commented Jun 30, 2023

It depends on the param you want to set. We can set some values, but not all.
I believe wyze allows some additional controls via the Web API, but haven't had a chance to identify them yet. You can see some of the "p" values here: :5000/api/cam/device_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants