From 4ccb8480995e732fb9780d0939248ca50232aa50 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 23:19:13 +0000 Subject: [PATCH] Version 3.8.2: changelog and release notes - FIRMWARE_VERSION 3.8.2; README changelog: Unreleased becomes v3.8.2 (Latest), Safe Mode section says v3.8.2+. - docs/release-notes/v3.8.2.md. - v3.8 notes point to the latest release (v3.8.2 or newer) instead of v3.8.1, and the Safe Mode correction says fixed in v3.8.2. - v3.8.1 notes: superseded by v3.8.2 (the release is kept). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TWAWkD3MqtdyPvo7NYXQ6D --- README.md | 8 +++--- docs/release-notes/v3.8.1.md | 2 ++ docs/release-notes/v3.8.2.md | 39 ++++++++++++++++++++++++++++ docs/release-notes/v3.8.md | 4 +-- firmware/TallyCCUPro/Configuration.h | 2 +- 5 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 docs/release-notes/v3.8.2.md diff --git a/README.md b/README.md index e9b7ae6..a9add12 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ The system enters Safe Mode automatically after **3 consecutive boot failures**. Alternatively, use the serial command `normalboot` to exit Safe Mode. -**Without the SD card (newer than v3.8.1)**: if the card is missing or cannot be read, or `safemode.html` is not on it, `http://YOUR_ARDUINO_IP/` shows a small built-in page instead, with the reason, the last reset, the firmware version and a **Restart in normal mode** button. v3.8.1 and older answer `404` or `503` there; `normalboot` on the serial console works in every version. +**Without the SD card (v3.8.2+)**: if the card is missing or cannot be read, or `safemode.html` is not on it, `http://YOUR_ARDUINO_IP/` shows a small built-in page instead, with the reason, the last reset, the firmware version and a **Restart in normal mode** button. v3.8.1 and older answer `404` or `503` there; `normalboot` on the serial console works in every version. **Automatic recovery (v3.8+)**: in Safe Mode the firmware checks the SDI shield on I2C every 5 s. When the shield has answered for 30 s in a row (for example, the 12 V supply came back), the board restarts in normal mode by itself. If that normal boot fails again, the next automatic attempt waits 5 minutes, and after 2 failed attempts automatic recovery stays off until Safe Mode is left by hand or a normal boot completes again (for example after a power cycle). Note that the check only shows that the shield is powered: problems caused by the SDI input (no signal yet, 4K, Level A) are not detected beforehand. @@ -626,13 +626,15 @@ Started by hand (*Actions*, *CI*, *Run workflow*), it can also run every scenari ## Changelog -### Unreleased +### v3.8.2 (Latest) +Fixes after v3.8.1. Compatible with the current Bitfocus Companion module (v3.1.0) without any change to the module. + - **Changed**: The old `TallyCCU_Configurator.exe` in `tools/` is gone (a V3.6-era build: it restarted the Arduino on connect and Get Config did not fill the fields). Use the `.exe` of the latest release, or build the current one by hand with the new *Configurator exe* workflow (no release needed) - **Fixed**: Serial configurator: since v3.8 it connects without restarting the board, and the first command after connecting (often Get Config) could be lost: opening the USB port can deliver a garbage byte to the Arduino. The configurator now sends a newline before each command (this also fixes it with the v3.8 and v3.8.1 firmware), and the firmware ignores control and non-ASCII bytes on the serial console - **Improved**: The web page retries a request that TallyCCU refuses at once. With nearly every network socket in use (vMix, Companion, two pages with the real-time sync, a page reloading), the next request could be refused for a moment: Reset to Defaults then stopped halfway and left the rest of the values unknown, and Load or Save preset failed. Error messages now stay on screen for 8 s - **Fixed**: Safe Mode page without the SD card: when the card is missing or cannot be read, or `safemode.html` is not on it, `/` shows a built-in page with the reason, the last reset, the firmware version and the **Restart in normal mode** button, instead of `404` or `503`. v3.8 announced it, but the page was never served -### v3.8.1 (Latest) +### v3.8.1 Hotfix for v3.8. Same behaviour on the cameras, tally and Companion as v3.8 (apart from the version number, the firmware compiles to the same machine code). - **Fixed**: v3.8 did not compile with the official Blackmagic `BMDSDIControl` library (`no matching function for call to ... writeCommandInt8(..., const int8_t [2])`). The library takes list values (for example color correction) as non-const arrays; the stub used by CI accepted const ones, so CI did not see it. The CI stub now copies the official library's declarations, so this kind of mismatch fails CI diff --git a/docs/release-notes/v3.8.1.md b/docs/release-notes/v3.8.1.md index bc52f25..4b32471 100644 --- a/docs/release-notes/v3.8.1.md +++ b/docs/release-notes/v3.8.1.md @@ -1,5 +1,7 @@ ## TallyCCU Pro v3.8.1 — Hotfix: builds with the official Blackmagic library +> ℹ️ **Superseded by [v3.8.2](https://github.com/fiverecords/TallyCCUPro/releases/tag/v3.8.2)**, which keeps these fixes and adds the built-in Safe Mode page without the SD card, a fix for the first serial command after connecting the configurator, and retries of web requests refused while the network is busy. Use the [latest release](https://github.com/fiverecords/TallyCCUPro/releases/latest). + v3.8 did not compile in the Arduino IDE with the official Blackmagic `BMDSDIControl` library. This release fixes that; **everything else is v3.8** (see the [v3.8 release notes](https://github.com/fiverecords/TallyCCUPro/releases/tag/v3.8) for the full list of changes from the code audit). **Same behaviour as v3.8 on the cameras, tally and Companion:** built against the same library, v3.8 and v3.8.1 produce the same machine code (apart from the version number). Still compatible with the current Bitfocus Companion module (v3.1.0) without any change to the module. diff --git a/docs/release-notes/v3.8.2.md b/docs/release-notes/v3.8.2.md new file mode 100644 index 0000000..8a8c9a7 --- /dev/null +++ b/docs/release-notes/v3.8.2.md @@ -0,0 +1,39 @@ +## TallyCCU Pro v3.8.2 — Safe Mode without the SD card, serial configurator and web fixes + +Fixes found while using v3.8.1 on real hardware. Everything in [v3.8](https://github.com/fiverecords/TallyCCUPro/releases/tag/v3.8) and [v3.8.1](https://github.com/fiverecords/TallyCCUPro/releases/tag/v3.8.1) is included. + +**Compatible with the current Bitfocus Companion module (v3.1.0) without any change to the module** — the camera control protocol (port 8098 and the HTTP API) is unchanged, and CI drives the official module against this firmware. + +--- + +### 🔴 Fixes + +- **Serial configurator: the first command after connecting was lost.** Since v3.8 the configurator connects without restarting the Arduino. Opening the USB port can deliver a garbage byte to the board, which was glued to the first command, so *Get Config* did nothing until another command (for example *Help*) was sent. The configurator now sends a newline before each command, and the firmware ignores control and non-ASCII bytes on the serial console. +- **Safe Mode page without the SD card.** In Safe Mode, when the SD card is missing or cannot be read, or `safemode.html` is not on it, the address of the board now shows a built-in page with the reason, the last reset, the firmware version and the **Restart in normal mode** button. v3.8 announced it, but v3.8 and v3.8.1 answered `404` or `503` there. + +### 🟡 Improvements + +- **The web page retries a request that is refused at once.** With nearly every network connection of the Arduino in use (vMix, Companion, two pages with the real-time sync, a page reloading), a request could be refused for a moment. *Reset to Defaults* then stopped halfway and left the rest of the values unknown (`?`), and *Load* or *Save* preset failed. Error messages now stay on screen for 8 s. +- **Old configurator removed from the repository.** The `TallyCCU_Configurator.exe` that was in `tools/` was a V3.6-era build: it restarted the Arduino on connect and *Get Config* did not fill the fields. Use the `.exe` attached to this release. + +### 🛠 For developers + +- New manual workflow *Configurator exe* (*Actions* → *Configurator exe* → *Run workflow*): builds the configurator `.exe` from any branch, like the release does, without making a release. +- New emulator scenarios: `sm` (built-in Safe Mode page) and `ser` (garbage bytes on the serial console), both in the fast set that CI runs. + +--- + +### Upgrade Instructions + +1. Flash the Arduino sketch from the **`firmware/TallyCCUPro/`** folder. +2. Copy `index.html` and `index.html.gz` from the zip's `sdcard/` folder to your SD card (replace existing): it is the only page that changed since v3.8.1. Coming from v3.8 or older, copy all the `.html` and `.gz` files. +3. Use the **`TallyCCU_Configurator.exe` attached to this release** (Windows SmartScreen may warn the first time: the `.exe` is not code-signed). +4. Power cycle the device. + +Your network settings, tally map and presets are kept. Coming from v3.7.1 or older, read the v3.8 upgrade notes too (firmware and SD files must be updated together; own scripts need the `X-TallyCCU: 1` header). + +The firmware version shows as **3.8.2** in the serial monitor (`status`), the serial configurator and `/safemode-status`. + +--- + +**Full Changelog**: https://github.com/fiverecords/TallyCCUPro/compare/v3.8.1...v3.8.2 diff --git a/docs/release-notes/v3.8.md b/docs/release-notes/v3.8.md index a3244eb..74c3dbb 100644 --- a/docs/release-notes/v3.8.md +++ b/docs/release-notes/v3.8.md @@ -1,6 +1,6 @@ ## TallyCCU Pro v3.8 — Full code audit: live stability, tally fixes & hardening -> ⚠️ **This version has a bug and does not compile** with the official Blackmagic `BMDSDIControl` library (`no matching function for call to ... writeCommandInt8(..., const int8_t [2])`). **Use [v3.8.1](https://github.com/fiverecords/TallyCCUPro/releases/tag/v3.8.1) instead**: it fixes the build and has all the changes listed below, with the same behaviour on the cameras, tally and Companion. +> ⚠️ **This version has a bug and does not compile** with the official Blackmagic `BMDSDIControl` library (`no matching function for call to ... writeCommandInt8(..., const int8_t [2])`). **Use the [latest release](https://github.com/fiverecords/TallyCCUPro/releases/latest) (v3.8.2 or newer) instead**: it fixes the build and has all the changes listed below, with the same behaviour on the cameras, tally and Companion. This release is the result of a full audit of the codebase (firmware, web interface, serial configurator and documentation; 235 verified findings, see [`docs/AUDITORIA-v3.7.1.md`](https://github.com/fiverecords/TallyCCUPro/blob/v3.8/docs/AUDITORIA-v3.7.1.md)). It focuses on what matters on air: tally that is always right, an Arduino that never freezes or reboots because of the network, and camera values that nobody chose never reaching the camera. @@ -49,7 +49,7 @@ This release is the result of a full audit of the codebase (firmware, web interf - Preset names with `&`, `%`, `+` or commas are kept exactly; malformed `%XX` sequences and cut requests are rejected; JSON and port 8098 lines are escaped. - The value echoed to Companion and the browsers is what the camera received (for example `0,0` for an empty field); with the CCU override off nothing is echoed as applied. - Tally heals itself: every mapped camera gets its tally again every 4 s and a shield that reset gets its settings back. -- Real reset cause (power on, reset button, restart, watchdog and where it hung) in `status` and the Safe Mode page; only hangs in the first 20 s count as boot failures. *(Correction: this release also announced a Safe Mode page without the SD card, but v3.8 and v3.8.1 answer 404 or 503 there; use `normalboot` on the serial console. Fixed after v3.8.1.)* +- Real reset cause (power on, reset button, restart, watchdog and where it hung) in `status` and the Safe Mode page; only hangs in the first 20 s count as boot failures. *(Correction: this release also announced a Safe Mode page without the SD card, but v3.8 and v3.8.1 answer 404 or 503 there; use `normalboot` on the serial console. Fixed in v3.8.2.)* - Serial console: `mac`, `factoryreset yes`, case-insensitive commands, over-long lines rejected; strict IP validation with cable / Ethernet chip reporting; EEPROM layout header. - Finer iris, focus and zoom knobs that send while dragged; typed values are sent; shutter steps follow 50/60 Hz; preset IDs 0-4 as in Companion; destructive buttons set apart and confirmed; touch fixes. - The firmware version lives only in `FIRMWARE_VERSION`; the serial configurator reads it from the board. diff --git a/firmware/TallyCCUPro/Configuration.h b/firmware/TallyCCUPro/Configuration.h index 1f040c6..1fa7bda 100644 --- a/firmware/TallyCCUPro/Configuration.h +++ b/firmware/TallyCCUPro/Configuration.h @@ -17,7 +17,7 @@ // ============================================================ // FIRMWARE VERSION // ============================================================ -#define FIRMWARE_VERSION "3.8.1" +#define FIRMWARE_VERSION "3.8.2" // ============================================================ // NETWORK CONFIGURATION