4 thoughts on “Script startup execution delay problem”
Hi,
I’m experiencing some difficulties with the startup delay before script starts executing. I’ve tried to use #STARTMODESCR=1,10 and #STARTMODESCR=0. It takes about 50 seconds before the script starts. I’ve used #STARTMODESCR=1,10 for GM862-GPS and it starts fine.
I have a script called main.py with content:
import GPIO
GPIO.setIOdir(17, 1, 1)
As soon as the script starts executing the pin rises. This takes unusually long (50sec) compared to GM862-GPS.
Any ideas what could cause this?
Hi Markus,
What module and firmware?
Are you using pre-compiled scripts? Please describe the structure of your application files.
Does the delay appear at each startup or only first time after app files upload?
Can you provide a small example which shows such a considerable startup difference?
Thanks for quick reply,
It turns out that my main.py was actually the problem. Got it to drop at 30sec, which is around same as with GM862-GPS.
My debug class with four lines was too much 🙂 Fixed it by making startmain.py script, which only imports main.py (which is precompiled to pyo-file using PC).
Thanks for the update Markus, good you sorted out.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi,
I’m experiencing some difficulties with the startup delay before script starts executing. I’ve tried to use #STARTMODESCR=1,10 and #STARTMODESCR=0. It takes about 50 seconds before the script starts. I’ve used #STARTMODESCR=1,10 for GM862-GPS and it starts fine.
I have a script called main.py with content:
import GPIO
GPIO.setIOdir(17, 1, 1)
As soon as the script starts executing the pin rises. This takes unusually long (50sec) compared to GM862-GPS.
Any ideas what could cause this?
Hi Markus,
What module and firmware?
Are you using pre-compiled scripts? Please describe the structure of your application files.
Does the delay appear at each startup or only first time after app files upload?
Can you provide a small example which shows such a considerable startup difference?
Thanks for quick reply,
It turns out that my main.py was actually the problem. Got it to drop at 30sec, which is around same as with GM862-GPS.
My debug class with four lines was too much 🙂 Fixed it by making startmain.py script, which only imports main.py (which is precompiled to pyo-file using PC).
Thanks for the update Markus, good you sorted out.