紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

Wi-Fi 设备、蜂窝设备、WuKongAI、开发板、TuyaOS 移植等


Post Reply
我的代码不可能有问题
Posts: 5

[01-01 08:00:00 ty D][452][tuya_wifi_ultra_lowpower.c:192] tuya_wifi_ulp_init
tkl_system_malloc big memory, size(4200)!
这个是什么原因造成的?

配网十五分钟后不进入这个就没有了,但是下面还有一个
[01-01 08:00:00 ty D][496][ap_netcfg.c:1462] ap cfg start:65568
tkl_system_malloc big memory, size(10520)!

还有个KVDB读错误log,用的这个接口 rt = wd_user_param_read(&value, &len);

我的代码不可能有问题
Posts: 5

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

这个是KV DB的log

Attachments
KVDB 读错误log.txt
(33.45 KiB) Downloaded 6 times
我的代码不可能有问题
Posts: 5

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

补充一下出现KVDB的问题,我在写入用户数据后,就用了配网的接口op_ret = tuya_iot_wf_gw_unactive(); 大概延迟了100ms或者1000ms 就会出现这个问题,想问下你们是写入的逻辑是怎样的,文档也没有任何说明注意事项。是不是这个原因导致的呢

愚者千虑必有一得
Posts: 667

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

这个是个打印提示,申请较大内存的时候回打印,不是错误,忽略。
tkl_system_malloc big memory, size(10520)!

kvdb错误,没看到哪里错误,unactive会重启设备,在这个接口之后,不要操作kv。

我的代码不可能有问题
Posts: 5

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

你搜下我的log文件里面, kvs 这三个字就看到了

我的代码不可能有问题
Posts: 5

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

申请较大内存,那没申请到对你后续的逻辑没有问题吗?

愚者千虑必有一得
Posts: 667

Re: 紧急 T3.3.11.24 出现 tkl_system_malloc big memory以及KVDB 读错误

只是打印申请了大内存,并没有失败。kvs的错误,你贴一下代码看看,你的日志之前都有kvs read成功的log。
[01-01 08:00:00 ty D][452][ws_db_gw.c:374] gw_di read ret:0
[01-01 08:00:00 ty D][452][tuya_devos_stride.c:55] stride from flash: 0.
[01-01 08:00:00 ty D][452][tuya_devos_stride.c:62] no actived, no upgrade:1
[01-01 08:00:00 ty N][452][tuya_svc_devos.c:423] gw_cntl->gw_if.abi:0 input:0
[01-01 08:00:00 ty N][452][tuya_svc_devos.c:424] gw_cntl->gw_if.product_key:lo9rv3yioeeyyqmx, input:lo9rv3yioeeyyqmx
[01-01 08:00:00 ty N][452][tuya_svc_devos.c:425] gw_cntl->gw_if.tp:0, input:0
[01-01 08:00:00 ty N][452][tuya_svc_devos.c:627] enter success_proc
[01-01 08:00:00 ty N][452][tuya_svc_devos.c:634] serial_no:80647c160d4a
[01-01 08:00:00 ty D][452][tuya_svc_upgrade.c:1397] tuya svc upgrade init success!
[01-01 08:00:00 ty D][452][ty_meta_report.c:117] meta in kv {"metas":{}}
[01-01 08:00:00 ty D][452][tuya_svc_netmgr_linkage.c:72] link[1] is registered [3]
[01-01 08:00:00 ty E][452][tuya_ws_db.c:796] kvs_read err:-1
[01-01 08:00:00 ty D][496][tuya_svc_devos.c:890] state change from 0 to 1

Post Reply