Hey Guys,
I am struggling with a corner lamp for quite some while.
The lamp is a no-name product from a hardware store.
It has a BK7231N chipset und I managed to flash OpenBK7231N, configure the SM16703P driver for RGB and the PWM channel for White.
Additionally the IR pin for the remote controller.
BUT: When I turn off the light over night and turn it on again the next day, it always fails to boot for 5 times and goes straight into Safe Mode (AP).
Then I wait for ~5-10 minutes, power cylce the lamp again and everything works as expected: The lamp is booting normally and I can controll the LEDs via MQTT.
My flags: 8392713
My pin config:
My autoexec.bat:
I already removed all flags and autoexec.bat. Same behaviour.
Does anybody has an idea what the problem could be?
AI: Can you share details about the power supply you're using for the lamp (voltage, type, and whether it's stable or has any delay/soft start features)?
Default socket power supply (12V, 1A) part of the lamp.
AI: Do you have access to any serial logs or error messages from the device during the failed boot attempts when it enters Safe Mode? If so, could you post them here?
I am struggling with a corner lamp for quite some while.
The lamp is a no-name product from a hardware store.
It has a BK7231N chipset und I managed to flash OpenBK7231N, configure the SM16703P driver for RGB and the PWM channel for White.
Additionally the IR pin for the remote controller.
BUT: When I turn off the light over night and turn it on again the next day, it always fails to boot for 5 times and goes straight into Safe Mode (AP).
Then I wait for ~5-10 minutes, power cylce the lamp again and everything works as expected: The lamp is booting normally and I can controll the LEDs via MQTT.
My flags: 8392713
My pin config:
"pins": {
"6": "PWM;5",
"20": "IRRecv;1"
},
My autoexec.bat:
startDriver SM16703P
// number of LEDs
setChannel 6 60
// init
SM16703P_Init $CH6
// done
SM16703P_StartI already removed all flags and autoexec.bat. Same behaviour.
Does anybody has an idea what the problem could be?
AI: Can you share details about the power supply you're using for the lamp (voltage, type, and whether it's stable or has any delay/soft start features)?
Default socket power supply (12V, 1A) part of the lamp.
AI: Do you have access to any serial logs or error messages from the device during the failed boot attempts when it enters Safe Mode? If so, could you post them here?
Info:MAIN:Main_Init_Before_Delay
Info:CFG:####### Boot Count 351 #######
Info:MAIN:###### safe mode activated - boot failures 5
Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 155 changes count.
Info:MAIN:Main_Init_Before_Delay done
Info:MAIN:Main_Init_Delay
Info:MAIN:Main_Init_Delay done
Info:MAIN:Main_Init_After_Delay
Info:MAIN:###### safe mode activated - boot failures 5
Info:MAIN:Using SSID [*******]
Info:MAIN:Using Pass [*******]
Error:HTTP:Created HTTP SV thread with (stack=2048)
Info:MAIN:Main_Init_After_Delay done
Info:MAIN:[SAFE] Time 1, idle 205451/s, free 82432, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 2, idle 142318/s, free 82432, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 3, idle 142530/s, free 82432, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:[SAFE] Time 4, idle 142552/s, free 82432, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 2/38
Info:MAIN:Boot complete time reached (3 seconds)
Info:CFG:####### Set Boot Complete #######
Info:MAIN:[SAFE] Time 5, idle 136645/s, free 82432, 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:Corner-Lamp-1_OpenBK7231N key: mode:0
Info:MAIN:[SAFE] Time 6, idle 138783/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 7, idle 280279/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 8, idle 141228/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 9, idle 139295/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 10, idle 139992/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:GEN:dhcp=0 ip=0.0.0.0 gate=0.0.0.0 mask=0.0.0.0 mac=00:00:00:00:00:00
Info:GEN:sta: 0, softap: 1, b/g/n
Info:GEN:softap:ssid=Corner-Lamp-1_OpenBK7231N,channel=1,dhcp=1,cipher_type:OPEN
Info:GEN:ip=192.168.4.1,gate=192.168.4.1,mask=255.255.255.0,dns=192.168.4.1
Info:MAIN:[SAFE] Time 11, idle 138008/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 12, idle 139749/s, free 74712, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 13, idle 142458/s, free 74520, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38
Info:MAIN:[SAFE] Time 14, idle 136954/s, free 74520, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 5/38