[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110340":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":44,"updatedAt":45,"readmeContent":46,"aiSummary":47,"trendingCount":15,"starSnapshotCount":15,"syncStatus":18,"lastSyncTime":48,"discoverSource":49},110340,"kws-x1-standalone-rs","kralonur\u002Fkws-x1-standalone-rs","kralonur","Open source Rust firmware for the KWS-X1 and UT01C USB-C meters. Live power, Ah\u002FWh, graphs, ripple, USB PD (EPR included), fixed\u002FPPS\u002FAVS triggers up to 28\u002F30 V, QC 2.0\u002F3.0, AFC, SCP\u002FFCP, cable e-markers, a 5 A test, PD sniffing and calibration. No vendor firmware needed.",null,"Rust",71,7,1,3,0,6,19,2,47.61,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"afc","custom-firmware","embassy","embedded-rust","fcp","fusb302","hc32f460","kws-x1","no-std","pd-trigger","power-meter","pps","quick-charge","rust","scp","usb-c","usb-pd","usb-tester","ut01c","2026-11-20 16:13:33","2026-11-23 14:20:55","# kws-x1-standalone-rs\n\nOpen Rust firmware for the **KOWSI KWS-X1** USB-C power meter. It replaces the\nmeter's application and keeps the original bootloader, which flashes it over\nUSB (see [Flashing](#flashing)). The meter is built around an HC32F460 MCU and\na FUSB302B Type-C\u002FPD controller. Its power monitor, tilt sensor and display\ncontroller behave as an INA226, a LIS3DH and an ST7789V, and the firmware\ndrives them as such; those three parts are inferred, not confirmed (see\n[Hardware reference documents](#hardware-reference-documents)). This project\nis not affiliated with or endorsed by KOWSI.\n\nThe **UT01C** has also been confirmed working by\n[@paulcarroty](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fkws-x1-standalone-rs\u002Fissues\u002F20).\nA [teardown comparison by @tomoca2 (Japanese)](https:\u002F\u002Ftomoca2.hatenablog.com\u002Fentry\u002F2026\u002F04\u002F04\u002F172251)\nfound the same PCB revision and components in both units examined. This is\ncommunity-tested compatibility, not a guarantee for every hardware revision.\n\n> **Disclaimer.** This is unofficial firmware, provided as is, without warranty\n> of any kind. Flashing it, and using the meter with it, is entirely at your\n> own risk. The author is not responsible for any damage to the meter, to\n> chargers, cables or connected devices, or for any other loss. Sink mode can\n> put up to the charger's highest voltage on the meter's output.\n\n## Contents\n\n- [Download or build](#download-or-build)\n- [Related repositories](#related-repositories)\n- [Features](#features)\n- [Limitations](#limitations)\n- [Using the meter](#using-the-meter)\n  - [Buttons](#buttons)\n  - [Modes: sink or passthrough](#modes-sink-or-passthrough)\n  - [Ways to connect](#ways-to-connect)\n  - [Pages](#pages)\n  - [What is saved](#what-is-saved)\n- [Screens](#screens)\n  - [Sink mode](#sink-mode)\n  - [Passthrough mode](#passthrough-mode)\n- [SCP](#scp)\n- [FCP](#fcp)\n- [AFC](#afc)\n- [Quick Charge](#quick-charge)\n- [Full charger offer and 5 A without a cable](#full-charger-offer-and-5-a-without-a-cable)\n- [Hand-test checklist](#hand-test-checklist)\n- [Safety](#safety)\n- [Layout](#layout)\n- [Hardware reference documents](#hardware-reference-documents)\n- [Build and validation](#build-and-validation)\n  - [Package and audit offline](#package-and-audit-offline)\n  - [Firmware builds and release downloads](#firmware-builds-and-release-downloads)\n  - [Flashing](#flashing)\n  - [Going back to stock](#going-back-to-stock)\n- [Community reviews](#community-reviews)\n- [License](#license)\n\n## Download or build\n\nYou do not need to compile the firmware yourself. Download `firmware.X1C` and\n`SHA256SUMS` from a published **`firmware-v*` release**, and download the flasher\nfor your OS from a **`flasher-v*` release**, both on\n[GitHub Releases](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fkws-x1-standalone-rs\u002Freleases).\nVerify the checksums and follow [Flashing](#flashing). Downloaded firmware and\nflasher binaries need **no Rust or Python installation**.\n\nPrefer to compile it yourself? Follow [Build and validation](#build-and-validation)\nand [Package and audit offline](#package-and-audit-offline). If no firmware release\nis published yet, the [firmware workflow](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fkws-x1-standalone-rs\u002Factions\u002Fworkflows\u002Ffirmware.yml)\nprovides build artifacts for signed-in GitHub users; these are development builds,\nnot published releases.\n\n## Related repositories\n\nThese repositories form one firmware project. The firmware pins each library\nby full Git revision, and every library is usable on its own.\n\n| Repository | Contents |\n| ---------- | -------- |\n| [kws-x1-standalone-rs](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fkws-x1-standalone-rs) | firmware for a USB-C power meter, built on the libraries below |\n| [hc32f460-embassy-rs](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fhc32f460-embassy-rs) | `hc32f460-pac` and `embassy-hc32`: peripheral access crate and Embassy HAL for the HC32F460 MCU |\n| [embedded-charging-protocols-rs](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fembedded-charging-protocols-rs) | `pd-protocol`, `qc-protocol` and `single-wire-protocols`: allocation-free, `no_std`, hardware-independent USB PD sink engine, Quick Charge, and SCP, FCP and Samsung AFC |\n| [usbpd](https:\u002F\u002Fgithub.com\u002Fkralonur\u002Fusbpd) | fork of [elagil\u002Fusbpd](https:\u002F\u002Fgithub.com\u002Felagil\u002Fusbpd): the `usbpd` policy engine and the `usbpd-traits` PHY interface |\n\nThis is **kws-x1-standalone-rs**.\n\n### Adapting it to other hardware\n\n- **Another HC32F460 board:** use `hc32f460-embassy-rs` as it is, and take pin\n  setup, clocks and the task layout from `firmware\u002Fsrc\u002Fmain.rs`.\n- **Another MCU with a FUSB302:** `fusb302-pd` depends only on\n  `embedded-hal-async` I2C, `pd-protocol` and `usbpd-traits`. Implement its\n  `Platform` trait (power-on register baseline, measure setting, limits,\n  timeouts) and the gated bus for your board.\n- **Another PD controller:** implement `usbpd-traits` for it and drive\n  `pd-protocol` as `fusb302-pd` does.\n- **Board-specific and not portable as is:** the panel setup, the flash\n  layout, the bootloader image format and the `firmware-pack` validation policy.\n\n## Features\n\n- Voltage, current and power in either direction, with peaks and a flow\n  direction indicator.\n- D+, D-, CC1 and CC2 line voltages.\n- USB PD sink: fixed profiles up to 20 V (28 V over EPR), PPS, SPR AVS\n  (9-20 V) and EPR AVS (15-30 V), chosen on the meter.\n- Quick Charge trigger: 5, 9, 12 or 20 V over D+\u002FD−, or\n  Quick Charge 3.0 0.2 V steps from 3.6 V, checked against VBUS, and a probe\n  that reports Quick Charge 2.0 or 3.0 and Class A or B. On USB-C the meter\n  switches the charger out of PD for it by itself.\n- SCP: checked adapter-type and rating register reads, retained\n  Charger-info results, and an explicit SCP page that can set the output\n  voltage and current limit within the charger's reported ratings.\n- FCP: the voltages the charger lists (such as 5.2, 9 and 12 V) and its rated\n  power, retained Charger-info results, and an explicit FCP page that\n  requests one of them.\n- Samsung AFC: identification by a 5 V request, retained Charger-info\n  results, and an explicit AFC page that requests 5 or 9 V.\n- A full charger scan (hold OK on the charger page): Quick Charge, SCP, FCP, AFC, the PD\n  offer, the EPR offer and, with the plug in the charger, the 5 A offer, on\n  one page.\n- Everything the charger says about itself: its full offer (EPR included),\n  identity, ratings and status, and for a battery-powered source (a power\n  bank, or a phone powering the meter) its battery's capacity and charge.\n- Cable e-marker reading, and a 5 A cable test for the meter's plug.\n- Passthrough mode: listens to the PD messages between a charger and a device\n  without taking part.\n- Brightness and auto-rotation, saved to flash.\n- Charge (Ah), energy (Wh) and the time since the last reset, counted\n  whichever page shows, and optionally kept across restarts (energy memory:\n  Off, 5s, 10s, 30s or 60s).\n- A power, voltage or current graph over the last 1, 2, 5 or 10 minutes.\n\n## Limitations\n\nWhat this firmware does **not** do, for now:\n\n- **No SCP authentication.** SCP, FCP and AFC output control is only an\n  explicit request on their pages, never automatic.\n  Other protocols are not triggered. Beyond PD, QC and verified\n  SCP detection, the overview names the Type-C current\n  advertisement, the fixed D+\u002FD- voltages some ports use to tell their\n  current (`DIVIDER`, `1.2V DCP`) and the BC1.2 short once the Quick Charge\n  test found it; a BC1.2 port looks like a plain USB port until then.\n- **EPR is limited to 30 V, and EPR AVS is untested.** Fixed 28 V works\n  with a real EPR cable and was tested on hardware. EPR AVS up to 30 V can be\n  selected the same way but has not been tried on a charger. Fixed 36\u002F48 V\n  remain informational only. The fake marker remains 20 V\u002Fnon-EPR.\n- **Sink only.** The meter never acts as a source: no power role swap, no\n  data role swap, no VCONN swap, no Cable_Reset.\n- **Passthrough only listens.** It cannot change or inject anything between\n  the charger and the device, and stops listening for good after a Hard Reset,\n  a receive overflow or a malformed frame (until the next power-up).\n- **Cable reading runs at fixed 5 V, needs a PD 3.0 charger and the right\n  orientation.** Above 5 V, hold OK drops to 5 V first. VCONN reaches only one\n  CC pin, so a cable on the other side reads `TURN CABLE OVER`.\n- **The 5 A cable test is non-standard**, and works only with the meter's plug\n  straight in the charger. See\n  [Full charger offer and 5 A without a cable](#full-charger-offer-and-5-a-without-a-cable).\n- **No logging or export.** The graph keeps ten minutes in RAM only and is\n  lost on restart; only energy totals can persist (see\n  [What is saved](#what-is-saved)). There is no USB data connection to a\n  computer or app.\n- **Line voltages and ripple are not user-calibrated.** Settings calibration\n  corrects bus voltage and current, not these separate ADC inputs.\n  The line voltages use an internal reference of 1083 mV, the stock\n  firmware's value, rather than the reference manual's \"about 1.1 V\"\n  (1100 mV, RM 16.3.2). A multimeter check on one unit matched it (D+ and D−\n  within 5 mV from 0.55 to 3.23 V), but the manual gives no tolerance, so\n  another unit may read a few percent off. CC1 and CC2 were not checked.\n- **The meter's own CC pull-down acts stronger than standard.** In sink\n  mode the CC pin in use sits at a bit over half the usual voltage: 0.92 V\n  instead of 1.68 V on a 3 A charger, as if the pull-down were about 2.9 kΩ\n  instead of 5.1 kΩ. Why is not known yet: a multimeter on the unused CC pin\n  reads 4.2 kΩ, and still 6.4 kΩ with the pull-down switched off, which does\n  not explain the voltage. The chargers tried so far work with it. The\n  overview's `TYPE-C` current corrects for it; the PD chip's own level\n  reading does not, so the startup `CC1`\u002F`CC2` status reads one level low\n  (see [PD Session](#14-pd-session)). Passthrough is not affected. How the\n  value was found:\n  - A USB-A port with an A-to-C cable pulls CC up to VBUS through a fixed\n    56 kΩ resistor, so a pull-down R gives CC = VBUS × R \u002F (56 kΩ + R). On\n    the same port and cable, a phone's standard 5.1 kΩ read 0.46 V\n    (passthrough) and the meter's own pull-down 0.27 V (sink mode). VBUS\n    cancels out in the ratio: 0.27 \u002F 0.46 = [R \u002F (56 kΩ + R)] \u002F [5.1 kΩ \u002F\n    61.1 kΩ], so R ≈ 2.9 kΩ.\n  - Cross-check: six 3 A sources read 0.90–0.93 V on two meters and\n    1.66–1.70 V on a tester with a 5.1 kΩ pull-down. With a current-source\n    pull-up (330 µA for 3 A), CC = 330 µA × R, so R ≈ 5.1 kΩ × 0.92 \u002F 1.68 ≈\n    2.8 kΩ.\n- **The chosen profile is not remembered:** every boot starts at 5 V.\n- **About 4000 settings saves** in the device's lifetime (see\n  [What is saved](#what-is-saved)).\n- **Not certified.** Compiling and hand-testing are not USB-IF or safety\n  qualification.\n\n## Using the meter\n\n### Buttons\n\n| Button | Short press | Hold |\n| ------ | ----------- | ---- |\n| Left \u002F Right | previous \u002F next group, or tab once in a group's tabs; on a framed value, change it; while scrolling, scroll | held, repeats wherever it changes a value or scrolls; moving between groups and tabs stays one step per press |\n| OK | go into the group's tabs; on a tab, select, confirm, scroll or start (see each page) | 0.5 s: page action (cable query, full charger scan); on Overview, Energy and Graph, a fill sweeps left to right and resets the page once full (about 1 s); let go earlier to cancel |\n| Back | up one level: cancel the edit or scroll, leave the tabs; from a group, back to the overview; on the overview, open the settings | – |\n\nThe pages sit in three groups: **Monitor** (Overview, Lines, Energy, Graph, Ripple), **Trigger**\n(PD Profiles, PPS, AVS, QC 2.0, QC 3.0, SCP, FCP, AFC) and **Info** (PD Session, Charger, Cable,\nSystem). The header shows the group's tabs as a strip, each in a colour no\nother tab in its group has; a protocol family (PD, PPS and AVS; QC 2.0 and\nQC 3.0; SCP and FCP) shares a hue in different tones, AFC has a blue of its\nown, and the protocol's\ncards and overview badge use too. The shown tab is named, the others fold to\nthin bars. A dot per group sits on the right. The shown tab marks what\nLeft\u002FRight move: a bar beside its name and lit dots for groups (the hint row\nreads `\u003C > groups  OK tabs`), an underline for tabs, and a filled tab once the\npage itself has them (choosing, editing or scrolling). A group comes back on\nthe tab it last showed.\n\nWherever a voltage, current or power has its own card or trace, it is\nyellow, cyan or green on every page; charge (Ah) is cyan and energy (Wh)\ngreen. Two exceptions: Lines gives each line its own colour, and the voltage\nlists (PD Profiles, QC 2.0, FCP, AFC) colour each voltage from cool to warm.\n\nHolding **Back** and **OK** while plugging into a computer starts the\nbootloader instead (see [Flashing](#flashing)).\n\n### Modes: sink or passthrough\n\nThe slider is read once at power-up. To change mode, move it and plug the\nmeter in again.\n\n- **Sink** (`PC13:0 SINK MODE` on the PD session page). The meter is the PD\n  sink: it negotiates with the charger itself, starting at 5 V, and you pick a\n  fixed, PPS or AVS voltage. **Whatever is plugged into the other side gets that\n  voltage**, so only raise it for a device or load that accepts it.\n- **Passthrough** (`PC13:1 PASSTHROUGH`). The meter turns its own CC\n  pull-downs off and sits between a charger and a device, which negotiate with\n  each other as through a plain cable. The meter measures and logs their PD\n  messages; it never sends, never acknowledges and never resets. Available\n  tabs are Overview, Lines, Energy, Graph and Ripple in Monitor, and PD Sniff\n  and System in Info. Settings remain available; the Trigger group is hidden.\n\n### Ways to connect\n\n- **Plug straight into a charger** (sink). The charger shows Rp on both CC\n  pins, so the meter knows nothing is in between. The charger caps the offer\n  at 3 A because no cable vouches for more; the charger page's full scan ends\n  in the [5 A cable test](#full-charger-offer-and-5-a-without-a-cable) to see\n  the full offer.\n- **Through a cable** (sink). The charger on either side, through a cable. A\n  5 A cable answers the charger itself, so the offer is already the full one.\n  The cable page can read the cable's e-marker.\n- **Between a charger and a device** (passthrough). The overview shows the\n  power flowing, and the PD session page lists their messages.\n- **A port without PD** (computer USB-A, or Type-C without PD). The meter\n  measures at 5 V; the PD session page reports no capabilities, and the\n  PD Profiles page shows `NO PD CHARGER`.\n\nCurrent is shown as a magnitude; chevrons in the overview's protocol strip\npoint the way it flows (they follow the screen rotation).\n\n### Pages\n\n| Page | Shows | Buttons |\n| ---- | ----- | ------- |\n| **Overview** | voltage, current, power; the highest of each since boot while a live page shows (`MAX`); protocol (`USB`, `TYPE-C`, `PD 2.0`, `PD 3.0`, `PPS`, `AVS`, `QC 2.0`, `QC 3.0`, `FCP`, `FCP\u002FSCP`, `SCP`, `AFC`, `DIVIDER`, `1.2V DCP`, `BC1.2`) with the CC pin and contract; flow chevrons; a heartbeat dot | hold OK: reset `MAX`; Back: settings |\n| **Lines** | D+, D-, CC1 and CC2 voltages | |\n| **Energy** | charge (Ah), energy (Wh) and the time since the last reset; how the totals are kept | hold OK: reset the totals |\n| **Graph** | power, voltage or current over the last 1, 2, 5 or 10 minutes; the latest second's and the window's highest voltage, current and power | OK, Left\u002FRight choose power, voltage or current, OK, Left\u002FRight change the window, OK done; Back closes; hold OK: clear the graph |\n| **Ripple** | bus ripple waveform, smoothed peak-to-peak voltage, mean-removed RMS and nominal time per division | OK focuses the time per division; OK moves to the vertical scale, then run\u002Fhold; Left\u002FRight change the one in `\u003C >`; hold OK: restore the defaults; Back exits |\n| **PD Profiles** | the charger's fixed profiles, `ACTIVE` on the one in force; with PD off for QC\u002FSCP only `LEGACY MODE` | OK, Left\u002FRight to choose, OK requests it, Back cancels; in `LEGACY MODE` OK switches back to PD |\n| **PPS** | the charger's PPS ranges, the set voltage and current limit, the live output; `ACTIVE` or `NOT APPLIED`; with PD off for QC\u002FSCP only `LEGACY MODE` | OK, Left\u002FRight voltage (20 mV, 100 mV held), OK, current limit (50 mA, 250 mA held), OK requests; in `LEGACY MODE` OK switches back to PD |\n| **AVS** | the charger's SPR AVS ranges, the set voltage and the current the meter asks for at it, the live output; `ACTIVE` or `NOT APPLIED`; with PD off for QC\u002FSCP only `LEGACY MODE` | OK, Left\u002FRight voltage (100 mV, 500 mV held), OK requests; in `LEGACY MODE` OK switches back to PD |\n| **QC 2.0** | 5, 9, 12 and 20 V and `OFF`, the voltages the charger ignored greyed out, the status on its row; under a PD contract only `PD MODE` | OK tests the charger, then opens at 5 V with the choice open (under a PD contract it first switches the charger out of PD); Left\u002FRight choose, OK requests and closes the choice, Back closes it; the request stays in force on other screens until `OFF` |\n| **QC 3.0** | the step range, the set voltage, VBUS, D+ and D−; under a PD contract only `PD MODE` | OK tests the charger, then starts continuous mode at 5 V (under a PD contract it first switches the charger out of PD); Left\u002FRight move it by 0.2 V (repeats held); OK or Back closes it; the steps stay in force on other screens until `OFF` on QC 2.0 |\n| **SCP** | identification, then the set voltage and current limit, the live output; `ACTIVE`, `SETTING`, `STOPPING` or `FAILED` | OK tests adapter-type registers; after a detection with ratings, OK, Left\u002FRight voltage (20 mV, 100 mV held), OK, current limit (50 mA, 250 mA held), OK applies; Back cancels an edit, then leaves the page with the output still in force; hold OK: stop the output, or rescan when none runs; PD must stop first |\n| **FCP** | identification, then the voltages the charger lists and `OFF`, the status on the requested row (`WAIT`, `SETTING`, `ACTIVE`, `STOPPING`); under a PD contract only `PD MODE` | OK tests the charger, then opens the choice at the voltage in force, else the first; Left\u002FRight choose, OK requests and closes the choice, Back closes it; the request stays in force on other screens until `OFF`; hold OK: stop the output, or rescan when none runs; PD must stop first |\n| **AFC** | identification, then 5 V, 9 V and `OFF`, the status on the requested row; under a PD contract only `PD MODE` | as FCP |\n| **PD Session** | sink: session state, CC levels, the source's offer and the port check (a dual-role device's sink PDOs and identity). Passthrough: CC pin, Rp level and the latest PD messages | OK to scroll; hold OK: port check (drops to fixed 5 V first, PD 3.0 only) |\n| **Charger** | the offer (`*` = needs a 5 A cable), the charger's identity, maker and peak ratings, power status and source info, the battery of a power bank or a phone powering the meter, QC, SCP, FCP and AFC results | OK to scroll; hold OK: full scan (Quick Charge, SCP, FCP and AFC identification, PD, EPR, and the 5 A cable test with the plug in the charger) |\n| **Cable** | the cable's e-marker: a readable summary (type, speed, rating, length, alt modes, maker), identity, ratings, status and modes | OK to scroll; hold OK to read the e-marker (drops to fixed 5 V first) |\n| **System** | serial number, firmware version, estimated meter temperature, I2C bus state and counters, frame and button timing, stack use, `LAST RESET:` cause | OK to scroll |\n| **Settings** | `BRIGHTNESS` (5 levels, 60% at first), `ROTATION` (`AUTO` follows the tilt sensor, `NORMAL`, `FLIPPED`), `ENERGY MEMORY`, `TIMER` and `CALIBRATION` | Left\u002FRight row, OK change it, Left\u002FRight value, OK or Back done |\n\nThe selector pages only show the offer until a sink session has one. A\nprofile is requested only after the final OK; Left\u002FRight alone just preview.\n\nThe heartbeat dot blinks while the meter runs. **Red means the sensor bus is\nclosed**: readings stop (`--.--`), and the System page says why. That happens\nafter a bus error, or after a failed PD session left the PD controller in an\nunknown state. A port without PD does not close it.\n\n### What is saved\n\nBrightness, rotation, the energy-memory interval, timer mode and calibration\nare saved to flash once you finish changing them, and come back at the next\npower-up, as does the mode the meter restarts the\ncharger into (full scan, cable test, Quick Charge). The chosen profile is not:\nevery boot starts at 5 V. `MAX` values live until reset or power-off.\n\nSaving appends an 8-byte record to the meter's original settings area and\nnever erases settings sectors. Each 8 KiB sector holds 1023 records; up to four\nare available for new settings\u002Flog allocations (about 4000 settings saves without\ndiagnostic logs). A calibration takes three records of its own, and a sector\nnewly taken into use starts with them. Older builds skip these records, so\ngoing back to one keeps the other settings. Existing records from older builds are still read. After this\narea fills, settings keep working until power-off but are no longer saved.\n\n**Energy memory** defaults to **Off**: Ah\u002FWh and the time reset at every restart and no totals\nare written. Choose **5s, 10s, 30s or 60s** to restore the latest checkpoint and\ncontinue counting across restarts. Checkpoints are attempted at every interval.\nChanging an enabled interval or enabling memory also checkpoints current totals;\nresetting on the Energy screen clears\nthe counters and the time and checkpoints the reset when memory is enabled.\nCheckpoints from earlier builds, which kept no time, are carried over once at\nboot with the time at zero.\nTurning memory off leaves current totals on screen, but the next boot starts at\nzero. Re-enabling it uses the current run, not an old checkpoint.\n\nEnergy uses a separate rotating two-sector journal, spreading erase wear and\nkeeping the previous complete checkpoint during rollover. Power loss can lose\nusage since the last successful save; interrupted writes are ignored on boot.\nOn boot, before protocol tasks start, the firmware automatically migrates old\nproject diagnostic logs found in the reserved energy pair (`0x78000`, `0x7a000`).\nIt discards only those logs, commits migration intent before erasing, and resumes\nan interrupted migration on a later boot. Settings, logs outside that pair,\nfirmware and the bootloader are not cleared. This one-time migration may also\nrun with Energy memory Off; it is not a recurring boot erase. Blank or already\ninitialized pairs need no cleanup. Unknown data is never treated as unused.\nOn the Energy screen, `flash taken` means the reserved sectors contain unrecognized data or\nsettings this journal cannot claim, and `save failed` means a write or erase failed.\nIn either case totals are RAM-only and remain usable until power-off. Writes\nstop after a flash error for that boot. Settings also show `SETTINGS AREA FULL`\nor `SETTINGS WRITE FAILED` instead of silently promising that a failed change\nwas saved. On System, the read-only **FLASH STORAGE** section shows sector\nheaders and erased-word counts (`FREE 0800` means an entirely blank sector).\n`ERR` reports the last failing operation this boot: `01` write-mode error, `02`\nwindow protection, `04` size\u002Falignment, `08` read-back mismatch, `20` bus collision,\n`40` rejected software check, or `80` verification failure; flags may combine.\n`AT` is that operation's start address. No error flag alone authorizes an erase.\nNeither the bootloader nor its boot-swap sector is touched.\n\n**Shorter intervals wear flash faster.** Each energy sector holds 136 checkpoints.\nAt the datasheet's minimum 10,000 erase cycles, two-sector rotation gives roughly\n2.72 million checkpoints: about **157 days at 5s** or **5 years at 60s** of continuous\nrunning. These are endurance estimates, not guarantees. Runtime sector\nerase pauses execution for up to roughly 20 ms; live PD timing needs hardware\nvalidation before treating an energy-memory build as qualified.\n\n## Screens\n\nEvery screen, group by group in Left\u002FRight order. Each one gives a\nscreenshot, what the screen is for, each field it can show, then its hint\nrow (the bottom line). `-` or `--.--` in a field means \"not known yet\".\nHexadecimal values are raw register or message contents, shown for\ndiagnosis.\n\nWhile Left\u002FRight move between groups, every hint row reads\n`\u003C > groups  OK tabs`. The scrolling screens (PD Session, Charger, Cable,\nSystem, PD Sniff) share one hint row: `\u003C > tabs  OK scroll`, then\n`\u003C > scroll  OK done` while scrolling, or `\u003C > tabs  BACK groups` when\neverything fits on one screen. Charger and Cable add their hold action,\n`hold OK scan` and `hold OK read`, which replaces `BACK groups` when\neverything fits.\n\nEvery hint row lists its buttons in the same order: Left\u002FRight first, then\nOK, then a hold or Back, then any note, so on a tab it always starts with\n`\u003C > tabs`.\n\nThe screenshots are drawn on a computer by the firmware's own page code,\nso they match what the current firmware draws. Recorded meter values are\nused where available; AFC and Calibration use example values, and System's\nserial number and temperature are illustrative. A screenshot demonstrates\nlayout, not hardware validation. To draw them again:\n\n```sh\ncargo run -p firmware-core --example screens --locked -- pictures\n```\n\n### Sink mode\n\n#### 1. Overview\n\n\u003Cimg src=\"pictures\u002Foverview_screen.webp\" width=\"480\" alt=\"Overview screen\">\n\nThis is the **Overview** screen (tab `OVERVIEW` in Monitor): the live bus\nreadings in outlined cards, each named on its top edge, and the protocol in\nuse in the `PROTOCOL` strip along the bottom. The meter starts on it.\n\n- **`VOLTAGE`**: bus voltage, in volts. `--.--` until the first reading, or\n  while the sensor bus is closed.\n- **`CURRENT`**: current in amperes, as a magnitude, whichever way it flows.\n- **`POWER`**: voltage × current, in watts.\n- **`MAX`**: the highest voltage, current and power seen since power-up or\n  the last reset, counted while the overview, the graph or a Trigger page\n  shows (the pages with live readings). Hold OK: the card fills from left\n  to right and the values reset once it is full; let go earlier to keep\n  them.\n- **Protocol** (left in the `PROTOCOL` strip, which takes its colour): the\n  first of these that applies.\n  - `QC 2.0` \u002F `QC 3.0`: this meter's Quick Charge request, while the\n    charger follows it. Status: the request (`9V`) or the output the steps\n    set (`7.40V`).\n  - `PD`: the charger sent an offer, no contract known yet.\n  - `PD 2.0` \u002F `PD 3.0`: fixed PD contract and its PD revision.\n  - `PPS`: a PPS contract.\n  - `AVS`: an SPR AVS contract.\n  - `QC 2.0` \u002F `QC 3.0` again: Quick Charge another device drives, read from\n    D+\u002FD-. A raised request counts once the output moved past halfway to\n    it; continuous mode shows `continuous`.\n  - `FCP` \u002F `SCP` \u002F `FCP\u002FSCP`: single-wire data another device sends on\n    D-. The meter decodes each transaction from D-'s edges, checking its\n    framing, parity and CRC. A register only one protocol uses names it\n    (`FCP` or `SCP`), and an accepted voltage write shows the output it\n    asked for (`9V`) while VBUS is near it; otherwise the status is\n    `D- data`. `FCP\u002FSCP` means\n    only the identification registers both share were seen, or the traffic\n    was only suspected from line-voltage samples. Decoding stops while this\n    meter drives D+\u002FD- itself and during each line scan, which waits for a\n    gap between transactions. What was decoded stays until D+ goes idle.\n    SCP identification was seen from a real tablet and charger; the\n    requested voltage is not yet checked on hardware.\n  - `SCP`: this meter's read-only SCP check verified the charger's type\n    registers and VBUS is at the default 5 V (`detected, 5V`). It is\n    evidence of support, not an SCP output contract. Once this meter's SCP\n    output is applied and followed, `SCP` shows its setpoint and current\n    limit instead (e.g. `9.00V 2.00A`), and once this meter's FCP or AFC\n    request is followed, `FCP` or `AFC` shows its voltage (e.g. `9V`).\n  - `TYPE-C`: Type-C current advertisement without PD (1.5 A or 3 A).\n  - `DIVIDER`: a port telling its current by fixed D+\u002FD- voltages (TI\n    TPS2514 datasheet, section 8.3.3): D+ 2 V and D- 2.7 V for a 5 W adapter\n    (`5V 1.00A`), 2.7 V and 2 V for 10 W (`5V 2.00A`), 2.7 V on both for\n    12 W (`5V 2.40A`).\n  - `1.2V DCP`: 1.2 V on both lines, which some tablet chargers use\n    (section 8.3.4); no rating is published.\n  - `BC1.2`: a dedicated charging port with D+ shorted to D- (`5V\n    shorted`). Only the Quick Charge test can see the short, so this shows\n    after it ran.\n  - `USB`: plain USB power (Type-C default current, or no Type-C at all).\n  - `NONE`: no source identified yet.\n- **Status text** after the protocol, in white: the CC pin in use (`CC1` or `CC2`),\n  then one of `no source`, `5V default`, `5V 1.50A`, `5V 3.00A`,\n  `offer, 5V`, the contract (for example `9V 3.00A`), or the Quick Charge\n  and port values above.\n- **Chevrons** `\u003C \u003C \u003C` or `> > >` (in the strip): the direction current\n  flows, drawn above a small threshold. One is lit at a time, stepping the\n  way the current flows every half second. They follow the screen rotation.\n- **Heartbeat dot** (right end of the strip): blinks while the meter\n  runs; red when the sensor bus is closed (see the System screen).\n- **Hint row**: `\u003C > tabs  hold OK reset`.\n\n#### 2. Lines\n\n\u003Cimg src=\"pictures\u002Flines_screen.webp\" width=\"480\" alt=\"Lines screen\">\n\nThis is the **Lines** screen (tab `LINES` in Monitor): the voltages on the\nUSB data and configuration lines, read by the MCU's own ADC against its\ninternal reference, independently of the bus sensor and the PD controller.\nThe lines are sampled while Lines, Overview, Ripple, System or a Quick Charge,\nSCP, FCP or AFC page shows, or while a legacy-protocol request runs. Only\nSystem scans include the meter-temperature input.\n\n- **`D+`** \u002F **`D-`**: the USB 2.0 data lines, in volts. Chargers that\n  identify themselves on these lines (BC 1.2, Apple and similar dividers) show\n  their levels here.\n- **`CC1`** \u002F **`CC2`**: the Type-C configuration channels, in volts. The pin\n  in use carries the Type-C pull-up\u002Fpull-down level; a cable's VCONN shows on\n  the other one. In sink mode that level is a bit over half of what another\n  tester shows (see [Limitations](#limitations)).\n- `-.--`: no reading yet, or the last ADC scan failed.\n- **Hint row**: `\u003C > tabs  approximate`. The internal reference was\n  measured on one unit, and another unit's may differ by a few percent (see\n  [Limitations](#limitations)).\n\n#### 3. Energy\n\n\u003Cimg src=\"pictures\u002Fenergy_screen.webp\" width=\"480\" alt=\"Energy screen\">\n\nThe **Energy** screen (tab `ENERGY` in Monitor, after Lines) shows, in three\noutlined cards, **CHARGE** in Ah and **ENERGY** in Wh, with three decimals, and\n**TIME** since the last reset (`h:mm:ss`). It counts current magnitude in either direction, sampling\nvoltage\u002Fcurrent every nominal 100 ms regardless of the shown page. Failed\nsamples and gaps over one second are not extrapolated. By default, time counts\nwhile the meter runs, including through missing readings. The Settings `TIMER`\noption can instead count only active time: intervals with readings at both ends\nabove 0.2 W in either direction, matching the stock firmware's power threshold.\nMissing readings and gaps over one second do not count in active mode. Counters\nand time continue from saved totals only when energy memory is enabled; changing\ntimer mode does not reset the accumulated time.\n\nThe hint row ends with how the totals are kept: `RAM only`, `save 5s` (the\ncheckpoint interval), `flash taken` or `save failed`, for example\n`\u003C > tabs  hold OK reset  save 5s`. To start fresh, hold OK: the cards fill\nfrom left to right and reset once full.\n\n#### 4. Graph\n\n\u003Cimg src=\"pictures\u002Fgraph_screen.webp\" width=\"480\" alt=\"Graph screen\">\n\nThe **Graph** screen (tab `GRAPH` in Monitor, after Energy) plots power\n(at first, green), voltage (yellow) or current (cyan) over the last\n`1 MIN`, `2 MIN` (at first), `5 MIN` or `10 MIN`, newest on the right. Each second is the average of its readings; where a window has\nmore seconds than the plot has pixels, a column shows the highest second it\ncovers, so a short peak stays visible.\n\n- **`NOW\u002FMAX`** (a card above the plot): for voltage, current and power,\n  the last full second's value, then the highest within the window, each on\n  its own, e.g. `9.01\u002F9.10V  2.98\u002F3.02A  26.85\u002F27.40W`.\n- **Scale**: from zero to a round number at least 10% above the plotted\n  quantity's `MAX` (1, 1.2, 1.5, 2, 2.5, 3, 4, 5, 6 or 8 times a power of\n  ten: 22 W shows on a `25W` scale, 9 V on `10V`), named in grey at the top\n  left of the plot.\n- **Trace and window** (top right of the plot): `POWER  2 MIN`, the trace in its\n  colour. OK opens the trace (`\u003C POWER >`): Left\u002FRight choose power,\n  voltage or current. OK moves to the window (`\u003C 2 MIN >` in cyan):\n  Left\u002FRight change it. OK again, or Back at either step, closes. Both last\n  until a restart.\n- A second without a reading leaves a gap.\n- **Reset**: hold OK and the `NOW\u002FMAX` card fills from left to right; once full,\n  the history clears and the plot starts over. Let go earlier to keep it.\n- **Hint row**: `\u003C > tabs  OK choose  hold OK reset`, then `\u003C > trace  OK time` and\n  `\u003C > time  OK done`.\n\nThe history is kept in RAM only (ten minutes, about 7 KB): it costs no\nflash writes, and a restart clears it and comes back on the overview.\n\n#### 5. Ripple\n\n\u003Cimg src=\"pictures\u002Fripple_screen.webp\" width=\"480\" alt=\"Ripple screen\">\n\nThe **Ripple** screen (tab `RIPPLE` in Monitor, after Graph) captures fast\nbus-voltage variations. Statistics cover 1024 samples; the plot shows at\nmost 640, so peaks can lie outside the visible trace.\n\n- **`mV p-p`**: highest minus lowest sample, smoothed over the last 30\n  captures (about 3 s): 65% their average, 35% their maximum, a blend\n  recovered from the stock firmware. It restarts when the timebase changes\n  or the capture resumes.\n- **`RMS`**: ripple RMS with the capture's mean removed, not total bus RMS.\n  An oscilloscope's RMS can include a nonzero mean and is not always directly\n  comparable.\n- **`V` \u002F `A`**: live bus voltage and signed current, including during hold.\n- **`AUTO` \u002F `LOCK …mV\u002Fdiv`**: automatic (default) or fixed vertical scale,\n  2–500 mV\u002Fdiv.\n- **`~50us\u002Fdiv`**: nominal microseconds per division in scope steps of 20,\n  50, 100, 200 and 500, clock-derived rather than measured or calibrated\n  (the sampling lands within 1% of each step). 20 and 50 us\u002Fdiv show fewer\n  samples at the top rate (about 0.9 MS\u002Fs at a 30 MHz ADC clock, 1.1 MS\u002Fs at\n  37.5 MHz); the slower steps sample more slowly, down to about 160 kS\u002Fs at\n  500 us\u002Fdiv. Ripple above half the sample rate aliases: the fastest steps\n  can represent up to about 450 kHz, which covers typical charger switching\n  frequencies (often around 65–130 kHz) but not the fastest chargers. The\n  analog input's bandwidth is not characterized.\n- **Spectrum** (purple, behind the trace): the whole capture's frequency\n  content, from 0 at the left to half the sample rate at the right, heights\n  relative to the strongest frequency (not a voltage scale). `1 2 3`, at the\n  foot of their bars, mark the three strongest peaks; the top of the plot\n  lists each one's frequency in kHz, strongest first. Frequencies come from\n  the nominal sample rate, interpolated between FFT bins; at slow timebases\n  higher ripple folds back (aliases) to a lower frequency, so use 20 or\n  50 us\u002Fdiv to read switching frequencies.\n- **Status**: `T` means a rising trigger was found, with hysteresis against\n  noise. `CLIPPED` means an ADC rail was reached: amplitude is a lower bound.\n  `OFF SCALE` means the scale cuts off peaks: a fixed one too small, or\n  more than 1 V from the mean even at 500 mV\u002Fdiv. `NO REF` means ADC\n  counts replace voltage scaling.\n\n**OK** first focuses the time per division without freezing. Each further\n**OK** moves to the next setting: time per division, vertical scale, then\n`RUN`\u002F`HOLD`. The setting **Left\u002FRight** change is yellow, between `\u003C >`.\nHolding **OK** restores 50 us\u002Fdiv, auto scale and run; **Back** returns to\ntab navigation.\n`HOLD` freezes the trace, spectrum, statistics and voltage reference, but not\nbus V\u002FA. A different vertical scale redraws the held capture; a different\ntime per division starts a live capture, since the held one was taken at the\nold rate. A hold lasts until another tab is shown; coming back starts live.\n\nRipple readings are not calibrated: accuracy under load, at other ripple\nfrequencies and the actual sampling cadence are not characterized.\n\n#### 6. PD Profiles\n\n\u003Cimg src=\"pictures\u002Fpd_profiles_screen.webp\" width=\"480\" alt=\"PD Profiles screen\">\n\nThis is the **PD Profiles** screen (tab `PD PROFILES` in Trigger): the\ncharger's fixed profiles, to request one.\n\n- **Each row**: voltage, the charger's maximum current at it, and that power\n  in watts. The voltage is coloured from cool (low) to warm (high).\n- **`ACTIVE`**: the profile in force now.\n- **Frame**: the profile being previewed while choosing.\n- **`NO PD CHARGER` \u002F `plug in a PD source`**: the charger offered no\n  fixed profiles.\n- **`LEGACY MODE` \u002F `PD is off for QC \u002F SCP`**: this boot keeps PD\n  silent for legacy protocols, so there is no offer.\n- **Scrollbar**: on the right edge when there are more than five profiles\n  (an EPR charger's 28 V adds one); choosing scrolls the list.\n- **Hint row**: `\u003C > tabs  OK select a profile` (`\u003C > tabs  OK select\u002Fscroll`\n  with the scrollbar), then while choosing\n  `\u003C > choose  OK request  BACK cancel`. Before the charger's offer arrives it\n  reads `\u003C > tabs  waiting for the charger`; in `LEGACY MODE`,\n  `\u003C > tabs  OK switch back to PD`. While EPR is being entered or left, or after it\n  failed, the PD screens show its state here instead: `EPR: entering mode`,\n  `EPR: returning to SPR`, `EPR: cable not capable`, `EPR: VCONN failed`,\n  `EPR: RDO bit missing`, `EPR: source unavailable`, `EPR: source PDO bit`,\n  `EPR: unknown failure`, `EPR: timeout \u002F bad reply` or\n  `EPR: line busy, retry OK`.\n\n#### 7. PPS\n\n\u003Cimg src=\"pictures\u002Fpps_screen.webp\" width=\"480\" alt=\"PPS screen\">\n\nThis is the **PPS** screen (tab `PPS` in Trigger): the charger's\nprogrammable ranges, to request a voltage and current limit.\n\n- **`PPS RANGE`**: each PPS range the charger offers, a line each (the card\n  takes one or two), for example `3.30-21.00V  5.00A`: the voltage range and\n  the most current at any voltage in it. A PPS range states no power, so none\n  is shown; multiplying the maxima would overstate a power-limited charger.\n- **`SET VOLTAGE`**: the voltage to request, in 20 mV steps (100 mV while\n  held), from the bottom of the charger's range (often 3.3 V) to its top.\n  The arrows show it is the value Left\u002FRight change.\n- **`CURRENT LIMIT`**: the current limit to request, in 50 mA steps (250 mA\n  while held).\n- **`OUTPUT`**: the live voltage and current, then on the right the state:\n  `ACTIVE` (this setting is the contract in force), `NOT APPLIED` (set but\n  not requested yet), or empty.\n- **`NO PPS` \u002F `this charger offers no PPS range`**: nothing to set.\n- **`LEGACY MODE`**: as on the PD Profiles screen.\n- **Hint row**: `\u003C > tabs  OK adjust PPS`, `\u003C > volts  OK next: current`,\n  `\u003C > amps  OK request`, or `\u003C > tabs  waiting for the charger`; in\n  `LEGACY MODE`, `\u003C > tabs  OK switch back to PD`.\n\n#### 8. AVS\n\n\u003Cimg src=\"pictures\u002Favs_screen.webp\" width=\"480\" alt=\"AVS screen\">\n\nThis is the **AVS** screen (tab `AVS` in Trigger): the charger's\nadjustable voltage ranges (USB PD 3.2), to request a voltage. Unlike PPS, the\ncharger does not limit the current: the meter asks for the most the range\nallows at the set voltage. SPR AVS runs from 9 V, at most 100 W; EPR AVS from\n15 V up to 30 V, at most 150 W and 5 A, and needs a real EPR cable.\n\n- **`AVS RANGE`**: each AVS range, a line each, for example\n  `9.00-20.00V  3.00A \u002F 2.25A`: the SPR current up to 15 V, then above 15 V\n  (only on a range that reaches 20 V); `15.00-30.00V  140W  EPR`: an EPR range\n  capped at 30 V and its power, which the current at each voltage follows.\n- **`SET VOLTAGE`**: the voltage to request, in 100 mV steps (500 mV while\n  held), framed with arrows while Left\u002FRight change it.\n- **`CURRENT`**: the current the request asks for at that voltage.\n- **`OUTPUT`**: as on the PPS screen.\n- **`NO AVS` \u002F `this charger offers no AVS range`**: nothing to set.\n- **`LEGACY MODE`**: as on the PD Profiles screen.\n- **Hint row**: `\u003C > tabs  OK adjust AVS`, `\u003C > volts  OK request`, or\n  `\u003C > tabs  waiting for the charger`; in `LEGACY MODE`,\n  `\u003C > tabs  OK switch back to PD`.\n\n#### 9. QC 2.0\n\n\u003Cimg src=\"pictures\u002Fqc2_screen.webp\" width=\"480\" alt=\"QC 2.0 screen\">\n\nThis is the **QC 2.0** screen (tab `QC 2.0` in Trigger): Quick Charge 2.0\nfixed voltages, to request one. It is laid out as the PD Profiles screen;\n[Quick Charge](#quick-charge) explains the switch out of PD, the test and\nthe requests.\n\n- **Rows**: 5, 9, 12 and 20 V, then `OFF` (`plain USB`). Before the test\n  20 V reads `Class B only`; after it a voltage the charger ignored is greyed\n  out with `charger ignored it` (`needs Class B` on 20 V) and cannot be\n  chosen. The choice is framed. The charger page lists the test's full\n  result.\n- **Status pill** on the row it concerns: `WAIT` (handshake), `SETTING`\n  (waiting for VBUS), `ACTIVE`, `IGNORED`, `NO DCP` or `NO QC`.\n- **`PD MODE` \u002F `the charger ignores QC under PD`**: a PD contract holds the\n  charger.\n- **`TESTING THE CHARGER`**: the test runs, with the step it is on\n  (`Quick Charge handshake`, `asking for 9V`, `QC 3.0 continuous mode`,\n  `QC 3.0 steps +0.40V`, `back to 5V`). It ends in `NO CHARGING PORT` \u002F\n  `D+ and D- are not shorted` or `NO QUICK CHARGE` \u002F `D- stayed high` when\n  the charger has no Quick Charge.\n- **Hint row**: `\u003C > tabs  OK choose a voltage`, then while choosing\n  `\u003C > choose  OK request  BACK cancel`, and `\u003C > tabs  OK change` once a\n  request runs. Until the charger follows it: `\u003C > tabs  handshake`,\n  `\u003C > tabs  waiting for VBUS`, `\u003C > tabs  OK change  output unchanged`,\n  `\u003C > tabs  OK change  no D+ D- short` or `\u003C > tabs  OK change  D- stayed\n  high`. Before the test `\u003C > tabs  OK test charger, up to 20V`, during it\n  `BACK stop  up to 20V on the output` (`BACK` once it failed); in\n  `PD MODE`, `\u003C > tabs  OK switch to QC, up to 20V`.\n\n#### 10. QC 3.0\n\n\u003Cimg src=\"pictures\u002Fqc3_screen.webp\" width=\"480\" alt=\"QC 3.0 screen\">\n\nThis is the **QC 3.0** screen (tab `QC 3.0` in Trigger): Quick Charge 3.0\ncontinuous mode, to set the output in 0.2 V steps. It is laid out as the PPS\nscreen; see [Quick Charge](#quick-charge).\n\n- **`STEPS`**: the step range the test found, else\n  `3.6-12V by 0.2V  Class A` and `3.6-20V by 0.2V  Class B`.\n- **`SET VOLTAGE`**: the output the steps aim for, framed with arrows while\n  Left\u002FRight move it.\n- **`VBUS`**: the live bus voltage.\n- **`LINES`**: D+ and D- as measured, to check the driven levels, then on\n  the right the state: `WAIT`, `STEPPING`, `ACTIVE` (the steps reached the\n  set voltage), `NO DCP` or `NO QC`.\n- **`PD MODE`** and **`TESTING THE CHARGER`**: as on the QC 2.0 screen.\n- **`NO QC 3.0` \u002F `the charger ignored the steps`**: the test found no\n  steps.\n- **Hint row**: `\u003C > tabs  OK start at 5V`, then `\u003C > 0.2V  OK done`\n  while adjusting, and `\u003C > tabs  OK adjust` once the steps run; the\n  handshake, test and `PD MODE` hints as on the QC 2.0 screen, and `\u003C > tabs`\n  after `NO QC 3.0`.\n\n#### 11. SCP\n\n\u003Cimg src=\"pictures\u002Fscp_screen.webp\" width=\"480\" alt=\"SCP screen\">\n\nThis is the **SCP** screen (tab `SCP` in Trigger): SuperCharge, to identify\nthe charger and set its output voltage and current limit. It is laid out as\nthe PPS screen; [SCP](#scp) explains the test and the output control.\n\n- **`SCP RANGE`**: the voltage range and highest current the charger\n  reports, and its rated power when it reports one, for example\n  `5.50-11.00V  3.00A  33W`.\n- **`SET VOLTAGE`** and **`CURRENT LIMIT`**: the output to request, in the\n  charger's own steps, framed with arrows while Left\u002FRight change them.\n- **`OUTPUT`**: the live output, with its state on the right: `ENTERING`,\n  `SETTING` (waiting for VBUS), `ACTIVE`, `STOPPING` or `FAILED`. On a\n  failure the reason replaces the reading.\n- **`MAX VOLTAGE`**, **`MAX CURRENT`** and **`MODE`** (`LVC`, `HVC` or\n  `LVC + HVC`, with `DETECTED`): shown instead when the charger is found but\n  its ratings are incomplete (`ratings not reported`), so no output can be\n  set.\n- **`TESTING SCP` \u002F `adapter identification`**: the test runs.\n- **`SCP DETECTED`, `NO SCP`, `SCP NOT VERIFIED` or `SCP NOT TESTED`**: the\n  result, with the reason below it (for example `TYPE NOT PROGRAMMABLE`), or\n  `no output requested`.\n- **`PD MODE` \u002F `PD must stop before SCP detection`**: a PD contract holds\n  the charger.\n- **Hint row**: `\u003C > tabs  OK test SCP`, and `BACK stop` while it runs.\n  Once the ratings are read, `\u003C > tabs  OK adjust  HOLD OK rescan`, then\n  `\u003C > volts  OK next: current` and `\u003C > amps  OK request` while editing,\n  and `\u003C > tabs  OK adjust  HOLD OK stop` while an output runs; without\n  complete ratings, `\u003C > tabs  OK rescan SCP`. In `PD MODE`,\n  `\u003C > tabs  OK switch to SCP detection`.\n\n#### 12. FCP\n\n\u003Cimg src=\"pictures\u002Ffcp_screen.webp\" width=\"480\" alt=\"FCP screen\">\n\nThis is the **FCP** screen (tab `FCP` in Trigger): the fixed voltages a Fast\nCharge Protocol charger lists, to request one. It is laid out as the QC 2.0\nscreen; [FCP](#fcp) explains the test and the requests.\n\n- **Rows**: each voltage the charger lists, for example `5.20V`, `9V` and\n  `12V`, the highest with the charger's rated power (`18W rated`), then `OFF`\n  (`plain USB`). The choice is framed.\n- **Status pill** on the requested row: `WAIT`, `SETTING` (waiting for\n  VBUS), `ACTIVE`, `STOPPING` or `FAILED`.\n- **`TESTING FCP` \u002F `adapter identification`**: the test runs.\n- **`NO FCP`, `FCP NOT VERIFIED` or `FCP NOT TESTED`**: no voltages to show\n  yet, with the reason below it (for example `NO FCP VOLTAGES`), or\n  `no output requested`.\n- **`PD MODE` \u002F `PD must stop before FCP detection`**: a PD contract holds\n  the charger.\n- **Hint row**: `\u003C > tabs  OK test FCP`, and `BACK stop` while it runs.\n  Once the voltages are read, `\u003C > tabs  OK choose  HOLD OK rescan`, then\n  `\u003C > choose  OK request  BACK cancel` while choosing, and\n  `\u003C > tabs  OK change  HOLD OK stop` while a request runs. A failed request\n  shows its reason here instead. In `PD MODE`,\n  `\u003C > tabs  OK switch to FCP detection`.\n\n#### 13. AFC\n\n\u003Cimg src=\"pictures\u002Fafc_screen.webp\" width=\"480\" alt=\"AFC screen\">\n\nThis is the **AFC** screen (tab `AFC` in Trigger): Samsung Adaptive Fast\nCharging's 5 V and 9 V, laid out as the FCP screen; [AFC](#afc) explains the\ntest and the requests. The picture is a layout fixture, not a photo.\n\n- **Rows**: `5V`, `9V`, then `OFF` (`plain USB`). These are request choices,\n  not voltage ratings discovered by the test.\n- **Status pill**, test, `PD MODE` and hint rows: as on FCP, with `AFC` in\n  place of `FCP` (`TESTING AFC`, `NO AFC`, `AFC NOT VERIFIED`,\n  `AFC NOT TESTED`, `\u003C > tabs  OK test AFC`).\n\n#### 14. PD Session\n\n\u003Cimg src=\"pictures\u002Fpd_session_screen.webp\" width=\"480\" alt=\"PD Session screen\">\n\nThis is the **PD Session** screen (tab `PD SESSION` in Info): the meter's\nown PD negotiation. It scrolls (OK) through the session, startup and port\ncheck sections.\n\n**Session section**\n\n- **`PD SPR 05V C1 TX ON`**: the session kind (`SPR` fixed, `PPS`, `AVS`), the target\n  voltage, the CC pin, and the transmitter state: `TX ON` (contract live),\n  `TX OFF` (finished and verified off) or `TX UNKNOWN`.\n- **`REQ:05.00V 3.0A N6 R3 I5`**: the last request: voltage, current,\n  `N` how many objects the charger offered, `R` the charger's PD revision\n  (2 or 3), `I` the message ID of the request (0–7).\n- **`TRY ACK ACC RDY`**: request written, acknowledged with GoodCRC (`G`:\n  GoodCRC seen without the send-done flag), `Accept` received, `PS_RDY`\n  received. `Y` yes, `-` not yet.\n- **`MS: AK AC RD`**: milliseconds for each step: the request sent to its\n  GoodCRC, GoodCRC to `Accept`, and `Accept` to `PS_RDY`.\n- **`VBUS:05.13V MEASURED`**: the live bus voltage. Before a live reading the\n  row is `V:G--.-- RD--.-- RT--.--`: VBUS before the request, at `PS_RDY`, and\n  after the session ended.\n- **Row 6**, one of:\n  - `ERR:---- A:---- R:----`: the error code (table below), the I2C address\n    and the register involved.\n  - `CHARGER BUSY: OVERRIDDEN`: the charger kept its \"wait\" signal on a quiet\n    line, and the meter sent anyway (see the safety notes).\n  - `CHARGER BLOCKS CHANGES`: the charger's signal did not allow sending.\n  - `TX LOST TO CHARGER MSG`: a charger message arrived first, so the meter's\n    message was dropped unsent.\n  - `CABLE QUERY - 5V ONLY`, or a cable result such as\n    `CABLE:P 20V 5A SPD:2` (`P` passive \u002F `A` active, maximum voltage,\n    current, `*` = current assumed, `EPR` when the cable is EPR capable,\n    `SPD`\u002F`S` speed code).\n- **Row 7**, one of:\n  - `SEL:P07.02 05.00A [V] OK`: the selection being prepared (`P` for PPS,\n    `A` for AVS; `[V]` or `[I]` for the value being changed).\n  - `SEL:09V`: the fixed profile being prepared.\n  - `HOLD BACK TO STOP`, `POST S1:---- C3:----` (controller registers after\n    the session), `RESTORE NOT VERIFIED`, `VCONN STATE UNVERIFIED`,\n    `VALUE:----` (an unexpected register value), `WAIT - NO RETRY` (a cable\n    query is running) or a cable `VID`\u002F`PID`.\n- **Last row**, the session state:\n  - `05V CONTRACT LIVE` \u002F `PPS07.02V 05.00A LIVE` (`AVS…` likewise): a\n    contract is in force.\n  - `SPR NEGOTIATING` \u002F `PPS NEGOTIATING` \u002F `AVS NEGOTIATING`: asking for it.\n  - `05V SEEN ROK TX OFF`: the session finished cleanly.\n  - `NO CAPS \u002F HALTED` \u002F `NO CAPS RESTORED`: the charger sent no offer\n    (a port without PD).\n  - `WAIT CC TEST`, `MEAS RX POWER`, `RX LISTEN TX OFF`,\n    `CAPS RESTORED TX OFF`: startup steps.\n  - `SKIP BUS LATCHED`: the session never started; the bus was closed.\n  - `QUICK CHARGE PD OFF`: PD stays off for a Quick Charge boot.\n  - The `EPR: …` states listed under the [PD Profiles](#6-pd-profiles) hint\n    row, while EPR mode is entered or left, or after it failed.\n  - `FAIL REG:----`, `SKIP REG:----`, `DIFF REG:----`: stopped on a\n    register error, an unexpected start state, or a value that did not read\n    back.\n\n**Startup section**\n\n- **`CC1:-- CC2:--`**: both CC pins' status at startup (the PD chip's\n  STATUS0; its low two bits are the CC level). Because of the meter's\n  stronger pull-down (see [Limitations](#limitations)) the level reads one\n  step low: `01` is a default or 1.5 A port, `02` a 3 A port.\n- `ONE CC WITH RP`: a normal attach through a cable.\n- `BOTH RP: VCONN ON CC1\u002FCC2`, `BOTH RP: TRAFFIC ON CC1\u002FCC2`,\n  `BOTH RP: LEVEL ON CC1\u002FCC2` or `BOTH RP: NO SINGLE LINE`: the meter's plug\n  sits in the charger, and how it picked the line to talk on. `LEVEL`: the\n  charger's packets arrived on both pins, so either works and the meter took\n  the one with the higher Rp level (tested with a power bank, in both\n  orientations); `NO SINGLE LINE`: it could not pick one and did not start.\n- `CC1 SOP:--- CABLE:---` and `CC2 …`: messages heard on each pin for the\n  charger and for a cable.\n\n**Port check (PD3 only)**\n\n\u003Cimg src=\"pictures\u002Fpd_input_screen.webp\" width=\"480\" alt=\"Port check on the PD Session screen\">\n\nThe port check reads what a phone or other dual-role device **accepts** as\ninput. Plug the device in where the charger normally goes: it sees the meter's\nsink pull-down, switches to supplying power (as when it charges earbuds),\npowers the meter and offers it PD. Hold OK on PD Session: from another\ncontract the meter first requests fixed 5 V. A source that advertises\ndual-role power is then asked for its **sink PDOs**, followed by SOP\n**Discover Identity**; one without that flag is asked only for identity. No\npower or data role swap, VCONN change or cable test is performed, and a\ndevice that only charges cannot be checked: it never powers the meter.\n\nScroll to `PORT CHECK` for the outcomes, then `SINK PDOS (ACCEPTS)`,\n`PDO 1 FLAGS`, `DISCOVER IDENTITY` and `UFP VDO`:\n\n- `PORT CHECK`: `PARTNER:DRP` or `PARTNER:SOURCE ONLY` (from the dual-role\n  power flag), then the `SINK PDOS:` and `IDENTITY:` outcomes, or\n  `HOLD OK: SCAN AT 5V` before a scan. A PD 2.0 partner shows `SCAN:PD2 N\u002FA`\n  instead: it cannot be scanned, so holding OK does nothing.\n- `PDO 1 FLAGS` lists the capability bits set in the first source PDO (shown\n  before a scan too) and, after a scan, the first sink PDO: `DRP` dual-role\n  power, `USB SUSPEND`, `UNCONSTRAINED` power, `USB DATA` communication\n  capable, `DRD` dual-role data, `UNCHUNKED` extended messages, `EPR` capable\n  and `HIGHER CAP` (the device works better above 5 V), then `FRS` with the\n  current a fast role swap needs (`NONE` when unsupported). `NONE` means no\n  bit is set.\n- `DISCOVER IDENTITY`: VID, PID, bcdDevice, XID, the UFP and DFP product\n  types, USB device and host, `MODAL` (the device offers alternate modes as a\n  UFP) and `CONN` (receptacle or plug).\n- `UFP VDO`, when a known UFP v1.2 or v1.3 layout was received: the highest\n  USB speed, USB 2.0, Billboard, USB 3.2 and USB4 device support, and\n  `ALT MODES`: `TBT3`, `RECONFIG` (modes that reconfigure the connector's\n  signals, such as DisplayPort) and `NO RECONFIG` (modes that do not), with\n  the VBUS and VCONN needs of those modes.\n\n\u003Cimg src=\"pictures\u002Fpd_input_identity_screen.webp\" width=\"480\" alt=\"Port check scrolled to the phone's identity\">\n\n\u003Cimg src=\"pictures\u002Fpd_input_ufp_screen.webp\" width=\"480\" alt=\"Port check scrolled to the phone's UFP VDO\">\n\nThe device's own offer to the meter is on the [Charger](#15-charger) page.\nWatts in parentheses are calculated from each PDO (the top voltage for\nvariable and PPS ranges), not a measured charging rate. QC, AFC and SCP input\nsupport cannot be inferred from PD results. The XID is not proof of\ncertification.\n\n`NOT DRP` (sink PDOs not asked), `NAK`, `BUSY`, `NO REPLY`, `NOT SUPPORTED`,\n`BLOCKED` and `RESET` are distinct outcomes. `NO REPLY` for identity means the\nrequest was acknowledged but no answer arrived within 50 ms, the longest the\nspecification lets the meter wait.\n`BLOCKED` means the request was never sent, for example with VBUS outside\n4.75–5.5 V. There is no automatic retry; a later hold starts a new scan. Power\nchanges and cable inspection wait while the scan runs. The scan is disabled in\npassthrough and the 5 A cable-test boot.\n\n**ERR codes** (hexadecimal):\n\n| Code | Meaning |\n| ---- | ------- |\n| `0001` | stopped on an I2C error |\n| `0002` | wrong CC orientation or input voltage; not started |\n| `0003` | receive buffer not empty at a boundary |\n| `0004` | Hard Reset received |\n| `0005` | PD controller fault |\n| `0006` | unexpected transmission |\n| `0007` | receive buffer overflow |\n| `0008` | malformed message |\n| `0009` | unexpected acknowledgement |\n| `000A` | request refused by the meter's checks |\n| `000B` | message queue full |\n| `000C` | polling budget used up |\n| `000D` | transmit timeout (row 6 then shows `TO S1 IA N H`) |\n| `000E` | could not complete the session |\n| `000F` | protocol error from the charger |\n| `0010` | PPS keep-alive deadline missed |\n| `0011` | Hard Reset needed |\n| `0012` | message not acknowledged |\n| `0013` | VBUS did not return after a Hard Reset |\n| `0014` | VBUS problem during a BIST test |\n| `0020` | session stopped |\n| `0021` | unsupported controller |\n| `0022` | charger offer failed the safety checks |\n| `0023` | charger protocol error |\n| `0024` | received message discarded |\n| `0025` | Hard Reset received |\n| `0026` | transmit failed |\n| `0027` | request declined |\n| `0028` | no offer from the charger (port without PD) |\n| `0029` | sending blocked |\n| `002A` | PD engine error |\n| `002B` | session ended without a contract |\n| `002C` | Hard Reset sent |\n\n#### 15. Charger\n\n\u003Cimg src=\"pictures\u002Fcharger_screen.webp\" width=\"480\" alt=\"Charger screen\">\n\nThis is the **Charger** screen (tab `CHARGER` in Info): what the charger says\nabout itself, plus QC tests and SCP, FCP and AFC identification. The PD\nparts are the charger's claims; legacy results come from active probes. It\nscrolls (OK) through the parts; a long offer takes two screens.\n\n**`CAPABILITIES`**\n\n- **One row per offered object**, numbered by its position:\n  - `FIX 9.00V 3.00A`: a fixed voltage.\n  - `PPS 3.3-21.0V 5.00A`: a PPS range.\n  - `AVS 9-20V 3.00A\u002F2.25A`: an SPR AVS range. Its object has no voltage\n    field, only a current for 9-15 V and one for 15-20 V, which is zero on a\n    15 V charger: `AVS 9-15V 3.00A`. One current means both ranges share it\n    (`AVS 9-20V 3.00A`).\n  - `EAVS 15.0-48.0V 140W`: an EPR AVS range. Selectable EPR AVS ranges are\n    capped at 30 V; the partner page can still show the full advertised range.\n  - `RAW xxxxxxxx`: an object type the meter does not decode.\n- **`*`** after a row: offered at that current only with a 5 A cable. Then\n  the note `* ONLY WITH 5A CABLE`.\n- **Notes**:\n  - `HOLD OK: FULL RESCAN` \u002F `QC\u002FSCP\u002FFCP\u002FAFC; RESTARTS` (`ALL + 5A TEST; RESTARTS`\n    with the plug in the charger): hold OK for the\n    [full scan](#full-charger-offer-and-5-a-without-a-cable).\n  - The EPR (28 V and up) request: `ASKING CHARGER`,\n    `NO ANSWER, HOLD OK AGAIN`, `LINE BUSY, HOLD OK AGAIN`, or in the 5 A\n    cable test `HOLD OK FOR ALL`.\n  - `BACK ENDS 5A CABLE TEST`: the test is running. The heading then also\n    names the reset cause (`POWER` is expected).\n  - `5A TEST DID NOT START` \u002F `HOLD OK TO TRY AGAIN`.\n  - The `EPR: …` states listed under the\n    [PD Profiles](#6-pd-profiles) hint row.\n  - `NO PD SESSION`, `NO OFFER YET`.\n- **`KEEP:---- GAP:----MS`** (last row, in EPR mode): how many keep-alives\n  the meter sent, and the longest gap between two PD messages it saw, in ms.\n\n**`QUICK CHARGE 2.0`** and **`QUICK CHARGE 3.0`**\n\nQuick Charge reports nothing itself, so these show the result of the full\nscan or the last Quick Charge test, measured on VBUS:\n\n- **2.0**: the class (`CLASS A, UP TO 12V` or `CLASS B, UP TO 20V`), then\n  `YES` or `NO` for each fixed voltage, `5V` to `20V`. `NOT SUPPORTED`\n  when the charger took no 9 V.\n- **3.0**: `SUPPORTED` with `RANGE 3.6-12V` (up to 20 V for Class B) and\n  `STEP 0.2V`, or `NOT SUPPORTED` \u002F `NO 0.2V STEPS`.\n\nA failed handshake shows one `QUICK CHARGE` section with `NOT A CHARGING\nPORT` or `NO QUICK CHARGE`. Before any result it shows `NOT SCANNED YET`\nwith `HOLD OK: FULL RESCAN` and `(QC\u002FSCP\u002FFCP\u002FAFC AND PD)`, or without a PD\ncontract `NOT TESTED YET` with `HOLD OK: FULL SCAN` and `(QC\u002FSCP\u002FFCP\u002FAFC)`,\nwhich runs QC then read-only SCP, FCP and AFC identification and\nreturns to Charger info on success or failure, without opening QC controls.\n\n**`SUPERCHARGE (SCP)`**\n\nAlways present. `SCP DETECTED` requires\nprogrammable-adapter type registers with checked framing, parity and CRC,\nand a measured 5 V output. Reported low\u002Fhigh-voltage modes are capabilities,\nnot a negotiated output or current allowance. `NO SCP` means the charger\nshowed it has none: no reaction to the entry handshake, no answer to the\nfirst read (`NO DIGITAL RESPONSE`), or a type that is not programmable\n(`TYPE NOT PROGRAMMABLE`). `SCP NOT VERIFIED` means the test itself went\nwrong (a damaged reply, timing, or a VBUS or line check); it includes the\nlive failure reason and does not mean unsupported. `NOT TESTED YET`\nmeans no result. The compact result survives scan restarts alongside QC,\nbut a new normal attachment does not inherit a previous charger's SCP proof.\n\n**`FAST CHARGE (FCP)`**\n\nAlways present, after SCP. `FCP DETECTED` lists the charger's voltages\n(`VOUT: 5.2 \u002F 9.0 \u002F 12.0V`) and `MAX POWER` when it reports one; after the\nfull scan's restart only the highest voltage survives (`VOUT: UP TO\n12.0V`). `NO FCP`, `FCP NOT VERIFIED` and `NOT TESTED YET` mean what they\ndo for SCP. The result is kept in its own flash record beside the settings\nand carried through the scan like SCP's.\n\n**`SAMSUNG AFC`**\n\nAlways present, after FCP. `AFC DETECTED` and `5V EXCHANGE CHECKED` mean\nthat the complete ping sequence for the test's 5 V request succeeded.\n`REQUESTS: 5.0V \u002F 9.0V` lists the available controls, not discovered charger\nratings; 9 V is only verified after an explicit request and VBUS measurement.\nThe reference driver skips the response data, so no reply byte or current\nrating is inferred. `NO AFC`, `AFC NOT VERIFIED` and `NOT TESTED YET` mean\nwhat they do for SCP. The result is kept in its own flash record, as FCP's is.\n\n**`IDENTITY`**\n\n`IDENTITY`, `PEAKS AND MAKER` and `POWER STATUS` are the charger's answers\nto PD queries, so a charger that made no PD offer shows `CHARGER MUST\nSUPPORT PD` in each.\n\n- `REV:3.1 V1.8`: the charger's PD revision and version.\n- `EXT CAPS:` the outcome of asking for its extended capabilities.\n- `VID:---- PID:----`: USB vendor and product ID.\n- `XID:-------- FW:-- HW:--`: certification ID, firmware and hardware version.\n- `PDP SPR:---W EPR:---W`: rated power, standard and extended range.\n- `HOLD:---MS LOAD:---`: hold-up time in ms and load step rate.\n- `COMPL:` the safety standards it claims: `LPS`, `PS1`, `PS2` or `NONE`.\n\n**`PEAKS AND MAKER`**\n\n- `P1`–`P3 OVL:--- MS:---- D:--`: peak current capability: overload %,\n  period in ms, duty cycle %; `*` = VBUS may droop.\n- `TOUCH:` `LOW`, `GND`, `PE`, and the touch temperature class `T:TS1`,\n  `T:TS2` or `T:60950`.\n- `IN:` power sources: `EXT`, `UNC`, `BAT` or `NONE`; `BATT:-\u002F-` fixed\n  batteries and hot-swap slots.\n- `MFR VID:---- PID:----` and the maker's name string.\n\n**`POWER STATUS`**\n\n- `SRC INFO:` then `GUARANTEED` or `MANAGED` with `MAX:---W`.\n- `NOW:---W REPORTED:---W`: present and reported power.\n- `GUAR:---W MAX2:---W DPS-`: second port's guaranteed and maximum power,\n  and whether it is a dual-power source.\n- `STATUS:` then `T:` internal temperature (`N\u002FA`, `\u003C2C`, or `°C`) and `N:`\n  how many status answers so far.\n- `IN:` `DC`, `AC` or `INT`, then any active protections: `OCP`, `OTP`,\n  `OVP`, `CL`.\n- `TEMP:` `NORMAL`, `WARNING`, `OVERTEMP` or `N\u002FA`; `LIM:CPXET` power\n  limited by Cable, other Ports, eXternal power, Events, Temperature.\n\n**`BATTERY`**, only when the charger reports a battery (a power bank, or a\nphone powering the meter): its first battery, as the charger describes it.\n\n\u003Cimg src=\"pictures\u002Fcharger_battery_screen.webp\" width=\"480\" alt=\"Charger screen scrolled to a phone's battery\">\n\n- `CAPS:` the outcome of asking for its capabilities, then `VID:---- PID:----`,\n  `DESIGN:` the design capacity and `FULL:` the last full-charge capacity,\n  in Wh (`UNKNOWN`, or `NONE` with no battery in place).\n- `STATUS:` the outcome of asking for its status, then `CHARGE:` the energy\n  it holds now, in Wh, and `CHARGING`, `DISCHARGING`, `IDLE`, `PRESENT` or\n  `NOT PRESENT`, as the charger reports it.\n- `NO SUCH BATTERY`: the charger did not know the battery the meter asked\n  about.\n\n**Answer words** used in these sections: `OK`, `WAITING`, `NOT SUPPORTED`,\n`NO REPLY`, `BLOCKED`, `RESET`, `PD2 N\u002FA` (not available under PD 2.0).\n\n#### 16. Cable\n\n\u003Cimg src=\"pictures\u002Fcable_screen.webp\" width=\"480\" alt=\"Cable screen\">\n\nThis is the **Cable** screen (tab `CABLE` in Info): the cable's e-marker.\nHold OK to read it; from any other contract the meter requests fixed 5 V\nfirst, then asks the cable. It scrolls (OK) through several sections.\n\n**Before or instead of a reading**\n\n- `HOLD OK TO ASK AT 5V`, `DISCOVERY IN PROGRESS`, `NO DISCOVERY YET`,\n  `PD HALTED SEE PD PAGE`, `NO VALID IDENTITY`.\n- After OK is held without a PD 3.0 contract: `NO PD ON THIS PORT` or\n  `PD 2.0 ON THIS PORT`, then `E-MARKER NOT READ` and `NEEDS A PD 3.0 PORT`.\n  The cable can only be asked under a PD 3.0 contract; a USB-A port never\n  has PD, even on a PD charger.\n- `METER PLUG IN CHARGER:` then `ACTS AS 5A CABLE` (in the test) or\n  `NOT ACTING AS 5A CABLE` \u002F `5A TEST: CHARGER PAGE`.\n- Failures: `CABLE ID NAK`, `CABLE ID BUSY NO RETRY`, `CABLE: CHARGER BUSY`,\n  `CABLE ON CC2: NOT ASKED` \u002F `TURN CABLE OVER`, `CABLE NO GOODCRC` \u002F\n  `NO E-MARKER OR NO VCONN`, `CABLE RESET NO ACCEPT`, `CABLE NO ID RESPONSE`.\n\n**`CABLE SUMMARY`**, the cable's claims in words, one per row (a row is\nleft out when the cable's layout does not have it):\n\n- `TYPE`: `PASSIVE` or `ACTIVE`, then `CAPTIVE` when one end is fixed to a\n  device instead of a plug.\n- `USB`: the highest speed generation the cable publishes: `USB 2.0`,\n  `USB3 GEN1`, `USB3 GEN2` (PD 2 cables), `USB3\u002F4 GEN2`, `USB4 GEN3` or\n  `USB4 GEN4`. A rate follows only where the generation alone fixes it:\n  `USB 2.0 \u002F 480Mbps`, `USB4 GEN3 \u002F 40Gbps`, `USB4 GEN4 \u002F 80Gbps` (USB4\n  over both lanes; an active cable must say it carries two). Gen1 and Gen2\n  get none, because their code does not say whether one lane or two are\n  used (5 or 10 Gbps, 10 or 20 Gbps).\n- `RATING`: maximum voltage and current, such as `50V 5A`, then `EPR` when\n  the cable sets its EPR bit (a charger checks that bit, not the voltage).\n  `ASSUMED` means the cable left the current out, so 3 A applies; PD 2\n  cables state no voltage; `NO VBUS` is an active cable that does not carry\n  it.\n- `LENGTH`: from the cable's signal delay, `0-1m` to `6-7m`, `>7m`, or\n  `~100m` to `~300m` for long active cables.\n- `VID\u002FPID`, and `CERT ID` (the USB-IF certification ID) when set.\n- Active cables also: `SBU` (`NO`, `YES, PASSIVE`, `YES, ACTIVE`), `BUILD`\n  (`COPPER`\u002F`OPTICAL","这是一款为KWS-X1和UT01C USB-C功率测试仪开发的开源Rust固件，完全替代原厂固件，支持USB PD（含EPR）、PPS、AVS、QC 2.0\u002F3.0、AFC、SCP\u002FFCP等快充协议解析与触发，可实时监测电压\u002F电流\u002F功率\u002FAh\u002FWh、纹波，并提供图形化显示与校准功能。基于embassy和no-std Rust构建，直接驱动HC32F460主控与FUSB302B PD控制器，无需依赖厂商闭源代码。适用于电子工程师、快充协议开发者及硬件爱好者进行USB-C充电器\u002F线缆性能测试、协议兼容性验证与产线简易老化检测。","2026-11-24 04:38:43","CREATED_QUERY"]