[LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 451] client 192.168.29.3 9 is connected ! [LOG_I][tuya_fac_test.c: 452] Wait to Recv Cmd [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x0 0x0 0x0 0xff [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x0 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x0 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 0 ,start_flag=1 [LOG_I][tuya_fac_test.c: 301] Enter Tuya Test Mode [LOG_E][tuya_fac_cmd.c: 162] Error before: [] [LOG_I][tuya_fac_test.c: 328] Send ACK : {"ret":false} data sum is 0xffffffd8 [LOG_I][tuya_fac_test.c: 333] put frame size = 20 [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x0 0x0 0x0 0xff [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x0 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x0 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 0 ,start_flag=1 [LOG_I][tuya_fac_test.c: 301] Enter Tuya Test Mode [LOG_E][tuya_fac_cmd.c: 162] Error before: [] [LOG_I][tuya_fac_test.c: 328] Send ACK : {"ret":false} data sum is 0xffffffd8 [LOG_I][tuya_fac_test.c: 333] put frame size = 20 [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0xf 0x0 0x0 0xe [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0xf add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0xf #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 15 ,start_flag=1 [LOG_I][tuya_fac_test.c: 322] unknown command 0xf [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x6 0x0 0x0 0x5 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x6 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x6 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 6 ,start_flag=1 [LOG_I][tuya_fac_test.c: 322] unknown command 0x6 [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x6 0x0 0x0 0x5 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x6 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x6 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 6 ,start_flag=1 [LOG_I][tuya_fac_test.c: 322] unknown command 0x6 [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x1 0x0 0x0 0x0 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x1 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x1 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 1 ,start_flag=1 [LOG_I][tuya_fac_test.c: 322] unknown command 0x1 [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x4 0x0 0x0 0x3 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x4 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x4 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 4 ,start_flag=1 [LOG_I][tuya_fac_test.c: 316] read cfg info [LOG_I][tuya_fac_cmd.c: 309] tuya_read_cfg: {"pid":"123","uuid":"456","auzkey":"789"} [LOG_I][tuya_fac_test.c: 328] Send ACK : {"pid":"123","uuid":"456","auzkey":"789"} data sum is 0x2c [LOG_I][tuya_fac_test.c: 333] put frame size = 48 [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable [LOG_I][tuya_fac_test.c: 187] Close by Client [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x1 0x0 0x0 0x0 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x1 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x1 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 1 ,start_flag=1 [LOG_I][tuya_fac_test.c: 322] unknown command 0x1 [LOG_I][tuya_fac_test.c: 466] wait for next cmd [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable Size is 7 : 0x55 0xaa 0x0 0x4 0x0 0x0 0x3 [LOG_I][tuya_fac_test.c: 81] header in buffer offset is 0 [LOG_I][tuya_fac_test.c: 87] tuya_get_input datalen 0 add 0x55 add 0xaa add 0x0 add 0x4 add 0x0 add 0x0 , data hex: /n[LOG_I][tuya_fac_test.c: 201] get one valid frame , cmd = 0x4 #@# [LOG_I][tuya_fac_test.c: 296] put frame cmd = 4 ,start_flag=1 [LOG_I][tuya_fac_test.c: 316] read cfg info [LOG_I][tuya_fac_cmd.c: 309] tuya_read_cfg: {"pid":"123","uuid":"456","auzkey":"789"} [LOG_I][tuya_fac_test.c: 328] Send ACK : {"pid":"123","uuid":"456","auzkey":"789"} data sum is 0x2c [LOG_I][tuya_fac_test.c: 333] put frame size = 48 [LOG_I][tuya_fac_test.c: 471] socket fd 9 is readable [LOG_I][tuya_fac_test.c: 187] Close by Client [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ... [LOG_I][tuya_fac_test.c: 440] Wait for client ...