-------------------- Command Examples -------------------- Get Token | 257 ------------- SEND {"msg_id":257,"token":0} RECV {"rval":0,"msg_id":257,"param":1} Take Photo | 769 ------------- SEND {"msg_id":769,"token":1} RECV {"rval":0,"msg_id":769,"param":"C:\\AMBA\\170625000\\18101900.JPG"} Start Recording | 513 ------------- SEND {"msg_id":513,"token":1} RECV {"rval":0,"msg_id":513} Get Record time | 515 ------------- * On its own it returns some error {"msg_id":515,"token":1} {"rval":-14,"msg_id":515} * Within a recording it returns the seconds of recording {"msg_id":513,"token":1} {"rval":0,"msg_id":513} {"msg_id":515,"token":1} {"rval":0,"msg_id":515,"param":15} {"msg_id":515,"token":1} {"rval":0,"msg_id":515,"param":24} {"msg_id":515,"token":1} {"rval":0,"msg_id":515,"param":28} {"msg_id":515,"token":1} {"rval":0,"msg_id":515,"param":33} {"msg_id":514,"token":1} {"rval":0,"msg_id":514,"param":"C:\\AMBA\\170625000\\190001AA.MP4"} Stop Recording | 514 ------------- SEND {"msg_id":514,"token":1} RECV {"rval":0,"msg_id":514,"param":"C:\\AMBA\\170625000\\181631AA.MP4"} Check Battery | 13 ------------- * plugged into USB, charging SEND {"msg_id":13,"token":1} RECV {"rval":0,"msg_id":13,"type":"adapter","param":5} * unplugged from USB and turned off SEND {"msg_id":13,"token":1} RECV {"rval":0,"msg_id":13,"type":"battery","param":3} * Here there were 2 bars shown SEND {"msg_id":13,"token":1} RECV {"rval":0,"msg_id":13,"type":"battery","param":1} * No bars shown, just the empty battery icon Check Card Space| 5 ------------- 27.6 GB Free SEND {"msg_id":5,"token":1} RECV {"rval":-7,"msg_id":5} * bad format response? SEND {"msg_id":5,"token":1,"type":"total"} RECV {"rval":0,"msg_id":5,"param":31154688} SEND {"msg_id":5,"token":1,"type":"free"} RECV {"rval":0,"msg_id":5,"param":28911520} * It appears as if this value is given in kBytes Get Cam Config | 3 ------------- SEND {"msg_id":3,"token":1} RECV {"rval":0,"msg_id":3,"param":[{"video_resolution":"3840x2160 25P 16:9"},{"photo_size":"16M (4608x3456 4:3)"},{"video_quality":"sfine"},{"photo_quality":"sfine"},{"Default_Mode":"Record"},{"Quick_Capture":"off"},{"EIS":"on"},{"Detection":"off"},{"Long_Exposure":"off"},{"Dual_Files":"off"},{"video_stamp":"off"},{"photo_stamp":"off"},{"video_timelapse":"off"},{"Loop_Record":"off"},{"photo_selfTimer":"off"},{"photo_burstRate":"off"},{"photo_autoShoot":"off"},{"Auto_DVR":"off"},{"Delay_OFF":"5s"},{"TV_Mode":"PAL"},{"Light_Freq":"50hz"},{"OSD":"on"},{"Auto_Shutdown":"off"},{"Screen_OFF":"30s"},{"Status_LED":"1"},{"wifi_LED":"on"},{"TV OUT":"off"},{"Beep":"on"},{"Mic_Volume":"80%"},{"sharpness":"normal"},{"AWB":"auto"},{"EV_Value":"0.0"},{"Scene_Mode":"Normal"},{"Effect_Mode":"Normal"},{"ISO":"Auto"},{"Metering":"center"},{"camera_clock":"2017-06-25 18:35:51"},{"Date_Format":"ymd"},{"Language":"English"},{"wifi":"on"},{"wifi_ssid":"ThiEYE_CAM_457479"},{"wifi_password":"1234567890"},{"default_setting":"n/a"},{"capture_mode":"precise"},{"sw_version":"TI/UN5-170112-V5.0"},{"hw_version":"TI/UN5-V5.0"},{"app_status":"vf"},{"stream_type":"rtsp"},{"sys_mode":"record"},{"rec_mode":"Normal_Record"},{"photo_mode":"No in photo mode!"},{"Switch_mode":"n/a"},{"Power":"n/a"}]} * Split up for readability {"rval":0,"msg_id":3,"param":[ {"video_resolution":"3840x2160 25P 16:9"}, {"photo_size":"16M (4608x3456 4:3)"}, {"video_quality":"sfine"}, {"photo_quality":"sfine"}, {"Default_Mode":"Record"}, {"Quick_Capture":"off"}, {"EIS":"on"}, {"Detection":"off"}, {"Long_Exposure":"off"}, {"Dual_Files":"off"}, {"video_stamp":"off"}, {"photo_stamp":"off"}, {"video_timelapse":"off"}, {"Loop_Record":"off"}, {"photo_selfTimer":"off"}, {"photo_burstRate":"off"}, {"photo_autoShoot":"off"}, {"Auto_DVR":"off"}, {"Delay_OFF":"5s"}, {"TV_Mode":"PAL"}, {"Light_Freq":"50hz"}, {"OSD":"on"}, {"Auto_Shutdown":"off"}, {"Screen_OFF":"30s"}, {"Status_LED":"1"}, {"wifi_LED":"on"}, {"TV OUT":"off"}, {"Beep":"on"}, {"Mic_Volume":"80%"}, {"sharpness":"normal"}, {"AWB":"auto"}, {"EV_Value":"0.0"}, {"Scene_Mode":"Normal"}, {"Effect_Mode":"Normal"}, {"ISO":"Auto"}, {"Metering":"center"}, {"camera_clock":"2017-06-25 18:35:51"}, {"Date_Format":"ymd"}, {"Language":"English"}, {"wifi":"on"}, {"wifi_ssid":"ThiEYE_CAM_457479"}, {"wifi_password":"1234567890"}, {"default_setting":"n/a"}, {"capture_mode":"precise"}, {"sw_version":"TI/UN5-170112-V5.0"}, {"hw_version":"TI/UN5-V5.0"}, {"app_status":"vf"}, {"stream_type":"rtsp"}, {"sys_mode":"record"}, {"rec_mode":"Normal_Record"}, {"photo_mode":"No in photo mode!"}, {"Switch_mode":"n/a"}, {"Power":"n/a"} ]} Enter Settings Mode | 260 ------------- {"msg_id":260,"token":2} {"rval":0,"msg_id":260} Get Parameter Options | 9 ------------- {"msg_id":9,"token":2,"param":"video_resolution"} {"rval":0,"msg_id":9,"permission":"settable","param":"video_resolution","options":["3840x2160 25P 16:9","3840x2160 25P SuperView","2880x2160 25P 4:3","2704x2028 25P 4:3","2704x1520 25P SuperView","2704x1520 25P 16:9","2560x1440 50P 16:9","2560x1440 25P 16:9","1920x1440 50P 4:3","1920x1440 25P 4:3","1920x1080 100P 16:9","1920x1080 100P 16:9","1920x1080 50P 16:9","1920x1080 25P 16:9","1920x1080 50P SuperView","1920x1080 25P SuperView","1280x960 100P 4:3","1280x960 50P 4:3","1280x960 25P 4:3","1280x720 200P 16:9","1280x720 200P 16:9","1280x720 100P 16:9","1280x720 50P 16:9","1280x720 25P 16:9","1280x720 100P SuperView","1280x720 25P SuperView"]} Change Setting | 2 ------------- * Exit Settings Mode {"msg_id":259,"token":2,"param":"none_force"} {"rval":0,"msg_id":259} {"msg_id":2,"token":2,"type":"video_resolution","param":"3840x2160 25P 16:9"} {"rval":-14,"msg_id":2} * Enter Settings Mode {"msg_id":260,"token":2} {"rval":0,"msg_id":260} {"msg_id":2,"token":2,"type":"video_resolution","param":"3840x2160 25P 16:9"} {"rval":0,"msg_id":2,"type":"video_resolution"} Exit Settings Mode | 259 ------------- {"msg_id":260,"token":2} {"rval":0,"msg_id":260} List Directory Contents | 1282 ------------- SEND {"msg_id":1282,"token":2,"param":"\/tmp\/SD0\/AMBA\/161214000\/ -D -S"} RECV {"rval":0,"msg_id":1282,"listing":[ {"202357AA.MP4":"188743680 bytes|2016-12-14 20:34:06"} ]}