Skip to content

docs: add troubleshooting page for common connection problems - #16

Merged
berameric merged 2 commits into
berameric:mainfrom
haseemajaz:docs/troubleshooting-page
Nov 26, 2026
Merged

berameric merged 2 commits into
berameric:mainfrom
haseemajaz:docs/troubleshooting-page

Conversation

@haseemajaz

Copy link
Copy Markdown
Contributor

Fixes #14.

Adds docs/TROUBLESHOOTING.md, linked from the Getting started section of the README, covering the cases in the issue, each with the message Spektra shows and what fixes it:

  • "Connection failed: ... access denied", "unable to claim", "failed to open" or "in use": Windows WinUSB driver via Zadig, Linux udev rule, and closing any other tab or program holding the device, including OceanView.
  • "No reply to message ... after N attempts": switch the HDX off and on (unplugging USB does not reset it while it runs on its own power supply), and try another USB adapter or cable.
  • "Open the page over HTTPS" or a browser without WebUSB: use the published HTTPS address or localhost, in Chrome, Edge or Opera.

Every fix is taken from text already in the repo: the README platform instructions, the connection error text in src/acquisition.js, the retry and reset behaviour in src/device/obp-instrument.js and docs/PROTOCOL.md, and the secure-context check in src/ui/environment.js. No new cases or commands were added. Docs only, no code changed.

How tested:

  • npm test: pass, both suites OK (peak analysis reference checks, OBP driver checks).
  • README link checked: docs/TROUBLESHOOTING.md exists at the linked path.

@berameric
berameric merged commit e3ce985 into berameric:main Nov 26, 2026
@berameric

Copy link
Copy Markdown
Owner

Thanks a lot, this is exactly what the issue asked for, and every fix checks out against the code. Merged. I changed one sentence afterwards (#17): the driver sends a request four times in all rather than repeating it four times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Troubleshooting page for common connection problems

2 participants