feat(vesc): extend motor diagnostics, configuration and transport recovery

Add firmware and extension catalogues, configuration transactions, sample review and QML diagnostics. Preserve explicit authority, bounded retries and stop recovery in motor transport.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-29 09:09:59 +03:00
parent 115476d2e6
commit f32c7b400b
186 changed files with 21197 additions and 339 deletions
File diff suppressed because it is too large Load Diff
+401
View File
@@ -0,0 +1,401 @@
# VESC Tool engine upgrades and operator surface
Owner direction, 2026-10-17: Mission Core should ultimately expose the full
VESC Tool feature set, including firmware and universal tools, in its shared
Node/Core settings modal. This is the target scope, not a claim of delivered
parity. No motor, configuration-write or firmware-upload hardware acceptance
is authorized in the present implementation session. Fresh-Ubuntu acceptance
is deferred by the owner.
## Release boundary
The official `vedderb/vesc_tool` repository is the original Tool source. The
adapter links its original objects and resources, replacing only `main.o`.
`VescInterface`, `Commands`, `ConfigParams` and `Utility` own vendor semantics.
Mission Core owns sessions, exclusive USB ownership, transactions, UI and the
bounded private JSON process contract. Do not fork upstream algorithms into
the frontend or Python to make an upgrade appear compatible.
`plugins/vesc/packaging/engine-profile.json` is the single reviewed source pin:
upstream commit, archive SHA-256, expected Tool version, environment, RPC major,
admitted firmware identities and implemented native methods. Its canonical
hash is embedded in the generated C++ header and exported by the engine.
Configuration groups, parameter order, types, ranges, units, enumeration
options and descriptions are read from the selected upstream schema; UI code
does not own an electrical-parameter catalog.
There are three different versions: upstream Tool, Mission Core adapter/plugin,
and the controller firmware. Updating Tool or Node never flashes a controller.
An upstream schema's existence is not hardware qualification. Current native
release admission remains stable FW 5.02, VESC type, no custom configuration.
Current physical evidence is the rover's 75_300_R2 controllers; this does not
qualify other boards, manufacturers, IMUs, BMSs or developer operations.
## Upgrade procedure
1. Review an exact upstream commit and source archive, including compatibility
handling, config signatures, firmware resources, native API changes and
dependency changes. Update the profile with both commit and archive hash.
Never build production from a moving branch or a `latest` download.
2. Build original Tool in the bounded artifact-owned Ubuntu staging profile.
Keep source, dependency and binary provenance. Preserve original objects.
The existing `tool_build.py` consumes the profile beside it; any standalone
build distribution must include `engine_profile.py` and the profile JSON.
3. Build `build_native_probe.py` and run that immutable job against the attested
original build. It embeds the profile, adapter source and generated header.
Test native binary/XML round trips for every retained firmware archive;
corrupt, truncated and mismatched-signature inputs must fail. Native offline
mode must deny all hardware operations. Check method inventory and RPC hash.
4. A new supported firmware or hardware family requires its own evidence and
operation-specific acceptance. Keep earlier profiles and fixtures unless
support is intentionally withdrawn. Unknown devices get an explicit
unsupported capability state; do not silently select the newest schema.
5. Create the native runtime bundle with its actual ELF dependency closure and
licenses. `payload.py` refuses a stale bundle after the profile changes.
Installer acceptance compares the offline engine handshake to the bundle's
version, commit and contract. Runtime verifies that handshake again before
admitting a USB owner. A mismatched native process is closed.
6. Build and qualify the standard Node release, including both shared UI
consumers. Install through the versioned owner installer; preserve the
qualified predecessor. Verify read-only identities, current telemetry,
reconnect/session behavior and modal operations through Core.
The previous qualified application package and native bundle are retained.
The current owner installer deliberately refuses an implicit package downgrade;
automatic/one-click rollback has not been implemented or accepted. Any rollback
must be a reviewed versioned installer operation restoring the prior qualified
binary and adapter. It does not undo a controller firmware update. Firmware rollback is a separate
device operation that requires a compatible image and its own verification.
Do not auto-flash, auto-migrate configuration or replay uncertain writes after
an application or USB reconnect. No unattended upstream update job is enabled.
## Current surface and remaining parity work
The modal uses canonical FeatureSettingsWindow above equipment inventory.
Native schema browsing/export, fixed read-only hardware diagnostics, PPM/CAN
inspection, existing backups, calibration and raised-rig controls share the
existing exclusive device owner. Snapshot results are bounded and separate
from durable backups. Session replacement invalidates mounted forms and
confirmations. The original Tool desktop UI is not shipped as the product UI.
VESC0.9.0 adds transactional typed configuration editing, XML import and
restore with preview/readback. Parameters remain native-schema driven; previews
are UUID/session/baseline-bound, expire after five minutes and never write.
Apply saves the original durably, consumes its preview once, compares exact
readback and retains a persistent interlock after an uncertain result.
Reconciliation reads only. Motor-control admission rejects pending config
writes. Synthetic fault injection and native offline qualification cover writes;
real-board acceptance currently covers reading and preview only. Actual config
writes remain unqualified on physical hardware in this session.
VESC0.10.0 adds a bounded raw-BIN firmware/bootloader transaction. Two RAM
staging slots hold at most 2 MiB each (bootloader at most 64 KiB), expire after
ten minutes and bind to UUID plus the current USB session. Ordered chunks,
length, SHA-256 and STM32 vectors are checked before an explicit apply. These
checks do not authenticate the image or discover its board compatibility.
Target application versions remain limited to the admitted engine profile.
Original VescInterface::fwUpload owns USB upload, compression and acknowledgments;
Mission Core owns durable pre-write backup, one-time intent, status, cancellation
and an uncertainty interlock. A reconnect never replays an upload. After native
confirmation, fresh UUID/HW/version can reconcile the workflow; it does not
constitute binary readback. Lost acknowledgments remain uncertain. Pending
firmware writes block motor/configuration changes. Companion telemetry can
continue while the other native owner uploads. These physical write/cancel/
recovery paths have synthetic coverage but no real-flash acceptance in this
session. Real-board acceptance covers reads and volatile image preparation only.
Original Commands also supplies ADC/Nunchuk/IMU/BMS snapshots and the bounded
read-only diagnostic terminal. Empty/zero peripheral responses do not establish
physical module presence. Custom hardware remains outside the admitted profile.
The original desktop UI is not installed as an interactive product dependency.
The remaining full-Tool work after the extended-image/BMS increment below includes
CAN/SWD workflows, PAS/custom-device/configuration capabilities, Lisp/QML and other
advanced terminal/developer tools, high-frequency acquisition and multiple live traces,
and additional motor wizards. These need actual native/API implementations,
applicability rules and acceptance; absent operations must not be represented
as working buttons. Full original Tool parity is not yet delivered.
## Live trends and CSV — 2026-10-18
The operator compares native GET_VALUES measurements inside the approved VESC
FeatureSettingsWindow. This is class A content in its existing device navigation.
A separate application workspace was rejected because the selected controller,
identity and diagnostic job already belong to this modal. SettingsCard, Select,
Button, IconButton, StatusBadge and ResourceRow own all controls; the SVG is a
VESC-specific numerical renderer, not a shared visual primitive.
The pinned Tool PageRtData groups currents/duty, ERPM, FOC, temperatures and
position. These same native measurements feed a selectable single-unit plot,
with interval, expand/restore, pause, minimum/maximum/sample mean and CSV export.
Input power is explicitly derived from input voltage/current; duty is percent.
Missing quantities stay absent. Sensor validity is not inferred from a numeric
temperature. This does not implement high-frequency sampled-data/FFT, original
Tool log import, multi-series axes or every upstream analysis tool.
One request in flight, 500 ms display cadence, 1200 ms cancellation, 1500 ms
freshness bound including response latency. No new USB owner/thread or operation
journal is used: Core reads its existing rover projection; Node has an authenticated
GET-only endpoint that renews the existing observer's two-second watch without
changing relay or input lease. Source monotonic sample time, USB session, instance
and onboard UTC are propagated. Repeats/reordering never add samples or renew
freshness; reconnects, source restarts, stalls and missing values break the line.
The modal retains at most 1200 records / five minutes in RAM with UTC daily reset,
expiry while paused and cleanup on close/session replacement. No disk history,
localStorage or replay publisher exists. Only explicit CSV export creates a file;
metadata is escaped against spreadsheet formula evaluation. Normal/empty/stale/
paused/unavailable states are distinct. Hidden tabs stop read interest. Acceptance
requires synthetic lifecycle tests, shared builds, an installed owner artifact
and real Core/UI readings without motor commands or controller writes.
Accepted release: Node0.8.49-18 / VESC0.11.0, owner
a24b9fa34097b3adaf6a9a9c, original Tool7.00 engine unchanged.19 Linux jobs
(including223 VESC runtime tests),1172 frontend tests, shared typecheck/build,
6 Core read operations and114/114 paired fresh snapshots over60.245s passed.
Both physical controllers render a visible graph in Core; CSV contains110
unique source measurements plus a pause gap. Configurations and drive assignment
remain unchanged. Real controller writes, physical port swapping and clean-OS
acceptance remain deferred. Installation and evidence hashes are in document17
and outputs/vesc-trends-20261018/release-proof.json.
## Extended image preparation and addressable BMS — 2026-10-18
Operator jobs: choose a compatible recovery image, inspect exactly the bytes
that would be written, and inspect/control an identified battery through CAN.
Class A content extends the existing VESC FeatureSettingsWindow: firmware stays
under configurations; BMS has its own tools section. A new application root or
separate raw vendor desktop was rejected because device identity, transport and
operator lifecycle already belong to this modal. Existing SettingsCard, Select,
Checker, Button and ResourceList/Row supply every control. Descriptive text keeps
the accepted Inter12px/muted48%/400/16.8px style. Empty, reading, received,
unsupported, expired and unconfirmed-command states have distinct copy.
HEX source is bounded to8MiB and normalized output to2MiB (bootloader64KiB).
A strict container/address/checksum/overlap gate precedes original HexFile parsing.
Only the STM32 application base0x08000000 or bootloader base0x080E0000 is admitted;
gaps become0xFF. Both original and normalized hashes are retained, and apply
uses the normalized digest. Native temporary files use the owned writable runtime
directory under the installed systemd sandbox. File staging remains volatile.
The installer carries41 immutable upstream5.02 image entries from
vedderb/vesc_fw_archive@0030cfa9d6250331436b31a01f006fe0546bf6a6. Selection filters
exact hardware name plus admitted firmware versions. Source generator and
payload verify pinned image hashes; fetch_firmware_catalog.py restores identical
inputs, checking both Git blob IDs and SHA-256. No runtime network download.
Images without hardware limits require a separate explicit acknowledgement.
These are upstream archive binaries, not a claim of reproducible compilation
or a way to infer a clone board's manufacturer.
VESC5.02 BMS proxy reads omit source CAN ID and source age. Decoder defaults for
absent fields are removed, empty cell sets do not establish BMS presence, and
cached values are never described as current battery connectivity.
Addressed BMS reading uses original canTmpOverride/getFwVersionBlocking and
Commands::bmsGetValues, preserving/restoring the local USB identity and schema.
The UUID/type is read before and after the measurement. Addresses0..253 are
allowed; broadcast is excluded. A timeout retires the native owner rather than
leaving a late CAN reply on a reusable stream.
The seven original PageBms buttons (charge on/off, balance on/off, reset Ah/Wh,
zero current) use original Commands with a reviewed BMS6.00 protocol profile:
vedderb/vesc_bms_fw@591d57dadb14d4392d4cf859a5187264a8aafed8. Each command needs a
60-second UUID/CAN/session-bound preview and explicit confirmation. Idle/input
checks, fresh BMS identity/read and durable intent precede a single consumed
send; reconnect never retries it. Zero-current calibration additionally requires
both reported currents below0.1A and the operator's isolated-load confirmation.
These commands have no completion ACK. The result is sent_unconfirmed or unknown,
never a fabricated successful readback. CAN serialisation and failure lifecycle
have synthetic/offline coverage; no physical BMS writes are part of acceptance.
Per-cell override needs a verified hardware cell-offset mapping and is excluded.
BMS custom configuration, BMS firmware update, direct USB BMS and hardware-specific
BMS tools are separate from these addressable command/read capabilities.
Full original Tool parity remains open: CAN/SWD flashing, additional admitted
firmware/hardware families, BMS/custom configuration and cell mapping, Lisp/QML,
high-frequency samples/FFT, log import, multiple traces and further motor wizards.
Real flashing, battery writes, motor movement and clean-Ubuntu validation are
not performed in this increment. Acceptance evidence is appended after install.
Acceptance: Node0.8.49-19 / VESC0.12.0, ownerbcda6616e335273a33c317d8,
passed112 native jobs/39 checks,19 Linux jobs with249 VESC tests,1176 frontend
tests and shared architecture/typecheck/build. Installed Core acceptance passed
24 read/staging operations on both controllers and116/116 paired fresh samples
over60.378s. Actual UI covered archive/HEX preparation, no-limits confirmation,
BMS proxy/CAN-empty states and Escape. Configurations unchanged; no motors,
flashing or BMS writes. CAN discovery returned no targets, so physical BMS-control
qualification is unavailable. Installer/catalog hashes, lifecycle and precise
limitations are recorded in17 and outputs/vesc-advanced-20261018/release-proof.json.
## Operator composition extension · 2026-10-18
Owner requested one VESC gear, generic settings first, a horizontal telemetry
comparison and independent modal scrollports. The job is to identify/configure
one controller or compare live drive readings without leaving the device modal.
Keep the existing FeatureSettingsWindow; moving to a new page would split the
same controller lifecycle. Generic device settings are a shared Sensor UI slot;
the plugin declares settingsInDetail instead of the host branching on VESC.
Prepared/unprepared, online/stale, request pending/error and empty readings keep
the same layout and authority. Generic Description, ComparisonTable, scroll
containment and aggregate initial LoadingRegion belong to Design Guideline.
The comparison preserves UUID assignments and stale identities but never shows
expired readings as current. No controller write is needed for visual acceptance.
## CSV and signal analysis adapter · 2026-10-18
The original Tool7.00 source remains pinned to01d5f10901116c311e3fb84d5a1541f663d3ce20.
The CSV adapter was checked against `VescInterface::openRtLogFile` /
`loadRtLogFile` and `PageLogAnalysis::openLog` / `saveCsv` at that revision:
RT semicolon/comma fields, trailing delimiter, milliseconds since midnight,
PWM fraction; Log Analysis key:name:unit:precision:relative:timestamp metadata.
Mission Core exported CSV is also accepted with source/session/UUID and gaps.
Unlike the original forward-fill reader, empty numeric fields remain missing.
That difference is explicit in the UI; no invented zero or held-current data.
Mixed RT CAN IDs / Core UUIDs, backward timestamps, nonfinite/formula values,
ambiguous columns and malformed CSV are refused. Midnight rollover creates a gap.
Files are bounded to4MiB/20,000 rows/96 columns and remain only in window RAM.
Manual imported evidence never enters live telemetry, a server or controller API.
One to four separate signals share the selected time interval and preserve each
signal's units. Pixel-bucket extrema reduction retains short peaks and gap
boundaries. FFT uses32–4096 contiguous samples, radix2, mean removal, a Hann
window with coherent-gain amplitude correction and one-sided Nyquist handling.
Uniform timestamps within1% are required. The interval, rate and frequency
resolution are shown. This is analysis of the imported sampling rate, not a
new high-frequency capture capability; a2Hz log cannot diagnose fast motor
phenomena. Synthetic sinusoid, missing/time/order/size cases qualify the math.
This increment does not claim full original Tool parity. CAN/SWD flashing,
additional firmware families, BMS/custom configuration/direct BMS USB, PAS,
Lisp/QML, high-frequency acquisition and remaining motor wizards stay open.
Acceptance: Node0.8.49-20 / VESC0.12.1, ownerff890b6d7fa6777743ae1094,
passed20 Linux jobs with249 VESC tests,1185 frontend tests,8 DG tests and shared
architecture/typecheck/build. Core acceptance passed6 read operations and117/117
paired fresh snapshots over60.480s. Both configuration hashes unchanged; no motor,
configuration, firmware or BMS writes. UI verified actual installed controller
identity/table/session replacement and synthetic CSV/FFT analysis. Full original
Tool parity and hardware-write qualification remain open as listed above.
Precise provenance/lifecycle:17 and outputs/vesc-ui-analysis-20261018/release-proof.json.
## CAN/SWD firmware and compact observation — 2026-10-18 candidate
The existing firmware card selects USB, one addressed CAN VESC, or an external
SWD target. This remains domain content in the admitted settings modal; a new
application workspace is unnecessary. Select/TextField/Checker/SettingsCard,
ProgressBar and Description remain shared Design Guideline controls.
CAN stages bind the gateway session plus target CAN address, UUID, hardware and
admitted firmware. Native temporary routing restores on success/failure; remote
configuration reads preserve the local schema and baselines. Before upload both
gateway and target must pass the existing idle guard. The immutable backup uses
the target UUID, with an authenticated download tied to the firmware operation.
Original fwUpload uses unicast routing and fwdCan=false: no broadcast firmware.
Lost ACKs remain uncertain and reconnect never replays the write.
SWD uses the original BM pin mapping/connect/erase/upload/reboot calls. Staging
BIN/strict Intel HEX never connects the debugger. Apply requires explicit target,
pins, main-flash address/span and physical compatibility confirmation. The native
MCU family response must match; image endpoints must be readable before erase.
The declared span is an operator declaration for STM32 families, not automatic
flash-capacity discovery. No option-byte, peripheral or UICR image is admitted.
Erasing clears the full target main flash, not merely the selected write span.
Every written chunk is read back; unsupported readback is rejected before SWD
connect. Cancellation/timeout never silently becomes success; the durable
firmware interlock remains until a confirmed result or a new explicit repair.
Readback and reboot ACK do not prove the target application booted. BM family
codes are not a board model or UUID. Direct USB BMS, broadcast CAN, arbitrary
memory/debug access and peripheral provisioning remain outside this increment.
The reviewed Tool pin is unchanged. Native offline qualification covers strict
SWD image bounds and unicast routing restoration; real CAN/SWD writes are not
part of current acceptance. No motor operation or new-Ubuntu test is performed.
Observation defaults use preferred initial pane sizes; persisted user geometry
is retained. Shared recursive minimum sizes clamp every ancestor split; when a
viewport is smaller than the complete layout, its canvas scrolls. Compact
ComparisonTable rows use 3px vertical padding and 1.25 line height: about 21px
per row instead of 31px. Label width120px, each VESC at least88px; two-controller
telemetry pane minimum320x280. Larger fleets increase the minimum width.
Observation saves serialize across remounts. On a failed ACK the client reads
the authoritative revision: identical content settles without replay; disjoint
fields merge once; competing edits keep a recoverable local draft and require
an explicit operator choice. Old drafts without a base are retained separately
instead of repeatedly submitting a stale revision. No forced board overwrite.
A CAN target already present through USB must be flashed from its own USB card.
During an addressed upload, observer polling also excludes any USB alias which
appears later with the same target UUID. A pending/uncertain CAN result follows
that UUID across transports; complete recovery in the originating gateway card.
Reconnecting the target over USB cannot bypass the firmware interlock.
### Accepted CAN/SWD increment
Node0.8.49-21 / VESC0.13.0 is installed and published through the standard owner
release. The candidate design above is delivered; physical writes are not part
of this acceptance.51 native checks,269 runtime tests,1190 frontend tests and21
Ubuntu jobs passed. SWD BIN/HEX preparation/discard passed through Core; CAN
scans had no responders. See document17 and outputs/vesc-can-swd-20261018.
Full Tool parity remains open for additional admitted firmware/hardware families,
BMS/custom configuration and direct USB BMS/firmware, PAS/custom devices, Lisp/QML,
advanced developer tools, high-frequency acquisition, multiple live traces and
remaining motor wizards. CAN/SWD implementation is no longer in that missing
feature list; real physical flashing and recovery still require separate hardware
qualification. No fresh Ubuntu qualification was performed, per owner scope.
### BMS configuration and programming increment (candidate 2026-10-18)
The existing VESC settings modal gains the complete custom-configuration schema
of an addressed CAN BMS (reviewed BMS6.00), including groups, typed fields, native
XML, default-value comparison, UUID/index/schema-bound previews and a durable
backup/readback barrier. A changed CAN address can be reconciled by UUID at its
new address. This does not introduce direct USB BMS or cell-mapping writes.
LispBM and QML are domain sections inside the same FeatureSettingsWindow, using
canonical SettingsCard/Description/TextAreaField/Checker/Button controls. This
keeps programming within the selected controller/session instead of a separate
application window. No new workspace or shared visual primitive is introduced.
CodeLoader from the pinned Tool owns imports, compression, flags and CRC format.
Only explicitly attached flat import files are staged in a private temporary
directory; package imports, arbitrary host paths and automatic QML execution are
excluded. Projects transfer in bounded chunks. Native Commands handles USB code
read/erase/write, exact-offset ACKs and readback, with no write retry. Upload and
Lisp start/stop/REPL are separate confirmed actions. Unknown writes and execution
persist as interlocks; stopping Lisp remains possible after an uncertain write.
Code operations have a separate reviewed FW6.00 USB profile; they do not admit
motor/configuration commands for that firmware. Current rover FW5.02 cannot run
these tools and is never upgraded implicitly.
The original protocol reference is vedderb/bldc tag6.00, comm/commands.c,
lispBM/lispif.c and flash_helper.c. The custom BMS schema fixture is taken from
the already pinned BMS protocol source. Native offline checks exercise the real
schema and CodeLoader; simulated transport faults do not qualify a physical BMS,
FW6.00 flashing or code execution. QML runtime rendering inside the browser,
package-store installation, direct USB BMS and additional firmware profiles remain
open. The installed status and acceptance are recorded in document17.
### Accepted BMS and code increment
Node0.8.49-22 / VESC0.14.0 is installed and published. The candidate workflows
above passed71 native checks,278 runtime tests,1192 frontend tests and21 Ubuntu
jobs. Existing5.02 controllers were read only; unsupported code operations were
correctly rejected. No QML browser renderer or full Tool parity is claimed.
See document17 and outputs/vesc-bms-code-20261018/release-proof.json.
## Extensions increment — 2026-10-18
Node0.8.49-24 / VESC0.15.0 delivers the package catalogue, imports, compatibility,
transactional replacement/recovery and stored library imports described in
[document28](28_VESC_PACKAGES.md). The package-store gap above is closed at the
implementation/synthetic level; FW5.02 catalogue workflows are accepted on both
physical controllers. Physical writes require the explicit6.00 profile and remain
unqualified. QtQuick rendering and the other outstanding tools remain open.
+64
View File
@@ -0,0 +1,64 @@
# VESC extensions
The shared Core/Node VESC settings window owns an Extensions section built from
Design Guideline FeatureSettingsWindow, SettingsCard, ResourceList/ResourceRow,
Description, Select, TextField, TextAreaField, Checker and Button. This is domain
content inside the existing modal, not a new workspace or navigation root.
The operator selects a package, reads its author documentation and compatibility,
then previews a complete Lisp/QML replacement before confirming the write.
Libraries remain separate from installable applications. Search/filter, empty,
loading, unavailable, unsupported, rejected and uncertain-write states are explicit.
The installer carries a hash-pinned RCC catalogue with 41 packages. Reproduce it
with packaging/fetch_package_catalog.py: changed upstream bytes fail verification.
The immutable qualified Node release also retains the exact catalogue. Runtime
refresh is explicit, targets the same fixed public URL as upstream VESC Tool and
changes only the catalogue. The publisher serves it over HTTP; the UI states this.
There are no payment, account or purchase flows. The Node host downloads a bounded
8 MiB response without redirects, cookies, credentials or proxy-environment use.
The USB service retains PrivateNetwork and receives bounded checked chunks.
Failed download, invalid archive or interrupted import preserves the previous
catalogue. Imported catalogues use one atomic replacement; individual imports
are limited to 16 packages / 8 MiB. Publication preserves at least 8 MiB
of the service JSON budget for journals and recovery. Catalogue import does not run application QML or Lisp. Compatibility uses the
isolated predicate described below. Explicit QML preview uses the separate
disconnected renderer described in document 29; Lisp is never run by preview.
Qt RCC v3 and VESC Packet containers are bounded before decoding. The original
pinned Tool CodeLoader unpacks packages and compresses QML. Lisp payload bytes,
embedded native libraries and alignment are retained. The descriptor compatibility
function runs in a bare QJSEngine with a 250 ms interrupt deadline and plain identity
data only; no Qt/QObject/USB/network/filesystem/application bridge is exposed.
The QML component itself and Component.onCompleted are never instantiated.
False compatibility rejects installation. Unknown compatibility requires an
explicit documentation-based confirmation; it never silently becomes true.
Existing firmware profile and flash bounds are additional independent checks.
Lisp editor pkg@ and pkg:: resource imports resolve only against the stored
catalogue. Original CodeLoader extracts the source or named attachment; the editor
packs a self-contained project with flat attachments. Host paths and network URL
fallback remain forbidden. Readback normalizes original package import paths into
attached files so an installed package remains editable without host-path access.
Install, update and removal replace both Lisp and application QML, including an
empty component. Before any write, a durable exact-byte recovery snapshot is saved
for the controller identity. Confirmation binds UUID, firmware, USB session, current
code hashes/flags and a five-minute lifetime. Both components are read back before
success. Lisp is stopped with acknowledgement but never started by installation.
Firmware boot behavior is separate and disclosed; no promise of disabled autostart
after power cycling is made. Original upstream installVescPackage is deliberately
not called because it starts Lisp immediately.
A timeout or lost ACK preserves a durable interlock and never retries the write.
Reconcile compares both components. Partial content stays blocked; recovery writes
the exact original snapshot after a new preview. A failed recovery never replaces
the original backup with partial contents. Installed package names are shown only
after identity and both code hashes match, not merely from a historical receipt.
Current physical rover controllers remain firmware 5.02. Catalogue browsing, import,
refresh, compatibility inspection and package download work on this profile. Code
writes require the explicit VESC 6.00 profile and remain physically unqualified.
The original extension increment did not include QML rendering. Document 29 adds
a native Qt Quick snapshot preview, not interactive QML/device execution or
full VESC Tool parity. Motor/configuration/BMS/firmware writes and code execution
are excluded from acceptance. No new Ubuntu installation test is claimed.
@@ -0,0 +1,117 @@
# QML snapshot preview and connection evidence
This document records Node27. Node28 adds interactive input, optional snapshots
and Core RAM receipts; see [the current extension](30_VESC_SAMPLE_DATA_AND_INTERACTIVE_QML.md).
The existing shared QML editor and Extensions detail surface offer an explicit
preview. This is domain rendering inside the existing FeatureSettingsWindow;
SettingsCard, Button, Description and TextAreaField remain Design Guideline
controls. It does not create a workspace, navigation root or new generic control.
The operator submits the current source (up to 120 KiB) using checked 16 KiB
fragments. Two uploads at most, five-minute TTL and exact device/session binding
bound driver RAM. Begin/chunk/render are snapshot operations. The driver does not
persist source or frames in its journal; Node expires snapshot result bodies.
Core and Node still use their existing operation receipt persistence, which can
retain uploaded command fragments and Core result payloads. This is not an
end-to-end RAM-only guarantee; dedicated cross-layer payload expiry remains open.
Changed source or session clears the displayed frame. No preview runs on opening
a section, selecting a package, importing code or opening a file.
Rendering reads the controller identity, motor/application configurations and
values through the existing USB owner. A separate executable uses the same pinned
upstream VESC Tool objects/resources and real Qt Quick software rendering. Original
Commands/ConfigParams decode those snapshots. All outgoing Commands are discarded;
there is no transport path from this process back to a controller. The output is
one 640 x 480 frame, clearly marked as a snapshot. Input events and continuously
updated telemetry are not implemented by this increment. BMS/Lisp replies not
present in the snapshot cannot be invented; dependent package panels may be empty.
QML requiring additional modules reports native load errors.
Containment precedes Qt and user QML. Linux Landlock ABI 3 or later restricts reads
to the shipped runtime, fonts and local time data and denies filesystem writes.
Seccomp denies sockets/connections, executable/process creation, ptrace, process
memory access, namespace/mount changes and io_uring; Qt threads remain admitted.
The renderer checks that private file reads, networking and execution are denied.
There is no inherited device FD. Limits: 512 MiB virtual memory, three CPU seconds,
64 FDs, no core dumps, six-second parent wall deadline. Parent timeout kills and
reaps the child. One preview runs under the existing operation lock. The service
budget is 1 GiB and preview refuses admission above 384 MiB current cgroup usage.
Unsupported containment fails closed. No root/service-account workaround is used.
The native build downloads signed Ubuntu QML packages into private staging,
extracts them without installing packages, and bundles modules, fonts, dependency
closure and license notices. Cached packages must match recorded SHA-256 values.
The owner installer carries the runtime and service limits from first deployment.
This supports the declared Ubuntu 24.04 amd64 environment; it is not fresh-host
acceptance. Native tests cover rendering, discarded motor-command serialization
without transport, malformed QML, official package components and an infinite loop.
Connection evidence adds transition records (identified, first sample restored,
read failed, USB detached) to the service journal. Records include UTC/monotonic
time, UUID, USB address/port/tty, old session, last sample time/age and selected last
values. Record construction happens before session/sample cleanup. Native failure
records retain the initiating RPC, recent RPC history and old session. Failed
native startup retains the exit code and last 4 KiB of stderr before the next
attempt can replace its runtime log. Journal
failures cannot prevent cleanup. There is no per-sample journal write. Transition
records are bounded to 4 KiB; service rate limiting is 60 records per 30 seconds.
System journal retention still owns durable diagnostic storage.
## Diagnostic coverage and remaining work
Already available: firmware hw_status/faults/read-only terminal; live values
including Id/Iq, Vd/Vq, duty, ERPM, input/motor current, supply voltage and faults;
up to five minutes/1200 points in RAM; explicit CSV export; original Tool CSV import,
multiple analysis plots and bounded FFT. The live graph is at most 2 Hz and is not
a waveform oscilloscope. Disconnects remain gaps rather than zeroes.
Not yet full parity: original Sample Data high-frequency acquisition/triggers,
synchronised desired/applied command and Hall/observer traces, interactive QML
input and device command admission, and a combined bounded incident export spanning
MCU, USB owner and Linux kernel. The upstream LogUI package is a configurable log
interface, not proof that USB enumeration failures or arbitrary motor commutation
faults will be recorded. Package compatibility and required Lisp/firmware features
must be assessed individually. Current physical controllers remain firmware 5.02.
Low-speed diagnosis must correlate control mode, FOC sensor mode, Hall table and
signals, R/L/flux configuration hashes, commanded/applied output, current/voltage,
ERPM and phase data. Hall analysis and motor detection may energize the motor;
they are not read-only diagnostics. Calibration improvement alone does not rule
out sensor/wiring/load or mechanical causes. Do not change several parameters to
forum values without a measured baseline and a repeatable safe experiment.
## Rover evidence checked on 2026-10-18
The owner reports low-speed sticking on both sides, from both the transmitter and
Core. Unloaded calibration previously restored good response, followed by
recurrence the next day. This is not explained by the left/right sensor-mode
asymmetry alone.
Read-only current motor/application packets for both UUIDs exactly match their
2026-09-23 post-calibration archives (all four SHA-256 values and archived packet
payloads checked). A contemporaneous owner note describes excellent transmitter
response; that acceptance was unloaded and lacked synchronized command telemetry.
The present evidence does not support loss of the stored calibration. It does not
prove unchanged load, wiring, power or runtime conditions.
Archived attended Hall measurements on 2026-09-24 establish an earlier left
Hall-path defect: states [1,3,5,7], incomplete six-state table, firmware failure.
The right returned [1,2,3,4,5,6] and succeeded. Those measurements changed no
configuration. Left Sensorless / right Hall was already the accepted post-
calibration configuration; the left Hall circuit was not proved repaired. This
historical defect does not identify the current cause affecting both motors.
The current-boot Linux journal contains USB enumeration EPROTO (-71) on port1-3
and a later disconnect on port1-2 on October17. Pre-enumeration events cannot
reliably be bound to a controller UUID. No later physical disconnect appears in
the captured kernel journal, despite historical userspace native failures.
Linux documents EPROTO as an ambiguous USB failure, not a specific cable or
controller diagnosis. Current MCU counters show one USB configuration and zero
write timeouts on each controller, with no stored faults since startup. Those
counters do not cover earlier boots or failed host enumeration.
Raw read-only baseline, historical comparisons and source links are retained in
the task's vesc-qml-diagnostics-20261018 evidence. No motor operation, calibration,
power cycle, firmware update or controller configuration write was performed for
this investigation.
@@ -0,0 +1,81 @@
# Sample Data and interactive QML
Node 0.8.49-28 / VESC 0.17.0 adds two domain renderers inside the existing
FeatureSettingsWindow. All controls use Design Guideline exports. Sample Data
never arms on opening a page. QML never opens on selecting a package/source.
## Native Sample Data
The existing per-attachment VESC Tool owner receives Commands::samplesReceived.
The live profile is FW5.02: eight Auto32 numbers plus status/phase (34 bytes),
2000 samples maximum, third phase current derived from the first two. The
firmware has no raw-ADC flag, sample index, ACK, timestamp or capture identity.
NOW/START return the requested length; triggered modes return the full ring.
The host's capture UUID must never be described as an MCU-generated event ID.
The nominal interval uses decimation / reported sampling frequency.
Capture state is asynchronous; start/status/stop/fetch/read RPCs do not block
while waiting for a motor start/fault. RAM contains one buffer per USB owner,
up to 2000 rows, read in pages of 128. Deadline 2–120 seconds sends OFF; five
minutes discard RAM. A new capture waits for one second of quiet after a prior
transfer. Malformed/partial data is explicit, not padded with zeroes. Fetching
last samples is marked unverified because the firmware cannot prove provenance
or trigger completion. USB loss destroys host session authority; no stop ACK
can be claimed after detachment, and the controller may still retain a buffer.
During capture, configuration/firmware/code writes, measurements and temporary
CAN target operations are excluded. Ordinary driving is not initiated, claimed,
stopped or changed by capture. Stop is COMM_SAMPLE_PRINT/OFF, never a motor
command. Native qualification uses a disconnected upstream Commands serializer
and synthetic packets; no Sample Data acquisition was run on the rover.
The UI compares up to four signals, selects an interval, offers bounded FFT only
for a complete uniform buffer, and exports CSV/JSON with a capture passport.
The log analyser imports original Sample Data CSV including Tool7's trailing
semicolon on data rows only. Unindexed loss cannot be placed at an exact time;
an incomplete time axis is only an estimate from received samples.
## Interactive QML
A single isolated Qt Quick child preserves object state and accepts bounded
pointer, wheel, key and text events over private stdin/stdout. It renders a
640x480 PNG on each interaction or explicit refresh. No socket/USB connection
is handed to QML; outgoing Commands remain discarded. Default opening requires
no controller queries. An explicit snapshot option reads configurations/values
once. This is interactive viewing, not full device-command execution or video.
Limits: 32 events/frame, browser queue 128 events, 240 native requests,
60 seconds idle, 300 seconds lifetime, 12 CPU seconds, 512 MiB address space,
64 FDs, 512 KiB PNG, 6-second parent RPC deadline. The parent kills/reaps failed
children; discovery maintenance closes expired/detached sessions. Source,
section and session changes close the viewer. One child globally avoids an
unbounded process pool. Landlock/seccomp and shipped Qt dependencies follow
29_VESC_QML_PREVIEW_AND_DIAGNOSTICS.md. CPU limits for the legacy one-frame
preview remain three seconds. Unsupported imports fail visibly.
QML built around live Lisp/BMS replies or output/write commands still requires
an admitted device broker. These are remaining parity items; original objects
being linked does not grant a package hardware capability.
## Core data lifecycle
Sample Data and QML operation receipts are hydrated from a lock-protected RAM
cache, 64 entries/8 MiB, five minutes and UTC daily reset on access. Database
rows/history retain tombstones without payloads; restart never re-enqueues
an expired ephemeral request. Driver and Node already keep snapshot result
bodies in bounded RAM. This is not a claim that all legacy command fragments
or every package source has become nonpersistent. Existing records are not
removed by this increment.
## Acceptance scope
Native decoding, command serialization, timeout, QML clicks/state/text/key
input, containment and cleanup are software-qualified with fixtures. Python,
Core queue/cache and frontend CSV/FFT tests cover the adapters. Normal versioned
Ubuntu build and owner installer carry the same runtime. Current owner scope
excludes motor starts, fresh captures/logging, calibration, configuration writes,
firmware flashing, Lisp execution and a fresh-Ubuntu test. Hardware acquisition
and dangerous operation qualification remain explicit future work.
Remaining diagnostic priorities and upstream module review are retained in
outputs/vesc-samples-20261018/module-audit.txt. Full Tool parity is not claimed.
@@ -0,0 +1,75 @@
# Saved Sample Data analysis
Node0.8.49-29 / VESC0.17.1 extends the existing Sample Data section. It adds no
hardware operations, no telemetry subscriptions, no server-side file storage,
and no product navigation. Native VESC Tool remains7.00 at
01d5f10901116c311e3fb84d5a1541f663d3ce20; the native bundle is unchanged.
## Operator job and composition
The operator opens one or two existing captures to inspect current/Hall/phase
relationships, measure a selected interval and compare saved controller data.
The accepted placement is domain content inside the existing VESC settings
Sample Data section. A separate workspace would split capture and inspection;
the general CSV log analyser remains available for long RT/log-analysis files.
This is class A under the surface-extension protocol, not a new shared control.
SettingsCard, Description, Button, Select, RangeControl, ComparisonTable and
StatusBadge are existing DG exports. SignalPlot is the existing domain SVG
renderer; cursor strokes and discrete-state steps are data annotations.
Empty: open A/B; loading: file buttons disabled; error: retained old valid data
and explicit rejection; loaded: passports, interval, filters, cursors, plots,
measurements and optional FFT; expiry/close: discard RAM. Unsupported live
hardware does not block offline imports. No demonstration data is preloaded.
## Provenance and bounds
Each file is at most4MiB/2000samples. JSON schema
missioncore.vesc.sample-data/v1 validates indices, finite values, cadence,
state/count agreement and MCU UUID syntax. Metadata always comes from the
file, never the currently selected VESC. Export freezes the passport at read
time, so a subsequent status response cannot relabel a previous buffer.
Original VESC Tool Sample Data CSV includes its asymmetric trailing delimiter.
CSV has no identity/completeness proof; missing Hall/sampling columns remain
absent. A/B times start at zero independently: no capture synchronization or
causal correlation is claimed. FW5.02 loss positions cannot be reconstructed.
Partial/unverified passports disable FFT. CSV FFT is explicitly an analysis of
presented rows with unknown transfer completeness. All sources stay in browser
RAM for at most five minutes, with UTC daily reset and unmount cleanup.
## Numerical semantics
FIR coefficients match DigitalFiltering::generateFirFilter from the pinned
Tool: mirrored rectangular frequency bins, real normalized inverse transform,
fftshift, optional Hamming. Taps=2^bits, bits1..10, normalized cutoff0..0.5.
Moving mean uses uniform coefficients. Only I1/I2/I3 are filtered. Valid
convolution positions and optional half-window delay compensation match Tool.
Unlike Tool's padding, unsupported edges are null, never invented zero current.
Missing samples/irregular cadence break the filtered trace. Source arrays are
immutable. The bounded direct transform costs at most1024^2 operations per
coefficient change; coefficients and traces are memoized separately.
Cursors snap numerically to the nearest sample; readout reports actual times,
values, delta and elapsed time. Missing/out-of-source values remain absent.
Interval count/min/max/RMS and FFT use the displayed data. Discrete Hall and
commutation traces use steps. Signals retain separate vertical scales. Windows
shorter than1ms now use the entire plot width, including other SignalPlot users.
ResizeObserver supplies the actual SVG width, retaining readable12px axis text
and the chosen plot height in narrow modals; its observer disconnects on close.
FFT uses existing Hann/demean normalization and uniform-step checks; it selects
the last power-of-two count up to1024 in the bounded2000-sample capture. No
algorithm diagnoses a mechanical or electrical cause from these numbers alone.
## Acceptance boundary
Synthetic passport/CSV, invalid data, independent metadata, original FIR
coefficient vectors, convolution/delay, missing edges, cursors, short time axes
and FFT invariants are unit-tested. UI acceptance uses clearly labelled local
synthetic files only and sends no VESC operation. Standard Ubuntu qualification
and versioned installer ship the shared UI to the board. Core8000 is on the
operator Mac. No motor, capture/logging, calibration, configuration write,
firmware flash, Lisp execution or new-Ubuntu test is authorized in this pass.
Full VESC Tool parity remains open, particularly admitted live QML hardware
operations, motor/USB command-response correlation and remaining tools.
+45
View File
@@ -0,0 +1,45 @@
# QML hardware read broker
Node 0.8.49-30 / VESC adapter 0.18.0. Tool 7.00 remains pinned to
01d5f10901116c311e3fb84d5a1541f663d3ce20. This increment is not full Tool parity.
The existing QML page offers disconnected mode, a one-time controller snapshot,
and an explicit read-only hardware broker. No data acquisition starts when a
section is opened. The isolated Qt process retains no USB/socket descriptor.
Its real upstream Commands objects emit typed read intents to the parent service;
the existing exclusive native owner validates and constructs the USB operation.
Only FW identity, values, MC/APPCONF, PPM, ADC, Nunchuk, IMU mask and BMS values
are admitted. Firmware compatibility remains checked in the native engine.
The QML connection indicator represents the broker session. Upstream transport
stays closed, and writes/raw packets/CAN forwarding/terminal/Sample Data/Lisp/
flashing are blocked. All other action workflows still use their existing
prepare/confirm gates. This is not unrestricted execution of arbitrary packages.
On open, three queries establish the configuration/value context. Subsequently,
only interaction/Refresh frame services at most two reads, at most two batches
per second, with 1s per-command cooldown (10s for identity/configuration). There
is no background reader. A bounded nine-command queue coalesces duplicates;
responses use actual upstream decoding/signals, not replay of old telemetry.
The last reply time, read count, pending count and rejected commands are visible.
Controls use the existing Design Guideline Checker/Button/Description components.
A session is bound to device and USB session identity, lasts at most 5 minutes,
expires after 60s idle / 240 exchanges, and closes on disconnect, navigation,
source replacement, timeout or invalid reply. CPU/memory/filesystem/network
confinement and transient Core/Node receipt lifecycles are unchanged.
Validation covers exhaustive 256-command classification, malformed/trailing
payloads, batch atomic rejection, pacing, queue coalescing, stale session, busy
owner, response mismatch, actual Qt input and real Commands receive signals
using synthetic packets. These checks perform no physical motor/capture/flash.
End-to-end acceptance separately reads ordinary values through Core, then closes
QML; it does not start Sample Data, logging or any write operation.
Remaining diagnostic work: opt-in command/response/USB correlation, explicit
rotor/Hall mode admission, CAN Analyzer reception and full diagnostic console.
Original Debug Print is the Tool's Qt/application/status console (mainwindow.cpp
and pagedebugprint.cpp), not an automatic MCU/USB root-cause recorder. MCU terminal
prints, Linux USB events and native exchange failures must remain distinct in a
combined diagnostic report. Never infer a physical fault cause from one timeout.
No new fault collection or physical diagnosis is claimed by this release.
@@ -0,0 +1,50 @@
# VESC diagnostic report review
Node0.8.49-31 adds the same report projection to Core and onboard UI. The
native broker/engine remains VESC0.18.0 from qualified Node30.
## Product-surface admission
Class A: additional domain content in the existing VESC USB/error section.
The operator reads hw_status/faults and compares two explicit reads. Keep the
existing section rather than creating another console/workspace: it owns the
same controller and read lifecycle. Reuse SettingsCard, ComparisonTable compact,
Description and Button. No new DG geometry, states, icons or navigation.
The summary precedes optional original text. Missing/ambiguous counters stay
unknown; duplicate lines, overflow or negative values never become zero.
Fault entries retain original code and fields, including unrecognised fields;
no-error is recognised only from the exact firmware phrase. Reports end at
native print quiescence, not a firmware completion ACK. Partial reports are not
certified complete. A historical fault is not declared currently active.
The comparison uses controller ID, firmware/hardware identity, verified UUID in
hw_status, USB session and ordered observation times. Reduced counters suppress
all deltas (possible reset/overflow); same counters do not prove absence of USB
failure/reboot. Config events alone are not diagnosed as cable failures.
At most current and explicitly selected baseline live in window RAM. Each
expires after five minutes using monotonic and wall time, on UTC day change,
controller/session replacement, offline transition or section close. The timer
only expires memory; it never sends controller commands. Existing read receipt
storage semantics are unchanged; this is not an end-to-end persistence claim.
## Scope and verification
No protocol commands, USB owner, board dependencies, firmware admission, motor
controls or logger are added. Only existing vesc.diagnostics.read is used after
a button click. No new acquisition, output, configuration or flashing test.
The parser follows terminal.c hw_status/faults (original VESC firmware), with
redacted synthetic fixtures based on the previously retained 5.02 responses.
Local helper source: work/vesc-upstream/terminal.c in the owner investigation.
Missing Runtime in the installed firmware is not invented from wall-clock time.
Meaningful software checks cover partial/duplicate fields, bad identities,
changed USB session, reset/overflow, expired/reordered data, repeated faults,
unknown fields and TTL/day-boundary behaviour. UI acceptance and qualified
installer evidence are retained in outputs/vesc-diagnostic-review-20261018.
Remaining diagnostics: opt-in incident correlation, typed rotor/Hall stream
admission, CAN Analyzer and full debug-message console. This review does not
close full VESC Tool parity or establish the physical USB/low-speed cause.
+61
View File
@@ -0,0 +1,61 @@
# Rotor/Hall observations in saved Sample Data
The existing Sample Data analysis surface now reviews raw Hall states, observed
state spans, single/multiple-bit changes, phase steps and absolute motor current.
The A/B summaries follow the selected interval. A paginated event list moves the
existing Hall, electrical phase and current plots/cursors to an observed feature.
No transport, timer acquisition, logging, output lease or controller writes are
introduced. Imported files retain the existing 2000-row, 4 MiB, five-minute RAM
and UTC-day limits. Closing the section clears them.
This is an additional analysis view of original VESC Tool Sample Data, not the
live Rotor Position stream and not a physical stall detector. On FW5.02,
`mc_interface.c:1798` stores `mcpwm_foc_get_phase()` as an eight-bit angle using
250 steps/revolution; line1835 stores `mcpwm_read_hall_phase()` in three bits.
The phase is electrical control phase, not an independent shaft measurement.
CSV may lack Hall or provenance; unavailable fields never become zero.
A multi-bit difference between consecutive received samples may be decimation
or packet loss. No invented Hall order, direction or commutation fault is inferred.
0/7 are shown as observations; significance depends on connected/enabled sensors.
No all-six-state requirement is imposed on a short recording. A constant state
is not classified as stuck. Phase differences are shortest wrapped differences;
180 degrees is ambiguous, larger inter-sample motion is unknowable. Missing or
invalid samples break adjacency. No velocity or mechanical angle is inferred.
Unknown loss location in non-indexed FW5.02 data remains explicitly uncertain.
## Live Rotor Position admission remains separate
FW5.02 `commands.c:432-445`: COMM_SET_DETECT changes a display mode and resets
the control timeout in every mode; NONE releases a BLDC motor, INDUCTANCE starts
detection. It is not admitted through the QML read broker or a generic read API.
The new review does not send this command. Future live streaming must explicitly
own that operation, type-check motor/mode and bound cleanup without disguising
it as read-only. No live capture was used for this release's acceptance.
## Product surface
Class A: domain content in the existing VESC Sample Data section, using
SettingsCard, ComparisonTable, Select, ResourceRow/List, Description and Button.
A separate navigation destination was rejected: it would duplicate the same
file lifecycle, interval and plots. Empty state remains the existing import
prompt. Hardware availability does not gate offline analysis. Actions only
navigate already loaded data; no automatic upload or capture.
## Parameter editor spacing
LoadingRegion was the single grid child of SettingsCard; its nested selects,
search, helper and list therefore lost the parent gap. Manual read loading belongs to its button; the redundant region is replaced by
the existing sensor-content token stack. The same correction covers BMS and
peripheral/terminal reads; the independent backup list load retains its region
with that stack. Export/import and draft actions use the
existing wrapping sensor-actions group. The same grouping covers Sample Data
export. Design Guideline COMPONENTS.md documents wrappers preserving spacing.
## Acceptance boundary
Synthetic checks cover all six states in both orders, 0/7 runs, missing/invalid
channels, multi-bit transitions, gaps, phase wrap/half-turn ambiguity, interval
edges, event focus, legacy CSV, limits and immutability. Browser acceptance uses
synthetic files and ordinary configuration reads only. Motor output, Sample Data
start/fetch, logging, calibration and flashing are excluded.
+278
View File
@@ -0,0 +1,278 @@
# VESC control transport
The onboard VESC profile owns the transport used by Observation Center commands.
The operator chooses a common USB/CAN route or different routes for assigned
motors in the existing board settings. No motion is produced by opening or
saving this editor. The built-in VESC Tool uses the same selected endpoint for
its operations. A separately launched upstream desktop Tool owns its own
connection settings; this integration does not modify that application.
Controller CAN ID/bitrate and the board connection choice remain separate.
Changing a board route never rewrites controller configuration.
## Identity and availability
- Motor positions are bound to MCU UUID, never a tty number or physical USB port.
- USB and CAN endpoints for the same UUID produce one controller in inventory.
- CAN availability requires a firmware reply with the assigned UUID; detecting a
USB-CAN adapter does not establish controller availability.
- Initial defaults use verified USB, or the single verified CAN route when USB
is absent. When no route is verified, the UI shows unavailable.
- Explicit saved routes remain sticky across disconnect/reboot. There is no
automatic fallback in an active control session.
- Configured offline controllers remain in the inventory so board profile
metadata can be edited without a live VESC USB connection.
- FW 5.02 CAN ID and baud rate are obtained from verified configuration backups
and bounded read-only refreshes over USB. Unknown wiring or a different
configuration schema does not become a guessed usable endpoint.
## Runtime ownership
The USB-CAN service remains the sole SDK/USB owner. Its existing Unix socket
exposes a separate peer-UID-restricted bridge API to mission-core-vesc.
A channel lease lasts 750 ms and is renewed while the bridge is alive.
Manual analyser configuration, transmit, clear, start and stop cannot compete
with a leased channel. Closing the last lease stops that channel.
The pinned upstream VESC Tool continues to encode commands and enforce its
configuration, lease and watchdog guards. A private TCP bridge connects native
Tool to VESC CAN buffer framing. Only 127.0.0.1 in the VESC service's existing
PrivateNetwork=yes namespace is used. AF_INET is added by the shipped unit;
the namespace has no LAN or internet interface. No additional host listener,
route, capability, external service or system Python package is introduced.
CAN transmissions use classic extended frames. As of USB-CAN 0.2.7, exact
unicast native duty/current/RPM setters, the existing 250 ms PPM-output inhibit,
and six argument-free reads use normal transmission with adapter self reception.
Only one frame is submitted; the bridge waits for its exact echo within the
caller deadline and at most 40 ms. An error or missing/late echo retires every
claim on that channel and resets it. There is no application replay or silent
fallback. Other commands retain their existing classification: complete
acknowledged limits/configuration writes use their VESC ACK path; unclassified
packets stay single-shot. Responses validate target, size and CRC.
The private FIFO marker follows completion of those sends, so native setter
success now includes the adapter echo. This is not a VESC application ACK and
does not prove physical motor movement. DEV records the confirmation kind,
count and elapsed time separately in the existing CAN diagnostics.
An active manual control session pins profile revision, drive revision, UUID and
attachment session. Detach, replacement or changed selection terminates it.
The existing neutral checks, RC takeover, volatile current limits, native output
watchdog and controller command timeout remain in force.
## Portable installation
Node 0.8.49-64 carries VESC profile 0.20.6 and USB-CAN profile 0.2.7 and is
installed on Rover006. Earlier dated qualification entries below describe their
own releases; they do not override the current transport policy above.
The normal owner installer includes all Python bridge modules, pinned native
Tool runtime, Waveshare SDK, udev rules, service definitions and preparation
steps. A newly created VESC service account is admitted by the already-running
CAN service without a manual restart/permission repair.
The supported environment remains Ubuntu 24.04 amd64 with systemd. Other
OS/architectures must pass explicit dependency/driver qualification; no universal
OS compatibility is asserted. No clean-host experiment is required by this
change. Persistent controller metadata and transport choices live in the VESC
state directory and are separate from OS enumeration and the compiled payload.
Rollback preserves configuration files. A release predating the transport
profile supports USB only; its transport must be reviewed before manual driving.
## Validation boundary
Synthetic tests cover CAN fragmentation and CRC, expired/reconnected sessions,
UUID mismatch, common and mixed transport selection, offline inventory,
exclusive channel ownership and fail-closed loss of the selected bus.
The native artifact qualifies a loopback peer without loading the USB-CAN SDK
or opening hardware. Existing VESC/USB-CAN regression tests cover the prior
control guards. Physical movement, flashing, captures and diagnostic recordings
are excluded from assistant acceptance; manual driving belongs to the operator.
The Node inventory admits assigned offline UUID metadata and verified selected
CAN sessions from the installed VESC driver. Its direct USB attachment guard
remains unchanged for USB controllers and other protocol-identified devices.
## CAN status polling correction (2026-10-21)
A live bridge lost its lease after the adapter service rejected its poll with
“adapter busy”. NativeLink now preserves the original bridge failure before
cleanup instead of reporting only a generic process exit. Contention failures
also identify the SDK operation holding ownership and its elapsed duration.
While bridge claims exist, status returns the worker's RAM snapshot without
calling the vendor USB enumeration function. Exact sysfs USB generation checks,
RX failures, 750 ms lease expiry and transmission deadlines remain unchanged.
Synthetic regression covers status without USB enumeration and removal of an
adapter with an active claim. No timeout extension or transmission retry was
introduced. Live CAN1 identity remained in one session for 166 seconds after
initial retries; CAN2 has no replies yet. This establishes one connection, not
motion acceptance or complete CAN commissioning.
## CAN-only follow-up (2026-10-21)
After the operator rewired the second CAN pair, both controller UUIDs were read
through their independent CAN channels with direct controller USB unplugged.
Core saved an explicit CAN profile for both drive positions (revision1). A
normal live-view check exposed recurring read deadlines; the earlier idle
identity-session acceptance does not establish continuous telemetry readiness.
Node38/VESC0.19.3 gives passive CAN observation300ms instead of the
USB/control-loop60ms budget. Motor-loop limits, bridge lease and single-shot
transmissions are unchanged. Bounded bridge request/reply counts and elapsed
latency accompany existing failure records; no payload history is retained.
The candidate passed its offline qualification. The first installation was
rejected while automatic CAN claims were active. After operator USB-adapter
detach, the same normal installer completed at2026-10-21T16:43:12.882077Z
(session3332fe7341144c90be8e44873e186cef). Node38/VESC0.19.3/USB-CAN0.2.1 are
installed and active; source hashes match and the saved CAN profile remains
revision1. Adapter USB reconnect and read-only live acceptance are pending.
Continuous CAN telemetry and physical control remain unqualified. Evidence:
outputs/vesc-control-transport-20261021/release-proof38-installed.json.
## Read transport and immediate detach correction (2026-10-21, candidate39)
Node38 live acceptance failed: zero of27 evaluated snapshots contained both
fresh controllers. Existing bridge failure metadata showed accepted sends in
about1–2ms, successful replies in about15–16ms, and missing replies even at
300ms/2000ms. Extending the read timeout alone did not restore the link.
The vendor API manual (chapter2.5) documents that transmit_type1 discards a
frame after arbitration loss or a bus error. Candidate39 uses transmit_type0
only for a single exact PROCESS_SHORT_BUFFER request containing an argument-free
FW_VERSION, GET_VALUES, GET_MCCONF, GET_APPCONF or GET_DECODED_PPM command.
The response address must match its owner, and broadcasts/self-targets are
excluded. Motor, lease, write, forwarding, fragmented and unknown packets retain
single-shot transmission; no application replay is introduced. Existing request
deadlines and lease expiry still close/reset the channel after failure. Vendor
acceptance of a send is not treated as a proved response or motor execution.
This is a documented transport defect correction; arbitration loss on the
physical rover is a hypothesis until runtime acceptance, not a measured fact.
Source:https://files.waveshare.com/wiki/USB-CAN-FD/Manual/USB-CAN-FD-B-API-Manual.pdf.
Node inventory previously checked a VESC-reported adapter list without checking
current OS USB presence. Candidate39 carries the exact provisional USB generation
from the adapter driver and invalidates a selected CAN route against the Node's
fresh sysfs inventory. A stale driver cannot keep that route online after detach
or revive it on replug with a different USB generation. UUID, saved assignments
and transport choices remain available as offline settings. Synthetic tests
cover immediate detach/replug and every command byte's retransmission policy.
Node0.8.49-39, VESC0.19.3 and USB-CAN0.2.2 were installed through the qualified
owner installer after operator USB detach, completed at2026-10-21T17:09:02.434869Z
(session744b7f463c704308b4e67c1b1637a901). Nine runtime hashes match the source.
Two30-read ordinary Core live-view checks, before and after a real USB reconnect,
each passed27/27 evaluated snapshots after warm-up, with one stable session per
UUID, fault code0 and maximum ages311ms/305ms. On disconnect, the first Core
inventory with the adapter absent also invalidated both VESC routes; no stale
online inventory was observed with0.5s polling. The operator confirmed immediate
UI disappearance. Reconnect created new sessions automatically and retained the
exact saved routes at revision1. All three services stayed active with NRestarts=0.
Core8000 is healthy and the normal installer catalogue now publishes Node39 with
the qualified SHA. The operator accepts the reported approximately17s startup
latency; no startup optimization is requested. This proves bounded live reading
and one physical hotplug cycle, not motor delivery, long-duration reliability,
clean-OS qualification or the physical cause of earlier lost CAN replies.
No motor, flashing, raw capture or diagnostic recording was initiated. Evidence:
outputs/vesc-control-transport-20261021/release-proof39-installed.json.
### Node40: neighbour-query coverage and bounded acceptance
The human control-preparation attempt on Node39 failed at COMM_PING_CAN/query62,
before claiming outputs or applying temporary motor limits. This generic native
read was missing from the normal hardware-transmission allowlist. Node40 adds
only the exact argument-free62 request; forwarded/broadcast/argument-bearing
requests and all output commands retain the prior single-shot policy. No motor
lease or query deadline was extended and no application replay was introduced.
Node0.8.49-40, VESC0.19.3 and USB-CAN0.2.3 are installed through the owner
installer and published in Core's normal catalogue. After reconnect, two explicit
vesc.can.read operations completed through Core in2.59s/2.59s with matching
UUIDs; subsequent ordinary telemetry passed27/27 evaluated snapshots, max321ms,
fault0 and stable sessions. Saved routes remain revision1 and services are active.
This is bounded read/scan acceptance. Human control preparation, motion,
long-duration reliability and clean-OS qualification remain separate gates.
See the Node40 ledger section and private release-proof40-installed.json.
### Node41: acknowledged volatile-limits transport
The next human preparation step on Node40 reached COMM_SET_MCCONF_TEMP48,
a37-byte fragmented request, but received no ACK within the unchanged native
exchange deadline. Node41 uses normal hardware sending only for the exact
non-storing, non-forwarding, ACK-requested limits packet; CRC, ordered fragments,
unicast target and finite fields must all match. Motor commands and leases
retain single-shot transmission. There is no application command replay or
deadline extension. An unconfirmed limits write retires all claims on its
channel before hardware reset, preventing another reader from keeping an
uncertain hardware queue alive. Only the expected target's exact ACK clears it.
Node41/VESC0.19.4/USB-CAN0.2.4 are installed through the qualified owner
installer. Offline tests and installed hashes passed; saved routes are unchanged.
Physical ACK delivery and human control-preparation acceptance remain pending.
The two previous failures do not prove arbitration loss as the physical cause.
The installation ledger and private release-proof41-installed.json retain scope
and evidence.
Node41 live acceptance: after reconnect, ordinary telemetry passed27/27 evaluated
snapshots with stable sessions and fault0. The human then enabled control and
reported manual movement. Both controller rotation counters increased while
verified routes remained CAN and direct USB tty devices were absent. Ready
state proves the formerly failing volatile-limits ACK/readback stage completed
for both motors. After the human pressed Stop, Core reported stopped,
controlling=false, release_confirmed=true and no restoration error. Both motor
current/ERPM readings were zero, connection sessions unchanged, services active
with no restarts, and the bounded existing failure journal had no entries.
This establishes one bounded human drive/stop cycle; prolonged reliability,
physical packet-loss diagnosis and the separate low-speed stall symptom remain
unqualified. No assistant motor/control/configuration-write operation occurred.
See the Node41 installation ledger and private manual-can41-trial-acceptance.json.
## Confirmed configuration writes over the adapter
USB-CAN 0.2.6 uses normal CAN-controller arbitration for complete, CRC-checked
`COMM_SET_MCCONF` (13) and `COMM_SET_APPCONF` (16) packets generated and validated
by the pinned native VESC Tool. The recognizer accepts contiguous short/long
fragment offsets, one exact destination, the matching length/CRC commit and the
claim's reply address. It excludes forwarding, broadcasts and arbitrary output
commands. Schema validation, identity binding, preview expiry, backup and exact
readback remain owned by the existing configuration editor.
A pending transaction records both target and expected ACK command. Only that
exact reply releases it. Closing or expiring an unconfirmed transaction, another
send before ACK, or a partial-send deadline resets the channel and retires its
shared claims, discarding queued transmission. There is no application-level
replay or automatic configuration rollback. Ordinary motor setpoints retain
single-shot transmission and their existing lease/timeout boundary.
This addresses a gap where long configuration writes used single-shot CAN and
could lose a fragment during arbitration, while short reads and volatile limits
already used normal arbitration. Inert bus tests cover a 458-byte motor packet,
a 313-byte application packet, the offset-width boundary, CRC/address/order
rejection, mismatched ACKs, queue disposal and no replay. Hardware acceptance
and any actual configuration change must be recorded separately in the ledger.
## Bounded adapter confirmation (2026-10-24, Node64)
The 20% operator drive showed constant requested duty while measured output
intermittently became zero. It did not show a broken Core-to-board command
stream in that interval. Single-shot motor/PPM-lease sending could lose a CAN
arbitration while still returning SDK acceptance. Physical loss of those exact
frames remains unproved; the correction removes that unobserved sending path.
376 USB-CAN tests and 418 VESC tests passed, followed by all 24 Ubuntu package
qualification stages. The owner installer upgraded only Node; CAN maintenance
reported motor_commands=false and observation restored. Firmware, Hall tables,
current settings, native watchdog and command TTL were not changed.
Passive acceptance on the actual adapter: 45/45 fresh Core polls, 98 fresh
samples per controller, one unchanged attachment generation each, zero fault,
watchdog and native output counts. Sampled adapter echoes took 0.148–3.346 ms;
no CAN error or connection gap occurred in the 22.897 s DEV record. The closed
file contains 828 events, writer dropped=0. This accepts the read transport and
instrumentation; powered setter behavior and smooth loaded driving require the
operator's next recorded drive. Private source/build/install and complete DEV
evidence: outputs/rover-can-confirmation-20261024/.