bryer7700-web/u-he-repro-1-firmware-utility
Tentang
U-he Repro 1 firmware maintenance utility for Windows systems
Produktivitas dan otomatisasiYang dapat Anda lakukan
- ** and Intake**: parses Intel, raw, and Motorola S-record; flags malformed records, address gaps, and overlapping segments during a dry-run pass before any I/O begins.
- ** Enumeration**: lists attached and USB endpoints with VID/PID, driver binding, and assignment, so operators can select a target explicitly rather than relying on the first available handle.
- ** **: executes ordered with per-step timeouts and expected-response matching; a mismatch halts the run and reports the failing step index.
- ** and Replay**: records raw bytes from a session to a timestamped log and replays them against a second session for comparison, useful when reproducing a reported fault without the original hardware in hand.
Pertumbuhan bintang terukur
- dalam 24 jam
- Mengumpulkan riwayat
- dalam 7 hari
- Mengumpulkan riwayat
- dalam 15 hari
- Mengumpulkan riwayat
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliU-he Repro 1 Firmware Utility is a line tool for Windows that parses and firmware images, scripts, traffic, and verifies for embedded hardware diagnostics. It targets firmware engineers and hardware testers who need repeatable, scriptable operations against connected rather than a graphical workflow. Scope is deliberately narrow: the utility handles, execution,, and, and it does not attempt provisioning, flashing orchestration, or vendor-specific protocol abstraction beyond what a script defines. Behavior depends on the configuration and supplied by the operator, so results should be validated against the target hardware before being treated as authoritative.
🔧 Requirements
- Windows 10 or Windows 11
- PowerShell 5.1 or newer (already available on Windows)
- Active network connection
- No admin rights needed
Features
Deterministic Firmware Rollback: accepts a target version identifier and restores the to a previously captured firmware image, verifying each write against a stored before commit.
** and Intake**: parses Intel, raw, and Motorola S-record; flags malformed records, address gaps, and overlapping segments during a dry-run pass before any I/O begins.
** Enumeration**: lists attached and USB endpoints with VID/PID, driver binding, and assignment, so operators can select a target explicitly rather than relying on the first available handle.
** **: executes ordered with per-step timeouts and expected-response matching; a mismatch halts the run and reports the failing step index.
** and Replay**: records raw bytes from a session to a timestamped log and replays them against a second session for comparison, useful when reproducing a reported fault without the original hardware in hand.
** **: supports CRC-16, CRC-32, and simple additive, computed over both transferred and received payloads, with results emitted per segment.
Structured Reporting: writes machine-readable output alongside a human summary; exit status reflects whether all steps completed.
Scope note: the utility targets Windows and only, assumes a direct-attached rather than a networked programmer, and does not implement vendor-specific bootloader protocols beyond the documented set. Operations requiring an elevated handle for raw access are reported as such rather than retried silently.
Usage
Invoke uherepro-cli with a bundle path and a target build identifier. The tool resolves the build through the machine-wide registry, replays the recorded, and writes a structured result.
uherepro-cli bundle "C:\Bundles\case-4821" build "..3-rc2" mode headless report "reports\case-4821.xml"
accepts and directly. Each run the trace, applies the configured script, and evaluates the assertions defined in the bundle. The output report keys results to the resolved build hash, so identical bundles verified against different manifests remain distinguishable.
Scope boundaries worth stating plainly: replay fidelity depends on the recorded environment metadata. A bundle captured under one display scaling or integrity level is not guaranteed to reproduce identically elsewhere. The tool reports divergences as they occur; it does not attempt to normalize them. requires an exclusive handle on the target, so any other process holding that will cause the run to abort before the begins.
For unattended operation, prefer -mode headless with a scheduled task inside an active user session. Session 0 services cannot attach to the target window or tree reliably. All flags and exit codes are enumerated in the adjacent sections; recipes for common sweeps follow.
Flags
The utility accepts the following flags. Argument is strict: unknown flags cause an immediate exit with code 2, and no partial writes occur when validation fails. Flags that take a path accept both drive-letter and UNC paths.
| Flag | Argument | Purpose |
|---|---|---|
- |
<path> |
Source to process. Accepts Intel or raw; format is inferred from the extension and confirmed by content sniffing. Required unless -scan is given. |
-format |
|bin|auto |
Overrides format detection. Defaults to auto. bin requires -base to be supplied so addresses are not assumed. |
-base |
<address> |
Load address for raw, in 0x-prefixed or decimal. Ignored for, which carries its own addresses. |
-out |
<path> |
Destination for the processed image. Parent directories are created if absent. If omitted, output goes to stdout only when -stdout is set. |
-stdout |
none | Writes the processed image to stdout instead of a. Mutually exclusive with -out. |
- |
<name> |
for interaction, e.g. COM3. Required for any operation that touches hardware. |
-baud |
<rate> |
baud rate. Defaults to 115200. Accepts standard rates only; nonstandard values are rejected at parse time. |
-script |
<path> |
to execute against the connected. Lines are run in order; the first failing aborts the run. |
-verify |
none||readback |
Post-write policy. compares a reported digest against the local image; `readback` reads the written region back and compares byte-for-byte. Defaults to. |
- |
crc32|sum16|none |
Algorithm used when -verify is active. Defaults to crc32. |
-timeout |
<seconds> |
Per-operation timeout. Defaults to ``. Fractional values below 0.1 are rejected. |
-retries |
<count> |
Number of retransmission attempts on timeout. Defaults to 0; each retry re-sends the full pending frame. |
-dry-run |
none | Parses, validates the script, and reports the planned operations without opening the. Useful for confirming address ranges before touching hardware. |
-scan |
none | Enumerates available and exits. Cannot be combined with any other flag. |
-log |
<path> |
Writes a structured run log to the given path. Without this flag, diagnostics go to stderr only. |
-quiet |
none | Suppresses progress output on stderr. Errors and the final summary are still printed. |
-version |
none | Prints the utility version and exits with code 0. |
-help |
none | Prints usage text and exits with code 0. |
Example invocation:
uhe-repro1-fw - firmware. - COM3 baud 115200 script flash.cmd verify readback timeout 30 log run.log
Scope notes:
- The utility does not alter fuses, bootloaders, or protected regions. Writes that fall outside the address ranges reported by the connected are refused rather than attempted.
-scriptis a linear list, not a general-purpose language. There are no conditionals, loops, or variable substitution. If a workflow needs branching, drive the utility from an external harness and inspect exit codes.-verify readbackdoubles the traffic for the written region and can exceed the default timeout on large images; raise-timeoutaccordingly.- depends on the firmware reporting a digest over the same region and algorithm. Where the offers no digest, the utility falls back to
readbackand logs the substitution. - without
-baseis treated as an error rather than defaulting to address zero, since an incorrect base silently writes to the wrong region.
Exit codes
The utility returns the following exit codes. Codes are stable across releases; scripts may rely on them.
| Exit Code | Meaning |
|---|---|
0 |
Operation completed successfully. The requested action finished and all emitted matched expectations. |
1 |
General runtime failure. The utility encountered an unrecoverable error not covered by a more specific code. |
2 |
Invalid line arguments. An unknown flag, missing required value, or malformed was supplied. |
3 |
unavailable or unreadable. The specified,, or script does not exist or cannot be opened. |
4 |
Parse error in data. The or failed structural validation, such as a malformed record or truncated block. |
5 |
mismatch. The computed does not match the value declared in the or expected by the caller. |
6 |
unavailable. The requested could not be opened, is in use, or was disconnected during the run. |
7 |
Script execution aborted. A halted early due to a failing step or an explicit abort directive. |
8 |
Timeout. The operation exceeded the configured wait period before completing. |
Exit codes are reported as the process return value and, when -quiet is not set, summarized on the final console line. On Windows, codes above 255 are not used, so all values remain portable to batch and PowerShell scripts.
The mapping above covers documented failure modes only. Unexpected conditions, such as operating-system-level faults or hardware driver errors surfaced by the platform, may terminate the process with a platform-assigned code outside this table. Callers should treat any nonzero value not listed here as an unmapped failure rather than assuming a specific cause.
Recipes
The following invocations assume uhefirmware-cli is on PATH and that a adapter is attached to the target. All examples are reproducible from a stock Windows / host without additional runtime dependencies. Paths use Windows conventions; substitute your own bundle and identifiers where noted.
Validate a firmware image before flashing
Parses a or raw image, reports the detected record format, address span, and status without touching the.
uhefirmware-cli validate - "firmware\repro1-v1.2." format auto report "reports\validate-v1.2.json"
Exit code 0 indicates the image parsed cleanly and every record matched. Exit code 2 indicates a malformed record or an address gap; the report names the offending line.
Flash a over a specified
Writes a validated image to the target, verifies the write by read-back, and emits a machine-readable result.
uhefirmware-cli flash - "firmware\repro1-v1.2." - COM4 baud 115200 verify report "reports\flash-v1.2.xml"
The -verify flag forces a read-back comparison after the write completes. Omit it only when the target cannot be read; the tool does not infer from a successful write alone.
a session for later replay
Records the raw byte stream, timestamps, and settings into a bundle. are replayable against a in the same state.
uhefirmware-cli - COM4 baud 115200 duration 30 output "\boot-"
Duration is a hard upper bound in seconds. The stops early if the closes the. The resulting directory contains a manifest and the raw stream; it can be passed to replay or diffed against another.
Replay a captured session against a candidate firmware
Feeds a recorded to the and compares the observed responses against the recorded trace.
uhefirmware-cli replay - "\boot-" - COM4 strictness tolerant report "reports\replay-boot.xml"
tolerant ignores response timing deltas under 250 ms; use exact when the firmware under test must match the original timing profile. Divergence at the first response typically indicates a protocol or baud mismatch rather than a firmware regression.
Diff two firmware images
Compares two or images without a attached and produces a per-region change summary.
uhefirmware-cli diff base "firmware\repro1-v1.1." candidate "firmware\repro1-v1.2." report "reports\diff-v1.1-v1.2.json"
The report lists added, removed, and modified address ranges. The tool does not interpret the meaning of a change; it reports byte-level differences only.
Run a from a script
Executes a newline-delimited script against the, sending each line and optionally asserting on the response.
uhefirmware-cli script - "scripts\self-test.txt" - COM4 baud 115200 assert-responses timeout 5
Each script line may carry an expected response prefix using the format documented under Flags. -assert-responses turns mismatches into a nonzero exit; without it, responses are logged but not evaluated.
Verify a region
Reads a specified address range from the and compares it against the recorded in an image manifest.
uhefirmware-cli - COM4 region 0x08000000:0x08010000 expect "manifests\repro1-v1.2.sha256"
The region syntax is start:end in hexadecimal. A mismatch exits 1 and prints both computed and expected digests.
Emit a quiet summary for unattended runs
Suppresses per-record console output and prints only the terminal status line, suitable for scheduled tasks or log aggregation.
uhefirmware-cli flash - "firmware\repro1-v1.2." - COM4 verify quiet
The exit code remains authoritative under -quiet. Do not parse the summary line for machine decisions; use -report for structured output.
Scope note: these recipes cover the operations the utility performs directly. They do not describe recovery from a left in an inconsistent state by an interrupted flash; that procedure depends on the target hardware and is outside this tool's scope.
FAQ
Does the utility modify firmware on disk or in memory?
It operates on the you pass it. and are parsed and written to the paths you specify; no default destination is assumed and no backup copy is created unless you request one. Verify your source are under version control before running any write operation.
Which formats are accepted?
Intel and raw are the supported, with applied to records. Other container formats, including vendor-specific packages and encrypted images, fall outside the current scope and are rejected at parse time rather than silently coerced.
Can be scripted without interactive prompts?
Yes. Scripted and flag-driven invocations are the intended non-interactive path. Interactive confirmation exists only for destructive write operations and can be suppressed per run; review exit codes to confirm completion rather than console output.
Does the utility work without a connected?
,, and format conversion run entirely offline against the provided. Anything requiring a live, including and side, needs an attached and an available; runs in that mode fail fast when no can be opened.
What happens when fails?
The run aborts and reports the offending record before any write proceeds. Partial output is not committed, so a failed leaves your target untouched. Re-check the source image and the declared record lengths before retrying.
Is the tool usable without a paid license?
The utility is provided at no cost for personal and internal evaluation, with source available for inspection. There is no entitlement server, no account requirement, and no telemetry. Redistribution terms are governed by the bundled license; review it before shipping the utility inside a commercial product.
How are unsupported or malformed records handled?
Malformed records are reported with their line offset and rejected. The parser does not attempt repair or guesswork. If a vendor image uses non-standard extensions, the utility will report them as unsupported rather than producing partial output that could be mistaken for a complete conversion.
Which firmware and revisions are known to work?
Scope is deliberately narrow: Windows and, standard, and Intel or raw. specific vocabularies vary by firmware revision and are not enumerated here. Validate your target revision with a read-only probe before relying on any write.
Jelajahi proyek terkait
Memuat…

