OK. 1. step: i added 0 == g_bHasWiFiConnected
if(g_connectToWiFi){
g_connectToWiFi --;
if(0 == g_connectToWiFi && 0 == g_bHasWiFiConnected) {
const char *wifi_ssid, *wifi_pass;
wifi_ssid = CFG_GetWiFiSSID();
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
if(g_connectToWiFi){
g_connectToWiFi --;
if(0 == g_connectToWiFi && 0 == g_bHasWiFiConnected) {
const char *wifi_ssid, *wifi_pass;
wifi_ssid = CFG_GetWiFiSSID();
theosoft wrote:if(g_connectToWiFi){ g_connectToWiFi --; if(0 == g_connectToWiFi && 0 == g_bHasWiFiConnected) { const char *wifi_ssid, *wifi_pass; wifi_ssid = CFG_GetWiFiSSID();
Quote:
Disassembly:
1. Remove rivet on end of the bulb with knife or screwdriver. There are no threads on it.
2. Metal screw part is screwed in place and pressed into place. Loosen metal gently with a knife/screwdriver and unscrew metal part from plastic.
3. Ball part is glued in place. Gently run a knife or screwdriver around grove and remove it
4. There is a metal plate with leds visible which is also glued. Remove glue with knife or a screwdriver
5. You should now be able to remove LED PCB and microcontroller PCB.
theosoft wrote:Yes, but the answer will be given tomorrow![]()
OK. 1. step: i added 0 == g_bHasWiFiConnectedif(g_connectToWiFi){ g_connectToWiFi --; if(0 == g_connectToWiFi && 0 == g_bHasWiFiConnected) { const char *wifi_ssid, *wifi_pass; wifi_ssid = CFG_GetWiFiSSID();
ferbulous wrote:
And there’s also this gu10 ewelink bulbs that use BL602. I did order some ESP-01D modules to replace this
pvxvictor wrote:
BL602 IoT SDK (Pine64 fork) https://pine64.github.io/bl602-docs/#
https://github.com/bouffalolab
https://lupyuen.github.io/articles/book
btsimonh wrote:pepesuriano wrote:if you know the offsets
look in bkcdriverflash.c for the partition table.
app starts at 0x11000, boot loader before that.
I tried SPI via ESP32 first, and was unsuccessful. RPi worked after some coaxing...
Theoretically, you should only need SPI if the bootloader is broken - in your case the serial flashing is not working, correct?
So if your serial connections are ok, you could try first putting the std bootloader in from 0x0 - 0x11000, and then retry serial flashing.
I had to SPI because I overwrote the bootloader whilst developing the OTA flashing.
If you do get SPI working, be sure to read all 2Mbyte as a backup first!!!
And don't overwrite the RF partition... I don't think we have calibration yet.
kuba2k2 wrote:
The board also has something that looks like TuyaMCU (16-pin SOIC with no marking) and another SO8 IC with a crystal nearby, which is probably a 433MHz receiver (as the switch has this feature).
p.kaczmarek2 wrote:Would you be able to get a direct read from SPI memory (not by some some UART tool, but a direct read)?
kuba2k2 wrote:
I'm not sure, as I won't be able to re-attach the shielding, and I would probably damage the entire module, and I only have a single piece.
kuba2k2 wrote:you mention grounding RX, but Tuya docs say to ground Log_TX.. which one then?
p.kaczmarek2 wrote:I assume you just launched one of Realtek examples from this SDK:
p.kaczmarek2 wrote:EDIT: the SDK you linked seems like the vanilla version of the one I am using, just without Tuya.
p.kaczmarek2 wrote:The only question is would binary built with that SDK work with tuya-cloudcutter?
p.kaczmarek2 wrote:And which flashing method did you use?
TL;DR: 100 % flash-success reported on BK7231 T/N modules [Elektroda, p.kaczmarek2, post #19906676]; “OpenBK7231T now boots on three chip families” [Elektroda, p.kaczmarek2, post #19883071] Use QIO image for BK7231N, UA for BK7231T; erase only 0×11000-0×1EF000. Why it matters: a single workflow now replaces vendor firmware on 60 + low-cost IoT boards.
• Supported MCUs: BK7231T, BK7231N, XR809 (Wi-Fi + BLE) [Elektroda, 19883071] • Recommended UART speed: 921 600 bps for write, 115 200 bps for read [Elektroda, 19857664] • Flash sizes: Typical 2 MB on-chip; config area starts @ 0×1EF000 [Elektroda, post #19893493] • OTA format: .rbl (gzip + AES, served by HTTP) [Elektroda, btsimonh, post #19880525] • Typical power: 5 V @ 500 mA to AMS1117 input for safe programming [Elektroda, ExploWare, post #19853546]
python bk7231tools.py read_flash -d COMx --no-verify-checksum -s 0 -c 512 dump.bin for T/N chips (2 MB, 512 × 4 KB) [GitHub bk7231tools].http-here --host 0.0.0.0 8000). In WebApp → OTA tab → enter http://<IP>:8000/firmware.rbl; device backs up filesystem, flashes, restores settings [Elektroda, btsimonh, post #19880525]OpenBK7231T, then OpenBK7231T_App into /apps. Build: ./build_app.sh apps/OpenBK7231T_App OpenBK7231T_App git (Linux) or Cygwin on Windows; ensure build-essential and gcc-arm-none-eabi installed [Elektroda, boozeman, post #19885620]