Skip to content

Require valid BrainAlive calibration before streaming - #879

Merged
Andrey1994 merged 1 commit into
masterfrom
codex/pr-878-brainalive-handshake
Nov 9, 2026
Merged

Andrey1994 merged 1 commit into
masterfrom
codex/pr-878-brainalive-handshake

Conversation

@Andrey1994

@Andrey1994 Andrey1994 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

BrainAlive could report successful stream startup without receiving gain and reference-voltage configuration, then record zero-valued EEG samples. Startup now waits for valid configuration and returns BOARD_NOT_READY_ERROR on timeout. Packets without valid calibration are discarded, and calibration is cleared between sessions.

Configuration updates and sample scaling use a mutex-protected calibration snapshot. Seven tests exercise the actual driver for missing/invalid calibration, delayed handshakes, session reset, signed samples, and combined gain above the previous integer-overflow threshold. The conversion-test formatting error is also fixed.

This PR contains only the follow-up to the merged #878.

Validation: Linux BoardController build with PIEEG enabled and warnings treated as errors; all 62 unit tests; clang-format 12.0.1 across all 229 non-excluded source files. All passed locally. GitHub Actions is being checked on the rebased commit. No hardware-in-the-loop testing was performed.

@Andrey1994
Andrey1994 force-pushed the codex/pr-878-brainalive-handshake branch from 633da5f to 0ce141d Compare November 9, 2026 21:22
@Andrey1994 Andrey1994 changed the title Fix board signal decoding and BrainAlive calibration startup Require valid BrainAlive calibration before streaming Nov 9, 2026
@Andrey1994
Andrey1994 marked this pull request as ready for review November 9, 2026 21:30
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T21:32:05.325715Z 0ce141d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Andrey1994
Andrey1994 merged commit fc06ca3 into master Nov 9, 2026
40 checks passed
@Andrey1994
Andrey1994 deleted the codex/pr-878-brainalive-handshake branch November 9, 2026 21:31
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.

1 participant