-
Notifications
You must be signed in to change notification settings - Fork 6
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
DIV-33 Update firmware via websocket command #127
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aabb427 - Browse repository at this point
Copy the full SHA aabb427View commit details -
Configuration menu - View commit details
-
Copy full SHA for 333ac8d - Browse repository at this point
Copy the full SHA 333ac8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3e331d - Browse repository at this point
Copy the full SHA c3e331dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccd94c9 - Browse repository at this point
Copy the full SHA ccd94c9View commit details -
This is a fork of grandcat/zeroconf. It is better maintained and running the discovery command seems more robust with this version.
Configuration menu - View commit details
-
Copy full SHA for 71b4137 - Browse repository at this point
Copy the full SHA 71b4137View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3f027f - Browse repository at this point
Copy the full SHA c3f027fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb1a472 - Browse repository at this point
Copy the full SHA fb1a472View commit details -
Configuration menu - View commit details
-
Copy full SHA for 262aadd - Browse repository at this point
Copy the full SHA 262aaddView commit details -
Wait 10 seconds for tcp connection teardown
Otherwise SendDFU might fail, as cancelling the connection doesn't take effect immediately.
Configuration menu - View commit details
-
Copy full SHA for 94b819a - Browse repository at this point
Copy the full SHA 94b819aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e9025a - Browse repository at this point
Copy the full SHA 0e9025aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85bc280 - Browse repository at this point
Copy the full SHA 85bc280View commit details -
Allow Discovery and GetStatus commands while updating firmware
The do not interfere with the firmware update, but can be relevant for the client.
Configuration menu - View commit details
-
Copy full SHA for a23e6c3 - Browse repository at this point
Copy the full SHA a23e6c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4201904 - Browse repository at this point
Copy the full SHA 4201904View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03b962d - Browse repository at this point
Copy the full SHA 03b962dView commit details -
Do not abort discovery when device serials don't match
The discovery function gave up immediately when it encountered a serial that didn't match the expected one, instead of continuing to look. This is problematic if there are multiple Sensos on the network.
Configuration menu - View commit details
-
Copy full SHA for bd1fa13 - Browse repository at this point
Copy the full SHA bd1fa13View commit details -
This helps simplify update logic, makes it easier to determine what mode the discovered Sensos are in, and simplifies including Sensos both in normal and bootloader mode in the discovery results sent to the client.
Configuration menu - View commit details
-
Copy full SHA for c7608d7 - Browse repository at this point
Copy the full SHA c7608d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e57f6b - Browse repository at this point
Copy the full SHA 8e57f6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38c2516 - Browse repository at this point
Copy the full SHA 38c2516View commit details -
Configuration menu - View commit details
-
Copy full SHA for 340ba57 - Browse repository at this point
Copy the full SHA 340ba57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66d2bb8 - Browse repository at this point
Copy the full SHA 66d2bb8View commit details -
Stress testing after the refactor indicates that this is sufficient.
Configuration menu - View commit details
-
Copy full SHA for b7338d8 - Browse repository at this point
Copy the full SHA b7338d8View commit details -
Switching to libp2p/zeroconf introduced a transitive dependency not compatible with older go versions.
Configuration menu - View commit details
-
Copy full SHA for 6da5b8b - Browse repository at this point
Copy the full SHA 6da5b8bView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0aac1a1 - Browse repository at this point
Copy the full SHA 0aac1a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7252777 - Browse repository at this point
Copy the full SHA 7252777View commit details -
Configuration menu - View commit details
-
Copy full SHA for c66c09c - Browse repository at this point
Copy the full SHA c66c09cView commit details -
Encapsulate state management in firmware module
Ensures privacy of state internals.
Configuration menu - View commit details
-
Copy full SHA for 22f6e33 - Browse repository at this point
Copy the full SHA 22f6e33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28fe54e - Browse repository at this point
Copy the full SHA 28fe54eView commit details
Commits on Apr 15, 2024
-
Improve clarity of firmware update message
Co-authored-by: Johannes Emerich <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ccb18c5 - Browse repository at this point
Copy the full SHA ccb18c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b806116 - Browse repository at this point
Copy the full SHA b806116View commit details -
Allow 60 seconds for mDNS discovery
Devices try waiting for an IP via DHCP for ~30 seconds before assigning themselves a link-local address, so in our typical setup they are only going to announce services around 30 seconds after the physical link is established. 60 seconds should be more than enough.
Configuration menu - View commit details
-
Copy full SHA for 8097df3 - Browse repository at this point
Copy the full SHA 8097df3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a59e24e - Browse repository at this point
Copy the full SHA a59e24eView commit details -
It should report the delay time for `attempt`, rather than `attempt+1`. `attempt` is still being reported as `attempt+1` for user-friendliness.
Configuration menu - View commit details
-
Copy full SHA for 5bb2e6d - Browse repository at this point
Copy the full SHA 5bb2e6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7349c61 - Browse repository at this point
Copy the full SHA 7349c61View commit details -
This were deleted in dividat#129, but were resurrected when merging main into this branch.
Configuration menu - View commit details
-
Copy full SHA for 5f03ddf - Browse repository at this point
Copy the full SHA 5f03ddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for b335212 - Browse repository at this point
Copy the full SHA b335212View commit details -
Increase wait time before attempting TFTP transfer
This seems to improve robustness. Background: After rebooting to bootloader mode, the Senso needs some time to start the TFTP service. Experimentation has shown that a premature a TFTP write request to the Senso can potentially cause it to enter a non-responsive state. The Senso can only be recovered from this state via power-cycling. Sometimes even re-flashing the firmware via USB may be necessary. The previous 5 second wait already mitigated the risk quite well, but during a stress test of performing back-to-back updates, the TFTP transfer failed during the ~50th run. With a 10 second timeout, over 200 back-to-back updates were performed successfully before shutting down the test script.
Configuration menu - View commit details
-
Copy full SHA for ffa7b58 - Browse repository at this point
Copy the full SHA ffa7b58View commit details
Commits on Apr 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1233e05 - Browse repository at this point
Copy the full SHA 1233e05View commit details -
Remove firmware update by fixed address
Make mDNS a requirement to run firmware updates. Reasoning: - mDNS is used by 99% of installations - The robustness of the update mechanism hinges on the insight into peer state provided by the mDNS records - We can focus our resources on making this one mechanism work well
Configuration menu - View commit details
-
Copy full SHA for 8743fda - Browse repository at this point
Copy the full SHA 8743fdaView commit details -
Communicate power cycling suggestion only when updating via CLI
Leave it up to applications on how to communicate failure.
Configuration menu - View commit details
-
Copy full SHA for cb649fc - Browse repository at this point
Copy the full SHA cb649fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0121d02 - Browse repository at this point
Copy the full SHA 0121d02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80dfde6 - Browse repository at this point
Copy the full SHA 80dfde6View commit details
Commits on Apr 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 81d9acd - Browse repository at this point
Copy the full SHA 81d9acdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad56fd2 - Browse repository at this point
Copy the full SHA ad56fd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0e4a7 - Browse repository at this point
Copy the full SHA 8e0e4a7View commit details
Commits on Apr 22, 2024
-
Refine vocabulary and punctuation of firmware update messages
Co-authored-by: Johannes Emerich <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 57b821c - Browse repository at this point
Copy the full SHA 57b821cView commit details