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.