Commit Graph

9 Commits

Author SHA1 Message Date
Robert McMahon 957078039d Fi-Wi: site setup, relay module, map/SSH consolidation
- Add site_setup entry (root shim + fiwi.site_setup) with SiteSetupApp and in-process
  relay/calibrate; FiWiRelayBootstrapApp in fiwi_relay/relay_app.py.
- CLI: run_panel_calibrate, parse_panel_calibrate_argv, shared BrainStem load helper;
  fiber_map_io.resolve_calibrate_ssh_targets for one merge of calibrate SSH hosts.
- Maps default under maps/; config and remote_ssh.env.example updates; concentrator
  and panel calibrate fixes; radiohead refactor; tests/docs refresh.
- Remove fiber_radio_port.py (unused example), empty fiwi_link stub, orphan peak_detect.reflex.

Made-with: Cursor
2026-04-04 18:18:27 -07:00
Robert McMahon 93cd346a07 Panel calibrate UX, check_concentrator extras, power summary AC hint
- Panel calibrate: Ctrl-C saves map during patch panel; skip/quit aliases (s/skip/., q/quit/exit); clearer prompts and help.
- PCIe prompt: s/skip keeps metadata; note Ctrl-C in calibrate.
- check_concentrator: --panel-calibrate, --inrush and options; compact Power line with 120V/220V AC amp hint from total W.
- docs/brainstem-sdk.md: find How_To_Build.txt examples.

Made-with: Cursor
2026-04-03 16:33:44 -07:00
Robert McMahon 0b4de5ba67 Vendor BrainStem Linux SDK tarball and document unpack/build
Track only the official .tgz under brainstem_sdk/; ignore extracted trees.
Add docs/brainstem-sdk.md with untar steps, udev, C++ examples, and Reflex/arc notes.

Made-with: Cursor
2026-04-03 15:48:02 -07:00
Robert McMahon 91a2bee58b Consolidate SSH and hub relay under fiwi; improve remote readiness tooling.
Move SSH transport into fiwi.ssh (replacing fiwi.ssh_node) and add fiwi.fiwi_relay
with FiWiRelay for venv and pip bootstrap over SSH or locally. Update imports,
docs, and remote_ssh.env.example for python -m fiwi.fiwi_relay.

Extend test_read_remote with a single-SSH readiness probe (brainstem via
FIWI_REMOTE_PYTHON and env/bin/python3), clearer setup hints, and --list-only.
Add probe helpers on fiwi.fiwi_relay.host and unittest for marker parsing.

Merge [remote_hubs] hosts in config INI; set uax24 remote_python to the hub
venv after relay setup.

Made-with: Cursor
2026-04-03 13:04:24 -07:00
Robert McMahon 179477702f SSH remote: ~/ paths via $HOME; discover hub/port table; test_read_remote
- ssh_node: quote remote python/script so tilde expands (remote_path_bash_word)
- config: remote_python python3 by default; Pi ~/Code/FiWiManager script paths
- tests/test_read_remote.py: probe + discover; timeouts; vendor-neutral labels
- concentrator: always print Hub|Serial|Ports after discover/show_hostcards; infer
  port counts from stem class when connectFromSpec fails
- Docs/strings: USB power-control wording; requirements comment; usb_probe doc

Made-with: Cursor
2026-04-03 12:05:34 -07:00
Robert McMahon 5b04560241 Rename harness to FiWiConcentrator; config profiles and smoke test
- Replace FiWiHarness with FiWiConcentrator (fiwi/concentrator.py); update CLI, exports, and docs.
- Add config/default.ini, uax24.ini, uax4.ini under config/ with paths, patch_panel default_ports, remote_ssh, and [remote_hubs] hosts; load via fiwi.config (FIWI_CONFIG profile). Merge FIWI_REMOTE_HUBS with FIWI_CALIBRATE_REMOTES in SshNodeConfig.
- Extend fiwi.paths: configure loads remote_ssh.env then INI; fiber_map_path respects FIWI_FIBER_MAP; add config_dir().
- CLI: GNU-style global options (getopt + SSH shield), show_hostcards / show_radioheads, help text updates.
- patch_panel: default_panel_ports from env; adnacom print_adnacom_host_card_table.
- tests/test_concentrator_instantiate.py: --config, local + remote show_hostcards inventory.
- Example map/SSH strings use rjmcmahon@192.168.1.39; remote_script points at ~/Code/FiWiManager/fiwi.py in profiles.
- .gitignore: drop root fiwi.ini; document config layout.

Made-with: Cursor
2026-04-03 11:35:24 -07:00
Robert McMahon e9ddcd7b2b docs: FiWiManager example path; drop hub_manager references
Use FiWiManager in remote_ssh.env.example. Remove obsolete hub_manager
mentions from design and CLI docs.

Made-with: Cursor
2026-03-30 18:18:50 -07:00
Robert McMahon a030549f61 feat(fiwi): Fi-Wi package, SSH transport, diagnostics, and docs
Replace the hubmgr layout with the fiwi package and fiwi.py entry point.
Add SshNode with deferred remote subprocess overlap, async capture helpers,
and a central diag timeline (dmesg, lspci, kernel-dump event placeholder).

Document design, CLI, and test/automation authoring under docs/.
Refresh fiber_map.example.json and remote_ssh.env.example; widen .gitignore
for Python tooling and local operator files.

Made-with: Cursor
2026-03-30 18:16:57 -07:00
Bob McMahon 2650ca4b5e first commit 2026-03-07 15:59:12 -08:00