Hi everyone,
I did extensive searches and cannot find a forum thread that addresses my problem. Apologies if I missed anything.
I have an EWT-63M smart breaker (eWeLink) that uses a BL602 IC that links to a BL0942 for power monitoring. I successfully flashed OpenBL602_1.18.249.bin on it and subsequently also OpenBL602_1.18.250_OTA.bin.xz.ota, which is the current firmware.
I managed to set up the button and LEDs; the relay I will get to. I also defined the RX and TX pins for power monitoring and when I run the command "startDriver BL0942" from the web UI, power monitoring is activated and I get valid readings.
Whenever I add this command to startup commands or into an autoexec.bat file, the device goes into a boot loop. I have tried adding a 3 s delay and defined the pin roles via the autoexec.bat for in case there is a timing issue, but with no success. (when I run my autoexec.bat via the web app as a script thread, it executes as expected).
What am I missing?
Thank you in advance!
AI: Could you please share the exact contents of your autoexec.bat or the startup commands you’re using, so we can check for any potential issues in the script or command order?
delay_s 3
SetPinRole 16 BL0937CF1
SetPinRole 7 BL0937CF
delay_ms 500
startDriver BL0942
AI: Are there any error messages, logs, or serial output available when the device enters the boot loop? If so, could you provide those details?
No details available
EDIT - I have in the meantime tried "AddEventHandler WifiState 1 startDriver BL0942" as a startup command - thereby trying to load the driver only after a successful wifi connection (i.e. a successful boot). This works to some extent, but the device becomes very unstable and unusable - struggles to connect to Wi-Fi and once connected, reboots as soon as I, for example, refresh the webserver in my browser.
I did extensive searches and cannot find a forum thread that addresses my problem. Apologies if I missed anything.
I have an EWT-63M smart breaker (eWeLink) that uses a BL602 IC that links to a BL0942 for power monitoring. I successfully flashed OpenBL602_1.18.249.bin on it and subsequently also OpenBL602_1.18.250_OTA.bin.xz.ota, which is the current firmware.
I managed to set up the button and LEDs; the relay I will get to. I also defined the RX and TX pins for power monitoring and when I run the command "startDriver BL0942" from the web UI, power monitoring is activated and I get valid readings.
Whenever I add this command to startup commands or into an autoexec.bat file, the device goes into a boot loop. I have tried adding a 3 s delay and defined the pin roles via the autoexec.bat for in case there is a timing issue, but with no success. (when I run my autoexec.bat via the web app as a script thread, it executes as expected).
What am I missing?
Thank you in advance!
AI: Could you please share the exact contents of your autoexec.bat or the startup commands you’re using, so we can check for any potential issues in the script or command order?
delay_s 3
SetPinRole 16 BL0937CF1
SetPinRole 7 BL0937CF
delay_ms 500
startDriver BL0942
AI: Are there any error messages, logs, or serial output available when the device enters the boot loop? If so, could you provide those details?
No details available
EDIT - I have in the meantime tried "AddEventHandler WifiState 1 startDriver BL0942" as a startup command - thereby trying to load the driver only after a successful wifi connection (i.e. a successful boot). This works to some extent, but the device becomes very unstable and unusable - struggles to connect to Wi-Fi and once connected, reboots as soon as I, for example, refresh the webserver in my browser.