Hi freaks,
I just playing around with my new USB Smart switch.
I configured the long name to a very special one.
I delete the main SSID and password and reboot.
After this the device was not longer reachable.
Cause the long name would be taken as the SSID name for the access point. And this SSID would not be propagate. See attachment.
So if there any way to reset the device to the naked new without flashing the firmware again?
I give the attachment with the boot messages on tx2 from the device:
V:BK7231N_1.0.1
REG:cpsr spsr r13 r14
SVC:000000D3 00401C1C 000033AC
IRQ:000000d2 00000010 00401e0c 7fab8fff
FIR:000000d1 00000010 00401ffc fdfffffd
SYS:000000df 0040192c 00000158
ST:00000000
J 0x10000
bk_misc_init_start_type 0 0
prvHeapInit-start addr:0x414540, size:113344
[Flash]id:0xeb6015
sctrl_sta_ps_init
cset:0 0 0 0
Entering initLog()...
Commands registered!
initLog() done!
Info:MAIN:Main_Init_Before_Delay
Info:CFG:####### Boot Count 70 #######
Info:MAIN:###### safe mode activated - boot failures 47
Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 5 changes count.
Info:MAIN:Main_Init_Before_Delay done
Main_Init_Before_Delay done
Info:MAIN:Main_Init_Delay
Main_Init_Delay
delaying start
bandgap_calm_in_efuse=0x6d
[load]bandgap_calm=0x6d->0x2d,vddig=4->5
[FUNC]rwnxl_init
[bk]tx_txdesc_flu#Startup delayed 0ms#
sms#
[FUNC]intc_init
[FUNC]calibration_main
gpio_level=1,txpwr_state=15
user define rfcali mode:1
get rfcali_m#Startup delayed 10ms#
oyed 10ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 20ms#
#Startup delayed 30ms#
#Startup delayed 40ms#
#Startup delayed 50ms#
#Startup delayed 60ms#
#Startup delayed 70ms#
#Startup delayed 80ms#
#Startup delayed 90ms#
#Startup delayed 100ms#
#Startup delayed 110ms#
#Startup delayed 120ms#
#Startup delayed 130ms#
#Startup delayed 140ms#
#Startup delayed 150ms#
#Startup delayed 160ms#
#Startup delayed 170ms#
#Startup delayed 180ms#
#Startup delayed 190ms#
#Startup delayed 200ms#
#Startup delayed 210ms#
#Startup delayed 220ms#
#Startup delayed 230ms#
#Startup delayed 240ms#
#Startup delayed 250ms#
#Startup delayed 260ms#
#Startup delayed 270ms#
#Startup delayed 280ms#
#Startup delayed 290ms#
#Startup delayed 300ms#
#Startup delayed 310ms#
#Startup delayed 320ms#
#Startup delayed 330ms#
#Startup delayed 340ms#
#Startup delayed 350ms#
#Startup delayed 360ms#
#Startup delayed 370ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 380ms#
#Startup delayed 390ms#
#Startup delayed 400ms#
#Startup delayed 410ms#
#Startup delayed 420ms#
#Startup delayed 430ms#
#Startup delayed 440ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 450ms#
calibration_main over
flash txpwr table:0xf
dif g and n20 ID in flash:4
dif g and n40 ID in flash:4
read txpwr tab from flash success
temp in flash is:348
xtal in flash is:62
xtal_cali:62
--init_xtal = 62
[FUNC]ps_i#Startup delayed 460ms#
nlayed 460ms#
[FUNC]func_init_extended OVER!!!
start_type:0
Version:
Initializing TCP/IP stack
#Startup delayed 470ms#
app_init finished
#Startup delayed 480ms#
#Startup delayed 490ms#
#Startup delayed 500ms#
#Startup delayed 510ms#
#Startup delayed 520ms#
#Startup delayed 530ms#
#Startup delayed 540ms#
#Startup delayed 550ms#
#Startup delayed 560ms#
#Startup delayed 570ms#
#Startup delayed 580ms#
#Startup delayed 590ms#
#Startup delayed 600ms#
#Startup delayed 610ms#
#Startup delayed 620ms#
#Startup delayed 630ms#
#Startup delayed 640ms#
#Startup delayed 650ms#
#Startup delayed 660ms#
#Startup delayed 670ms#
#Startup delayed 680ms#
#Startup delayed 690ms#
#Startup delayed 700ms#
#Startup delayed 710ms#
#Startup delayed 720ms#
#Startup delayed 730ms#
#Startup delayed 740ms#
starting....
Info:MAIN:Main_Init_Delay done
Main_Init_Delay done
Info:MAIN:Main_Init_After_Delay
Info:MAIN:###### safe mode activated - boot failures 47
Info:MAIN:Using SSID []
Info:MAIN:Using Pass []
Info:MAIN:Main_Init_After_Delay done
cal_bias!
DPLL Unlock
cal dpll!
temperature_type=2
temp_code:43 - adc_code:311 - adc_trend:[13]:348->[17]:308
Info:MAIN:[SAFE] Time 1, idle 206348/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 2, idle 141978/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 3, idle 142187/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 4, idle 142150/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 5, idle 142113/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:no flash configuration, use default
Info:MAIN:set ip info: 192.168.4.1,255.255.255.0,192.168.4.1
Info:MAIN:ssid:http://192.168.4.1/usb_smart_swit key: mode:0
hostapd_main_exiting
hostapd_exit_handler
hostapd_exit_done
Soft_AP_start
[saap]MM_RESET_REQ
[bk]tx_txdesc_flush
[saap]ME_CONFIG_REQ
[saap]ME_CHAN_CONFIG_REQ
[saap]MM_START_REQ
hapd_intf_add_vif,type:3, s:0, id:0
rw_ieee80211_get_centre_frequency:220
I just playing around with my new USB Smart switch.
I configured the long name to a very special one.
I delete the main SSID and password and reboot.
After this the device was not longer reachable.
Cause the long name would be taken as the SSID name for the access point. And this SSID would not be propagate. See attachment.
So if there any way to reset the device to the naked new without flashing the firmware again?
I give the attachment with the boot messages on tx2 from the device:
V:BK7231N_1.0.1
REG:cpsr spsr r13 r14
SVC:000000D3 00401C1C 000033AC
IRQ:000000d2 00000010 00401e0c 7fab8fff
FIR:000000d1 00000010 00401ffc fdfffffd
SYS:000000df 0040192c 00000158
ST:00000000
J 0x10000
bk_misc_init_start_type 0 0
prvHeapInit-start addr:0x414540, size:113344
[Flash]id:0xeb6015
sctrl_sta_ps_init
cset:0 0 0 0
Entering initLog()...
Commands registered!
initLog() done!
Info:MAIN:Main_Init_Before_Delay
Info:CFG:####### Boot Count 70 #######
Info:MAIN:###### safe mode activated - boot failures 47
Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 5 changes count.
Info:MAIN:Main_Init_Before_Delay done
Main_Init_Before_Delay done
Info:MAIN:Main_Init_Delay
Main_Init_Delay
delaying start
bandgap_calm_in_efuse=0x6d
[load]bandgap_calm=0x6d->0x2d,vddig=4->5
[FUNC]rwnxl_init
[bk]tx_txdesc_flu#Startup delayed 0ms#
sms#
[FUNC]intc_init
[FUNC]calibration_main
gpio_level=1,txpwr_state=15
user define rfcali mode:1
get rfcali_m#Startup delayed 10ms#
oyed 10ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 20ms#
#Startup delayed 30ms#
#Startup delayed 40ms#
#Startup delayed 50ms#
#Startup delayed 60ms#
#Startup delayed 70ms#
#Startup delayed 80ms#
#Startup delayed 90ms#
#Startup delayed 100ms#
#Startup delayed 110ms#
#Startup delayed 120ms#
#Startup delayed 130ms#
#Startup delayed 140ms#
#Startup delayed 150ms#
#Startup delayed 160ms#
#Startup delayed 170ms#
#Startup delayed 180ms#
#Startup delayed 190ms#
#Startup delayed 200ms#
#Startup delayed 210ms#
#Startup delayed 220ms#
#Startup delayed 230ms#
#Startup delayed 240ms#
#Startup delayed 250ms#
#Startup delayed 260ms#
#Startup delayed 270ms#
#Startup delayed 280ms#
#Startup delayed 290ms#
#Startup delayed 300ms#
#Startup delayed 310ms#
#Startup delayed 320ms#
#Startup delayed 330ms#
#Startup delayed 340ms#
#Startup delayed 350ms#
#Startup delayed 360ms#
#Startup delayed 370ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 380ms#
#Startup delayed 390ms#
#Startup delayed 400ms#
#Startup delayed 410ms#
#Startup delayed 420ms#
#Startup delayed 430ms#
#Startup delayed 440ms#
DPLL Unlock
DPLL Unlock
#Startup delayed 450ms#
calibration_main over
flash txpwr table:0xf
dif g and n20 ID in flash:4
dif g and n40 ID in flash:4
read txpwr tab from flash success
temp in flash is:348
xtal in flash is:62
xtal_cali:62
--init_xtal = 62
[FUNC]ps_i#Startup delayed 460ms#
nlayed 460ms#
[FUNC]func_init_extended OVER!!!
start_type:0
Version:
Initializing TCP/IP stack
#Startup delayed 470ms#
app_init finished
#Startup delayed 480ms#
#Startup delayed 490ms#
#Startup delayed 500ms#
#Startup delayed 510ms#
#Startup delayed 520ms#
#Startup delayed 530ms#
#Startup delayed 540ms#
#Startup delayed 550ms#
#Startup delayed 560ms#
#Startup delayed 570ms#
#Startup delayed 580ms#
#Startup delayed 590ms#
#Startup delayed 600ms#
#Startup delayed 610ms#
#Startup delayed 620ms#
#Startup delayed 630ms#
#Startup delayed 640ms#
#Startup delayed 650ms#
#Startup delayed 660ms#
#Startup delayed 670ms#
#Startup delayed 680ms#
#Startup delayed 690ms#
#Startup delayed 700ms#
#Startup delayed 710ms#
#Startup delayed 720ms#
#Startup delayed 730ms#
#Startup delayed 740ms#
starting....
Info:MAIN:Main_Init_Delay done
Main_Init_Delay done
Info:MAIN:Main_Init_After_Delay
Info:MAIN:###### safe mode activated - boot failures 47
Info:MAIN:Using SSID []
Info:MAIN:Using Pass []
Info:MAIN:Main_Init_After_Delay done
cal_bias!
DPLL Unlock
cal dpll!
temperature_type=2
temp_code:43 - adc_code:311 - adc_trend:[13]:348->[17]:308
Info:MAIN:[SAFE] Time 1, idle 206348/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 2, idle 141978/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 3, idle 142187/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 4, idle 142150/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 5, idle 142113/s, free 84616, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:no flash configuration, use default
Info:MAIN:set ip info: 192.168.4.1,255.255.255.0,192.168.4.1
Info:MAIN:ssid:http://192.168.4.1/usb_smart_swit key: mode:0
hostapd_main_exiting
hostapd_exit_handler
hostapd_exit_done
Soft_AP_start
[saap]MM_RESET_REQ
[bk]tx_txdesc_flush
[saap]ME_CONFIG_REQ
[saap]ME_CHAN_CONFIG_REQ
[saap]MM_START_REQ
hapd_intf_add_vif,type:3, s:0, id:0
rw_ieee80211_get_centre_frequency:220