基于SDK和涂鸦扫地机demo移植后,在socs上这边跑起来后,一直报这个没这个ens33设备,但我们的soc是wlan0设备,这个涂鸦给的库里边就是配着这个ens33的吗? 能不能改,我在应用代码里边改了wlan0没生效。
扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
报错日志给一下,大概率不是sdk里面设置的
-
- Posts: 7
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
从扫地机demo中把tuyaos_adapter拷贝过来,并编译进来,修改涂鸦相关日志输出,能看到输出相关日志产生,但只有一点信息,而且还把我程序跑崩了,附件麻烦帮忙看一下。
-
- Posts: 7
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
附件日志文件
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,priority:3
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_highpri,stackDepth:5120,totalstackDepth:15360,priority:4
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:16896,priority:5
[01-01 00:00:00 ty I][mqc_app.c:429] mqc app init ...
[01-01 00:00:00 ty N][tal_wifi_reconnet.c:207] wifi status changed to 0, stat: 0
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:lan_sock_loop,stackDepth:4096,totalstackDepth:20992,priority:3
[01-01 00:00:00 ty E][log_seq.c:873] logseq empty
[01-01 00:00:00 ty I][kv_storge.c:45] Init Kvs With File:/userdata/
[01-01 00:00:00 ty N][tuya_tls.c:852] uni_random_init...
[01-01 00:00:00 ty N][tuya_tls.c:279] tuya_tls_rand_init ok!
[01-01 00:00:00 ty N][tuya_wifi_connect.c:289] mf is open need stop fastconnect
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][tuya_wifi_link.c:762] tuya wifi link init mthd:3,wifi start mode:0, enable_station_ap:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:83] start wifi link params validate, nc_tp:2 md:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:105] gw_wsm.nc_tp:2
[01-01 00:00:00 ty N][tuya_wifi_link.c:106] gw_wsm.md:0
[01-01 00:00:00 ty D][tuya_bt_link.c:260] bt init...
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[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
[01-01 00:00:00 ty N][tuya_svc_devos.c:494] Last reset reason: 7
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:299] gw_cntl->gw_wsm.stat:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_di isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:3 gw_di
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_di find value.Len:688
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:is_stride 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_devos_stride.c:55] stride from flash: 0.
[01-01 00:00:00 ty D][tuya_devos_stride.c:62] no actived, no upgrade:0
[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:dhgzdag4qwtcve7w, input:dhgzdag4qwtcve7w
[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
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:000000000000
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:22904544
[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:1159] find key:6 tls_ca_cnt
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca_cnt find value.Len:16
[01-01 00:00:00 ty D][tuya_cert_manager.c:467] tls_ca_cnt:1 and parse:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca0 find value.Len:736
[01-01 00:00:00 ty D][tuya_cert_manager.c:497] Parse DER tls_ca0:540 success
[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 E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[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][tuya_sdk_simple_start.cpp:102] tuya robot 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][svc_netcfg_qrcode.c:127] start config
[01-01 00:00:00 ty D][tuya_svc_mqtt_direct.c:264] start direct mqtt
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:97] media adapter init success. avaliable_res_size:5000
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:465] insert media info node success! device:[0] channel:[0]
[01-01 00:00:00 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca_cnt isFuzzy:0
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1279] delete key find 6
[01-01 00:00:00 ty D][simplekv.c:1311] Delete key:tls_ca_cnt 6 success
[01-01 00:00:00 ty D][simplekv.c:207] update crc 1690582776
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:1320] Delete success
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca isFuzzy:1
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1273] fuzzy del find 5 tls_ca0 And set Arr[0]=0x20
[01-01 00:00:00 ty D][simplekv.c:1303] Delete key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:207] update crc 2040720729
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:1320] Delete success
[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][iot_httpc.c:1367] http_iot_dns_get_cloud_url start
[01-01 00:00:00 ty D][iot_httpc.c:1412] http_dns region , send: {"env":"pro","config":[{"key":"httpUrl","need_ca":false},{"key":"mqttUrl","need_ca":false},{"key":"httpsPSKUrl","need_ca":false},{"key":"mqttsPSK3Url","need_ca":false},{"key":"httpsStdUrl","need_ca":true},{"key":"mqttsStdUrl","need_ca":true},{"key":"ghostUrl","need_ca":true}]}
[01-01 00:00:00 ty D][tuya_register_center.c:434] rcs.urlx:h6.iot-dns.com
[01-01 00:00:00 ty D][iot_httpc.c:1416] get url config:https://h6.iot-dns.com/v1/url_config
[01-01 00:00:00 ty D][tuya_wifi_link.c:592] get wf mode 5, op_ert 0
[01-01 00:00:00 ty D][httpc.c:620] Connect: h6.iot-dns.com Port: 443 -->>
[01-01 00:00:00 ty D][uni_network.c:230] unw_gethostbyname h6.iot-dns.com, prio 1
[01-01 00:00:00 ty D][uni_network.c:258] use system dns ip 42.192.31.176 for domain h6.iot-dns.com
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [h6.iot-dns.com]<->[42.192.31.176]
[01-01 00:00:00 ty D][tcp_transporter.c:79] bind ip:00000000 port:0 ok
[01-01 00:00:00 ty D][tuya_tls.c:945] MAX SECURITY_LEVEL:1, TUYA SECURITY_LEVEL:1, mode:1
[01-01 00:00:00 ty D][tuya_tls.c:954] TUYA_TLS Begin Connect h6.iot-dns.com:443
[01-01 00:00:00 ty D][tuya_tls.c:714] mbedtls authmode: MBEDTLS_SSL_VERIFY_REQUIRED
[01-01 00:00:00 ty D][tuya_tls.c:727] load tuya cert.
[01-01 00:00:00 ty D][tuya_cert_manager.c:209] iot-dns url
[01-01 00:00:00 ty D][tuya_tls.c:1036] socket fd is set. set to inner send/recv to handshake
[01-01 00:00:00 ty D][tuya_tls.c:687] mbedtls_cert_pkey_free.
[01-01 00:00:00 ty D][tuya_tls.c:1098] handshake finish for h6.iot-dns.com. set send/recv to user set
[01-01 00:00:00 ty D][tuya_tls.c:1104] TUYA_TLS Success Connect h6.iot-dns.com:443 Suit:TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256
[01-01 00:00:00 ty D][httpc.c:622] Connect: h6.iot-dns.com Port: 443 --<< ,r:0
[01-01 00:00:00 ty D][tls_transporter.c:93] tls transporter close socket fd:18
[01-01 00:00:00 ty D][tcp_transporter.c:177] tcp transporter close socket fd:18
[01-01 00:00:00 ty D][tls_transporter.c:101] tls transporter close tls handler:0x15da2d0
[01-01 00:00:00 ty D][tuya_tls.c:1180] TUYA_TLS Disconnect ENTER
[01-01 00:00:00 ty D][tuya_tls.c:1205] TUYA_TLS Disconnect Success
[01-01 00:00:00 ty D][tuya_tls.c:907] tuya_tls_connect_destroy.
[01-01 00:00:00 ty D][iot_httpc.c:1437] httpUrl:[http://a.tuyacn.com/d.json][42.192.25.216]
[01-01 00:00:00 ty D][iot_httpc.c:1442] mqttUrl:[m2.tuyacn.com:1883][42.192.30.165]
[01-01 00:00:00 ty D][iot_httpc.c:1466] httpsStdUrl:[https://a6.tuyacn.com/d.json][81.69.183.170]
[01-01 00:00:00 ty D][iot_httpc.c:1467] mqttsStdUrl:[m6.tuyacn.com:8886][121.5.96.27]
[01-01 00:00:00 ty D][iot_httpc.c:1506] httpsPSKUrl:[https://a3.tuyacn.com/d.json][81.69.183.170]
[01-01 00:00:00 ty D][iot_httpc.c:1507] mqttsPSK3Url:[m3.tuyacn.com:8886][121.5.96.27]
[01-01 00:00:00 ty D][iot_httpc.c:1518] ghostUrl:[baal.tuyacn.com:443][42.192.35.108]
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca_cnt isFuzzy:0
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1287] key:tls_ca_cnt not find
[01-01 00:00:00 ty D][simplekv.c:1248] delete key:tls_ca isFuzzy:1
[01-01 00:00:00 ty D][simplekv.c:1254] cnt:7 delete bit arr len:1
[01-01 00:00:00 ty D][simplekv.c:1287] key:tls_ca not find
[01-01 00:00:00 ty D][tuya_cert_manager.c:438] tls_ca_name:tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 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][simplekv.c:369] write key:tls_ca0 And Value Len:736
[01-01 00:00:00 ty D][simplekv.c:401] 5 valid is false AND size old 804 >= new 736
[01-01 00:00:00 ty D][simplekv.c:415] find 5 available space
[01-01 00:00:00 ty D][simplekv.c:452] reuse available space 30528
[01-01 00:00:00 ty D][simplekv.c:207] update crc 2285239929
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:492] write success
[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][simplekv.c:369] write key:tls_ca_cnt And Value Len:16
[01-01 00:00:00 ty D][simplekv.c:401] 6 valid is false AND size old 84 >= new 16
[01-01 00:00:00 ty D][simplekv.c:415] find 6 available space
[01-01 00:00:00 ty D][simplekv.c:452] reuse available space 31332
[01-01 00:00:00 ty D][simplekv.c:207] update crc 241209038
[01-01 00:00:00 ty D][simplekv.c:356] write head to normal file success
[01-01 00:00:00 ty D][simplekv.c:492] write success
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [http://a.tuyacn.com/d.json]<->[42.192.25.216]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a6.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [https://a3.tuyacn.com/d.json]<->[81.69.183.170]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m2.tuyacn.com:1883]<->[42.192.30.165]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m6.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [m3.tuyacn.com:8886]<->[121.5.96.27]
[01-01 00:00:00 ty D][uni_network.c:185] cache dns [baal.tuyacn.com:443]<->[42.192.35.108]
[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:1159] find key:6 tls_ca_cnt
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca_cnt find value.Len:16
[01-01 00:00:00 ty D][tuya_cert_manager.c:467] tls_ca_cnt:1 and parse:1
[01-01 00:00:00 ty D][simplekv.c:1128] read key:tls_ca0 isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:5 tls_ca0
[01-01 00:00:00 ty D][simplekv.c:1185] key:tls_ca0 find value.Len:736
[01-01 00:00:00 ty D][tuya_cert_manager.c:497] Parse DER tls_ca0:540 success
[01-01 00:00:00 ty D][iot_httpc.c:1529] end
[01-01 00:00:00 ty D][uni_network.c:312] set_dns_cache_priority:1
[01-01 00:00:00 ty D][tuya_svc_mqtt_direct.c:179] SECURITY_LEVEL:1 direct connect MQTT URL:m6.tuyacn.com:8886 Port:8883 Sub:d/ai/uuid5ec15db518901f54 tls:1
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:mqtt_thread,stackDepth:9216,totalstackDepth:30208,priority:4
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:177] [mqtts://m6.tuyacn.com:8886] mqtt state change 0 -> 1
[01-01 00:00:00 ty D][tal_thread.c:204] Thread:mqtt_thread Exec Start. Set to Running Stat
[01-01 00:00:00 ty D][svc_netcfg_qrcode.c:127] start config
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:836] connect to mqtt broker mqtts://m6.tuyacn.com:8886 port 8886
[01-01 00:00:00 ty D][tuya_wifi_link.c:592] get wf mode 5, op_ert 0
[01-01 00:00:00 ty E][tuya_svc_mqtt_client.c:845] mqtt Get IP Fails 2
[01-01 00:00:00 ty N][tuya_svc_mqtt_client.c:665] mqtt close
[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][tuya_svc_mqtt_client.c:717] mqtt fail_cnt:1, sleeptime:6396 ms
[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
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:3, 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
[01-01 00:00:00 ty D][tuya_wifi_netcfg.c:575] start ap success:SmartLife-0000
[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 N][tuya_wifi_status.c:168] cur stat:2 0x13f028 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:171] wifi netstat changed to:2 -->>
[01-01 00:00:00 ty N][tuya_wifi_status.c:175] report wifi netstat[2] to callback -->>
[01-01 00:00:00 ty D][tuya_sdk_net_sync_demo.cpp:31] net change cb now status -[2], last status -[255]
[01-01 00:00:00 ty D][tuya_sdk_net_sync_demo.cpp:45] goto wait pair wifi
[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_bt_link.c:61] bt startup attr:ff
[01-01 00:00:00 ty D][tuya_bt_link.c:76] bt link open
[01-01 00:00:00 ty D][tuya_ble_svc.c:2018] get_wifi_list eanbled
[01-01 00:00:00 ty D][tuya_ble_svc.c:2023] get_netcfg_stat eanbled
[01-01 00:00:00 ty D][tuya_ble_svc.c:2035] get_ap_name eanbled
[01-01 00:00:00 ty N][tuya_ble_svc.c:978] upd product_id type:0 dhgzdag4qwtcve7w
[01-01 00:00:00 ty D][tuya_ble_svc.c:99] uuid: 20 <0x8c85bc>
75 75 69 64 35 65 63 31 35 64 62 35 31 38 39 30 31 66 35 34
[01-01 00:00:00 ty D][tuya_ble_svc.c:99] devid_tmp: 16 <0xb6ff1c60>
79 e4 8d 14 e3 01 14 d2 c5 04 82 40 04 f1 44 ff
[01-01 00:00:00 ty E][tuya_ble_svc.c:946] bt init err:ffff8ffa
[01-01 00:00:00 ty N][tuya_ble_svc.c:1045] ty bt sdk init success finish
[01-01 00:00:00 ty D][tuya_ble_netcfg.c:151] net_cfg sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:1992] get_wifi_list sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:1996] get_netcfg_stat sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:2004] get_ap_name sub session created
[01-01 00:00:00 ty D][tuya_ble_svc.c:1347] start ble monitor
[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
[01-01 00:00:00 ty D][ap_netcfg.c:1160] ap netcfg server ip:192.168.0.1
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:ap_tcp_v4,stackDepth:3584,totalstackDepth:33792,priority:5
[01-01 00:00:00 ty D][tal_thread.c:204] Thread:ap_tcp_v4 Exec Start. Set to Running Stat
[01-01 00:00:00 ty D][ap_netcfg.c:749] start TCP ap thread
[01-01 00:00:00 ty D][netcfg_module.c:116] start 0x10002 ret:0
[01-01 00:00:00 ty E][ap_netcfg.c:322] bind socket fail:-16, port:6668
[01-01 00:00:00 ty E][ap_netcfg.c:770] create server socket err
[01-01 00:00:01 ty N][tuya_svc_lan.c:713] Not actived, use linkage addr[addr:192.168.3.][ffffffff]
- Attachments
-
- tuya_log_2024.05.16_15^%06.txt
- (20.76 KiB) Downloaded 98 times
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
感觉你这个压根就没有适配好开发环境,建议自查一下ble和wifi的适配
-
- Posts: 7
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
做了wifi适配后 输出日志如下:
麻烦帮忙看看问题所在。
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,priority:3
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_highpri,stackDepth:5120,totalstackDepth:15360,priority:4
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:16896,priority:5
[01-01 00:00:00 ty I][mqc_app.c:429] mqc app init ...
[01-01 00:00:00 ty I][kv_storge.c:45] Init Kvs With File:/userdata/
[01-01 00:00:00 ty N][tuya_tls.c:852] uni_random_init...
[01-01 00:00:00 ty N][tal_wifi_reconnet.c:207] wifi status changed to 2, stat: 0
[01-01 00:00:00 ty N][tuya_tls.c:279] tuya_tls_rand_init ok!
[01-01 00:00:00 ty N][tuya_wifi_connect.c:289] mf is open need stop fastconnect
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][tuya_wifi_link.c:762] tuya wifi link init mthd:3,wifi start mode:0, enable_station_ap:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:83] start wifi link params validate, nc_tp:2 md:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:105] gw_wsm.nc_tp:2
[01-01 00:00:00 ty N][tuya_wifi_link.c:106] gw_wsm.md:0
[01-01 00:00:00 ty D][tuya_bt_link.c:260] bt init...
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[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
[01-01 00:00:00 ty N][tuya_svc_devos.c:494] Last reset reason: 7
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:299] gw_cntl->gw_wsm.stat:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_di isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:3 gw_di
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_di find value.Len:688
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:is_stride 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_devos_stride.c:55] stride from flash: 0.
[01-01 00:00:00 ty D][tuya_devos_stride.c:62] no actived, no upgrade:0
[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:dhgzdag4qwtcve7w, input:dhgzdag4qwtcve7w
[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
[01-01 00:00:00 ty D][tkl_wifi.c:472] tkl_wifi_get_mac 0
[01-01 00:00:00 ty D][tkl_wifi.c:502] WIFI Get MAC C8-FE-0F-23-01-3D
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:c8fe0f23013d
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:11485088
[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 E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[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][tuya_sdk_simple_start.cpp:107] tuya robot 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][tuya_ipc_media_adapter.c:97] media adapter init success. avaliable_res_size:5000
[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
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:465] insert media info node success! device:[0] channel:[0]
[01-01 00:00:00 ty D][tkl_wifi.c:646] tkl_wifi_set_country_code 0
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:3, 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
[01-01 00:00:00 ty D][tkl_wifi.c:515] tkl_wifi_set_work_mode 0
[01-01 00:00:00 ty D][tkl_wifi.c:516] tkl_wifi_set_work_mode mode: 3
[01-01 00:00:00 ty D][tkl_wifi.c:561] WIFI Set Mode 3
[01-01 00:00:00 ty D][tkl_wifi.c:472] tkl_wifi_get_mac 0
[01-01 00:00:00 ty D][tkl_wifi.c:502] WIFI Get MAC C8-FE-0F-23-01-3D
[01-01 00:00:00 ty D][tkl_wifi.c:149] tkl_wifi_start_ap 0
[01-01 00:00:00 ty D][tkl_wifi.c:156] Start AP SSID:SmartLife-013D 14 0 6 1
[01-01 00:00:00 ty D][tkl_wifi.c:157] Start AP IP:192.168.176.1 255.255.255.0 192.168.176.1
[01-01 00:00:01 ty D][tkl_wifi.c:818] tkl_wifi_station_get_status 0
[01-01 00:00:01 ty D][tkl_wifi.c:855] tkl_wifi_station_get_status scan_mode [Master], *stat = 0
[01-01 00:00:01 ty D][tkl_wifi.c:164] tkl_wifi_start_ap 1
[01-01 00:00:01 ty D][tuya_wifi_netcfg.c:575] start ap success:SmartLife-013D
[01-01 00:00:01 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:01 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:01 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:01 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:01 ty D][tkl_wifi.c:574] tkl_wifi_get_work_mode 0
[01-01 00:00:01 ty D][tkl_wifi.c:610] WIFI Get Mode [Master] 3
[01-01 00:00:01 ty N][tuya_wifi_status.c:168] cur stat:2 0xf30a4 -->>
[01-01 00:00:01 ty N][tuya_wifi_status.c:171] wifi netstat changed to:2 -->>
[01-01 00:00:01 ty N][tuya_wifi_status.c:175] report wifi netstat[2] to callback -->>
[01-01 00:00:01 ty D][tuya_sdk_net_sync_demo.cpp:31] net change cb now status -[2], last status -[255]
[01-01 00:00:01 ty D][tuya_sdk_net_sync_demo.cpp:45] goto wait pair wifi
[01-01 00:00:01 ty D][netcfg_module.c:334] netcfg module start type:0x10100
[01-01 00:00:01 ty N][tuya_wifi_reset.c:404] timer stated, short timer:0x0, long timer:0x0
[01-01 00:00:01 ty D][tuya_wifi_netcfg.c:787] nc_tp:2, md:0
[01-01 00:00:01 ty N][tuya_bt_link.c:61] bt startup attr:ff
[01-01 00:00:01 ty D][tuya_bt_link.c:76] bt link open
[01-01 00:00:01 ty D][tuya_ble_svc.c:2018] get_wifi_list eanbled
[01-01 00:00:01 ty D][tuya_ble_svc.c:2023] get_netcfg_stat eanbled
[01-01 00:00:01 ty D][tuya_ble_svc.c:2035] get_ap_name eanbled
[01-01 00:00:01 ty N][tuya_ble_svc.c:978] upd product_id type:0 dhgzdag4qwtcve7w
[01-01 00:00:01 ty D][tuya_ble_svc.c:99] uuid: 20 <0x83a20c>
75 75 69 64 35 65 63 31 35 64 62 35 31 38 39 30 31 66 35 34
[01-01 00:00:01 ty D][tuya_ble_svc.c:99] devid_tmp: 16 <0xb6fd7c60>
79 e4 8d 14 e3 01 14 d2 c5 04 82 40 04 f1 44 ff
[01-01 00:00:01 ty E][tuya_ble_svc.c:946] bt init err:ffff8ffa
[01-01 00:00:01 ty N][tuya_ble_svc.c:1045] ty bt sdk init success finish
[01-01 00:00:01 ty D][tuya_ble_netcfg.c:151] net_cfg sub session created
[01-01 00:00:01 ty D][tuya_ble_svc.c:1992] get_wifi_list sub session created
[01-01 00:00:01 ty D][tuya_ble_svc.c:1996] get_netcfg_stat sub session created
[01-01 00:00:01 ty D][tuya_ble_svc.c:2004] get_ap_name sub session created
[01-01 00:00:01 ty D][tuya_ble_svc.c:1347] start ble monitor
[01-01 00:00:01 ty N][tuya_svc_devos.c:216] __devos_init_evt success
[01-01 00:00:01 ty D][netcfg_module.c:116] start 0x10100 ret:0
[01-01 00:00:01 ty D][netcfg_module.c:334] netcfg module start type:0x10002
[01-01 00:00:01 ty D][ap_netcfg.c:1282] ap cfg start:65538
[01-01 00:00:01 ty D][tkl_wifi.c:382] tkl_wifi tkl_wifi_get_ip 0
[01-01 00:00:01 ty D][tkl_wifi.c:383] tkl_wifi tkl_wifi_get_ip wf:1
[01-01 00:00:01 ty D][tkl_wifi.c:412] WIFI[1] Get IP:192.168.176.1
[01-01 00:00:01 ty D][ap_netcfg.c:1160] ap netcfg server ip:192.168.176.1
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
这个日志里看不出来啥问题,你这边适配完产品层面有啥问题?
-
- Posts: 7
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
wifi适配后,启动会把我的程序搞崩了,系统生成的coredump文件,看是以涂鸦相关的线程名称开头coredump文件。用gdb调试分析后结果如下: 附件是相关的日志和截图。麻烦看看支支招。
(gdb) core-file wq_highpri_1715960960.core
[New LWP 1920]
[New LWP 1873]
[New LWP 1880]
[New LWP 1879]
[New LWP 1896]
[New LWP 1881]
[New LWP 1910]
[New LWP 1921]
[New LWP 1919]
[New LWP 1922]
[New LWP 1918]
Core was generated by `/app/connect'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xb6f1b288 in __netlink_enumerate (fd=fd@entry=19, seq=seq@entry=1,
type=type@entry=18, af=af@entry=0,
cb=cb@entry=0xb6f19518 <netlink_msg_to_nameindex>, ctx=ctx@entry=0xb6f51a68)
at src/network/netlink.c:9
9 src/network/netlink.c: No such file or directory.
[Current thread is 1 (LWP 1920)]
(gdb)
- Attachments
-
- tuya_log.txt
- (12.46 KiB) Downloaded 108 times
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
__netlink_enumerate 这个是在哪里?感觉操作了一个空的fd?
-
- Posts: 7
Re: 扫地机基于SDK和涂鸦扫地机demo移植后配网初始化问题
针对移植demo后并做了适配wifi TKL 接口,程序总是发生段错误,崩溃掉。
我这边有几个疑问点,麻烦看看能否给我点点思路。
- 看文档wifi适配接口函数tkl_wifi_init 需要TuyaOS SDK 初始化时调用该接口,按demo移植过来没看到具体调用的地方,我不知道是否需要再初始化时再调用一次?具体调用有没有参考?
- 调试时发现wifi操作接口适配后,不给设备wifi具体的AP地址如涂鸦的192.168.176.1,不会把程序拉崩,但只要一给AP地址192.168.176.1就会把我程序拉崩。
gdb的调试信息:
Core was generated by `/app/connect'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xb6f85288 in __netlink_enumerate (fd=fd@entry=19, seq=seq@entry=1,
type=type@entry=18, af=af@entry=0,
cb=cb@entry=0xb6f83518 <netlink_msg_to_nameindex>,
ctx=ctx@entry=0xb6fbba68) at src/network/netlink.c:9
9 src/network/netlink.c: No such file or directory.
[Current thread is 1 (LWP 1803)]
(gdb) bt
#0 0xb6f85288 in __netlink_enumerate (fd=fd@entry=19, seq=seq@entry=1,
type=type@entry=18, af=af@entry=0,
cb=cb@entry=0xb6f83518 <netlink_msg_to_nameindex>,
ctx=ctx@entry=0xb6fbba68) at src/network/netlink.c:9
#1 0xb6f853c0 in __rtnetlink_enumerate (link_af=link_af@entry=0,
addr_af=addr_af@entry=2, cb=0xb6f83518 <netlink_msg_to_nameindex>,
ctx=ctx@entry=0xb6fbba68) at src/network/netlink.c:48
#2 0xb6f836dc in if_nameindex () at src/network/if_nameindex.c:94
#3 0x00173ae8 in tal_net_bind ()
#4 0x000000c0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
涂鸦日志输出:
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_system,stackDepth:6144,totalstackDepth:10240,priority:3
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:wq_highpri,stackDepth:5120,totalstackDepth:15360,priority:4
[01-01 00:00:00 ty I][tal_thread.c:185] thread_create name:health_monitor,stackDepth:1536,totalstackDepth:16896,priority:5
[01-01 00:00:00 ty I][mqc_app.c:429] mqc app init ...
[01-01 00:00:00 ty E][log_seq.c:873] logseq empty
[01-01 00:00:00 ty I][kv_storge.c:45] Init Kvs With File:/userdata/
[01-01 00:00:00 ty N][tuya_tls.c:852] uni_random_init...
[01-01 00:00:00 ty N][tuya_tls.c:279] tuya_tls_rand_init ok!
[01-01 00:00:00 ty N][tuya_wifi_connect.c:289] mf is open need stop fastconnect
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][tuya_wifi_link.c:762] tuya wifi link init mthd:3,wifi start mode:0, enable_station_ap:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:83] start wifi link params validate, nc_tp:2 md:0
[01-01 00:00:00 ty N][tuya_wifi_link.c:105] gw_wsm.nc_tp:2
[01-01 00:00:00 ty N][tuya_wifi_link.c:106] gw_wsm.md:0
[01-01 00:00:00 ty D][tuya_bt_link.c:260] bt init...
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[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
[01-01 00:00:00 ty N][tuya_svc_devos.c:494] Last reset reason: 7
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_bi isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:1 gw_bi
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_bi find value.Len:224
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[223]
[01-01 00:00:00 ty D][ws_db_gw.c:146] gw_bi read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_wsm isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:2 gw_wsm
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_wsm find value.Len:144
[01-01 00:00:00 ty D][tuya_ws_db.c:651] sync to protected len[140]
[01-01 00:00:00 ty D][ws_db_gw.c:255] gw_wsm read ret:0
[01-01 00:00:00 ty N][tuya_svc_devos.c:299] gw_cntl->gw_wsm.stat:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:gw_di isFuzzy:0 skipCnt:0
[01-01 00:00:00 ty D][simplekv.c:1159] find key:3 gw_di
[01-01 00:00:00 ty D][simplekv.c:1185] key:gw_di find value.Len:688
[01-01 00:00:00 ty D][ws_db_gw.c:372] gw_di read ret:0
[01-01 00:00:00 ty D][simplekv.c:1128] read key:is_stride 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_devos_stride.c:55] stride from flash: 0.
[01-01 00:00:00 ty D][tuya_devos_stride.c:62] no actived, no upgrade:0
[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:dhgzdag4qwtcve7w, input:dhgzdag4qwtcve7w
[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
[01-01 00:00:00 ty D][tkl_wifi.c:511] tkl_wifi_get_mac 0
[01-01 00:00:00 ty D][tkl_wifi.c:541] WIFI Get MAC C8-FE-0F-23-01-75
[01-01 00:00:00 ty N][tuya_svc_devos.c:526] serial_no:c8fe0f230175
[01-01 00:00:00 ty D][tuya_devos_utils.c:295] timer ID:35245248
[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 E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[01-01 00:00:00 ty E][tuya_ring_buffer.c:116] ring buffer list not inited!
[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][tuya_svc_devos.c:760] state change from 0 to 1
[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
[01-01 00:00:00 ty D][tkl_wifi.c:694] tkl_wifi_set_country_code 0
[01-01 00:00:00 ty D][tuya_wifi_reset.c:559] reset init mthd:3, 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
[01-01 00:00:00 ty D][tkl_wifi.c:554] tkl_wifi_set_work_mode 0
[01-01 00:00:00 ty D][tkl_wifi.c:555] tkl_wifi_set_work_mode mode: 3
[01-01 00:00:00 ty D][tkl_wifi.c:601] WIFI Set Mode 3
[01-01 00:00:00 ty D][tkl_wifi.c:511] tkl_wifi_get_mac 0
[01-01 00:00:00 ty D][tuya_sdk_simple_start.cpp:107] tuya robot sdk start is complete
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:97] media adapter init success. avaliable_res_size:5000
[01-01 00:00:00 ty D][tuya_ipc_media_adapter.c:465] insert media info node success! device:[0] channel:[0]
[01-01 00:00:00 ty D][tkl_wifi.c:541] WIFI Get MAC C8-FE-0F-23-01-75
[01-01 00:00:00 ty D][tkl_wifi.c:159] tkl_wifi_start_ap 0
[01-01 00:00:00 ty D][tkl_wifi.c:166] Start AP SSID:SmartLife-0175 14 0 6 1
[01-01 00:00:00 ty D][tkl_wifi.c:167] Start AP IP:192.168.176.1 255.255.255.0 192.168.176.1
[01-01 00:00:00 ty D][tkl_wifi.c:169] g_ap_ip:192.168.176.1 255.255.255.0 192.168.176.1
[01-01 00:00:02 ty D][tkl_wifi.c:177] tkl_wifi_start_ap 1
[01-01 00:00:02 ty D][tuya_wifi_netcfg.c:575] start ap success:SmartLife-0175
[01-01 00:00:02 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:02 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:02 ty D][netcfg_module.c:133] type:0x10002,is_set:0
[01-01 00:00:02 ty D][netcfg_module.c:133] type:0x10100,is_set:0
[01-01 00:00:02 ty D][tkl_wifi.c:614] tkl_wifi_get_work_mode 0
[01-01 00:00:02 ty D][tkl_wifi.c:618] tkl_wifi_get_work_mode 3
[01-01 00:00:02 ty N][tuya_wifi_status.c:168] cur stat:2 0xf30a4 -->>
[01-01 00:00:02 ty N][tuya_wifi_status.c:171] wifi netstat changed to:2 -->>
[01-01 00:00:02 ty N][tuya_wifi_status.c:175] report wifi netstat[2] to callback -->>
[01-01 00:00:02 ty D][tuya_sdk_net_sync_demo.cpp:31] net change cb now status -[2], last status -[255]
[01-01 00:00:02 ty D][tuya_sdk_net_sync_demo.cpp:45] goto wait pair wifi
[01-01 00:00:02 ty D][netcfg_module.c:334] netcfg module start type:0x10100
[01-01 00:00:02 ty N][tuya_wifi_reset.c:404] timer stated, short timer:0x0, long timer:0x0
[01-01 00:00:02 ty D][tuya_wifi_netcfg.c:787] nc_tp:2, md:0
[01-01 00:00:02 ty N][tuya_bt_link.c:61] bt startup attr:ff
[01-01 00:00:02 ty D][tuya_bt_link.c:76] bt link open
[01-01 00:00:02 ty D][tuya_ble_svc.c:2018] get_wifi_list eanbled
[01-01 00:00:02 ty D][tuya_ble_svc.c:2023] get_netcfg_stat eanbled
[01-01 00:00:02 ty D][tuya_ble_svc.c:2035] get_ap_name eanbled
[01-01 00:00:02 ty N][tuya_ble_svc.c:978] upd product_id type:0 dhgzdag4qwtcve7w
[01-01 00:00:02 ty D][tuya_ble_svc.c:99] uuid: 20 <0x83a20c>
75 75 69 64 35 65 63 31 35 64 62 35 31 38 39 30 31 66 35 34
[01-01 00:00:02 ty D][tuya_ble_svc.c:99] devid_tmp: 16 <0xb6fbbc60>
79 e4 8d 14 e3 01 14 d2 c5 04 82 40 04 f1 44 ff
[01-01 00:00:02 ty E][tuya_ble_svc.c:946] bt init err:ffff8ffa
[01-01 00:00:02 ty N][tuya_ble_svc.c:1045] ty bt sdk init success finish
[01-01 00:00:02 ty D][tuya_ble_netcfg.c:151] net_cfg sub session created
[01-01 00:00:02 ty D][tuya_ble_svc.c:1992] get_wifi_list sub session created
[01-01 00:00:02 ty D][tuya_ble_svc.c:1996] get_netcfg_stat sub session created
[01-01 00:00:02 ty D][tuya_ble_svc.c:2004] get_ap_name sub session created
[01-01 00:00:02 ty D][tuya_ble_svc.c:1347] start ble monitor
[01-01 00:00:02 ty N][tuya_svc_devos.c:216] __devos_init_evt success
[01-01 00:00:02 ty D][netcfg_module.c:116] start 0x10100 ret:0
[01-01 00:00:02 ty D][netcfg_module.c:334] netcfg module start type:0x10002
[01-01 00:00:02 ty D][ap_netcfg.c:1282] ap cfg start:65538
[01-01 00:00:02 ty D][tkl_wifi.c:397] tkl_wifi tkl_wifi_get_ip 0
[01-01 00:00:02 ty D][tkl_wifi.c:398] tkl_wifi tkl_wifi_get_ip wf:1
[01-01 00:00:02 ty D][tkl_wifi.c:427] WIFI[1] Get IP:192.168.176.1 192.168.176.1 255.255.255.0
[01-01 00:00:02 ty D][ap_netcfg.c:1160] ap netcfg server ip:192.168.176.1