日志输出怎么查看

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
Freekeil
Posts: 1

刚入坑,官方SDK上面简单加了点日志输出
通过windIDE 编译工程之后,烧录固件tuyaos_demo_quickstart_0.0.1_flash_is.bin
接TX口看不到修改的日志输出,只能看到如下输出,请问是什么问题哈
== Rtl8710c IoT Platform ==
Chip VID: 5, Ver: 3
ROM Version: v3.0

== Boot Loader ==
Oct 20 2021:16:31:20

fwx SELE[fffffffe]
fw SELE Bitidx 1, fw1 valid 1, sn 0, fw2 valid 1, sn 1
fw2 USE, return sn 1

Boot Loader <==

== RAM Start ==
Build @ 15:59:09, May 23 2023
interface 0 is initialized
interface 1 is initialized
[WIFI DEBUG]tuya[01-01 18:1_os_adapt_fl2:15 TUYA Iash_write er][lr:0x9b03er
[WIFI Db57] mqc appEBUG]get co init ...
untry code:[01-01 18:120

Init:15 TUYA I][ializing WIlr:0x9b0425fFI ...3] thread_create name:sys_timer,stackDepth:4096,totalstackDepth:4096,priority:5
[01-01 18:12:15 TUYA I][lr:0x9b0425f3] thread_create name:cmmod,stackDepth:4096,totalstackDepth:8192,priority:4
[01-01 18:12:15 TUYA D][lr:0x9b03ea79] mq_pro:5 cnt:1
[01-01 18:12:15 TUYA D][lr:0x9b03ea79] mq_pro:31 cnt:2
[01-01 18:12:15 TUYA D][lr:0x9b07439b] svc online log init success
[01-01 18:12:15 TUYA D][lr:0x9b04247b] Thread:sys_timer Exec Start. Set to Running Stat
[01-01 18:12:15 TUYA E][lr:0x9b0545b9] logseq empty
[01-01 18:12:15 TUYA I][lr:0x9b0425f3] thread_create name:wk_th-0,stackDepth:5120,totalstackDepth:13312,priority:3
[01-01 18:12:15 TUYA E][lr:0x9b057687] wd_protected_read fails gw_bi -23
[01-01 18:12:15 TUYA D][lr:0x9b0578fb] gw base read finish:-23
[01-01 18:12:15 TUYA D][lr:0x9b0459ab] ty bt cmmod regist ok:1
dev id key: 16
d4 1d 8c d9 8f 00 b2 04 e9 80 09 98 ec f8 42 7e
adv_data 12
02 01 06 03 02 01 a2 04 16 01 a2 00
rsp_data 30
03 09 54 59 19 ff d0 07 81 03 00 00 0c 00 5f 9f 6e 03 22 00 95 d8 0a f2 87 2e da ac 83 7e
[BT NOTICE]tuya_os_adapt_param_init mode:1
[BT DEBUG]tuya_os_adapt_bt_stack_init
[BT DEBUG]current_bt_mode:255, new bt_param->mode:1
[BT DEBUG]###init ble slave###
[01-01 18:12:15 TUYA D][lr:0x9b04247b] Thread:cmmod Exec Start. Set to Running Stat
[01-01 18:12:15 TUYA D][lr:0x9b04247b] Thread:wk_th-0 Exec Start. Set to Running Stat

WIFI initialized
[WIFI DEBUG]get country code:0

init_thread(65), Available heap 0x16e70BT BUILD Date: May 23 2023, 15:58:58
BT RESET LOG...
read wifi mac:c4:82:e1:e5:6f:18[BT NOTICE]BLE MAC: 0xc4-0x82-0xe1-0xe5-0x6f-0x18
BT Reset ok
bt_iqk_efuse_valid: has data

hci_tp_phy_efuse[0]=0,
bt_dump_iqk: DUMP,
the IQK_xx data is 0x112,
the IQK_yy data is 0x8,
the QDAC data is 0x1f,
the IDAC data is 0x1b,
the QDAC2 data is 0x20,
the IDAC2 data is 0x1d,
hci_read_rom_check: rom_version 0x0003, bt_hci_chip_id 0x0004

BT ADDRESS:
c4:82:e1:e5:6f:18:

WRITE physical FLATK=tx_flatk=f000

We use fw_buf=1002e310, fw_len = 1fb8, config_buf = 100302d0, config_len= 32
Set baudrate to 921600

hci_tp_config:BT INIT success 7
Start upperStack

[BLE peripheral] GAP stack ready
[BT DEBUG]###init ble slave succ###
[01-01 18:12:15 TUYA N][lr:0x9b04936b] ble sdk re_inited
[01-01 18:12:15 TUYA D][lr:0x9b048341] bt active init
[01-01 18:12:15 TUYA N][lr:0x9b045ac7] ty bt sdk init success finish
[01-01 18:12:15 TUYA D][lr:0x9b01a353] < TUYA IOT SDK V:2.3.3 BS:40.00_PT:2.2_LAN:3.4_CAD:1.0.5_CD:1.0.0 >
< BUILD AT:2023_05_16_18_19_54 BY ci_manage FOR ty_iot_sdk AT rtl8720cf_ameba >
IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:2 ENABLE_CLOUD_OPERATION:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 RELIABLE_TRANSFER:0 ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_DEV:0 >

[01-01 18:12:15 TUYA D][lr:0x9b01a35d] rtl8720cf_common_user_config_ty:2.6.22
[01-01 18:12:15 TUYA N][lr:0x9b071e0b] key_addr: 0x1d8000 block_sz 4096
[01-01 18:12:15 TUYA N][lr:0x9b071e93] get key:
0xac 0x1a 0x7a 0x2d 0x4f 0xe3 0x48 0xa4 0x3c 0x2 0xb9 0x51 0xba 0xe1 0x9a 0x4b
[01-01 18:12:16 TUYA N][lr:0x9b019363] mf_init succ


Tags:
yingtao_33
Posts: 245

Re: 日志输出怎么查看

请问你是加在什么地方,怎么添加的? 日志服务可参考文档:https://developer.tuya.com/cn/docs/iot- ... pz3t0azbqd

yingtao_33
Posts: 245

Re: 日志输出怎么查看

你烧录的工程是 tuyaos_demo_quickstart_0.0.1_flash_is.bin ? 我看日志打印运行的是其他工程

企业微信截图_1709804538823.png

确认一下你是否正确烧录固件了。

Post Reply