>>20602793
Unfortunately, AliExpress still sells WA2 modules based on the BK7231Q chip. Here are two dumps from the relay module.
Unfortunately, AliExpress still sells WA2 modules based on the BK7231Q chip. Here are two dumps from the relay module.
[I/FAL] Fal(V0.4.0)success
[I/OTA] RT-Thread OTA package(V0.2.4) initialize success.
[Flash]id:0xc84015
app:403d08-403d00:4096:5
extended_app:4045d0-4045c8:2048:4
idle:404a40-404a38:1024:0
timer_thd:405780-405778:3000:2
sys_timer:4082f8-4082f0:3072:5
cmmod:409418-409410:4096:4
[01-01 00:00:00 TUYA Debug]wk_th-0:409fe8-409fe0:2[uni_thread.c:214] Thre560:3
wk_th-1:40aab0-4ad:sys_timer Exec Start0aaa8:2560:3
. Set to Running Status
[01-01 00:00:00 TUYA Debug][tuya_device.c:142] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >
< BUILD AT:2018_12_05_17_03_30 BY tuya_iot_team FOR rtlbn_tls_common AT 8710_2M >
IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 [01-01 00:00:00 TUYA Debug][tuya_device.c:143] oem_bk7321_bk_1_switch:1.0.4
[01-01 00:00:00 TUYA Debug][hw_table.c:336] initialize hardware...
[01-01 00:00:00 TUYA Notice][hw_table.c:150] IO - relay[0]: pin-18 type high
[01-01 00:00:00 TUYA Notice][hw_table.c:150] IO - button[0]: pin-6 type low
[01-01 00:00:00 TUYA Debug][hw_table.c:239] key_cfg.low_level_detect:true
[01-01 00:00:00 TUYA Debug][hw_table.c:246] pbutton->key_cfg.lp_tp:LP_ONCE_TRIG
[01-01 00:00:00 TUYA Notice][hw_table.c:369] CH[0], DPID[1]
[01-01 00:00:00 TUYA Notice][hw_table.c:370] CH[0], CDDPID[102]
[01-01 00:00:00 TUYA Notice][hw_table.c:371] CH[0], RSDPID[101]
[01-01 00:00:00 TUYA Notice][hw_table.c:150] IO - wifi_stat: pin-7 type low
[01-01 00:00:00 TUYA Debug][tuya_device.c:1315] all_ch_num:1
[01-01 00:00:00 TUYA Debug][uf_flash_file.c:785] len 1
[01-01 00:00:00 TUYA Debug][uf_flash_file.c:787] [0] 0x3
[01-01 00:00:00 TUYA Err][uf_flash_file_app.c:201] uf_open default_stat_save err 8
[01-01 00:00:00 TUYA Err][tuya_device.c:1119] cannot open file
[01-01 00:00:00 TUYA Err][tuya_device.c:1325] fast read def mode is error:relay_stat:1
[01-01 00:00:00 TUYA Debug][tuya_device.c:1329] relay_stat:1
[01-01 00:00:00 TUYA Debug][hw_table.c:492] hw_set_channel :1,channel_no :0
[01-01 00:00:00 TUYA Debug][tuya_led.c:107] port = 7
[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000 block_sz 4096
[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:
0xcb 0x4e 0x3e 0xa4 0x0 0x30 0x9d 0xab 0x65 0x6d 0x8d 0xbf 0xe4 0xb9 0x3f 0x35
[FUNC]rwnxl_init
[FUNC]intc_init
[FUNC]calibration_main
DPLL Unlock
temp in flash is:315
init temp pwr table: mod:8, pa:8, tmp:315, idx:7, dist:20
set flag to 1
open set pwr flag for the first time: 1
temp_detct:40b1a8-40b1a0:1024:3
[FUNC]ps_init
rl_init
[FUNC]func_init_extended OVER!!!
kmsgbk:40c2e0-40c2d8:4096:6
init_thread:40cb20-40cb18:2000:5
Initializing TCP/IP stack
tcp/ip:40d518-40d510:2048:7
wpas_thread:40e3b8-40e3ac:3500:4
app_init finished
core_thread:40f080-40f078:2048:7
mf_test:4109d8-4109d0:2048:4
[01-01 00:00:00 TUYA Notice][tuya_main.c:187] mf_init succ
[01-01 00:00:00 TUYA Notice][tuya_device.c:1035] don't support get reset reason
[01-01 00:00:00 TUYA Notice][tuya_device.c:1041] rst_cnt:1
[01-01 00:00:01 TUYA Notice][tuya_main.c:112] current product ssid name:tuya_mdev_test1
[sa_sta]MM_RESET_REQ
[sa_sta]ME_CONFIG_REQ
[sa_sta]ME_CHAN_CONFIG_REQ
[sa_sta]MM_START_REQ
scan_start_req_handler
cal dpll!
set_tmp_pwr: indx:5, mod:6, pa:8, tmp:287, shift:0
[01-01 00:00:03 TUYA Notice][tuya_main.c:116] wf_assign_ap_scan failed(-1)
rw_ieee80211_set_country code:
code: CN
channel: 1 - 13
mode: MANUAL
bk_wlan cca closed
[01-01 00:00:03 TUYA Notice][gw_intf.c:2272] gw_cntl.gw_wsm.stat:1
[01-01 00:00:03 TUYA Notice][tuya_device.c:848] device_init ok free_mem_size:65888
net_wlan_add_netif not vif idx found
[01-01 00:00:04 TUYA Notice][tuya_device.c:784] state:0
[01-01 00:00:04 TUYA Notice][hw_table.c:567] wifi_stat:0