Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bl602 - Problems with saving, editing and executing scripts #1220

Open
delay0 opened this issue May 8, 2024 · 2 comments
Open

bl602 - Problems with saving, editing and executing scripts #1220

delay0 opened this issue May 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@delay0
Copy link

delay0 commented May 8, 2024

I'm starting to feel sorry for throwing so much into this, but this is something I've been dealing with for days. My English is not good but I'll try to explain.

In the file editor, something isn't working properly when saving, loading/executing.

Processes:
-Start controller
-Open file
-click "save and run"

sometimes the file is started, sometimes not. Clicking multiple times shows in the log that it is not working properly. after a few clicks the file will be executed. I can't tell whether it has something to do with time or the number of clicks, or whether it happens completely randomly and always differently.

-click "reset scripts"
sometimes helps.

Now (or directly after opening the file) I change the file.

-click "save and run"

Sometimes the file is executed, sometimes not. see above.
When executed, the old file version is used, not the newly saved one.

-click "reset scripts"

sometimes helps, sometimes not. see above.

last chance now...
-click the other button "save, reset (...) and run..."

Result: the controller restarts completely, the script is not executed.
I tried to temporarily fix the problem with a resetSVM at the end of the script. but even that only seems to help sometimes.

Additionally:
I once had files disappear and old ones come back. (files created and deleted within one session.).

And finally... edited file could not be saved. I had to delete them and recreate them.

The last two problems have only occurred once so far

V1.17.571 released and last builds eg. TMGN on beken #1218
"vendor": "Tuya",
"name": "Surplife APP RGB+WW+CW bulb WiFi+BLE E27",
"chip": "BL602",
"board": "BL-M5 V1.2"

@openshwprojects openshwprojects added the bug Something isn't working label May 9, 2024
@giedriuslt
Copy link
Contributor

Cannot reproduce the issue with sometimes script is started, but I see that after save old version is run. Will try to fix

@giedriuslt
Copy link
Contributor

Did some investigation.
Save, Run.. always run original version, that's the same on all platforms
Reset scripts - does not work due to bug, fix waiting here OpenBekenIOT/webapp#111
Save, Reset and run crashes bl602 chip, fix is waiting here #1226

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants