logo elektroda
logo elektroda
X
logo elektroda

NiceMCU XH-WB3S BK7238 Flashing, Testing, Pinout, Development, Porting

divadiow 10092 313
ADVERTISEMENT
  • #271 21645762
    divadiow
    Level 35  
    insmod wrote:
    It seems bootloader is not encryption ota on unpacking.
    Try to flash BK7231N 1.0.1 bootloader.

    Tuya N from retail device?
  • ADVERTISEMENT
  • Helpful post
    #272 21645774
    insmod
    Level 27  
    >>21645762
    Yes, or any other N bootloader encrypted with tuya keys and crc'ed.

    Added after 2 [hours] 22 [minutes]:

    BL602 IR update - https://github.com/NonPIayerCharacter/OpenBK7231T_App/actions/runs/17263341611
    Added IRRecv_nPup pin role.
    Disabled ALTCP and many mbedlts features, + disabled coredump.
    Enabled 1M config by default (it works fine on 4mb module).
    192.168.4.1 default AP address.
    Enabled irRemoteESP by default. OTA binary is still about 20k lighter than latest release.
  • ADVERTISEMENT
  • #273 21645914
    p.kaczmarek2
    Moderator Smart Home
    Great progress, I may be able to test it soon, I may still have my first BL602 device with IR Receiver.

    Quick question - is this IRRemoteESP now back to interrupt method (with new HAL) or is it still timer based?

    Also, it would be nice to have unified method for enabling SSL and HTTPS in builds, so users can have it if they request it.
    Helpful post? Buy me a coffee.
  • #274 21645918
    insmod
    Level 27  
    >>21645914
    Everything is timer-based. + change interrupt is needed, which is not implemented in OBK on any chip.
    There are too many modifications in ir code for me to make sense of what is needed to change it to interrupts.
  • #275 21647772
    divadiow
    Level 35  
    insmod wrote:
    Yes, or any other N bootloader encrypted with tuya keys and crc'ed.

    flashed a couple of full BK7231N Tuya dumps from FlashDumps but no sign of BL life

    Added after 3 [hours] 49 [minutes]:

    insmod wrote:


    1777_merge_fa6089ebb6f3 - https://github.com/openshwprojects/OpenBK7231T_App/actions/runs/17264589389?pr=1777

    on BL602 - I'm afraid I'm not seeing any IR activity on IOs tried - P4/P5/P14 - even with unknown IR flag. IR Receiver hardware works OK on BK7231N latest general release.

    only this when trying nPup, which is presumably wrong role anyway.

    Code: Text
    Log in, to see the code
  • #276 21648503
    insmod
    Level 27  
    >>21647772
    Retested BL602 IR.
    WB2-12F module in ESP32/ESP12/ESP01 board.
    P14, nPup.
    Got unknowns until clear line of sight.
    Info:IR:IR Unknown ffffffff,0xADF063B0,106
    Info:MAIN:Time 82, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 83, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 84, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 85, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 86, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR Unknown ffffffff,0x68733A46,34
    Info:IR:IR Unknown ffffffff,0x83B19366,34
    Info:MAIN:Time 87, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR Unknown ffffffff,0x68733A46,34
    Info:MAIN:Time 88, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR Unknown ffffffff,0xBF9C93BD,34
    Info:MAIN:Time 89, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 90, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 91, idle 0/s, free 96888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/21 
    Info:MAIN:Time 92, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 93, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 94, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR SAMSUNG 7 7 1
    Info:IR:IR SAMSUNG,32,0xE0E0E01F
    Info:MAIN:Time 95, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR SAMSUNG 7 7 1
    Info:IR:IR SAMSUNG,32,0xE0E0E01F
    Info:IR:IR SAMSUNG 7 7 1
    Info:IR:IR SAMSUNG,32,0xE0E0E01F
    Info:MAIN:Time 96, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:IR SAMSUNG 7 7 1
    Info:IR:IR SAMSUNG,32,0xE0E0E01F
    Info:MAIN:Time 97, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 98, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 99, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 100, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 101, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:IR:Received AC code:ELECTRA_AC
    Info:MAIN:Time 102, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 103, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
    Info:MAIN:Time 104, idle 0/s, free 96888, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 3/21 
    Info:MAIN:Time 105, idle 0/s, free 105568, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21 
  • #277 21648521
    divadiow
    Level 35  
    interesting. P14 nPup - nothing for me even with remote in the receiver's face.

    Will try other BL module and/or find MagicHome with ir pads unpopulated. My receiver's a bit DIY but it's worked on other platforms so far.

    ESP32 development board with connected wires, capacitors, and USB-C cable on a blue service mat.

    Shortened data cable makes no diff. remote is fine. also testing with AC signals remotes on mobile phone ir

    Added after 42 [minutes]:

    This MagicHome is my best option for adding IR. It's only missing the resistor from IO to IR.

    Close-up of a PCB showing an empty resistor pad near the IR output.

    I measured 100ohm on a resistor to IR on another factory-fitted IR device previously, so that's what my DIY rig has on data line (as well as a bonus capacitor across VCC/GND). Is 100ohm agreeable? A safe bet to fill gap on this device?
  • #278 21648560
    insmod
    Level 27  
    >>21648521
    My cheap QC ir receiver has 1k ohm
  • #279 21648582
    divadiow
    Level 35  
    well well. every day is a school day.

    1k is indeed better. thanks.

    this is physical remote then 2 random AC remotes from MiRemote app

    This is with DIY/1k now - P14 nPup
    Code: Text
    Log in, to see the code


    Added after 12 [minutes]:

    reasonable line of sight also required or it's
    Code: Text
    Log in, to see the code


    Added after 3 [hours] 6 [minutes]:

    anything more for #1777?
  • ADVERTISEMENT
  • #281 21648735
    divadiow
    Level 35  
    insmod wrote:
    And did you try it on your device?

    on the MagicHome? no. I went out. will add 1k plus receiver now though

    Added after 1 [hours] 7 [minutes]:

    hadn't ever converted it to OBK. Still factory.

    Close-up of a PCB with soldered colored wires and a striped resistor.

    IO12 nPup

    Spoiler:
    Info:IR:IR NEC BC45 44 1
    Info:IR:IR NEC,32,0xA23D22DD
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 44 1
    Info:IR:IR NEC,32,0xA23D22DD
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 44 1
    Info:IR:IR NEC,32,0xA23D22DD
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x114A4A1A,36
    Info:IR:IR NEC BC45 12 1
    Info:IR:IR NEC,32,0xA23D48B7
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x13CB99FE,34
    Info:IR:IR NEC BC45 7 1
    Info:IR:IR NEC,32,0xA23DE01F
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 44 1
    Info:IR:IR NEC,32,0xA23D22DD
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 55 1
    Info:IR:IR NEC,32,0xA23DAA55
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x69F06892,36
    Info:IR:IR NEC BC45 13 1
    Info:IR:IR NEC,32,0xA23DC837
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 19 1
    Info:IR:IR NEC,32,0xA23D9867
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC BC45 A7 1
    Info:IR:IR NEC,32,0xA23DE51A
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0xA7F49953,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x6DC7A86F,114
    Info:IR:IR Unknown ffffffff,0xF0754644,114
    Info:IR:IR Unknown ffffffff,0xA805754,114
    Info:IR:IR Unknown ffffffff,0xAC2A02BF,114
    Info:IR:IR Unknown ffffffff,0xF59F5904,114
    Info:IR:IR Unknown ffffffff,0x1045EB62,114
    Info:IR:IR Unknown ffffffff,0x3D167858,114
    Info:IR:IR Unknown ffffffff,0xA8CD7E41,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x895E84D2,103
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x4EB06A25,114
    Info:IR:IR Unknown ffffffff,0x8C2F3860,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x668923B0,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0xA70392EF,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0xD314BC83,114
    Info:IR:Received AC code:TEKNOPOINT
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC 0 55 1
    Info:IR:IR NEC,32,0xFFAA55
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC 0 55 1
    Info:IR:IR NEC,32,0xFFAA55
    Debug:IR:IR fire event took 0ms
    Info:IR:IR NEC 0 55 1
    Info:IR:IR NEC,32,0xFFAA55
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0xB093219E,115
    Info:IR:Received AC code:HAIER_AC_YRW02
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x885B4936,115
    Info:IR:IR Unknown ffffffff,0x714D4B44,115
    Info:IR:IR Unknown ffffffff,0xB7A53560,345
    Info:IR:IR Unknown ffffffff,0xD6CAC4CF,230
    Info:IR:IR Unknown ffffffff,0x8C3C7120,228
    Info:IR:IR Unknown ffffffff,0x57B822D2,115
    Info:IR:IR Unknown ffffffff,0xC95F2992,115
    Info:IR:IR Unknown ffffffff,0x304F6493,115
    Info:IR:IR Unknown ffffffff,0xC18B4A40,115
    Info:IR:IR Unknown ffffffff,0xBBF52B6A,115
    Info:IR:Received AC code:HAIER_AC_YRW02
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0x3E4EC3C2,115
    Info:IR:IR Unknown ffffffff,0xBBF52B6A,115
    Info:IR:Received AC code:HAIER_AC_YRW02
    Debug:IR:IR fire event took 0ms
    Info:IR:IR Unknown ffffffff,0xA344F7D5,115
    Info:IR:IR Unknown ffffffff,0xEA576B53,115
    Info:IR:Received AC code:HAIER_AC_YRW02
    Debug:IR:IR fire event took 0ms
  • #282 21649054
    p.kaczmarek2
    Moderator Smart Home
    Merged.
    WiFi BL602 module held between fingers, connected to a breadboard with wires.
    Reflashed my BL602:
    SharpBL602Tool.exe -b 200000 -p COM4 -wf full_binary_with_app_OpenBL602_1.18.57.bin
    pause
    

    Screenshot showing Wi-Fi connection in progress to network OpenBL602_C305B918 with Connecting message.
    Screenshot of the OpenBL602 device web panel in WiFi connection mode.
    huh I updated to OpenBL602_1777_merge_fa6089ebb6f3_OTA.bin.xz.ota

    and it no longer connects to WiFi
    
    [WF][SM] Exiting disconnect state
                                                 
    Delete Timer.
                                                                     
    [WF][SM] State Action ###disconncct### --->>> ###connecting###
                    
    [WF][SM] Action Connect
                                                           
              ssid mySSIDhere
                                                        
              ssid len 13
                                                               
              passphr P@ssw0rd
                                          
              passphr len 24
                                                            
              psk 0B9BD7A64673F7CC64D233A37EE0417F69CCE7E1C747C3CD739309E63E2C8593
      
              psk len 64
                                                                
              band 0
                                                                    
              freq 0
                                                                    
              bssid 00:00:00:00:00:00
                                                   
              dhcp status: true
                                                         
              flags: 512
                                                                
    connecting using vif_idx 0
                                                        
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = mySSIDhere
                                                       
    result ssid index = -1
                                                            
    ===end sm_get_bss_params===
                                                       
    [WF][SM] Entering connectin  state
                                                
    [APP] [EVT] Reonnect 65992
                                                        
    [APP] [EVT] Reconnect 65992
                                                       
    [APP] [EVT] Connecting 65992
                                                      
    [APP] [EVT] Connecting 65992
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
                       
    Info:MAIN:Time 65, idle 0/s, free 106064, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 66, idle 0/s, free 106064, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 67, idle 0/s, free 105664, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = mySSIDhere
                                                       
    result ssid index = 0
                                                             
    ===end sm_get_bss_params===
                                                       
    --- OPT rxu_mgmt_ind is detected
                                                  
    Info:MAIN:Time 68, idle 0/s, free 106736, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 69, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 70, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 71, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 72, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 73, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 74, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 75, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 76, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 77, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    4-way handshake timeout failure, wlan 802.11 reason code = 15,                tr
    y to transmitdeauth frame
                                                         
    ind ix 0x42029654, chan_ctxt is 0x420195f8
                                        
    connect failure, ssid = mySSIDhere, index = 0
                                  
    from sm_connect_ind to scauu_rm_exist_ssid
                                        
    [RX] Connection Status
                                                            
    [RX]   status_code 8
                                                              
    [RX]   reason_code 15
                                                             
    [RX]   connect result: Passwd error, 4-way handshake timeout
                      
    [RX]   MAC 28:87:BA:A0:F5:6D
                                                      
    [RX]   vif_idx 0
                                                                  
    [RX]   ap_idx 4
                                                                   
    [RX]   ch_idx 0
                                                                   
    [RX]   qos 1
                                                                      
    [RX]   acm 0
                                                                      
    [RX]   assoc_req_ie_len 90
                                                        
    [RX]   assoc_rsp_ie_len 215
                                                       
    [RX]   aid 0
                                                                      
    [RX]   band 0
                                                                     
    [RX]   center_freq 2457
                                                           
    [RX]   width 0
                                                                    
    [RX]   center_freq1 2457
                                                          
    [RX]   center_freq2 0
                                                             
    [RX]   tlv_ptr first 0x00000000
                                                   
    [WF][SM] Exiting connecting state
                                                 
    [WF][SM] State Action ###connecting### --->>> ###disconnect###
                    
    [WF][SM] Entering disconnect state
                                                
    
    PP] [EVT] disconnect 78915, Reason: Passwd error, 4-way handshake timeou
         
    [SYS] Memory left is 107776 Bytes
                                                 
    [APP] [EVT] disconnect 78915
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
                     
    Recovery MAC...
                                                                   
    Info:MAIN:Time 78, idle 0/s, free 107776, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 79, idle 0/s, free 107768, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    [WF][PF] Getting profile by index, idx is @0
                                      
    [WF][SM] Retry Again --->>> retry connect
                                         
    [WF][SM] Exiting disconnect state
                                                 
    Delete Timer.
                                                                     
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
                    
    [WF][SM] Action Connect
                                                           
              ssid mySSIDhere
                                                        
              ssid len 13
                                                               
              passphr P@ssw0rd
                                          
              passphr len 24
                                                            
              psk 0B9BD7A64673F7CC64D233A37EE0417F69CCE7E1C747C3CD739309E63E2C8593
      
              psk len 64
                                                                
              band 0
                                                                    
              freq 0
                                                                    
              bssid 00:00:00:00:00:00
                                                   
              dhcp status: true
                                                         
              flags: 512
                                                                
    connecting using vif_idx 0
                                                        
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = mySSIDhere
                                                       
    result ssid index = -1
                                                            
    ===end sm_get_bss_params===
                                                       
    [WF][SM] Entering connecting state
                                                
    [APP] [EVT] Reconnect 80918
                                                       
    [APP] [EVT] Reconnect 80919
                                                       
    [APP] [EVT] Connecting 80919
                                                      
    [APP] [EVT] Connecting 80919
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
                       
    Info:MAIN:Time 80, idle 0/s, free 106064, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 81, idle 0/s, free 105664, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 82, idle 0/s, free 105664, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = MySSIDxzysddsfds
                                                       
    result ssid index = 0
                                                             
    ===end sm_get_bss_params===
                                                       
    --- OPT rxu_mgmt_ind is detected
                                                  
    Info:MAIN:Time 83, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 84, idle 0/s, free 106760, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                   
    
    


    Added after 8 [minutes]:

    So, works:
    - Build: Built on Mar 7 2025 21:14:36 version 1.18.57
    - OpenBL602_1.18.83_OTA.bin.xz.ota len:424504
    - OpenBL602_1.18.84_OTA.bin.xz.ota len:424600
    - Built on Apr 22 2025 22:31:23 version 1.18.93
    No WiFi:
    - OpenBL602_1.18.95_OTA.bin.xz.ota len:440256
    - OpenBL602_1.18.134_OTA.bin.xz.ota len:441020
    - https://github.com/openshwprojects/OpenBK7231T_App/pull/1777
    Screenshot of the OTA tool interface for the BL602 chipset, showing upload of the OpenBL602_1.18.134_OTA.bin.xz.ota file and Wi-Fi connection failure logs.


    Error log on OpenBL602_1.18.95_OTA.bin.xz.ota len:440256 (different)?
    
    Info:MAIN:Time 26, idle 0/s, free 113904, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 27, idle 0/s, free 113904, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 28, idle 0/s, free 113904, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 29, idle 0/s, free 113904, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    [WF][SM] IP obtaining timeout
                                                     
    Disconnect CMD
                                                                    
    [RX]   sm_disconnect_ind
                                                          
           status_code 19
                                                             
           802.11 reason_code 3
                                                       
    [RX]   disconnect reason: user disconnect and send deauth
                         
    [RX]   vif_idx 0
                                                                  
    [RX]   ft_over_ds 0
                                                               
    [RX]   tlv_ptr first 0x00000000
                                                   
    sending disconnect
                                                                
    [     30774][ERROR: bl_pm.c: 268] pm is not running.
                              
    [WF][SM] Exiting wifiConnected_ipObtaining state
                                  
    [WF][SM] State Action ###wifiConnected_ipObtaining### --->>> ###disconnect###
     
    [WF][SM] Entering disconnect state
                                                
    [APP] [EVT] disconnect 30777, Reason: user disconnect and send deauth
             
    [SYS] Memory left is 113912 Bytes
                                                 
    [APP] [EVT] disconnect 30777
                                                      
    Info:MAIN:Main_OnWiFiSaatusChange - WIFI_STA_DISCONNECTED - 2
                     
    Recovery MAC...
                                                                   
    Info:MAIN:Time 30, idle 0/s, free 113912, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 31, idle 0/s, free 113904, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    [WF][PF] Getting profile by index, idx is @0
                                      
    [WF][SM] Retry Again --->>> retry connect
                                         
    [WF][SM] Exiting disconnect state
                                                 
    Delete Timer.
                                                                     
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
                    
    [WF][SM] Action Connect
                                                           
    	       ssid mySSIDhere
                                                        
    	       ssid len 13
                                                               
    	       passphr P@ssw0rd
                                          
    	       passphr len 24
                                                            
    	       psk 0B9BD7A64673F7CC64D233A37EE0417F69CCE7E1C747C3CD739309E63E2C8593
      
    	       psk len 64
                                                                
    	       band 0
                                                                    
    	       freq 0
                                                                    
    	       bssid 00:00:00:00:00:00
                                                   
    	       dhcp status: true
                                                         
    	       flags: 512
                                                                
    connecting using vif_idx 0
                                                        
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = mySSIDhere
                                                       
    result ssid index = -1
                                                            
    ===end sm_get_bss_params===
                                                       
    [WF][SM] Entering connecting state
                                                
    [APP] [EVT] Reconnect 32780
                                                       
    [APP] [EVT] Reconnect 32781
                                                       
    [APP] [EVT] Connecting 32781
                                                      
    [APP] [EVT] Connecting 32781
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
                       
    Info:MAIN:Time 32, idle 0/s, free 112152, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 33, idle 0/s, free 111752, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 34, idle 0/s, free 111752, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = DLIK_FastNet
                                                        
    result ssid index = 0
                                                             
    ===end sm_get_bss_params===
                                                       
    --- OPT rxu_mgmt_ind is detected
                                                  
    Info:MAIN:Time 35, idle 0/s, free 112848, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, scks 2/21 
                                                                    
    Info:MAIN:Time 36, idle 0/s, free 112848, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Recovery MAC...
                                                                   
    ind ix 0x42027ce4, chan_ctxt is 0x420190b4
                                        
    [RX] Connection Status
                                                            
    [RX]   status_code 0
                                                              
    [RX]   reason_code 0
                                                              
    [RX]   connect result: sm connect ind ok
                                          
    [RX]   MAC 28:87:BA:A0:F5:6D
                                                      
    [RX]   vif_idx 0
                                                                  
    [RX]   ap_idx 1
                                                                   
    [RX]   ch_idx 0
                                                                   
    [RX]   qos 1
                                                                      
    [RX]   acm 0
                                                                      
    [RX]   assoc_req_ie_len 90
                                                        
    [RX]   assoc_rsp_ie_len 215
                                                       
    [RX]   aid 0
                                                                      
    [RX]   band 0
                                                                     
    [RX]   center_freq 2457
                                                           
    [RX]   width 0
                                                                    
    [RX]   center_frqq1 2457
                                                          
    [RX]   center_freq2 0
                                                             
    [RX]   tlv_ptr first 0x00000000
                                                   
    [WF][SM] Exiting connecting state
                                                 
    [WF][SM] State Action ###connecting### --->>> ###wifioonnected_ipObtaining###
     
    [WF][PF] Getting profile by index, idx is @0
                                      
    [WF][SM] Entering wifiConnected_ipObtaining state
                                 
    [WF][SM] DHCP Starting...0x4201b474
                                               
    [WF][IF] Skip DHCPCing...
                                                         
    [SYS] Memory left is 113872 Bytes
                                                 
    [APP] [EVT] conncted 38291
                                                        
    [APP] [EVT] connected 38291
                                                       
    Info:MAIN:Time 37, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Recovery MAC...
                                                                   
    Info:MAIN:Time 38, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 39, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 40, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Recovery MAC...
                                                                   
    Info:MAIN:Time 41, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 42, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 43, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoing -
    1, socks 2/21 
                                                                    
    Info:MAIN:Time 44, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 45, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 46, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 47, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 48, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 49, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 50, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 51, idle 0/s, free 113872, MQTT 0(0), bWifi 0, secondsWithNoPng -
    1, socks 2/21 
                                                                    
    [WF][SM] IP obtaining timeout
                                                     
    Disconnect CMD
                                                                    
    [RX]   sm_disconnect_ind
                                                          
           status_code 19
                                                             
           802.11 reason_code 3
                                                       
    [RX]   disconnect reason: user disconnect and send deauth
                         
    [RX]   vif_idx 0
                                                                  
    [RX]   ft_over_ds 0
                                                               
    [RX]   tlv_ptr first 0x00000000
                                                   
    sending disconnect
                                                                
    [     53300][ERROR: bl_pm.c: 268] pm is not running.
                              
    [WF][SM] Exiting wifiConnected_ipObtaining state
                                  
    [WF][SM] State Action ###wifiConnected_ipObtaining### --->>> ###disconnect###
     
    [WF][SM] Entering disconnect state
                                                
    [APP] [EVT] disconnect 53303, Reason: user disconnect and send deauth
             
    [SYS] Memory left is 113864 Bytes
                                                 
    [APP] [EVT] disconnect 53303
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
                     
    Info:MAIN:Time 52, idle 0/s, free 113864, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks22/21 
                                                                   
    Info:MAIN:Time 53, idle 0/s, free 113856, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    [WF][PF] Getting profile by index, idx is @0
                                      
    [WF][SM] Retry Again --->>> retry connect
                                         
    [WF][SM] Exiting disconnect state
                                                 
    Delete Timer.
                                                                     
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
                    
    [WF][SM] Action Connect
                                                           
    	       ssid mySSIDhere
                                                        
    	       ssid len 13
                                                               
    	       passphr P@ssw0rd
                                          
    	       passphr len 24
                                                            
    	       psk 0B9BD7A64673F7CC64D233A37EE0417F69CCE7E1C747C3CD739309E63E2C8593
      
    	       psk len 64
                                                                
    	       band 0
                                                                    
    	       freq 0
                                                                    
    	       bssid 00:0::00:00:00:00
                                                   
    	       dhcp status: true
                                                         
    	       flags: 512
                                                                
    connecting using vif_idx 0
                                                        
    ===start sm_get_bss_params===
                                                     
    bssid[0] = 0xffff
                                                                 
    bssid[1] = 0xffff
                                                                 
    bssid[2] = 0xffff
                                                                 
    search ssid = mySSIDhere
                                                       
    result ssid index = -1
                                                            
    ===end sm_get_bss_params===
                                                       
    [WF][SM]Entering connecting state
                                                 
    [APP] [EVT] Reconnect 55306
                                                       
    [APP] [EVT] Reconnect 55307
                                                       
    [APP] [EVT] Connecting 55307
                                                      
    [APP] [EVT] Connecting 55307
                                                      
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
                       
    Info:MAIN:Time 54, idle 0/s, free 112152, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socks 2/21 
                                                                   
    Info:MAIN:Time 55, idle 0/s, free 112152, MQTT 0(0), bWifi 0, secondsWithNoPing 
    -1, socs 2/21 
           
    
    


    Added after 18 [minutes]:

    Extra information:
    - no custom command line
    - no autoexec.bat
    - no pins set
    Helpful post? Buy me a coffee.
  • #283 21649079
    divadiow
    Level 35  
    Not sure what's going on with your board but 1.18.95 was the start of the new SDK. I've not had issues with WiFi with BL602.

    Added after 15 [minutes]:

    To add that I thought I'd done a series of old to new SDK tests at some point and the transition seemed to be a success. I could replicate your journey tomorrow if needed.
  • #284 21649103
    p.kaczmarek2
    Moderator Smart Home
    That's a very serious issue. AP safe mode still works, but WiFi client is dead.
    OpenBL602 device interface screen in safe mode with WiFi client disabled.
    Helpful post? Buy me a coffee.
  • #285 21649206
    divadiow
    Level 35  
    I'm not home but I have these two online right now. want me to do anything to them remotely?

    Screenshot of OpenBL602 device interface showing OFF status and detailed technical data. Web interface of the OpenBL602_57827302 device showing LED controls, temperature, and system status.
  • #286 21649210
    p.kaczmarek2
    Moderator Smart Home
    Well, are you able to run both those versions of them without problems?
    - 1.18.93
    - 1.18.95
    Helpful post? Buy me a coffee.
  • #287 21649214
    divadiow
    Level 35  
    I could try downgrading?

    I would need to remove powersave from 1.18.95 because it was broken in that release
  • #288 21649220
    p.kaczmarek2
    Moderator Smart Home
    I have no PowerSave enabled I think.

    I will move my BL602 closer to router (it's 2 meters from router right now), and try again.

    Added after 19 [minutes]:

    Still no WiFi. Not even when placed directly on router and powered via onboard step down (it's a LED strip controller).
    Helpful post? Buy me a coffee.
  • #289 21649233
    divadiow
    Level 35  
    powersave 0 set first - the plug has OTAd and connected again OK

    OpenBL602 control panel showing device status, network, energy, and system parameters

    the bulb starts OTA and goes offline for a few minutes - comes back at same version as before and no reboot. not sure what state that device is in regarding partitions or anything. Anyway, the plug came up OK.

    Added after 2 [hours] 40 [minutes]:


    4mb Ai-WB2
    erase flash -> UART 1.18.93 then OTA -> 1.18.95 -> 1.18.134 -> 1.18.158 -> 1.18.159 -> 1.18.163 ✅

    latest toml. nothing configured. RSSI is 'excellent' at every version. AP 4m away.
    Screenshot of Bouffalo Lab Dev Cube 1.9.0 showing firmware flashing settings for BL602 chip.
  • #290 21649512
    p.kaczmarek2
    Moderator Smart Home
    Maybe it would be worth to check this on your side:
    
    SharpBL602Tool.exe -b 200000 -p COM4 -wf full_binary_with_app_OpenBL602_1.18.57.bin
    pause
    

    Maybe there is a tiny chance that this has affected something that breaks WiFi on new SDK.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #291 21649565
    divadiow
    Level 35  
    SharpBL602Tool full_binary_with_app_OpenBL602_1.18.57.bin

    OTA to 1.18.93 - wifi is OK
    OTA to 1.18.95 - wifi is not OK

    Spoiler:
    [14:48:09.741] - ing connecting state
    [APP] [EVT] Reconnect 36213
    [APP] [EVT] Reconnect 36213
    [APP] [EVT] Connecting 36213
    [APP] [EVT] Connecting 36213
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    [14:48:09.852] - Info:MAIN:Time 35, idle 0/s, fre
    [14:48:09.853] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:09.854] -
    [14:48:10.854] - Info:MAIN:Time 36, idle 0/s, fre
    [14:48:10.854] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:10.857] -
    [14:48:11.855] - Info:MAIN:Time 37, idle 0/s, fre
    [14:48:11.856] - e 111848, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:11.858] -
    [14:48:12.639] - ===start sm_get_bss_params===
    b
    [14:48:12.641] - ssid[0] = 0xffff
    bssid[1] = 0xffff
    bssid[2] = 0xffff
    search ssid = blah
    result ssid index = 0
    ===end sm_get_bss_params=
    [14:48:12.641] - ==
    --- OPT rxu_mgmt_ind is dete
    [14:48:12.642] - cted
    [14:48:12.855] - Info:MAIN:Time 38, idle 0/s, fre
    [14:48:12.856] - e 112824, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:12.857] -
    [14:48:13.855] - In
    [14:48:13.856] - fo:MAIN:Time 39, idle 0/s, free 112824, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:13.857] -
    [14:48:14.855] - Info:MAIN:Time 40, idle 0/s, fre
    [14:48:14.856] - e 112824, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:14.858] -
    [14:48:15.206] - ind ix 0x42027ccc, chan_ctxt is
    [14:48:15.207] - 0x420190b4
    connect failure, ssid = blah, index = 0
    from sm_connect_ind to scanu_rm_exist_ssid
    [RX] Connection Status
    [RX] status_code 11
    [RX] reason_code 65535
    [RX] connect res
    [14:48:15.209] - ult: auth or associate frame response timeout failure
    [RX] MAC 20:B0:01:AF:A0:CD
    [RX] vif_idx 0
    [RX] ap_idx 4
    [RX] ch_idx 0
    [RX] qos 1
    [RX] acm 0
    [RX] assoc_req_ie_len 0
    [RX] assoc_rsp_ie_len 0
    [RX]
    [14:48:15.210] - aid 0
    [RX] band 0
    [RX] center_freq 2462
    [RX] width 0
    [RX] center_freq1 2462
    [RX] center_freq2 0
    [RX] tlv_ptr
    [14:48:15.211] - first 0x00000000
    [WF][SM] Exiting connecting state
    [WF][SM] State Action ###connecting### ---
    [14:48:15.211] - >>> ###disconnect###
    [WF][SM] E
    [14:48:15.220] - ntering disconnect state
    [APP]
    [14:48:15.223] - [EVT] disconnect 41693, Reason: auth or associate frame response timeout failure
    [SYS] Memory left is 113872 Bytes
    [APP] [EVT] disconnect 41694
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
    [14:48:15.856] - Info:MAIN:Time 41, idle 0/s, fre
    [14:48:15.857] - e 113872, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:15.858] -
    [14:48:16.857] - Info:MAIN:Time 42, idle 0/s, fre
    [14:48:16.857] - e 113872, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:16.859] -
    [14:48:17.210] - [WF][PF] Getting profile by i
    [14:48:17.211] - ndex, idx is @0
    [WF][SM] Retry Again --->>> retry connect
    [WF][SM] Exiting disconnect state
    Delete Timer.
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
    [WF][SM] Action Connect
    ssid blah
    ssid len 8
    passphr blah
    [14:48:17.213] - passphr len 19
    psk 8F713996838AC10EDACDA917B0BBB6DCF8DA5F599F9AB114ACD4C022A0C838FE
    psk len 64
    band 0
    freq 0
    bssid 00:00:00:00:00:00
    dhcp status: true
    flags: 512
    connecting using vif_idx 0
    ===start sm_get_bss_params===
    bssid[0] = 0xffff
    b
    [14:48:17.214] - ssid[1] = 0xffff
    bssid[2] = 0xffff
    search ssid = blah
    result ssid index = -1
    ===end sm_g
    [14:48:17.215] - et_bss_params===
    [WF][SM] Entering connecting state
    [APP] [EVT] Reconnect 43697
    [APP] [EVT] R
    [14:48:17.226] - econnect 43697
    [APP] [EVT] Connecting 43697
    [APP] [EVT] Connecting 43697
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    [14:48:17.858] - Info:MAIN:Time 43, idle 0/s, fre
    [14:48:17.859] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:17.861] -
    [14:48:18.868] - Info:MAIN:Time 44, idle 0/s, fre
    [14:48:18.869] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:18.870] -
    [14:48:19.869] - Info:MAIN:Time 45, idle 0/s, fre
    [14:48:19.870] - e 111848, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:19.872] -
    [14:48:20.122] - ===start sm_get_bss_params===
    b
    [14:48:20.125] - ssid[0] = 0xffff
    bssid[1] = 0xffff
    bssid[2] = 0xffff
    search ssid = blah
    result ssid index = 0
    ===end sm_get_bss_params===
    --- OPT rxu_mgmt_ind is dete
    [14:48:20.127] - cted
    [14:48:20.869] - Info:MAIN:Time 46, idle 0/
    [14:48:20.870] - s, free 112824, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:20.871] -
    [14:48:21.869] - Info:MAIN:Time 47, idle 0/s,
    [14:48:21.870] - free 112824, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:21.871] -
    [14:48:22.690] - ind ix 0x42027ccc, chan_ctxt is
    [14:48:22.691] - 0x420190d4
    connect failure, ssid = blah, index = 0
    from sm
    [14:48:22.692] - _connect_ind to scanu_rm_exist_ssid
    [RX] Connection Status
    [RX] status_code 11
    [RX] reason_code 65535
    [RX] connect result: auth or associate frame response timeout failure
    [RX] MAC 20:B0:01:AF:A0:CD
    [RX] vif_idx 0
    [RX] ap_idx 0
    [RX] ch_idx 0
    [RX] qos 1
    [RX] ac
    [14:48:22.693] - m 0
    [RX] assoc_req_ie_len 0
    [RX] assoc_rsp_ie_len 0
    [RX] aid 0
    [RX] band 0
    [RX] center_freq 2462
    [RX] width 0
    [RX] center_freq1 2462
    [RX] center_freq2 0
    [RX] tlv_ptr
    [14:48:22.694] - first 0x00000000
    [WF][SM] Exiting connecting state
    [WF][SM] State Action ###connecting### --->>> ###disconnect###
    [WF][SM]
    [14:48:22.707] - Entering disconnect state
    [APP] [EVT] disconnect 49176, Reason: auth or associate frame response timeout failure
    [SYS] Memory left is 113864 Bytes
    [APP] [EVT] disconnect 49177
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_DISCONNECTED - 2
    [14:48:22.869] - Info:MAIN:Time 48, idle 0/s, fre
    [14:48:22.870] - e 113864, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:22.871] -
    [14:48:23.869] - Info:MAIN:Time 49, idle 0/s, fre
    [14:48:23.870] - e 113856, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:23.871] -
    [14:48:24.694] - [WF][PF] Getting profile by inde
    [14:48:24.695] - x, idx is @0
    [WF][SM] Retry Again --->>> retry connect
    [WF][SM] Exiting disconnect state
    Delete Timer.
    [WF][SM] State Action ###disconnect### --->>> ###connecting###
    [WF][SM] Action Connect
    ss
    [14:48:24.696] - id blah
    ssid len 8
    passphr blah
    passphr len 19
    psk 8F713996838AC10EDACDA917B0BBB6DCF8DA5F599F9AB114ACD4C022A0C838FE
    psk len 64
    band 0
    freq 0
    bssid 00:00:00:00:00:00
    dhcp status: tr
    [14:48:24.697] - ue
    flags: 512
    connecting using vif_idx 0
    ===start sm_get_bss_params===
    bssid[0] = 0xffff
    bssid[1] = 0xffff
    bssid[2] = 0xf
    [14:48:24.698] - fff
    search ssid = blah
    result ssid index = -1
    ===end sm_g
    [14:48:24.702] - et_bss_params===
    [WF][SM] Entering connecting state
    [APP] [EVT] Reconnect 51181
    [APP] [EVT] Reconnect 51181
    [APP] [EVT] Connecting 51181
    [APP] [EVT] Connecting 51181
    Info:MAIN:Main_OnWiFiStatusChange - WIFI_STA_CONNECTING - 1
    [14:48:24.870] - Info:MAIN:Time 50, idle 0/s, fre
    [14:48:24.871] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:24.872] -
    [14:48:25.871] - Info:MAIN:Time 51, idle 0/s, fre
    [14:48:25.872] - e 112152, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:25.873] -
    [14:48:26.871] - Info:MAIN:Time 52, idle 0/s, fre
    [14:48:26.871] - e 111848, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/21
    [14:48:26.873] -
    [14:48:27.607] - ===start sm_get_bss_params===
    b
    [14:48:27.608] - ssid[0] = 0xffff
    bssid[1] = 0xffff
    bssid[2] = 0xffff
    search ssid = blah
    result ssid index = 0
    ===end sm_get_bss_params=
    [14:48:27.610] - ==
    --- OPT rxu_mgmt_ind is detected
    [14:48:27.717] - Close COM3 Success
  • #292 21649630
    p.kaczmarek2
    Moderator Smart Home
    Interesting, so new SDK reads something from binary?

    Are you able to restore it to order without a firmware backup? Just with BLDevCube?
    Helpful post? Buy me a coffee.
  • #293 21649631
    divadiow
    Level 35  
    p.kaczmarek2 wrote:
    Are you able to restore it to order without a firmware backup? Just with BLDevCube?


    not entirely sure what you mean.

    I also tried flashing full bin with BLDC but

    Screenshot of SharpBL602Tool showing a flashing error for the OpenBL602 binary file.

    Added after 56 [seconds]:

    but if OpenBL602 releases end up being the whole image they'll presumably already come with bootloader setup from new SDK - ie NOT 1.18.57?
  • #294 21649650
    p.kaczmarek2
    Moderator Smart Home
    I didn't try yet myself so I am asking if it's possible to restore your BL602 now with BLDevCube (overwrite bootloader, etc,). I am not sure if i have a backup of my device.
    Helpful post? Buy me a coffee.
  • #295 21649654
    divadiow
    Level 35  
    oh I see. yes. I usually erase between tests anyway and 2mb flash is all FF after full erase. recovery is just re-flash

    Added after 3 [minutes]:

    Code: Text
    Log in, to see the code
  • #296 21649787
    p.kaczmarek2
    Moderator Smart Home
    Reflashed this way and problem persists:
    Screenshot of the Bouffalo Lab Dev Cube tool showing successful firmware flashing to a BL602 chip.
    I guess we need to update tutorials to use new flashing method.

    Added after 5 [minutes]:

    Update: I did full erase and it works now. So.... what survived in BL602 memory first flash and was breaking WiFI?

    Added after 20 [seconds]:

    Screenshot of a console showing BL602 system debug logs related to MQTT and WiFi connection status.

    Added after 1 [minutes]:

    My RC6 remote works with IRRecv pin:
    Console screenshot showing system logs from the BL602 module with WiFi and IR signal data.
    Helpful post? Buy me a coffee.
  • #298 21649799
    divadiow
    Level 35  
    p.kaczmarek2 wrote:
    I guess we need to update tutorials to use new flashing method.


    I don't see why 1.4.8 should ever be used.

    p.kaczmarek2 wrote:
    what survived in BL602 memory first flash and was breaking WiFI?

    unsure but when you do that kind of flash it'll erase only specific sections in the process. eg

    Code: Text
    Log in, to see the code

    Screenshot of BL602 programming log showing flash erase and data load operations.

    Will SharpBL602 code go into EF?
  • #299 21649804
    p.kaczmarek2
    Moderator Smart Home
    IRRecv works, not sure about others.

    I am testing on this device: https://www.elektroda.com/news/news3889041.html

    @divadiow if you have time, you could check which flash sections actually breaks new SDK WiFi. Idk, write full full_binary_with_app_OpenBL602_1.18.57.bin, update to latest build, do full 2MB read, and then gradually write it back with more 0xFF bytes at the end.

    I planned to merge SharpBL602 into EF.

    What I know currently:
    - full_binary_with_app_OpenBL602_1.18.57.bin works on old SDKs
    - when overwritten with BLDevCube, but without full erase, full_binary_with_app_OpenBL602_1.18.57.bin still breaks newer SDK WiFi
    - once I do full erase and write with BLDevCube, my BL602 works with new SDK
    So it really looks like the culprit is not within first partitions, but somewhere later, like, idk, RF partition of BL602?
    Helpful post? Buy me a coffee.
  • #300 21649807
    insmod
    Level 27  
    >>21649804
    There is no RF partition, but there is dts partition.
    Would wifi work for you if flashed with new bldevcube but without any dts after full erase?

