-
Notifications
You must be signed in to change notification settings - Fork 2
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
BT addon upgrade - timeout too short? #3
Comments
Timeout is 15 seconds, defined here: https://github.com/asterics/Addon-Bluetooth-WebGUI/blob/main/webgui/js/communication/ATDevice.js#L206 |
👍 THX for the hint, I will have a look! |
Did you test with a longer timeout? Currently I'm sending What timeout should be sufficient? |
I think your implementation with the |
OK, I've increased it to 20s: 1db2bb8 - should already be live. Why can this take so long, whats happening in the background? In my current test it took about 5 seconds, how could it happen that it sometimes takes >15 seconds? Maybe the transmission speed is a littlebit too fast and so sometimes the upgrade fails and waiting for OTA:FIN runs into a timeout?! See the throttling code here: https://github.com/asterics/Addon-Bluetooth-WebGUI/blob/main/webgui/js/adapter/sercomm.js#L93 |
Hint: for testing purposes you can open the browser console and run |
THX! Regarding the transmission size: this could be the problem as well. |
OK, then I'll adapt this as well. However your speed is 12,8B/ms and mine is 40,96B/ms - much faster and seems to also work for most cases. So maybe we should use something like 30B/ms?! Do you know what's the limiting factor here? Edit: Ah, just realized that you're using FABIs and I'm testing with the FLipMouse. So we could simply use two different speeds for both... |
Changed BT upgrade speeds to:
Tested both several times and seemed to work. Additionally added a global variable which can be used to show the upgrade button, even if BT module version is not found or latest:
|
On some of the ~25 upgraded FABI modules with the ESP32 addon, the update didn't work as expected from the WebGUI:
BT addon update failed because: OTA:$FIN not received.
I think the problem might be a too tight timeout for receiving "OTA:$FIN". Normally, this wouldn't be the problem, but
AT SR
is sent immediately after the timeout, which might break the ESP32 update procedure.@klues I will give you that exact FABI next time.
The text was updated successfully, but these errors were encountered: