T3低功耗保活gpio唤醒后高功耗

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
leslieli
Posts: 134

chaser 2024年 Nov 7日 17:48

这个20s 是把dtim10 切到了 dtim1, 是因为sdk中把 gpio 唤醒认为是有多媒体要工作主动切换的逻辑。 晚些时候提供个库,你可以更新下验证是不是这个逻辑导致的。

好的 那如果我调用set dtim(10)是不是也可以

chaser
Posts: 74

Re: T3低功耗保活gpio唤醒后高功耗

理论上是可以的

leslieli
Posts: 134

Re: T3低功耗保活gpio唤醒后高功耗

chaser 2024年 Nov 7日 18:01

理论上是可以的

我试了下不行 还是得底层sdk这里改一下

chaser
Posts: 74

Re: T3低功耗保活gpio唤醒后高功耗

替换下lib 试下, patch:/vendor/T3/t3_os/armino/components/bk_libs/bk7236:

T3 lib.rar
(43.5 MiB) Downloaded 7 times
leslieli
Posts: 134

Re: T3低功耗保活gpio唤醒后高功耗

chaser 2024年 Nov 8日 10:48

替换下lib 试下, patch:/vendor/T3/t3_os/armino/components/bk_libs/bk7236:
T3 lib.rar

CMake Error at /home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/armino/components/bk_libs/CMakeLists.txt:40 (message):
bk_libs or toolchain version verify failed, stop!!!

-- Include directory '/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/armino/components/at_server/atsvr_cmd' is not a directory.
-- Include directory '/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/armino/components/bk_pm/include' is not a directory.
Found User C Module(s):
-- path=/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/libs/libtuyaos.a
-- Include directory '/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/tuya_app/main/include' is not a directory.
Check defconfig: /home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/armino/middleware/soc/bk7236/bk7236.defconfig
-- Components: adc_key ali_mqtt app arm9 at at_server base64 bk7236 bk_adapter bk_ate bk_bluetooth bk_cli bk_common bk_event bk_https bk_init bk_libs bk_log bk_netif bk_phy bk_pm bk_ps bk_rtos bk_startup bk_system bk_usb bk_vfs bk_websocket bk_wifi bt cm33 cmsis common compal compress coredump driver easy_flash embeded_gcov fatfs flashdb http include iperf jrtplib key key_handle littlefs lwip_intf_v2_1 main mbedtls mesh micropython openssl os os_source ota part_table partitions qcbor release riscv saradc_intf security temp_detect tfm tfm_mbedtls touch tuya_libs tuyaos_adapter uart_debug unity user_driver utf8 vnd_cal vnd_flash webclient wolfssl wpa_supplicant
-- Configuring incomplete, errors occurred!
See also "/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/tuya_build/bk7236/CMakeFiles/CMakeOutput.log".
See also "/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/tuya_build/bk7236/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
make[1]: *** [Makefile:132:bk7236] 错误 2
make[1]: 离开目录“/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/vendor/T3/t3_os/armino”
make failed
build.sh: 139: exit: Illegal number: -1
make: *** [/home/leslie/workspace/T3/T3_TuyaOS-3.8.30/software/TuyaOS/scripts/mk/app.mk:195:app_by_name] 错误 2

问一下这个是需要特定版本sdk么
我这里编译失败toolchain 和lib的 version不对

leslieli
Posts: 134

Re: T3低功耗保活gpio唤醒后高功耗

chaser 2024年 Nov 8日 10:48

替换下lib 试下, patch:/vendor/T3/t3_os/armino/components/bk_libs/bk7236:
T3 lib.rar

编译能通过但是烧录后
[11:26:49.417]收←◆?
u_bootloader enter
ty heap base: 28001B00 size: 65280
__read_manage_block: mag->blockid=255, id=0, mag->state=255.
__read_manage_block: mag->magic=0xFFFFFFFF, rescrc=0x0, mag->crc32=0xFFFFFFFF.
__read_manage_block: mag->blockid=255, id=1, mag->state=255.
__read_manage_block: mag->magic=0xFFFFFFFF, rescrc=0x0, mag->crc32=0xFFFFFFFF.
_judge_ota_info checkerr0:1, checkerr1:1
jump toxx:0x2010000
jump toxx:0x2010000蔦0
mem_type start end size


