USB-CAN-FD-B integration
Scope and placement
The operator connects any supported USB-CAN-FD-B instance to an onboard Linux host. The device appears beneath that host through the existing sensor inventory and opens one equipment settings modal in both Node UI and Core. This is class A domain content in the admitted equipment plugin slot. A separate workspace/root was rejected because identity, settings and tools belong to the selected physical adapter.
Reuse FeatureSettingsWindow, SettingsCard, ResourceList/ResourceRow, Description, TextField/TextAreaField, InspectorSelectField, Switch, Button, StatusBadge and the network icon from NODEDC_DESIGN_GUIDELINE. Both scrollports belong to the shared settings window. The product contains no development roadmap or synthetic live data.
Backend decision
Official SDK: https://www.waveshare.com/wiki/USB-CAN-FD API: https://files.waveshare.com/wiki/USB-CAN-FD/Manual/USB-CAN-FD-B-API-Manual.pdf Linux bundle: https://files.waveshare.com/wiki/USB-CAN-FD/USB-CAN-FD-B-Linux.zip
The official userspace library supports the device's classic CAN and FD data phase, ISO/Bosch variants and hardware filters without installing an out-of-tree kernel module. It is a vendor binary, not an open-source driver. Pin its hash and ABI in sdk-lock.json; upgrades require backend contract tests and explicit hardware qualification.
Compared: https://github.com/roema/ZCAN_USB (GPL-2.0). Its documented FD implementation requires equal arbitration/data rates; real BRS is unverified. It is not the chosen runtime. A generic ZLG header contains unrelated LIN/cloud structures which do not establish support in this two-channel adapter.
Required contract
- USB VID/PID 04d8:0053 + exact USB product USB CANFD DEBUG; no fixed USB port.
- Read protocol identity, not the malformed/nonunique USB serial descriptor.
- Multiple adapters require independent identity, session and transport ownership.
- Discovery opens no CAN channel. Disconnect/reconnect stops active operations; never replay transmission or silently start a bus after hotplug or a service restart.
- Channels start stopped; listen-only is the initial configuration.
- Explicit start/stop, bitrate/data bitrate, ISO/Bosch, classic/FD, receive filters, frame monitoring, bounded manual/timed transmit, clear/export/import and diagnostics.
- Hardware termination is controlled by physical DIP switches only. Do not expose ZCAN_SetResistanceEnable as an effective software switch (manual says do not use).
- Report unavailable native error counters as unavailable, never manufacture zeros.
- Persistent device configuration is bounded; received frames remain bounded RAM only.
- SDK, access rules, service, dependency checks and rollback belong to the versioned Node installer/preparation workflow from the first hardware use.
- Tests use fake transport and disconnected buses. No motor, calibration, firmware, acquisition or logging operation is authorized by implementation acceptance.
Physical bench state, 2026-10-21
Owner connected left VESC to CAN1 and right VESC to CAN2, black to H and white to L. This polarity remains unverified. Both VESC battery and direct USB supplies are off. Both channels measured 217 ohms with all four DIP switches OFF. One onboard 120-ohm termination produced 78 ohms; two produced 48 ohms. USB adapter only is powered by the independently powered onboard computer. USB enumeration is proven; CAN communication, polarity and termination acceptance are not yet proven.
API coverage and explicit limits
The pinned Linux ABI exposes 25 functions. Device lifecycle/identity/online status, channel init/start/reset, receive counts/receive/clear, classic and FD transmit, standard arbitration/data rates, ISO/Bosch and range filters have application paths. GetIProperty/ReleaseIProperty are alternative wrappers for the same settings, not additional user tools. Hardware resistance is explicitly unsupported by the API. Custom bit timing (SetBaudRateCustom) is not exposed: the official manual's property table leaves its string format empty, and the Linux example supplies no working value. Standard documented rates are available; no unvalidated native string is sent. TEC/REC, bus-off counters and adapter firmware flashing have no callable entry in this pinned Linux SDK. No controls pretend these capabilities exist.