logo elektroda
logo elektroda
X
logo elektroda

Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification

Nargo 192 20
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21616163
    Nargo
    Level 22  
    I purchased the Tuya WiFi IR universal remote control . Upon opening the device, I encountered this measure
    Screenshot of a terminal window displaying boot and status logs of Tuya T1-3S IR WiFi module. .
    Screenshot of a terminal window showing boot logs from a Tuya T1-3S module connected via TX2 and RX2. .

    T1-3S module. I don't know if it is supported by OpenBeken.
    I found documentation of the module , and link to Chip .
    When connected to TX2 and RX2 something like this appears in the terminal:
    V: T1_2.0.0
    REG:cpsr     spsr     r13      r14
    
    SVC:000000d3 00000010 00401c1c 000033a0 
    IRQ:000000d2 00000010 00401e0c 4141edb3 
    FIR:000000d1 00000010 00401ffc 740e22a0 
    ST:00000000
    __read_manage_block: mag->blockid=255, id=0, mag->state=255.
    __read_manage_block: mag->magic=0xffffffff, rescrc=0x00000000, mag->crc32=0xffffffff.
    __read_manage_block: mag->blockid=255, id=1, mag->state=255.
    __read_manage_block: mag->magic=0xffffffff, rescrc=0x00000000, mag->crc32=0xffffffff.
    _judge_ota_info checkerr0:1, checkerr1:1
    init err -5
    jump to:0x10000
    prvHeapInit-start addr:0x415228, size:175576
    [Flash]id:0x852015
    bk_timer_init exit
    spi_init exit
    sctrl_sta_ps_init
    **********tuya_upgrade_main need upgrade? [255]**********
    cset:0 0 0 0
    [FUNC]rwnxl_init
    IP Rev: 431458e2
    tkl_ethernetif_init
    tkl_[bk]tx_txdesc_flush
    ex_txdesc_flush
    [FUNC]intc_init
    [FUNC]calibration_main
    gpio_level=1,txpwr_state=15
    device_id=0x22068000
    [01-01 00:00:00 ty E][4164][log_seq.c:884] logseq empty
    [01-01 00:00:00 ty N][4164][ty_sys.c:277] sdk_info:< TuyaOS V:3.8.31 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
    < BUILD AT:2024_12_26_11_42_43 BY ci_manage FOR tuyaos-iot AT T1 >
    IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:0 OPERATING_SYST[01-01 00:00:00 ty N][4164][ty_sys.c:278] name:oem_t1_irbox_mol_ty:0.0.5
    [01-01 00:00:00 ty N][4164][ty_sys.c:279] firmware compiled at Feb 25 2025 21:21:43
    [01-01 00:00:00 ty N][4164][ty_sys.c:280] system reset reason:[0]
    [01-01 00:00:00 ty N][4164][simple_flash_protected.c:86] init protected data length 715 wr_cnt 14
    [01-01 00:00:00 ty N][4164][simple_flash.c:447] key_addr: 0x1f5000   block_sz 4096
    [01-01 00:00:00 ty N][4164][simple_flash.c:533] get key:
    [01-01 00:00:00 ty N][4164][tdd_button_gpio.c:199] tdd_gpio_button_register succ
    [01-01 00:00:00 ty N][4164][ty_app_ir_oem_config.c:56] --->long_press_time:3
    [01-01 00:00:00 ty N][4164][tuya_tls.c:911] uni_random_init...
    [01-01 00:00:00 ty N][4164][tuya_tls.c:354] tuya_tls_rand_init ok!
    calibration_main over
    flash txpwr table:0xf
    dif g and n20 ID in flash:4
    read txpwr tab from flash success
    uncali adc value:[7b f1 00]
    temp in flash is:256
    lpf_i & q in flash is:128, 128
    found flash XTAL:51
    use xtal:51
    xtal_cali:51
    --init_xtal = 51
    [FUNC]ps_init
    [FUNC]func_init_extended OVER!!!
    
    start_type:0
    Version:
    app_init finished
    [01-01 00:00:00 ty E][416e][api_lib.c:227] LWIP_NETCONN_THREAD_SEM_FREE:not find thread sem
    
    [01-01 00:00:00 ty N][4164][tuya_svc_devos.c:319] gw_cntl->gw_wsm.stat:2
    rw_ieee80211_set_country code:
    code: CN
    channel: 1 - 13
    mode: MANUAL
    bk_wlan cca closed
    !! tkl_wifi_station_fast_connect
    >>> mhdr_set_station_status_cb
    >>> _wifi_station_status_cb 0
    wlan_clear_fast_connect_info
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    [sa_sta]MM_RESET_REQ
    [bk]tx_txdesc_flush
    [sa_sta]ME_CONFIG_REQ
    [sa_sta]ME_CHAN_CONFIG_REQ
    [sa_sta]MM_START_REQ
    fast_connect
    sizeof(wpa_supplicant)=928
    hapd_intf_add_vif,type:2, s:0, id:0
    wpa_dInit
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    netif_is_added: 0x40c418
    netif_is_added: 0x40c3d0
    net_wlan_add_netif already exist!, vif_idx:0
    mac 80:64:7c:21:ff:7b
    net_wlan_add_netif done!, vif_idx:0
    me_mgmt_tx chan no avail
    cipher2security 2 2 24 8
    cipher2security 2 2 24 8
    wpa_supplicant_connect
    Cancell[01-01 01:00:00 ty N]chan avail
    iil
    wpa_driv[auth_alg 0x1
    [01-01 0e:00:00 ty N][4164][tuya1:00:00 ty N][4164][tuy_wifi_status.c:169] wifa_wifi_status.c:169] wii netstat changed to:5 fi netstat changed to:5 -->>
    >>> mhdr_set_station_status 3
    >>> _wifi_station_status_cb 3
    found scan rst rssi -41 > -50
    bssid 74:da:88:a5:9e:fb, cap_info 0x1031, BI 100, ssid *****
    sm_auth_send:1
      -->>
    [01-01 01:00:00 ty N][4164]sm_auth_handler
    ht in assoc req
    [mf_test.c:276] have actived over 15 min, not enter mf_sm_assoc_rsp_handler
    rc_init: station_id=0 format_mod=2 pre_type=0 short_gi=1 max_bw=0
    rc_init: nss_max=0 mcs_max=7 r_idx_min=0 r_idx_max=3 no_samples=10
    ---------SM_CONNECT_IND_ok
    i00:00:00:
    [01-01 01:[01-00:00 ty N][4164][t01 01:00:00 ty N][4164]y_sys.c:343] mf_init su[ty_sys.c:343] mf_init cc
    [01-01 01:00:00 ty sed over 15min, don't sN][4164][ty_sys.c:63] hcan prod test ssid
    ave actived over 15min, don't scan prod test ssid
    Cancelling scan request
    [01-01 01:00:00 ty N][
    64][tuya_iot_wifi_api.4164][tuya_iot_wifi_apic:307] wifi soc init. p.c:307] wifi soc init. id:keycmhjv873dhvsn firpid:keycmhjv873dhvsn firmwarekey:keycmhjv873dhvmwarekey:keycmhjv873dhsn ver:0.0.5
    vsn ver:0.0.5
    WPA: TK 9cc034d1bb94a6d2c88d96caa859e749
    
    new ie: 0 : 
    new ie: 1 : 82 84 8b 96 c 12 18 24 
    new ie: 3 : 2 
    new ie: 2d : ac 1 1b ff ff ff 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 
    new ie: 30 : 1 0 0 f ac 2 2 0 0 f ac 4 0 f ac 2 1 0 0 f ac 2 0 0 
    
    [01-01 01:00:00 ty N][4164][hapd_intf_add_key CCMP
    tuya_wifi_link.c:86] st
    add sta_mgmt_get_sta
    art wifi link params vasta:0, vif:0, key:0
    halidate, nc_tp:9 md:3
    pd_intf_add_key:322
    sta_mgmt_add_key
    [01-01 0add hw key idx:24
    WPA: 1[01-01 01:00:00 ty N][G 01:00:00 ty N][4164][4164][tuya_wifi_link.c:tuya_wifi_link.c:109] g109] gw_wsm.md:3
    w_wsm.md:3
    2a8dc701aec72679f6b98dcf1d844602a7b169fb8526c2ac72ebf8d7f024cd5d
    add TKIP
    add is_broadcast_ether_addr
    sta:255, vif:0, key:1
    add hw key idx:1
    ctrl_port_hdl:1
    me_set_ps_disable:943 0 0 0 0 3 0
    >>> mhdr_set_station_status 10
    >>> _wifi_station_status_cb 10
    WLAN_EVENT_CONNECTED
    sta_ip_start
    
    configuring mlan(with DHCPc)writed fci to flash ssid=******
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:547] Last reset reason: 0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:376] gw_cntl->gw_if.abi:0 input:0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:377] gw_cntl->gw_if.product_key:keycmhjv873dhvsn, input:keycmhjv873dhvsn
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:378] gw_cntl->gw_if.tp:0, input:0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:381] gw_cntl->gw_if.firmware_key:keycmhjv873dhvsn, input:keycmhjv873dhvsn
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:580] enter success_proc
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:583] serial_no:80647c21ff7b
    [01-01 01:00:00 ty N][4164][tdl_ir_dev_manage.c:1441] Set ir recv task stack size: 4096
    [01-01 01:00:00 ty N][4164][tdl_button_manage.c:623] tdl_button_create succ
    [01-01 01:00:00 ty N][41a9][ty_app_ir_component.c:78] =================>event_id:3, event_size:0
    [01-01 01:00:00 ty N][41e5][tuya_bt_link.c:63] bt startup attr:ff
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1204] upd product_id type:1 keycmhjv873dhvsn
    [01-01 01:00:00 ty N][427f][tblinitial BLE...
    ble mac:80-64-7c-21-ff-7c
    rwip_heap_env addr:0x42e0d8 size:972
    rwip_heap_msg addr:0x42e4b0 size:3208
    rwip_heap_non_ret addr:0x42f140 size:668
    xvr_reg_init
    tx_pwr_idx:41
    enter normal mode
    _size:668
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1299] ty bt sdk init success finish
    [01-01 01:00:00 ty E][41e5][tuya_svc_timer_task.c:1376] read timer_full_key failed
    [01-01 01:00:00 ty N][41e5][tuya_svc_devos.c:231] __devos_init_evt success
    [01-01 01:00:00 ty N][41e5][tuya_svc_devos.c:68] already bind
    [01-01 01:00:00 ty N][41e5][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 0 -> 1
    [01-01 01:00:00 ty N][4324][tuya_svc_mqtt_client.c:1275] mqtt_thread paused
    [01-01 01:00:00 ty E][41e5][astro_timer.c:326] astro timer read fail:-6
    [01-01 01:00:00 ty E][41e5][astro_timer.c:861] read fail:-6
    [01-01 01:00:00 ty N][4324][tuya_svc_mqtt_client.c:664] mqtt close
    [01-01 01:00:00 ty E][41e5][tuya_wifi_connect.c:371] wf connect err:-1, ssid:*****
    [01-01 01:00:00 ty N][41e5][tuya_wifi_status.c:167] cur stat:5  0x5e64d -->>
    [01-01 01:00:00 ty N][41d3][ty_app_main.c:54] Main Module: v1.0.0 (0.0.5)
    temp_code:30 - adc_code:245 - adc_trend:[13]:256->[14]:246
    init_xtal:51, delta:-1, last_xtal:51
    [01-01 01:00:00 ty N][41e5][ble_gap.c:2509] Start Adv
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1386] ble adv updated
    ip_addr: eb0ca8c0
    >>> mhdr_set_station_status 11
    >>> _wifi_station_status_cb 11
    WFE_CONNECTED 11
    [01-01 01:00:01 ty N][41e5][tal_wifi_reconnet.c:246] wifi status changed to 0, stat: 1
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:167] cur stat:6  0x5e64d -->>
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:169] wifi netstat changed to:6  -->>
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:173] report wifi netstat[6] to callback  -->>
    tkl_w[01-01 01:00:01 ty N][4i 01:00:01 ty N][4324][324][tuya_svc_mqtt_clietuya_svc_mqtt_client.c:nt.c:934] connect to mq934] connect to mqtt brott broker mqtts://m3-euker mqtts://m3-eu.lifea.lifeaiot.com:8883 portiot.com:8883 port 8883
     8883
    
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:946] mqtt client ip:192.168.12.235, link-tp:2
    [01-01 01:00:01 ty N][41a9][ty_app_ir_component.c:78] =================>event_id:3, event_size:0
    [01-01 01:00:01 ty N][41d3][tuya_svc_devos_daemons.c:306] Main Module: v1.0.0 (0.0.5)
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:981] setup mqtt transporter success
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 1 -> 2
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:1007] send mqtt connect success
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 2 -> 3
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:1037] mqtt connect success
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 3 -> 4
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:779] mqtt topics cnt 1
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:793] send mqtt subscribe success
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 4 -> 5
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:1078] mqtt subscribe success
    [01-01 01:00:01 ty N][4324][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 5 -> 6
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:167] cur stat:7  0x5e64d -->>
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:169] wifi netstat changed to:7  -->>
    [01-01 01:00:01 ty N][41e5][tuya_wifi_status.c:173] report wifi netstat[7] to callback  -->>
    [01-01 01:00:01 ty N][41a9][ty_app_ir_component.c:78] =================>event_id:4, event_size:0
    [07-24 20:52:37 ty N][4324][tuya_svc_online_log.c:253] timeout,delete uf local log
    [07-24 20:52:37 ty E][41d3][tuya_bt_link.c:159] tuya_ble_save_beacon_key err -1
    [07-24 20:52:38 ty N][41bd][tuya_ble_svc.c:1396] ble_sdk_send skip, serv stat:0, conn stat:4
    [07-24 20:52:51 ty E][41d3][tuya_svc_upgrade.c:917] result null
    
    .

    Any ideas what can be done about this?
  • ADVERTISEMENT
  • #2 21616578
    p.kaczmarek2
    Moderator Smart Home
    Is OpenBeken Easy Flasher able to read it's flash?
    Helpful post? Buy me a coffee.
  • #3 21616672
    divadiow
    Level 34  
    Surely. BK7238 mode. CEN or power-cycle 3.3v to start,
  • #4 21616919
    Nargo
    Level 22  
    Something like this:
    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification .
  • #5 21617011
    p.kaczmarek2
    Moderator Smart Home
    This is more like user error. Something happened that the USB to UART converter was disconnected or overloaded. How do you connect it?
    Helpful post? Buy me a coffee.
  • #6 21617018
    Nargo
    Level 22  
    I unplug the power supply
    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification .
  • #7 21617025
    divadiow
    Level 34  
    EF v49 does work OK dumping BK7238

    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification

    Added after 1 [minutes]:

    your com port is already open in another app?

    I get this if mine is.

    Tuya WiFi IR T1-3S - does the module support OpenBeken? UART logs, chip identification

    Added after 54 [seconds]:

    are you getting the windows eject sound? are you connecting USB-TTL, 3.3V PSU and module grounds together? what does your wiring look like?
  • ADVERTISEMENT
  • #8 21617036
    p.kaczmarek2
    Moderator Smart Home
    And the power supply by feeding 5V to the LDO input on the board? Or by feeding 3.3V from the USB to UART converter to the 3.3V of the WIFi module? The USB to UART converter does not have enough current capacity to power the WIFi module. And shorten the wires. Try in BK7238 mode.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 21617074
    Nargo
    Level 22  
    In either case it is not possible to do a module readout. All modes tested.
  • ADVERTISEMENT
  • #10 21617081
    divadiow
    Level 34  
    it looks like you are connected to TX2/RX2, not TX1/RX1

    Close-up of a printed circuit board showing labeled pins: TX2, RX2, RX1, and TX1.

    Code: Text
    Log in, to see the code
    .
  • #11 21617089
    Nargo
    Level 22  
    Nothing appears on tx1/rx1. But will try it tomorrow.
  • #12 21617092
    p.kaczmarek2
    Moderator Smart Home
    I can't remember anymore, did you flash a regular BK7231? Same here. At this point it looks like OpenBeken for BK7238 (not BK7231) should work for you. But shorten the cables. The fact that it throws away the UART port is a connection or user error , not a compatibility issue.
    Helpful post? Buy me a coffee.
  • #14 21617314
    p.kaczmarek2
    Moderator Smart Home
    What was wrong?

    Your batch runs on my BK7238:
    Screenshot showing the boot log from the BK7238 module startup process with OpenBeken firmware. .
    Boot log:
    
     prvHeapInit-start addr:0x415228, size:175576
    [Flash]id:0x852015
    bk_timer_init exit
    spi_init exit
    sctrl_sta_ps_init
    **********tuya_upgrade_main need upgrade? [255]**********
    cset:0 0 0 0
    [FUNC]rwnxl_init
    IP Rev: 431458e2
    tkl_ethernetif_init
    tkl_[bk]tx_txdesc_flush
    ex_txdesc_flush
    [FUNC]intc_init
    [FUNC]calibration_main
    gpio_level=1,txpwr_state=15
    device_id=0x22068000
    [01-01 00:00:00 ty E][4164][log_seq.c:884] logseq empty
    [01-01 00:00:00 ty N][4164][ty_sys.c:277] sdk_info:< TuyaOS V:3.8.31 BS:40.00_PT:2.3_LAN:3.5_CAD:1.0.5_CD:1.0.0 >
    < BUILD AT:2024_12_26_11_42_43 BY ci_manage FOR tuyaos-iot AT T1 >
    IOT DEFS < WIFI_GW:1 DEBUG:0 KV_FILE:0 LITTLE_END:1 SL:0 OPERATING_SYST[01-01 00:00:00 ty N][4164][ty_sys.c:278] name:oem_t1_irbox_mol_ty:0.0.5
    [01-01 00:00:00 ty N][4164][ty_sys.c:279] firmware compiled at Feb 25 2025 21:21:43
    [01-01 00:00:00 ty N][4164][ty_sys.c:280] system reset reason:[0]
    [01-01 00:00:00 ty N][4164][simple_flash_protected.c:86] init protected data length 715 wr_cnt 14
    [01-01 00:00:00 ty N][4164][simple_flash.c:447] key_addr: 0x1f5000   block_sz 4096
    [01-01 00:00:00 ty N][4164][simple_flash.c:533] get key:
    calibration_main over
    flash txpwr table:0xf
    dif g and n20 ID in flash:4
    read txpwr tab from flash success
    calibrate low value:[465]
    calibrate high value:[8d3]
    temp in flash is:256
    lpf_i &[01-01 00:00:00 ty N][4 0:00:00 ty N][4164][td164][tdd_button_gpio.c:d_button_gpio.c:199] td199] tdd_gpio_button_regd_gpio_button_register ister succ
    succ
    found[01-01 00:00:00 ty N][4  00:00:00 ty N][4164][164][ty_app_ir_oem_confty_app_ir_oem_config.c:ig.c:56] --->long_press56] --->long_press_time:_time:3
    [01-01 00:00:03
    use xtal:51
    xtal_ca0 ty N][4164][tuya_tls.li:51
    --init_xtal = 51c:911] uni_random_init.
    [FUNC]ps_init
    [FUNC]..
    func_init_extended OVER!!!
    
    start_type:0
    [01-01 00:00:00 ty N][400 ty N][4164][tuya_tls164][tuya_tls.c:354] tu.c:354] tuya_tls_rand_iya_tls_rand_init ok!
    nit ok!
    Version:
    app_init finished
    [01-01 00:00:00 ty E][416e][api_lib.c:227] LWIP_NETCONN_THREAD_SEM_FREE:not find thread sem
    
    [01-01 00:00:00 ty N][4164][tuya_svc_devos.c:319] gw_cntl->gw_wsm.stat:2
    rw_ieee80211_set_country code:
    code: CN
    channel: 1 - 13
    mode: MANUAL
    bk_wlan cca closed
    !! tkl_wifi_station_fast_connect
    >>> mhdr_set_station_status_cb
    >>> _wifi_station_status_cb 0
    wlan_clear_fast_connect_info
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    [sa_sta]MM_RESET_REQ
    [bk]tx_txdesc_flush
    [sa_sta]ME_CONFIG_REQ
    [sa_sta]ME_CHAN_CONFIG_REQ
    [sa_sta]MM_START_REQ
    fast_connect
    sizeof(wpa_supplicant)=928
    hapd_intf_add_vif,type:2, s:0, id:0
    wpa_dInit
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    hapd_intf_ioctl:939
    netif_is_added: 0x40c418
    netif_is_added: 0x40c3d0
    net_wlan_add_netif already exist!, vif_idx:0
    mac 80:64:7c:21:ff:7b
    net_wlan_add_netif done!, vif_idx:0
    me_mgmt_tx chan no avail
    cipher2security 2 2 24 8
    cipher2security 2 2 24 8
    wpa_supplicant_connect
    Cancelling sca[01-01 01:00:0chan avail
    n ty N][4164][tuya_wi0 ty N][4164][tuya_wififi_status.c:167] cur st_at:5  0x0 -->>
    status.c:167] cur stat:5  0x0wpa_driver_associate: a -->>
    [01-01 01:00:00 u64][tuya_wifi_status.c:ty N][4164][tuya_wifi_s169] wifi netstat changtatus.c:169] wifi netsted to:5  -->>
    >>> mhdr_set_station_status 3
    >>> _wifi_station_status_cb 3
    at changed to:5found scan rst rssi -38 > -50
    bssid 74:da:88:a5:9e:fb, cap_info 0x1031, BI 100, ssid DOM-1
    sm_auth_send:1
      -->>
    [01-01 01:00:00 ty N][4164][mf_test.c:276] have actived over 15 min, not enter mf_init
    [01-01 01:00:00 ty N][4164][ty_sys.c:343] mf_init succ
    [01-01 01:00:00 ty N][4164][ty_sys.c:63] have actived over 15min, don't scan prod test ssid
    [01-01 01:00:00 ty N][4164][tuya_iot_wifi_api.c:307] wifi soc init. pid:keycmhjv873dhvsn firmwarekey:keycmhjv873dhvsn ver:0.0.5
    [01-01 01:00:00 ty N][4164][tuya_wifi_link.c:86] start wifi link params validate, nc_tp:9 md:3
    [01-01 01:00:00 ty N][4164][tuya_wifi_link.c:108] gw_wsm.nc_tp:9
    [01-01 01:00:00 ty N][4164][tuya_wifi_link.c:109] gw_wsm.md:3
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:547] Last reset reason: 0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:376] gw_cntl->gw_if.abi:0 input:0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:377] gw_cntl->gw_if.product_key:keycmhjv873dhvsn, input:keycmhjv873dhvsn
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:378] gw_cntl->gw_if.tp:0, input:0
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:381] gw_cntl->gw_if.firmware_key:keycmhjv873dhvsn, input:keycmhjv873dhvsn
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:580] enter success_proc
    [01-01 01:00:00 ty N][4164][tuya_svc_devos.c:583] serial_no:80647c21ff7b
    [01-01 01:00:00 ty N][4164][tdl_ir_dev_manage.c:1441] Set ir recv task stack size: 4096
    [01-01 01:00:00 ty N][41e5][tuya_bt_link.c:63] bt startup attr:ff
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1204] upd product_id type:1 keycmhjv873dhvsn
    [01-01 01:00:00 ty N][4164][tdl_binitial BLE...
    ble mac:80-64-7c-21-ff-7c
    rwip_heap_env addr:0x42e4e8 size:972
    rwip_heap_msg addr:0x42e8c0 size:3208
    rwip_heap_non_ret addr:0x42f550 size:668
    xvr_reg_init
    tx_pwr_idx:41
    enter normal mode
    uze:668
    [01-01 01:00:00 ty N][4285][tbl_ir_cloud_service.c:475] sw timer create success
    [01-01 01:00:00 ty N][41a9][ty_app_ir_component.c:78] =================>event_id:3, event_size:0
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1299] ty bt sdk init success finish
    [01-01 01:00:00 ty E][41e5][tuya_svc_timer_task.c:1376] read timer_full_key failed
    [01-01 01:00:00 ty N][41e5][tuya_svc_devos.c:231] __devos_init_evt success
    [01-01 01:00:00 ty N][41e5][tuya_svc_devos.c:68] already bind
    [01-01 01:00:00 ty N][41e5][tuya_svc_mqtt_client.c:179] [mqtts://m3-eu.lifeaiot.com:8883] mqtt state change 0 -> 1
    [01-01 01:00:00 ty N][4329][tuya_svc_mqtt_client.c:1275] mqtt_thread paused
    [01-01 01:00:00 ty N][4329][tuya_svc_mqtt_client.c:664] mqtt close
    [01-01 01:00:00 ty E][41e5][astro_timer.c:326] astro timer read fail:-6
    [01-01 01:00:00 ty E][41e5][astro_timer.c:861] read fail:-6
    [01-01 01:00:00 ty E][41e5][tuya_wifi_connect.c:371] wf connect err:-1, ssid:DOM-1
    [01-01 01:00:00 ty N][41e5][tuya_wifi_status.c:167] cur stat:5  0x5e64d -->>
    [01-01 01:00:00 ty N][41d3][ty_app_main.c:54] Main Module: v1.0.0 (0.0.5)
    temp_code:30 - adc_code:245 - adc_trend:[13]:256->[14]:246
    init_xtal:51, delta:-1, last_xtal:51
    [01-01 01:00:00 ty N][41e5][ble_gap.c:2509] Start Adv
    [01-01 01:00:00 ty N][41e5][tuya_ble_svc.c:1386] ble adv updated
    auth timeout
    SM_DISCONNECTING status=1
    >>> mhdr_set_station_status 9
    >>> _wifi_station_status_cb 9
    RW_EVT_STA_CONNECT_FAILED 9
    ---------SM_CONNECT_IND_fail
    [01-01wpa_supplicant_req plic_scan
    Setting scan[reta[retry1] request: 0.100ry1] request: 0.100000 000 sec
    sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 3, time 204573us, result 0
    wpa_driver_scan_cb
    Scan completed in 0.202000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    No suitable network found
    wpa_supplicant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 19, time 1326385us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    [01-01 01:00:03 ty N][No suitable network fou4nd
    nd
    wpa_supplicant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 23, time 1326447us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    [01-01 01:00:07 ty N][No suitable network fou4nd
    nd
    wpa_supplicant_
    req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 13, time 1326588us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    [01-01 01:00:11 ty N]No suitable network fou[und
    nd
    wpa_supplicant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 22, time 1326433us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    [01-01 01:00:17 tNo suitable network fouyk found
    nd
    wpa_supplicant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 23, time 1326169us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    No suitable network found[01-01 01:00:26 ty N][4
    ][ta1e5][tal_wifi_recol_wifi_reconnet.c:246] nnet.c:246] wifi statuswifi status changed to  changed to 1, stat: 1
    1, stat: 1
    wpa_supplic
    ant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    [01-01 01:00:36 ty N][41bd][tal_wifi_reconnet.c:187] wifi reconnet finsh
    [01-01 01:00:36 ty N][41bd][tuya_wifi_status.c:167] cur stat:5  0x5e64d -->>
    [01-01 01:01:00 ty N][41d3][tuya_wifi_protect.c:1576] device is long time(local:60 cloud:0) offline,stat:3 start wifi backup reconnect
    [01-01 01:01:00 ty N][41d3][tuya_wifi_connect.c:455] device is long time(local:60 cloud:0) offline,stat:5 start local reconnect
    [01-01 01:01:00 ty N][41d3][tuya_wifi_connect.c:161] reconect func got ssid&passwd , start reconnect
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    scanu_confirm: status 0, upload_cnt 0, recv_cnt 13, time 1326383us, result 0
    wpa_driver_scan_cb
    Scan completed in 1.322000 seconds
    >>> mhdr_set_station_status 2
    >>> _wifi_station_status_cb 2
    get_scan_rst_null
    >>> mhdr_set_station_status 6
    >>> _wifi_station_status_cb 6
    RW_EVT_STA_CONNECT_FAILED 6
    [01-01 01:01:02 tyNo suitable network foun  found
    d
    wpa_supplicant_req_scan
    Setting scan[retry0] request: 5.000000 sec
    >>> mhdr_set_station_status_when_reconnect_over 6
    >>> _wifi_station_status_cb 6
    tkl_wifi_station_connect !!!
    Cancelling scan request
    sm external auth not in corrent state
    >>> mhdr_set_station_status 0
    >>> _wifi_station_status_cb 0
    wpa_supplicant_req_scan
    Setting scan[retry1] request: 0.000000 sec
    wpa_supplicant_scan
    wpa_drv_scan
    wpa_send_scan_req
    >>> mhdr_set_station_status 1
    >>> _wifi_station_status_cb 1
    ht in scan
    scan_start_req_handler
    wpa_driver_scan_start_cb
    
    
    .


    From this it appears that OpenBeken is working on your device. Can you give me (I'll use for the tutorial) an accurate and clearer picture of this module and information where the device came from, pictures of the case, any info you have?
    Helpful post? Buy me a coffee.
  • #15 21617366
    Nargo
    Level 22  
    I will send everything in the evening. Flashować OpenBK7238_QIO_1.18.140?
  • #16 21617369
    p.kaczmarek2
    Moderator Smart Home
    That's what I'm thinking, first on a trial basis with overwrite bootloader disabled, and if it doesn't start then with overwrite enabled
    Helpful post? Buy me a coffee.
  • #17 21617400
    Nargo
    Level 22  
    Writing sector 0xD4000... Writing sector 868352 failed!
    Writing file data to chip failed.

    Writing sector 0xDA000... Writing sector 892928 failed!
    Writing file data to chip failed.

    Writing sector 0xD6000... Writing sector 876544 failed!
    Writing file data to chip failed.

    Same every time.

    When I try to restore the backup it also gives me errors.
  • #18 21617402
    p.kaczmarek2
    Moderator Smart Home
    In a random location? Then try a different baud.
    Helpful post? Buy me a coffee.
  • #19 21617407
    Nargo
    Level 22  
    Sprawdzane 115200,230400,921600,1500000.
    Overwrite on/off too.
  • #20 21617409
    p.kaczmarek2
    Moderator Smart Home
    Another usb to uart converter? shorter cables? Or is TX1/RX1 being used for something on this board and interfering with something?
    Helpful post? Buy me a coffee.
  • #21 21617431
    Nargo
    Level 22  
    Another converter:

    Serial port open exception: System.IO.IOException: The device attached to the computer is not working.

    w System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
    w System.IO.Ports.SerialStream.InitializeDCB(Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Boolean discardNull)
    w System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
    in System.IO.Ports.SerialPort.Open()
    in BK7231Flasher.BK7231Flasher.openPort()
    Failed to open serial port!

    Will try from the laptop tonight.

Topic summary

The discussion concerns the Tuya WiFi IR universal remote control module T1-3S and its compatibility with OpenBeken firmware. The user attempts to identify the chip and read UART logs via TX2/RX2 pins, encountering boot messages and errors indicating possible connection or user errors rather than firmware incompatibility. Respondents suggest using OpenBeken Easy Flasher in BK7238 mode, emphasizing correct wiring, power supply considerations (not powering the WiFi module solely from USB-UART 3.3V line), and using TX1/RX1 UART pins for user data instead of TX2/RX2, which are reserved for log output. Shortening cables and ensuring common ground among USB-TTL converter, power supply, and module are recommended. Despite multiple attempts and power cycling, module readout fails, likely due to connection issues rather than lack of OpenBeken support. The chip is identified as BK7238, and the module requires proper UART interface and power setup for successful flashing or communication.
Summary generated by the language model.
ADVERTISEMENT