Why not move flash vars elsewhere on BK7238 and update offset in obk?
Helpful post? Buy me a coffee.
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamDeDaMrAz wrote:why not make this automatically in the flash write process
p.kaczmarek2 wrote:Why not move flash vars elsewhere on BK7238 and update offset in obk?
max4elektroda wrote:But at least a first try to fix the things you mentioned (rl_on\d+_pin and rl_off\d+_pin)
Added some code to use regex finding these keys instead of looping through the numbers.
For now, mainly coded, not tested thoroughly, not sure if it's even ready for a PR......
https://github.com/MaxineMuster/OBK_webapp/tree/templateparser
case "r_pin":
desc += "- LED Red (Channel 1) on P" + value + Environment.NewLine;
tg?.setPinRole(value, PinRole.PWM);
tg?.setPinChannel(value, 0);
break;
case "g_pin":
desc += "- LED Green (Channel 2) on P" + value + Environment.NewLine;
tg?.setPinRole(value, PinRole.PWM);
tg?.setPinChannel(value, 1);
break;
case "b_pin":
desc += "- LED Blue (Channel 3) on P" + value + Environment.NewLine;
tg?.setPinRole(value, PinRole.PWM);
tg?.setPinChannel(value, 2);
break;
case "c_pin":
desc += "- LED Cool (Channel 4) on P" + value + Environment.NewLine;
tg?.setPinRole(value, PinRole.PWM);
tg?.setPinChannel(value, 3);
break;
case "w_pin":
desc += "- LED Warm (Channel 5) on P" + value + Environment.NewLine;
tg?.setPinRole(value, PinRole.PWM);
tg?.setPinChannel(value, 4);
break;
max4elektroda wrote:rl_on1_pin / rl_off1_pin: What is the correct role? BridgeFWD/BridgeREV or Rel/Rel_n ??
insmod wrote:
divadiow wrote:nevermind. working on it
insmod wrote:Tuya_4AC+4USB_Power_Strip_(schemaID-0000037bjk)_key7qn3agvymujfp_WBR3_1.0.7.bin
p.kaczmarek2 wrote:Can we add RF restore to Web App separatel, without first merging cosmetic PR?
p.kaczmarek2 wrote:We can accept your change but you need to put it into a separate class.
TL;DR: New BK7231GUIFlashTool v98+ adds SPI flashing for Beken chips; sample 4,096 KB flash detected. “Only a CH341 SPI programmer is required.” Use CH341A D2 to toggle CEN, send 0xD2, then read/write like generic SPI. [Elektroda, p.kaczmarek2, post #21711721]
Why it matters: It lets you recover bricked BK7231/BK7252 devices without a working bootloader, using low‑cost tools.
Who this is for: DIYers, repair techs, and firmware engineers asking how to unbrick or mass‑flash Beken SoCs via SPI with a CH341A and the latest tool.