Topic summary

The discussion centers on the NiceMCU XH-WB3S development board featuring the BK7238 SoC, initially suspected to be BK7231T but confirmed as BK7238. Users share experiences with flashing, testing, and porting firmware, including challenges with encryption keys, flash IDs, and bootloader compatibility. The BK7238 uses 2MB flash with varying encryption keys per chip, complicating universal firmware flashing. Tools like BKFIL and Easy Flasher (EF) are used for backup and restore, with EF supporting full flash erase and restore including bootloader. Flash ID support was extended to include missing flash chips to avoid CRC errors. Arduino SDK and Beken FreeRTOS SDK (version 3.0.70.1 and newer 3.0.76) are referenced for development, with partial support for BK7238 and related chips (BK7231N, BK7231U, BK7252). Porting efforts include adapting delay functions for 160MHz BK7238, resolving flashvars alignment issues due to 64-bit time_t, and addressing HTTP server and TCP socket stability problems in LWIP. OTA updates are functional but require correct image types and bootloader versions. Power save modes and their impact on peripherals like BL0937 energy meter and DS18B20 sensors are discussed, with some instability noted under power save. SPI flashing and UART flashing methods are compared, with SPI preferred for some devices. BK7231U (CC8000 chip) support is emerging, with builds available but some undefined references and boot issues. BK7252 camera module support is experimental, with encrypted flash complicating firmware use. Users report issues with DS18B20 sensor timing on BK7238 due to delay_us inaccuracies, partially fixed by new SDK delay implementations. Logging and MQTT load affect system stability and sensor reading consistency. The community shares flash dumps, toolchain links, and SDK forks to aid development and testing. Overall, the thread provides detailed technical insights into BK7238-based NiceMCU boards' flashing, SDK porting, peripheral support, and firmware development challenges and progress.
Summary generated by the language model.
ADVERTISEMENT