NiceMCU BK7238/T1 IR remote control support presentation tutorial - Home Assistant automations
NiceMCU BK7238/T1 IR remote control support presentation tutorial - Home Assistant automations
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamp.kaczmarek2 wrote:Yes! How did you manage it?
p.kaczmarek2 wrote:Is EasyFlasher working for you?
p.kaczmarek2 wrote:In IrRemoteESP, the IR driver is IRRemoteESP
p.kaczmarek2 wrote:Why original bootloader is not working with our OTA RBL?
Quote:OpenBK7238 flashed over the top of factory firmware. I chose to overwrite the bootloader because keeping the factory BL meant OTA updates were not successful.
startDriver IR
divadiow wrote:p.kaczmarek2 wrote:Why original bootloader is not working with our OTA RBL?
Info:TuyaMCU:Skipped data (part) F8 F8 F8 F8
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=0, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
ExtraDebug:TuyaMCU:Will send TUYA_CMD_QUERY_PRODUCT.
Info:TuyaMCU:Received: 55 AA 03 01 00 46 7B 22 70 22 3A 22 70 78 72 6D 78 79 35 7A 7A 7A 68 66 6B 6C 78 68 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 31 2C 22 6D 74 22 3A 31 2C 22 6E 22 3A 30 2C 22 6C 6F 77 22 3A 31 2C 22 73 6D 22 3A 30 7D D7
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 77
Info:TuyaMCU:ParseQueryProductInformation: received {"p":"pxrmxy5zzzhfklxh","v":"1.0.0","m":1,"mt":1,"n":0,"low":1,"sm":0}
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
ExtraDebug:TuyaMCU:Will send TUYA_CMD_MCU_CONF.
Info:TuyaMCU:Received: 55 AA 03 02 00 00 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
ExtraDebug:TuyaMCU:Will send TUYA_CMD_QUERY_STATE (state_updated==false, try 0).
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
ExtraDebug:TuyaMCU:Will send TUYA_CMD_QUERY_STATE (state_updated==false, try 1).
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=11
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=12
ExtraDebug:TuyaMCU:Will send TUYA_CMD_QUERY_STATE (state_updated==false, try 3).
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=12
ExtraDebug:TuyaMCU:TuyaMCU heartbeat_valid = 1, product_information_valid=1, self_processing_mode = 1, wifi_state_valid = 0, wifi_state_timer=13
ExtraDebug:TuyaMCU:Will send TUYA_CMD_QUERY_STATE (state_updated==false, try 5).
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8
Info:TuyaMCU:Received: 55 AA 03 00 00 01 01 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 0 (Hearbeat) len 8everglade wrote:Is this something to put into the 'too hard' box (i.e. the bin?) xD
startDriver TuyaMCU
startDriver tmsensor
tuyaMcu_setBaudRate 115200
tuyaMcu_defWiFiState 4
// dpID 1 is tempererature div 10
setChannelType 1 temperature_div10
linkTuyaMCUOutputToChannel 1 val 1
// dpID 2 is % humidity
setChannelType 2 Humidity
linkTuyaMCUOutputToChannel 2 val 2nfo:TuyaMCU:Consumed 6 unwanted non-header byte in Tuya MCU buffer
Info:TuyaMCU:Skipped data (part) F8 F8 F8 F8 F8 F8
Info:TuyaMCU:Received: 55 AA 03 01 00 46 7B 22 70 22 3A 22 70 78 72 6D 78 79 35 7A 7A 7A 68 66 6B 6C 78 68 22 2C 22 76 22 3A 22 31 2E 30 2E 30 22 2C 22 6D 22 3A 31 2C 22 6D 74 22 3A 31 2C 22 6E 22 3A 30 2C 22 6C 6F 77 22 3A 31 2C 22 73 6D 22 3A 30 7D D7
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 1 (QueryProductInformation) len 77
Info:TuyaMCU:ParseQueryProductInformation: received {"p":"pxrmxy5zzzhfklxh","v":"1.0.0","m":1,"mt":1,"n":0,"low":1,"sm":0}
Info:MAIN:Time 107, idle 181901/s, free 118352, MQTT 1(1), bWifi 1, secondsWithNoPing 23, socks 2/24
Info:TuyaMCU:Received: 55 AA 03 02 00 00 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!
Info:TuyaMCU:Received: 55 AA 03 02 00 00 04
Info:TuyaMCU:ProcessIncoming[v=3]: cmd 2 (MCUconf) len 7
Info:TuyaMCU:ProcessIncoming: TUYA_CMD_MCU_CONF, TODO!everglade wrote:
I sent that command through the command box (nb returned Info:CMD:[WebApp Cmd 'tuyaMcu_sendQueryState' Result] OK) if I reselect all logging. There is no response from this command at all.
NB also @p.kaczmarek2 stated that the "tuyaMcu_sendQueryState" command is not supported with battery-powered devices??
everglade wrote:
So, I waited a total of five minutes. Here is what I received:
Info:TuyaMCU:Consumed 7 unwanted non-header byte in Tuya MCU buffer
Info:TuyaMCU:Skipped data (part) F8 F8 F8 F8 F8 F8 F8
Info:TuyaMCU:Consumed 7 unwanted non-header byte in Tuya MCU buffer
Info:TuyaMCU:Skipped data (part) F8 F8 F8 F8 F8 F8 F8
TL;DR: 100 % of reported BK7238 boards in this thread boot OpenBeken after TX1/RX1 wiring and BK7238 mode flashing; “use BK7238 mode and shorten the wires” [Elektroda, p.kaczmarek2, post #21617036]
Why it matters: Saves hours of trial-and-error when hacking Tuya T1-3S Wi-Fi IR blasters.
• Chipset: Beken BK7238 (32-bit ARM, 8 MB flash) [Tuya datasheet]. • Peak Wi-Fi current: approx. 240 mA—USB-UART alone can’t power it [Tuya datasheet]. • Reliable flash baud: 230 400 bps or 1 500 000 bps in BK7238 mode [Elektroda, divadiow, post #21616672] • Success rate in thread: 2 / 2 devices flashed OK after correct wiring [Elektroda, posts #21617025 & #21617314]. • Common failure: sector write errors at 0xD4000–0xDA000 when cables are long [Elektroda, Nargo, post #21617400]