Skip to content

Instantly share code, notes, and snippets.

@loopy321
Created September 24, 2023 21:51
Show Gist options
  • Save loopy321/b115a510421e48eb63fa180c206b0fb5 to your computer and use it in GitHub Desktop.
Save loopy321/b115a510421e48eb63fa180c206b0fb5 to your computer and use it in GitHub Desktop.
wz_mini Floodlight not staying on when turned on in app
***ENABLE FLOODLIGHT IN APP***
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"2"},"ts":XXXXXXXXXXXX} (ret95, len:87)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"2"},"ts":XXXXXXXXXXXX}!!
iCamera: [iot.c:1897]iot return ack
iCamera: [iot.c:130](iot_send):{"Guid":"XXXXXXXXXXXX","ts":"XXXXXXXXXXXX","result":"1"} (ret85, len:77)
iCamera: [iot.c:1908]iot_send success :{"Guid":"XXXXXXXXXXXX","ts":"XXXXXXXXXXXX","result":"1"}!!
iCamera: [flood_light.c:3028](floodlight_running) ###pst->flightSwitchNew:1,pTmpStr->flightSwitch:1
iCamera: [flood_light.c:3192]handleStatusOld:[2], pst->handleStatus:[1]
iCamera: [flood_light.c:3193]nightModeSwitchOld:[3], nightModeSwitchNew:[3]
iCamera: [flood_light.c:3194]flightBrightOld:[255], flightBrightNew:[255]
iCamera: [sdk,0735](local_sdk_close_night_light) stateFlag:2, LastState:1
iCamera: [flood_light.c:1302][flood_light_open]bright set [dst:255] [old:0]
iCamera: [SDK-ALARM]dbg: algo[0] state goto: THREAD_STATE_SETTING
iCamera: [SDK-ALARM]dbg: algo[0] state goto: THREAD_STATE_IDEL get_algo_result_handle
hl_client: [hualai_client.c:425]iot_rcv start fd:4
iCamera: [handle_video.c:118]dbg: ##### localsdk alarm switch off, byid:2 #####
iCamera: [flood_light.c:848](floodlight_dynamic_disable_alarm) disable...
iCamera: [flood_light.c:791](floodlight_set_light_on_isp_mode) ok...
iCamera: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
iCamera: @@@@@@@@@@@@@ FLOODLIGHT TURN ON @@@@@@@@@@@@@
iCamera: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
iCamera: [protocol.c:2616]-------->> to[255], with[700 ms]
iCamera: [protocol.c:2640]-------->> rcv result ok!
iCamera: [flood_light.c:1270]floodlight bright [dst:255][time:7]
iCamera: [flood_light.c:3284]onOffStateNew[1], onOffStateOld[2]
iCamera: [nightvision.c:126]in: state:[2]
iCamera: [handle_audio.c:104]dbg: ##### ada audio switch off, byid:1 #####
iCamera: [nightvision.c:167]out: state:[2]
iCamera: >>> sdkgpio_irled_2_off <<<
iCamera: [sdk,0968](modify_default_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
iCamera: [sdk,1002](modify_expand_irlight_duty) Switch:1, LastSta:1, dutyDest:0, dutyReal:0
iCamera: softwareVer:1.0.0.52
iCamera: get device mac:XXXXXXXXXXXX softver:1.0.0.52
iCamera: automode:14 envDark:1 montionDark:1 soundDark:2 pir1 masterB:0
iCamera: {"mac":"XXXXXXXXXXXX","softver":"1.0.0.52","realSwitch":"1","brightness":"255","mode":"3","PIR":"1","envDark":"1","montionDark":"1","soundDark":"2","durations":"15","PIRSensitivity":"255","PIRSilentTime":"1","PIRChoose":"224","ala
iCamera: [floodlight_running,3318]buffer:{"accessoriesInfo":{"status":"1","type":"3","deviceList":[{"mac":"XXXXXXXXXXXX","softver":"1.0.0.52","realSwitch":"1","brightness":"255","mode":"3","PIR":"1","envDark":"1","montionDark":"1","soundDa
iCamera: [tutk.c:369](tutk_initiative_send_set) dataLen:1024 is oversize
iCamera: [flood_light.c:3334](floodlight_running) buffer: [1|1|2|4|1|2|1|ff|e0|ff|f|0|1|0|ff|e0|0|1|1]
iCamera: This Accessories is Floodlight
iCamera: This Accessories is Floodlight
iCamera: [iot.c:457]device switch status:1
iCamera: [iot.c:726]new item addr 0x608330
iCamera: [iot.c:1876]msg->cmd:1305
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"1"},"ts":XXXXXXXXXXXX} (ret134, len:126)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"1"},"ts":XXXXXXXXXXXX}!!
iCamera: This Accessories is Floodlight
iCamera: This Accessories is Floodlight
iCamera: [iot.c:451]device switch status:1
iCamera: [iot.c:726]new item addr 0x609390
iCamera: [iot.c:1888]msg->cmd:1304
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"1"},"ts":XXXXXXXXXXXX} (ret95, len:87)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"1"},"ts":XXXXXXXXXXXX}!!
hl_client: [hualai_client.c:425]iot_rcv start fd:4
iCamera: [tutk.c:1657]send cmd:10725
iCamera: [fm_func.c:1721][KVS] FDK_SWITCH_ON != fm->switchValue
iCamera: [iot.c:2031]icamera iot_rcv
iCamera: [iot.c:158]iot_rcv icamera recv is 33
hl_client: [hualai_client.c:1320]report_msg_publish ret 0 iotMsg {"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"2"},"ts":XXXXXXXXXXXX}
iCamera: [tutk.c:1657]send cmd:12063
iCamera: [protocol.c:454]session:[0], head->cmd:[10010]
iCamera: [protocol.c:473]TUTK RcvHead:
iCamera: 48 4C 00 00 1A 27 02 00 00 00 00 00 00 00 00 00
iCamera:
iCamera: [protocol.c:477]TUTK RcvData:
iCamera: 01 02
iCamera:
iCamera: [protocol.c:1578]test recv 10010 cmd valu :2!
iCamera: [protocol.c:1608]session_id:0 stop tutk_play_video thread!
iCamera: [tutk.c:2308](5419068) Thread ready exit... (session_id:0)
iCamera: [prompt.c:634][LED] ctrl changed from 6 -> 5
iCamera: [prompt.c:489]LED_TUTK_OK
iCamera: [tutk.c:2330]session:0 view history end!
iCamera: [view_history.c:273]local MODULE ipAddress:
iCamera: [view_history.c:303]START add view history event function !
iCamera: [view_history.c:178]start add end event node !
iCamera: [view_history.c:190]start open view history exit post thread
iCamera: [view_history.c:401]del event userName:6290374
iCamera: [tutk.c:2339](tutk_video_worker) Thread exit!!! (av_id:0)
iCamera: [view_history.c:678]view_history_exit_post_work thread run !
iCamera: [cloud_common.c:615]post url: api.wyzecam.com:8443/device/view_record/set
iCamera: [cloud_common.c:616]post data: {"mac":"XXXXXXXXXXXX","enr":"****************","product_model":"WYZE_CAKP2JFUS","product_type":"camera","hardware_ver":"0.0.0.0","firmware_ver":"4.36.8.15","ts":XXXXXXXXXXXXX000,"view_record_id":"28
iCamera: [protocol.c:1646]result:1
iCamera: [protocol.c:519]TUTK SndHead:
iCamera: 48 4C 24 00 1B 27 02 00 00 00 00 00 00 00 00 00
iCamera: [protocol.c:522]TUTK SndData:
iCamera: 01 01
iCamera: [tutk.c:1686]send cmd:10011
iCamera: [protocol.c:454]session:[0], head->cmd:[10010]
iCamera: [protocol.c:473]TUTK RcvHead:
iCamera: 48 4C 00 00 1A 27 02 00 00 00 00 00 00 00 00 00
iCamera:
iCamera: [protocol.c:477]TUTK RcvData:
iCamera: 02 02
iCamera:
iCamera: [protocol.c:1578]test recv 10010 cmd valu :2!
iCamera: [protocol.c:1630]session_id:0 stop tutk_play_audio thread!
iCamera: [tutk.c:1953](5419048) Thread ready exit... (session_id:0)
iCamera: [tutk.c:1972](5419048) Thread exit!!! (av_id:0)
iCamera: [protocol.c:1646]result:1
iCamera: [protocol.c:519]TUTK SndHead:
iCamera: 48 4C 24 00 1B 27 02 00 00 00 00 00 00 00 00 00
iCamera: [protocol.c:522]TUTK SndData:
iCamera: 02 01
iCamera: [tutk.c:1686]send cmd:10011
hl_client: [hualai_client.c:854] hl_client MQTT Message arrived
hl_client: [hualai_client.c:861] hl_client topic: hl/devices/XXXXXXXXXXXX/cmd
hl_client: [hualai_client.c:170]iot sent fd:4
hl_client: [hualai_client.c:185]iot_send success :188
hl_client: [aws_iot/src/aws_iot_mqtt_client_common_internal.c] [1] rc = [0] _aws_iot_mqtt_internal_handle_publish
iCamera: [iot.c:940]cmd:[IOT_MQTT_MSG]
iCamera: [iot.c:968]enr:vexkK8UKVWQRFooV
iCamera: [iot.c:981]decodeMsg0:{"Action":"tempControl","Params":{"session_id":"336E74AE-7EB5-4BFE-AAE7-4961062AAE7C","switch":2,"duration":180},"Guid":"21a83f8c38b74d759b23a2c9ea43084b","Ts":XXXXXXXXXXXXX513}
iCamera: [iot.c:1016]json_action->type:[4], json_action->valuestring:[tempControl]
iCamera: [iot.c:1019]IOT rcv hl_client MQTT cmd:[1255]
iCamera: [iot.c:1478]action:[IOT_BACK_CMD_ACCESS_SWITCH]
iCamera: This Accessories is Floodlight
iCamera: [iot.c:508]ack guid:21a83f8c38b74d759b23a2c9ea43084b iot_msg->param.ret_state:0
iCamera: [iot.c:726]new item addr 0x5f5c70
iCamera: [iot.c:1897]iot return ack
iCamera: [iot.c:130](iot_send):{"Guid":"21a83f8c38b74d759b23a2c9ea43084b","ts":"XXXXXXXXXXXXX000","result":"0"} (ret85, len:77)
iCamera: [iot.c:1908]iot_send success :{"Guid":"21a83f8c38b74d759b23a2c9ea43084b","ts":"XXXXXXXXXXXXX000","result":"0"}!!
iCamera: [flood_light.c:2718](floodlight_cancel_force) in... irLedSwitchNew:1,
iCamera: irLed2SwitchNew:2,
iCamera: nightModeSwitchNew:3,
iCamera: flightBrightNew:255,
iCamera: trigger_chosen:14,
iCamera: flightModeNew :1,
iCamera: pst->priorityItemType:0,
iCamera: pst->flightSwitchNew:2
hl_client: [hualai_client.c:425]iot_rcv start fd:4
iCamera: [flood_light.c:3192]handleStatusOld:[1], pst->handleStatus:[7]
iCamera: [flood_light.c:3193]nightModeSwitchOld:[2], nightModeSwitchNew:[2]
iCamera: [flood_light.c:3194]flightBrightOld:[255], flightBrightNew:[255]
iCamera: [curl_post.c:352]https://api.wyzecam.com:8443/device/view_record/set, curl_easy_perform res 0, code 200, totaltime 0.659, connecttime 0.166
iCamera: [curl_post.c:401]curl_easy_perform success
iCamera: [curl_post.c:423]finish... (retry:0)
iCamera: [cloud_common.c:620]post resp: {"ts":XXXXXXXXXXXXX158,"code":"1","msg":"","data":{}}
***NAVIGATE FROM CAM IN APP - LEAVING FLOODLIGHT ON***
iCamera: [flood_light.c:2021][trigger_mode_night_off] CurTm:XXXXXXXXXXXXX, MotionTm:XXXXXXXXXXXXX
iCamera: [flood_light.c:768](floodlight_set_light_off_isp_mode) ok...
iCamera: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
iCamera: @@@@@@@@@@@@ FLOODLIGHT TURN OFF @@@@@@@@@@@@
iCamera: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
iCamera: [protocol.c:2616]-------->> to[0], with[2000 ms]
iCamera: [protocol.c:2640]-------->> rcv result ok!
iCamera: [flood_light.c:1270]floodlight bright [dst:0][time:20]
iCamera: [flood_light.c:3284]onOffStateNew[2], onOffStateOld[1]
iCamera: softwareVer:1.0.0.52
iCamera: get device mac:XXXXXXXXXXXX softver:1.0.0.52
iCamera: automode:14 envDark:1 montionDark:1 soundDark:2 pir1 masterB:0
iCamera: {"mac":"XXXXXXXXXXXX","softver":"1.0.0.52","realSwitch":"2","brightness":"255","mode":"3","PIR":"1","envDark":"1","montionDark":"1","soundDark":"2","durations":"15","PIRSensitivity":"255","PIRSilentTime":"1","PIRChoose":"224","ala
iCamera: [floodlight_running,3318]buffer:{"accessoriesInfo":{"status":"1","type":"3","deviceList":[{"mac":"XXXXXXXXXXXX","softver":"1.0.0.52","realSwitch":"2","brightness":"255","mode":"3","PIR":"1","envDark":"1","montionDark":"1","soundDa
iCamera: [tutk.c:369](tutk_initiative_send_set) dataLen:1024 is oversize
iCamera: [flood_light.c:3334](floodlight_running) buffer: [1|1|2|4|1|2|1|ff|e0|ff|f|0|1|0|ff|e0|0|2|1]
iCamera: This Accessories is Floodlight
iCamera: This Accessories is Floodlight
iCamera: [iot.c:457]device switch status:2
iCamera: [iot.c:726]new item addr 0x5f6cd0
iCamera: [iot.c:1876]msg->cmd:1305
iCamera: This Accessories is Floodlight
iCamera: This Accessories is Floodlight
iCamera: [iot.c:451]device switch status:2
iCamera: [iot.c:726]new item addr 0x5f7d30
iCamera: [iot.c:1876]msg->cmd:1305
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"2"},"ts":XXXXXXXXXXXXX} (ret134, len:126)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"2"},"ts":XXXXXXXXXXXXX}!!
iCamera: [iot.c:1888]msg->cmd:1304
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"2"},"ts":XXXXXXXXXXXXX} (ret95, len:87)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","data":{"P1056":"2"},"ts":XXXXXXXXXXXXX}!!
iCamera: [iot.c:130](iot_send):{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"2"},"ts":XXXXXXXXXXXXX} (ret134, len:126)
iCamera: [iot.c:1908]iot_send success :{"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"2"},"ts":XXXXXXXXXXXXX}!!
iCamera: [tutk.c:1657]send cmd:10725
hl_client: [hualai_client.c:425]iot_rcv start fd:4
iCamera: [iot.c:2031]icamera iot_rcv
iCamera: [iot.c:158]iot_rcv icamera recv is 33
iCamera: [tutk.c:1657]send cmd:12063
iCamera: [DN:847]dbg: www.google.com ==> XXXXXXXX, Success!
hl_client: [hualai_client.c:1341]report_msg_publish ret 0 iotMsg {"mac":"XXXXXXXXXXXX","model":"WYZE_CAKP2JFUS","sub_mac":"XXXXXXXXXXXX","sub_model":"HL_CFL","data":{"P3":"1"},"ts":XXXXXXXXXXXX}
iCamera: [nightvision.c:126]in: state:[3]
iCamera: [handle_audio.c:98]dbg: ##### ada audio switch on, byid:1 #####
iCamera: [nightvision.c:167]out: state:[3]
iCamera: [SDK-ALARM]dbg: algo[0] state goto: THREAD_STATE_SETTING
iCamera: [SDK-ALARM]dbg: algo[0] state goto: THREAD_STATE_RESULT
iCamera: [handle_video.c:108]dbg: ##### localsdk alarm switch on, byid:2 #####
iCamera: [flood_light.c:822](floodlight_dynamic_enable_alarm) enable...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment