Repository navigation
usb-restart also covers WCH CH343 USB-serial bridges - #125
Merged
Merged
Conversation
The no-UAC task now accepts the parent node of a CH343 as well as an Espressif board, still one device per run by explicit instance id. A CH343 that is gone after the restart is reported as a failure (exit 6), since it has no download mode to re-enumerate into. The installer's self-check now proves the installed script knows the CH343 rule.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mpftp usb-restartnow restarts a CH343 USB-serial bridge (USB\VID_1A86&PID_<pid>\<serial>) as well as an Espressif board, so a COM port that answers "Incorrect function" on open can be recovered without a UAC prompt.VID_(303A|1A86). Everything else is unchanged: one device per run, by explicit instance id, parent node only (no&MI_children), no wildcards.--list, the--instancehelp, the agent guide and the installer's closing hints mention CH343. The installer's self-check now also proves the installed script accepts a CH343 id.The scheduled task runs the copy in Program Files, so it picks this up only after an administrator runs
install-restart-esp-usb-task.ps1again.