Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/release-notes/v3.8.1.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
39 changes: 39 additions & 0 deletions docs/release-notes/v3.8.2.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions docs/release-notes/v3.8.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion firmware/TallyCCUPro/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// ============================================================
// FIRMWARE VERSION
// ============================================================
#define FIRMWARE_VERSION "3.8.1"
#define FIRMWARE_VERSION "3.8.2"

// ============================================================
// NETWORK CONFIGURATION
Expand Down
Loading