Skip to content

Latest commit

 

History

History
146 lines (112 loc) · 9.96 KB

ReadMe.md

File metadata and controls

146 lines (112 loc) · 9.96 KB

WayriCAD Harness and Cable Workbench

WayriCAD Harness and Cable Workbench icon

Start here Link
Download and install Latest release · Installation guide
First use Getting started
Help Offline help · Compatibility
Command line wayricad tools run harness-workbench -- --help

CLI scope: JSON harness definition and reports. The unified command requires the suite CLI installation; installing this PCM plugin alone does not install the complete CLI suite.

Getting started

  1. Install the Harness and Cable Workbench PCM package and open it from KiCad. Export board connector pins with Extract Pins first.
  2. Import the board pin documents. Review project and connector names, then define connector pairs or import an explicit pin-map CSV.
  3. Build the harness and inspect the wire list and draft together. Select wires to check their exact routes; enter lengths, gauges and bundle properties explicitly.
  4. Export the reviewed CSV, SVG or interactive HTML report. Check mating orientation, ratings and intentional connections independently.

Capabilities

  • Builds a harness definition from up to 50 board pin exports and harness-only loads.
  • Matches connectors by index, offset, explicit rules, or spreadsheet-style pin maps.
  • Captures wire gauges, colors, lengths, shields, bundles, splices, and procurement data.
  • Produces sortable wire, pin, net, system-path, and procurement tables.
  • Exports CSV, SVG, and self-contained interactive HTML reports with a pan/zoom draft.
  • Joins reviewed IC/peripheral paths with harness wires across board projects.
  • Keeps project, connector, wire, and end-to-end path counts visible across every tab, with a four-stage progress strip and the next useful action.
  • Shows bundle colours and wire counts on the native draft; selecting wires in the Wire List highlights those exact routes.

Limitations

  • The workbench reads project data and does not modify PCBs.
  • Controller-map records join only when project, connector reference, and connector pin match exactly.
  • Active-device crossings require explicit Pin Extractor rules and remain conditional pending review.
  • Automatic correspondence does not establish polarity, mating orientation, electrical compatibility, ampacity, derating, or regulatory compliance.
  • Connector ratings, insulation, creepage, shielding, bend radius, assembly, and test coverage require independent verification.

Overview

Builds a system-level harness definition from as many as 50 board pin exports. It supports indexed net matching and connector correspondence where pin 1 maps to pin 1, pin 2 to pin 2, and so on. Offset and explicit pin maps cover connectors whose numbering differs. The Pin Mapping Editor adds a spreadsheet- style workflow for arbitrary mappings, including pin 1 to pin 17, alphanumeric pins, intentionally fanned-out sources, and harness metadata per wire.

The workbench produces sortable wire, pin, net, system-path, and procurement tables; a native pan/zoom system draft; and CSV/SVG/interactive HTML outputs. Harness-only loads can be entered without adding artificial components to a schematic. Selected wires can be assigned gauges, colors, lengths, shields, bundles, and splices.

Native interface

Native WayriCAD Harness and Cable Workbench window

Native connector and harness workspace before importing connectivity. This empty view is an interface overview, not a completed cable design.

The summary strip follows the current imported and mapped state. In Wire List, select one or more wires and choose View selected on draft to inspect them in the native drawing. Its bundle legend shows wire counts. The wire property controls use three rows so gauges, colours, lengths, and shields remain readable at normal window widths. The draft is a connectivity layout, not a length- or geometry-accurate cable drawing.

The installed package includes offline help with its workflow and limitations.

IC and peripheral paths

The workbench can join an internal controller or peripheral path on one board, a reviewed harness wire, and an internal path on another board. Export Controller Map CSV from WayriCAD Pin Extractor for each board, then import those files with Import IC / Connector Paths. The CSV file stem, or its Project column when present, must match the project name in the board pin document.

The resulting route is explicit and ordered, for example:

DEMO_CTRL:U1.21 USART3_TX -> R12.1 -> R12.2 -> J1.3
  -- W00003 / DATA-A -->
DEMO_SENSOR:J2.8 -> R7.2 -> R7.1 -> U3.5 UART_RX

