Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamshow_name: true
show_icon: true
type: button
tap_action:
action: perform-action
perform_action: mqtt.publish
target: {}
data:
retain: false
topic: cmnd/obk0DCDDC8C/irsend
payload: NEC-7A-1D-1
qos: 0
icon: mdi:power
name: Yamaha ON
alias: Send IR to Verstärker
sequence:
- service: mqtt.publish
metadata: {}
data:
qos: "{{qos}}"
topic: cmnd/obkFF433D27/IRSEND
payload: "{{payload}}"
retain: false
mode: single
icon: mdi:remote
fields:
qos:
selector:
number:
min: 0
max: 2
step: 1
name: qos
default: 0
required: true
payload:
selector:
text: null
name: Payload
required: true
Info:IR:IR IR_PulseDistance 0xD21 0xD0A 0 (35 bits)
Info:IR:IR IR_PulseDistance 0xE20 0xE0A 0 (35 bits)IRSend PulseDistance-D21-D0A-0
IRSend PulseDistance-E20-E0A-0$ ltchiptool flash info BK7231N
I: Available COM ports:
I: |-- ttyUSB0 - CP2102 USB to UART Bridge Controller - CP2102 USB to UART Bridge Controller - Silicon Labs (10C4/EA60)
I: | |-- Selecting this port. To override, use -d/--device
I: |-- ttyS0 - n/a
I: |-- ttyS1 - n/a
I: |-- ttyS2 - n/a
I: |-- ttyS3 - n/a
I: Connecting to 'Beken 7231N' on /dev/ttyUSB0 @ 115200
W: Unknown bootloader CRC - 0xF42F8C32 - please report this on GitHub issues!
I: |-- Success! Chip info: BK7238
I: Reading chip info...
I: Chip: BK7238
I: +-----------------------+-------------------------------------+
I: | Name | Value |
I: +-----------------------+-------------------------------------+
I: | Protocol Type | FULL |
I: | Chip Type | BK7238 |
I: | Bootloader Type | Unrecognized |
I: | Chip ID | 0x7238 |
I: | Boot Version String | N/A |
I: | | |
I: | Flash ID | 85 20 15 |
I: | Flash Size (by ID) | 2 MiB |
I: | Flash Size (detected) | 2 MiB |
I: | | |
I: | Encryption Key | 00fa7900 00fa7900 00fa7900 00fa7900 |
I: +-----------------------+-------------------------------------+
I: |-- Finished in 1.937 sDevice configuration, as extracted from Tuya:
- Button is on P9
- WiFi LED on P24
- IR Receiver is on P26
- IR Transmitter is on P6
No module information found.
Device internal platform - T1, equals BK7238.
And the Tuya section starts at 2052096 (0x1F5000), which is a default T1/XR806 and some T34/BK7231N offset.MAC seems to be 80:64:7C:66:61:D9
Reading file firmwares/OpenBK7238_QIO_1.18.261.bin...
Loaded 1253376 bytes from firmwares/OpenBK7238_QIO_1.18.261.bin...
Preparing to write data file to chip - resetting bus and baud...
Getting bus... (now, please do reboot by CEN or by power off/on)
Getting bus success!
Going to set baud rate setting (230400)!
Will try to read device flash MID (for unprotect N):
Flash MID loaded: 152085
Will now search for Flash def in out database...
Flash def found! For: 152085
Flash information: mid: 152085, icName: P25Q16HBK, manufacturer: Puya, szMem: 200000, szSR: 2, cwUnp: 0, cwEnp: 7, cwMsk: 407C, sb: 2, lb: 5, cwdRd: 05-35-FF-FF, cwdWr: 01-31-FF-FF
Flash size is 2MB
Entering SetProtectState(True)...
sr: 0
sr: 0
final sr: 0
msk: 407c
cw: 0, sb: 2, lb: 5
bfd: 0
SetProtectState(True) success!
Going to do erase, start 0x00, sec count 306!
Erasing block 0x00... ok! Erasing block 0x10000... ok! Erasing block 0x20000... ok! Erasing block 0x30000... ok! Erasing block 0x40000... ok! Erasing block 0x50000... ok! Erasing block 0x60000... ok! Erasing block 0x70000... ok! Erasing block 0x80000... ok! Erasing block 0x90000... ok! Erasing block 0xA0000... ok! Erasing block 0xB0000... ok! Erasing block 0xC0000... ok! Erasing block 0xD0000... ok! Erasing block 0xE0000... ok! Erasing block 0xF0000... ok! Erasing block 0x100000... ok! Erasing block 0x110000... ok! Erasing block 0x120000... ok! Erasing sector 0x130000... ok! Erasing sector 0x131000... ok!
All selected sectors erased!
Going to do erase, start 0x1E1000, sec count 1!
Erasing sector 0x1E1000... ok!
All selected sectors erased!
failed with serial.BytesToRead 0 (expected 15)
The beginning of buffer in UART contains data.
0x00... Writing sector 0x00 failed!
Writing file data to chip failed.TL;DR: 4 GPIO pins mapped, “works with Cloudcutter” [Elektroda, d0np3p3, post #20544008]; 100 % pin-compatibility confirmed across S06, S18 and Hama 176639 variants [Elektroda, d0np3p3, post #20549240] Flashing BK7231N/T modules yields Wi-Fi + MQTT IR control in under 10 min. Why it matters: one cheap blaster can replace every legacy remote in your smart-home.
• Supply voltage: 3.3 V [Elektroda, zweigang, post #20467019] • IR LEDs fitted: 4 (with 2 spare footprints) [Elektroda, p.kaczmarek2, post #20467179] • Supported chips: BK7231N (CB3S) & BK7231T (WB3S) [Elektroda, morgan_flint, post #20765814] • Typical flash time: <3 min via USB-TTL [Elektroda, zweigang, post #20467019] • Reported range drop to 0.5 m after custom firmware [Elektroda, rakalexei, post #20560831]
cmnd/<DeviceName>/IRSEND with payload NEC-7A-1D-0 (example). A HA button card definition was shared by a user [Elektroda, campeanu, post #21209679]firmware_1.1.3.bin). Flash it via UART; remember to edit the MAC address bytes before upload [Elektroda, morgan_flint, post #20818497]CEN low (or simply cycle VCC with TX/RX connected) while powering up; the boot ROM enters serial mode, allowing re-flash without desoldering [Elektroda, zweigang, post #20467019]