FAQ
TL;DR: A single 8-byte compound packet ships voltage, current, power and energy every 5 s—“This must be configurable” [Elektroda, crg1darkspr1te, #20342236; p.kaczmarek2, #20347227].
Why it matters: Correct TuyaMCU mapping unlocks full telemetry and relay control for ATORCH AT4P/AT4PBW smart rail meters.
Quick Facts
• MCU combo: BK7231N Wi-Fi + CH573F sub-MCU + BL0924 metering chip [Elektroda, crg1darkspr1te, post #20335741]
• Default UART speeds: 115 200 bps (AT4PWP v1.04), 9 600 bps (AT4PBW v1.05) [Elektroda, crg1darkspr1te, post #20339157]
• Key dpIDs: 1 (relay), 18 (current), 19 (power), 20 (voltage), 123 (energy kWh) [Elektroda, crg1darkspr1te, post #20335741]
• Factory update files are 2 MB; ltchiptool flashes ~1.1 MB section [Elektroda, dr3amr, post #21221696]
• Typical accuracy: ±1 V, ±0.02 A after calibration [Elektroda, crg1darkspr1te, post #20336287]
How do I bring a bricked AT4P/AT4PBW back online?
- Desolder the CB3S module.
- Flash a known-good 2 MB backup (e.g., v1.09) with ltchiptool via FT232RL [Elektroda, dr3amr, post #21221696]
- Resolder, power-cycle, and the device re-enters pairing.
Edge case: If Get-Chip-Info CRC fails, the module flash is physically damaged and needs replacement.
What autoexec.bat lines give full telemetry on v1.04 hardware?
Use
startDriver TuyaMCU
startDriver NTP
tuyaMcu_setBaudRate 115200
setChannelType 1 toggle
setChannelType 2 Voltage_div10
setChannelType 3 Power
setChannelType 4 Current_div1000
setChannelType 5 Frequency_div100
linkTuyaMCUOutputToChannel 1 bool 1
…repeat for dpIDs 20,19,18,133,135,134,123 as in sample [Elektroda, crg1darkspr1te, post #20335741]
My AT4PBW only shows dpID 6; how can I decode the raw 16-byte 0x11 packet?
Bytes 5-6 = over-current limit (A), 8-9 = over-voltage (V), 11-12 = low-voltage (V). Multiply to derive power if required [Elektroda, crg1darkspr1te, post #20342236]
Why does OpenBeken lose Wi-Fi after I press “Wifi reset” on LCD?
The LCD button resets only the CH573F; OpenBeken’s Wi-Fi stack stays unchanged. Force AP mode by cycling mains five times within 30 s [Elektroda, crg1darkspr1te, post #20815706]
Can OpenBeken drive the LCD directly?
No. The display is driven by the CH573F TuyaMCU; OpenBeken talks UART only. Screens and buttons keep working after OBK flash [Elektroda, p.kaczmarek2, post #21038629]
How do I expose all readings to Home Assistant fastest?
Click Integration → OpenBeken → Do Discovery; no YAML needed since OBK 1.17 [Elektroda, p.kaczmarek2, post #21177098]
What antenna mod improves weak Wi-Fi?
Solder a 2.4 GHz coax to the CB3S ANT pad; measured RSSI typically improves by 6–8 dB [Elektroda, denveronly, post #21008516]
Is BLE usable on CB3S inside AT4P?
The BK7231N SDK contains BLE, but OpenBeken has no BLE driver yet [Elektroda, p.kaczmarek2, post #20347227]
How do I request real-time weather data packets (0x21)?
Send 55 AA 03 20 00 0E … with requested keys, then trigger 55 AA 03 34 00 01 03 3A. The module replies every 30 min with dpID 0x21 compound data [Tuya Protocol; Elektroda, crg1darkspr1te, #20345544].
Does firmware v1.1.1 really disable 5-second reporting?
Yes. Users report forced 60-s intervals and missing kWh accumulation after MCU upgrade to 1.1.1 [Elektroda, Anonymous, post #21031914]