Reference wildcards select source and destination endpoint families. Passive series parts remain in the path and in the exported table. MOSFET, BJT, jumper, and other active-device crossings are accepted only when the Pin Extractor map contains an explicit pin-pair rule; their conditional status and notes are propagated into the harness report.

The self-contained HTML report works offline. It provides wheel zoom, canvas pan, draggable nodes, clickable path details, bundle/status/search filters, sortable system and construction tables, validation findings, and a harness BoM. It uses one connector node per board connector and distinct endpoint nodes to avoid presenting the same connector as both a source and destination block.

Connector rule examples:

DEMO_CTRL:J1 -> DEMO_IO:J2
DEMO_IO:J4 -> LOADS:P1 [offset=1]
DEMO_A:J3 -> DEMO_B:J7 [map=1:3,2:4]

For larger mappings, seed a source/destination connector pair in the Pin Mapping Editor, then edit destination pins before building. Mapping CSV files use these columns:

source_project,source_connector,source_pin,destination_project,destination_connector,destination_pin,wire_id,gauge_awg,color,bundle,splice,length_m,shield,notes
DEMO_CTRL,J1,1,DEMO_IO,J7,8,W00001,24,Blue,DATA,,1.250,,UART transmit
DEMO_CTRL,J1,2,DEMO_IO,J7,12,W00002,24,White,DATA,,1.250,,UART receive

The same workflow is available headlessly through wayricad run and harness.build; path_documents, source_refs, destination_refs, and include_html expose the complete system-path report. See docs/CLI_USER_GUIDE.md.

Automatic matching establishes correspondence, not electrical or mechanical compatibility. Independently verify polarity, mating view, pin gender, wire ampacity and derating, insulation, creepage, shielding, bend radius, connector ratings, assembly process, applicable standards, and test coverage.

Native operational validation inventories the real Marble board (371 connector pins) without inventing external mates. A clearly separate two-board fixture exercises saved-board reload, reviewed pin-map CSV roundtrip, bundles/splices, procurement BOM and CSV/SVG/offline HTML exports. Reproduce with python tools/validate_marble_operations.py --kinds harness from the suite root.

Implemented methods and evidence

Method Inputs and result Implementation and limits
Normalized pin intake CSV headings are case-folded and common aliases map to project/connector/pin/net records; duplicates use the exact (project, connector, pin, net) key and output is naturally sorted. load_pin_csv and load_pin_documents. Only rows with connector and pin survive; a repeated exact identity is last-row-wins, so review import counts.
Connector correspondence Reviewed connector rules map exact pins, numeric offsets or explicit source:destination pairs through a connector/pin index. connector_correspondence. Missing destinations become unmatched; default pin-number equality is a convenience, not evidence of mating orientation.
Explicit pin-map resolution Spreadsheet rows resolve exact project/connector/pin identities and retain unresolved endpoints and per-wire metadata. links_from_pin_map, validate_pin_map. This is the preferred method for arbitrary or fanned-out mappings.
Automatic net linking Wildcard or regex patterns extract captures, index destination candidates and retain ambiguity rather than silently choosing one. auto_link and auto_link_multi. Net-name similarity establishes a naming correspondence only; it does not prove polarity, voltage or protocol compatibility.
End-to-end path join Audited board endpoint paths are joined to harness links on exact project, connector and pin keys; Cartesian source/destination candidates remain separate routes. build_system_signal_paths. Status/confidence is propagated, protocol labels are name-token heuristics, and missing board paths may be emitted as explicit low-confidence partial routes.
Validation and procurement roll-up Duplicate wire IDs, unmatched endpoints and suspicious power-name joins become findings; connector/contact counts, wire lengths, bundles and splices become a harness BOM. validate_links and harness_bom. The roll-up uses entered data and does not calculate ampacity, voltage drop, derating or compliance.
Reports and diagrams Deterministically sorted rows feed CSV, schematic SVG and escaped self-contained HTML. report.py and universal_harness_svg. Diagram positions are for connectivity review, not physical cable geometry. Summary regressions are in test_overview.py; native operational evidence is described above.

Technical background

The workbench's matching and layout are project workflows rather than published electrical algorithms. Imported board semantics ultimately follow KiCad's official board file format and the IPC add-on boundary. Those references define inputs and integration; they do not validate a harness.