



Open up, solder pins and flash OpenBK7231N_QIO_1.17.306.bin with bk7231_flasher, baud 115200, others rates wont work.
Here is template from flasher
{
"abi":"0",
"id":"null",
"swv":"1.1.15",
"bv":"40.00",
"pv":"2.2",
"lpv":"3.4",
"pk":"keyjup78v54myhan",
"firmk":"keyjup78v54myhan",
"cadv":"1.0.5",
"cdv":"1.0.0",
"dev_swv":"1.1.15",
"s_id":"null",
"dtp":"0",
"sync":"0",
"attr_num":"1",
"mst_tp_0":"9",
"mst_ver_0":"1.1.15",
"mst_md5_0":"null",
"mst_tp_1":"0",
"mst_ver_1":"null",
"mst_md5_1":"null",
"mst_tp_2":"0",
"mst_ver_2":"null",
"mst_md5_2":"null",
"mst_tp_3":"0",
"mst_ver_3":"null",
"mst_md5_3":"null })MAgw_wsm{nc_tp",
"ssid":"null",
"passwd":"null",
"md":"0",
"random":"0",
"wfb64":"1",
"stat":"0",
"token":"null",
"region":"null",
"reg_key":"null",
"dns_prio":"03VAwf_start_md3uuid",
"psk_key":"PTjHgwTUTrMa46Q24CdCDxTx1Uo1l7dCRG65a",
"auth_key":"9XgceQhZNLtqMKwn2w9zNdnK3UH1z0TZ",
"ap_s{nc_tp":"0",
"ap_ssid":"SmartLife",
"ap_passwd":"null",
"country_code":"CN",
"bt_mac":"null",
"bt_hid":"null",
"prod_test":"false",
"fac_pin":"jlaheqahscwr3nas }(}f0NAgw_ai{key",
"lckey":"null",
"h_url":"null",
"h_ip":"null",
"hs_url":"null",
"hs_ip":"null",
"hs_psk":"null",
"hs_psk_ip":"null",
"mqs_url":"null",
"mqs_ip":"null",
"mq_url":"null",
"mq_ip":"null",
"ai_sp":"null",
"ai_sp_ip":"null",
"mq_psk":"null",
"mq_psk_ip":"null",
"lp_url":"null",
"lp_ip":"null",
"time_z":"null",
"s_time_z":"null",
"wx_app_id":"null",
"wx_uuid":"null",
"dy_tls_m":"0",
"cloud_cap":"0",
"psk21_key":"null }.IVAuser_param_key{sel_pin_pin",
"rl1_lv":"1",
"bt1_pin":"10",
"led1_pin":"23",
"net_trig":"2",
"jv":"1.0.5",
"netled1_lv":"0",
"netled_reuse":"0",
"bt1_type":"0",
"ffc_select":"0",
"nety_led":"0",
"vi_pin":"6",
"resistor":"1",
"over_cur":"20000",
"bt1_lv":"0",
"reset_t":"5",
"netled1_pin":"8",
"chip_type":"0",
"lose_vol":"0",
"over_vol":"0",
"module":"CB2S",
"ele_pin":"7",
"ch_cddpid1":"9",
"ch1_stat":"2",
"led1_lv":"0",
"rl1_type":"0",
"ch_num":"1",
"ele_fun_en":"1",
"rl1_pin":"26",
"netn_led":"1",
"vol_def":"0",
"ch_dpid1":"1",
"sel_pin_lv":"1",
"crc":"38",
"}.IVAuser_param_key{sel_pin_pin":"24",
"} )MAgw_wsm{nc_tp":"0"
}
Device configuration, as extracted from Tuya:
- Button (channel 1) on P10
- LED (channel 1) on P23
- BL0937 VI on P6
- WiFi LED on P8
- BL0937 ELE on P7
- Relay (channel 1) on P26
Device seems to be using CB2S module, which is using BK7231N.
And the Tuya section starts, as usual, at 2023424
---
Everything works, except power meter, which shows something firstly but after voltageset,currentset,powerset shows only inf.
In logs
Info:EnergyMeter:Power reading: inf exceeded MAX limit: 3680.000000, Last: nan
Info:EnergyMeter:Power reading: inf exceeded MAX limit: 3680.000000, Last: nan
Info:EnergyMeter:Power reading: inf exceeded MAX limit: 3680.000000, Last: nan
I trace bl0937 pins via resistors to cb2s pins

So pins cfg should be right.
Please tell me where to look, I recheck my soldering twice
Added after 5 [minutes]:
config now
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BK7231N",
"board": "TODO",
"flags": "0",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"6": "BL0937CF1;0",
"7": "BL0937CF;0",
"8": "WifiLED_n;0",
"10": "Btn;1",
"23": "LED;1",
"24": "BL0937SEL;0",
"26": "Rel;1"
},
"command": "",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
measures

autoexec.bat
power off
startDriver BL0937
startDriver NTP
ntp_setServer 10.200.2.2
ntp_timeZoneOfs 3
calibration commands
VoltageSet 220.0
CurrentSet 0.223
PowerSet 50.00
Added after 4 [minutes]:
Got it to work after PowerSet 50.00, maybe have issues cause put calibrations commands in autoexec.bat first. Don't know.