itcm 0x0 0x3c08 15368
dtcm 0x20000000 0x20001d1c 7452
ram 0x28032c00 0x2809e7f8 441336
non_heap 0x28032c00 0x280619a0 191904
iram 0x8000000 0x8032b70 207728
data 0x28032c00 0x280345b8 6584
bss 0x28037f00 0x2806199c 170652
non_cache 0x28055188 0x2806199b 51219
heap 0x280619a0 0x2809e7f8 249432
id=0xc86516
ate enabled is 0
driver_init end
saradc low value:[9c8]
saradc high value:[138e]
sdmadc low value:[6ef8]
sdmadc high value:[8a06]
reason - power on
regs - 0, 0, 0
armino rev:
armino soc id:53434647_72360101
Intialize random stack guard.
create main, tcb=28063158, stack=[28062130-28063130:4096], prio=6
start user app thread.
create app, tcb=28064320, stack=[280632f8-280642f8:4096], prio=3
os time(0ms).
base aon rtc time: 0:7
create IDLE, tcb=20000354, stack=[200003b0-200009b0:1536], prio=0
create Tmr Svc, tcb=200009b0, stack=[20000a0c-2000160c:3072], prio=9
flash id: 0x00c86516, flash size: 400000 / 4M
go to
[11:26:49.511]收←◆tuya
armino app init: Nov 10 2024 19:22:58
APP Version: 1.0.1
create event, tcb=28064da0, stack=[28064578-28064d78:2048], prio=2
init TCP/IP
create tcp/ip, tcb=28065950, stack=[28065128-28065928:2048], prio=8
wifi initing
(6)Assert at: vPortFree_cm:916
CPU0 Current regs:
0 r0 x 0x1
1 r1 x 0xa
2 r2 x 0xc8040000
3 r3 x 0xc8040000
4 r4 x 0x8004094
5 r5 x 0x2803ca18
6 r6 x 0x59
7 r7 x 0x20001d14
8 r8 x 0x8080808
9 r9 x 0x9090909
10 r10 x 0x10101010
11 r11 x 0x11111111
12 r12 x 0x2010d95
14 sp x 0x28062ff0
15 lr x 0x8006d97
16 pc x 0x2010dd8
17 xpsr x 0x20000000
18 msp x 0x2809f798
19 psp x 0x28062ff0
20 primask x 0x1
21 basepri x 0x0
22 faultmask x 0x0
23 fpscr x 0x0
30 CPU0 xPSR x 0x20000000
31 LR x 0x2
32 control x 0xe
40 MMFAR x 0xe000ed34
41 BFAR x 0xe000ed38
42 CFSR x 0x0
43 HFSR x 0x0
build time => Nov 10 2024 19:22:58 !


********************************user except handler begin********************************


chaser
Posts: 74

Re: T3低功耗保活gpio唤醒后高功耗

下午我再确认下lib。

chaser
Posts: 74

Re: T3低功耗保活gpio唤醒后高功耗

基于上面的lib库,再更新替换下面两个文件。 路径:
\vendor\T3\t3_os\armino\components\bk_wifi\include\bk_wifi_adapter.h
\vendor\T3\t3_os\armino\components\bk_wifi\src\bk_wifi_adapter.c

bk_wifi_adapter.c
(51.95 KiB) Downloaded 3 times
bk_wifi_adapter.h
(18.82 KiB) Downloaded 1 time
leslieli
Posts: 134

Re: T3低功耗保活gpio唤醒后高功耗

chaser 2024年 Nov 11日 18:07

基于上面的lib库,再更新替换下面两个文件。 路径:
\vendor\T3\t3_os\armino\components\bk_wifi\include\bk_wifi_adapter.h
\vendor\T3\t3_os\armino\components\bk_wifi\src\bk_wifi_adapter.c
bk_wifi_adapter.c
bk_wifi_adapter.h

可以了谢谢 然后我这里还遇到一个问题是 如果设备进行远程复位 重新配网 配另一个网络的话 功耗没问题 但是如果进行本地复位 如果不是配的是原先的网络的话 虽然会进dtim10 但是底电流会有1ma下不去

chaser
Posts: 74

Re: T3低功耗保活gpio唤醒后高功耗

可以把日志发出来看看, 1mA可能是蓝牙没有关

Post Reply