Page 1 of 1

【已解决】【TuyaOS SDK】IPC请问这是什么情况

Posted: 2024年 May 23日 14:18
by 123456

[01-01 00:00:00 ty N][tuya_svc_devos.c:347] gw_cntl->gw_if.abi:0 input:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:348] gw_cntl->gw_if.product_key:lm4u7rofrwllgs0v, input:lm4u7rofrwllgs0v
[01-01 00:00:00 ty N][tuya_svc_devos.c:349] gw_cntl->gw_if.tp:0, input:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_ai isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:4 gw_ai
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_ai find value.Len:352
[01-01 00:00:00 ty D][ws_db_gw.c:454] gw_ai read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:523] enter success_proc
ERROR: 386, tkl_gen_get_mac: WIFI GET MAC failed
ERROR: 173, tkl_wifi_get_mac: GET MAC failed
[01-01 00:00:00 ty E][tuya_wifi_link.c:626] get mac fail:-1
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:NULL
[01-01 00:00:00 ty D][tuya_svc_upgrade.c:1293] tuya svc upgrade init success!
[01-01 00:00:00 ty D][simplekv.c:1128] read key:rcs.active isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_ws_db.c:657] rcs.active not found in kv, read from protected
[01-01 00:00:00 ty D][simplekv.c:1128] read key:rcs.mf isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_ws_db.c:657] rcs.mf not found in kv, read from protected
[01-01 00:00:00 ty D][tuya_register_center.c:350] use default rcs [-6]
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca_cnt isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][tuya_cert_manager.c:463] load tls_ca_cnt fail. no ca in local db
[01-01 00:00:00 ty D][tuya_register_center.c:308] def rcs url0:h3.iot-dns.com
[01-01 00:00:00 ty D][tuya_register_center.c:311] def rcs urlx:h6.iot-dns.com
[01-01 00:00:00 ty D][tuya_cert_manager.c:963] psk key was 1.0
[01-01 00:00:00 ty D][tuya_cert_manager.c:1058] cert manager init
[01-01 00:00:00 ty D][simplekv.c:1128] read key:kv.meta.report isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] __read_kv_with_decode fail. -3
[01-01 00:00:00 ty D][ty_meta_report.c:97] meta in kv {"metas":{}}
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:300 cnt:3
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:302 cnt:4
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:304 cnt:5
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:307 cnt:6
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:308 cnt:7
[01-01 00:00:00 ty D][mqc_app.c:103] mq_pro:312 cnt:8
[01-01 00:00:00 ty D][tuya_ipc_mqtt_subscribe.c:292] iot_register_extra_mqt_cb done
[01-01 00:00:00 ty D][tuya_ipc_hardware_info.c:252] traversal over
[01-01 00:00:00 ty E][tuya_ipc_hardware_info.c:173] NO sensor info. Please check if you need.
[01-01 00:00:00 ty D][tuya_ipc_hardware_info.c:115] not found device wifi info
[01-01 00:00:00 ty D][tuya_ipc_hardware_info.c:355] hard info ="skillParam":"{\"type\":4,\"skill\":{\"localStorage\":1,\"cloudStorage\":1,\"webrtc\":2,\"cloudRule\":7,\"security_ability\":28,\"video_num\":2,\"sdk_version\":\"6.1.5\"},\"hardware\":{\"toolchain\":\"gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf\",\"cpu\":{\"model\":\"ARMv8 Processor rev 0 (v8l)\",\"bogomips\":\"100.00\"}}
[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:109] sys add timer: 2145128

[01-01 00:00:00 ty D][tuya_ipc_sdk_init.c:115] sys start timer: 2145128

[01-01 00:00:00 ty D][tuya_iot_wifi_api.c:443] register wifi network monitor. interval:1
[01-01 00:00:00 ty D][main.c:352] tuya ipc sdk start is complete

[01-01 00:00:00 ty D][tuya_svc_devos.c:760] state change from 0 to 1
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:79] status chaged: group[1] status[5]
[01-01 00:00:00 ty D][ty_sdk_status_callback.c:32] __on_netcfg_start, netcfg start. You can start your own netcfg task now.
[01-01 00:00:00 ty D][simplekv.c:1128] read key:wf_start_md isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1156] no key find
[01-01 00:00:00 ty D][simplekv.c:1198] __read_kv_raw fail. -3
[01-01 00:00:00 ty D][simplekv.c:1236] read_kv_with_decode fail. -3
[01-01 00:00:00 ty E][tuya_wifi_reset.c:638] read wf start mode err:-6
[01-01 00:00:00 ty D][tuya_wifi_reset.c:675] <
gw_upd_nc_type> wf start mode change:-6, 0->0
ERROR: 1160, tkl_net_get_wifi_type: WIFI chip type doesn't support
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:0, short timer:0 long timer:0
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:424] do proxy actived work,mode:5,stat:0,nc_tp:2
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:709] nc_tp:2, md:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:1
[01-01 00:00:00 ty D][tuya_wifi_link.c:138] start ap netcfg, wk_md:3
ERROR: 1383, tkl_net_sta_disconnect: station disconnect failed
206, tkl_wifi_set_work_mode: WIFI SET work mode success, set mode :softap mode
ERROR: 386, tkl_gen_get_mac: WIFI GET MAC failed
ERROR: 173, tkl_wifi_get_mac: GET MAC failed
[01-01 00:00:00 ty E][tuya_wifi_netcfg.c:496] get mac failed:-1
246, tkl_wifi_start_ap: Start AP SSID: ,CHANNEL:6
ERROR: 544, process_kill: open pid file failed
udhcpd: 未找到进程
ERROR: 1839, tkl_net_hostapd_conf_prepare: create configure error 2

ERROR: 1487, tkl_net_ap_start: WIFI prepare hostapd.conf failed
ERROR: 482, tkl_gen_ap_start: start ap failed
ERROR: 250, tkl_wifi_start_ap: WIFI start ap failed
[01-01 00:00:00 ty E][tuya_wifi_netcfg.c:572] start ap failed:-1
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:00 ty D][netcfg_module.c:334] netcfg module start type:0x10100
[01-01 00:00:00 ty N][tuya_wifi_reset.c:404] timer stated, short timer:0x0, long timer:0x0
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:787] nc_tp:2, md:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:216] devos_init_evt success
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10100 ret:0
[01-01 00:00:00 ty D][netcfg_module.c:334] netcfg module start type:0x10002
[01-01 00:00:00 ty D][ap_netcfg.c:1282] ap cfg start:65538
ERROR: 305, tkl_gen_wifi_get_ip: WiFi : get ip failed
ERROR: 138, tkl_wifi_get_ip: get ip failed
[01-01 00:00:00 ty E][ap_netcfg.c:1156] get ip fail:-1
[01-01 00:00:00 ty E][ap_netcfg.c:1287] ap_nw_cfg_start err:-6
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10002 ret:-6
[01-01 00:02:00 ty D][simplekv.c:129] <
tmm_backup_work> backup file start...time: 105955, MsTime: 341
[01-01 00:02:00 ty D][simplekv.c:241] backup normal file to bak success
[01-01 00:02:00 ty D][simplekv.c:132] <__tmm_backup_work> backup file end...time: 105955, MsTime: 342


Re: IPC请问这是什么情况

Posted: 2024年 May 23日 17:54
by 郭老庄

主要是tkl_wifi.c的报错。tkl_wifi.c要根据自己的实际情况适配