Skip to content
Merged

V3.0 #20

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
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
This history records implemented changes for each release.
Release dates are added when a version is published; older versions are not reconstructed from incomplete notes.

## Version 3.0.0 - ClioPlay Link Ecosystem, All-Legs Multi-Stop CH & Zero-Menu Optical QR Sync

Major ecosystem release unifying **ClioPlay** on Carminat TomTom with the redesigned **ClioPlay Link** companion web app — **100% compatible with existing `2.1.8–2.2.8` maps (`CPM5`, `CPR2 v5`, `QAD7`, `CPC1`)** and saved user data (`faves.dat`, `recent.dat`, `trip.dat`, `prefs.ini`, `mobility.dat`, `mobility-ml.dat` — zero map rebuilds required):

- **Bidirectional `CLP3` Bluetooth Link (`clioa2dp.c`, `clio040.c`, `hud.h`, `audio_chime.h`):**
- **Instant AVRCP `ACK`/`NACK` confirmation (~0.3 s per packet):** `clioa2dp` parses `CLP3` frames (`N`, `S`, `T`, `F`, `P`, `C`, `Q`, `H`) alongside legacy `CLP2` packets, polls `/tmp/clnav_ack` at 20 ms, replies over AVRCP (`0x4b NEXT` = `ACK`, `0x4c PREV` = `NACK`, with cached retry), and validates map coverage so out-of-map sends report immediately on the phone.
- **Atomic multi-stop trip staging (`CLP3:T`), 2-way favourites sync (`CLP3:F`), 12-byte `prefs.ini` sync (`CLP3:P`), remote Cancel/Skip/Clock (`CLP3:C`) and silent Link Ping (`CLP3:H`):** with a proportional capsule progress bar in the top HUD during multi-stop receipt, pre-GPS phone clock fallback, cold-GPS `"Queued - waiting for GPS"` handling, and non-disruptive incoming-route handoff (`OK: Add stop / BACK: Undo` for 6.5 s).
- **Smart Music Resume & warm navigation chimes (`audio_chime.h`):** resumes Bluetooth music automatically if real media was playing prior to a `CLP3` burst; adds `Navigation chimes` (`Off` / `Link only` / `All cues`) in **Settings → Navigation** with distinct ascending link (`kind=3`), subtle turn (`kind=4`), and resolving 3-note arrival (`kind=5`) chimes.
- **All-Legs Multi-Stop CH Planner & `Z7–Z9` Turn Chevrons (`trip_plan.h`, `map_raster.h`, `road_layout.h`, `clio040.c`, `menu_sheet.h`):**
- **All-legs cooperative CH calculation (`trip_plan.h`):** after Leg 0 reaches `R_READY`, cooperatively solves all future legs (`k = active_idx+1 .. count-1`) reusing the idle CH search arena (zero extra CH RAM, ~64.5 KB polyline pool) with Atlas cross-region fallback, smart partial invalidation on off-route recalculation, and in-place pool compaction on stop advance.
- **Dual-tone route overlay & `Z7–Z9` on-carriageway turn chevrons:** draws active Leg 0 in signature magenta (`C_ROUTE`) and future legs in soft lavender (`C_ROUTE_FUTURE`), plus a perspective-scaled white directional chevron directly on the wide carriageway within 380 m of upcoming turns at `Z7–Z9`.
- **Next + Total multi-stop ETAs:** keeps the driving HUD pill focused on the **Next stop**, while **Menu → Trip** shows both **Next** and **Total** journey ETA/distance plus individual per-stop arrival times.
- **ARMv4T hot-path optimisation (`road_layout.h`):** replaced 64-bit divisions in `road_smoothstep_q8`, `road_solve_transitions`, `road_draw_taper_span` and `road_draw_poly_pass` with 32-bit `Q12` integer ratios and added `render_checkpoint()` yields.
- **Zero-Menu Optical QR Sync & `mobility.h` Exporter (`qr_encode.h`, `qr_sync.h`, `menu_sheet.h`, `overlay_frames.h`):**
- **Freestanding ISO/IEC 18004 QR encoder (`qr_encode.h`, Versions 1–8, ECC L):** pure integer C, zero heap, verified against Apple CoreImage (`CIDetectorTypeQRCode`) and offline pure-JS decoding.
- **Floating frosted-glass map QR pill (`CLP3:Q:S/A/D`):** tapping **Sync from Car** in ClioPlay Link pops up a sleek compact QR pill on the map screen streaming a CRC-protected binary bundle (car identity, map coverage bbox, 12-byte `prefs.ini`, favourites, active trip with real multi-leg ETAs, recents, and opt-in `mobility.h`/`mobility_ml.h` Driving Insights) via closed-loop BT-ACK stepped frames (with auto-cycle fallback), flashing `Synced ✓` and auto-closing back to the map.
- **Built-in Connect QR (`P_PAIR` & connected `P_PHONE_ACTIONS`):** zero extra menus — `Pair new phone` stays open after Bluetooth connect with `Connected ✓`, a focused `Done` button, and a crisp Connect QR card, auto-closing once ClioPlay Link sends its initial Ping.
- **All 18 Languages & Verification:**
- Updated all 18 interface locales (`ui.json` + 15 language JSON files) and `ui_translations.h`; added UBSan host test suites `src/tests/clp3-link.c`, `src/tests/trip-multileg.c`, and `src/tests/qr-sync.c` into `src/tools/verify_ci.py`.

## Version 2.2.8 - Cartographic road overhaul & reliability fixes

Software-only map rendering overhaul plus close-zoom tracking and early-shutdown fixes — **100% compatible with existing `2.1.8–2.2.7` maps (`CPM5`, `CPR2 v5`, `QAD7`, `CPC1`)** and saved user data (no map rebuild required):
Expand Down
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
<!-- Generated from src/docs/repository-readme.md by src/tools/refresh_latest.py. -->

<h1 align="center">ClioPlay 2.2.8</h1>
<h1 align="center">ClioPlay 3.0.0</h1>
<p align="center">Offline navigation and Bluetooth audio for the original Carminat TomTom screen.</p>
<p align="center">
Created and maintained by <a href="https://github.com/pxwel-dev">Pawel (pxwel-dev)</a>.
</p>


<p align="center"><a href="https://github.com/pxwel-dev/ClioPlay/releases">Download latest release</a> · <a href="#install">Fresh install</a> · <a href="src/docs/updating.md">Update existing installation</a> · <a href="https://pxwel-dev.github.io/ClioPlay-Send/">Send a destination from your phone</a></p>
<p align="center"><a href="https://github.com/pxwel-dev/ClioPlay/releases">Download latest release</a> · <a href="#install">Fresh install</a> · <a href="src/docs/updating.md">Update existing installation</a> · <a href="https://pxwel-dev.github.io/ClioPlay-Send/">ClioPlay Link companion app</a></p>

## Version 2.2.8
## Version 3.0.0

Version **2.2.8** is a software-only cartographic road overhaul plus close-zoom tracking and early-shutdown reliability release (**100% compatible with existing `2.1.8–2.2.7` maps** and saved user data; no map rebuild required):
Version **3.0.0** unifies ClioPlay on Carminat TomTom with the redesigned **ClioPlay Link** companion web app while keeping **100% compatibility with existing `2.1.8–2.2.8` maps (`CPM5`, `CPR2 v5`, `QAD7`, `CPC1`)** and saved user data (no map rebuild required):

- **Cartographic road rendering across all zooms (`Z0–Z9`):** Continuous sub-pixel (`Q4`) carriageway widths scaling proportionally up to `Z9`, true tapered capsules for 3D perspective driving view, zero-blob Day & Night kerb casings, elevated motorway flyovers, and scaled cased route overlays.
- **Non-overlapping priority road expansion & seamless end-to-end transitions:** When roads run closely alongside one another, main carriageways expand first without encroaching on parallel neighbours, dual carriageways preserve crisp central reservations, and adjacent minor/service roads expand **outwards** on their open side so every road stays wide and visually distinct — while wide main roads joining narrower roads end-to-end glide smoothly down in both width and colour via a tangent-continuous S-curve funnel with zero abrupt step or bulbous end-cap.
- **Stable, road-anchored street names:** Active road labels lock to a fixed world coordinate on the road with competition hysteresis, re-entry debounce, orientation/side deadbands and Schmitt-trigger spacing margins so street names glide calmly with the tarmac instead of flickering between competing roads or jumping along the same street while driving.
- **Accurate close-zoom (`Z7–Z9`) junction positioning:** Paired proportional street widths with `Q4` track smoothing, bounded 1 Hz inter-fix dead-reckoning and post-stop settling so stopping at junctions converges cleanly onto the stop line instead of lagging behind.
- **Reliable early ignition-off shutdown:** Cooperative `/tmp/clshutdown` signalling and hardware-init locks across `ttn`, `btstart.sh`, `clio040` and `clioa2dp` abort pending background startup cleanly when the ignition is turned off immediately after boot (such as during `"Acquiring GPS"`).
- **Instant bidirectional `CLP3` Bluetooth Link:** ~0.3 s confirmed destination, atomic multi-stop trip, favourites, 18-field car settings (`prefs.ini`), remote Cancel/Skip and Clock/TZ sync over AVRCP `ACK`/`NACK`, with automatic Smart Music Resume, warm Link/Turn/Arrival navigation chimes, non-disruptive incoming route handoff (`OK: Add stop / BACK: Undo`), and automatic fallback for legacy `CLP2` senders.
- **All-legs multi-stop CH routing & `Z7–Z9` on-road turn chevrons:** Cooperatively calculates every remaining leg of a multi-stop itinerary reusing the idle CH search arena, rendering active Leg 0 in magenta and future legs in soft lavender, with **Next + Total** ETAs in **Trip** and crisp perspective-scaled white directional chevrons on the carriageway at `Z7–Z9`.
- **Zero-menu optical QR sync & Driving Insights:** Tapping **Sync from Car** in ClioPlay Link pops up a floating frosted-glass QR pill on ClioPlay's map screen to transfer favourites, active trip, recents, car settings, map coverage and opt-in `mobility.h` Driving Insights in ~2 seconds via closed-loop BT-ACK stepping — plus built-in Connect QRs right inside **Bluetooth → Pair new phone** and connected phone cards.
- **18 languages & ARMv4T polish:** Complete 18-language parity across both ClioPlay and ClioPlay Link (including RTL Arabic and Hebrew) and 32-bit `Q12` road-layout hot-path optimisation.

See [CHANGELOG.md](CHANGELOG.md) for all prior releases, [intelligent navigation](src/docs/intelligent-navigation.md) for local ML behaviour and privacy, and the [zoom & controls guide](src/README.md#auto-zoom-and-close-up-street-names).

## UI previews

All previews below are captured from ClioPlay's native `480 × 272` renderer across real offline UK map regions (**Central London**, **Liverpool**, **Leeds**, **Edinburgh**, **Newcastle** and **Manchester**). See the [preview notes and full capture index](src/docs/demo/README.md) for methodology and regression archives.

| Multi-leg future routing & on-road turn chevrons | Zero-menu optical QR sync & built-in Connect QR |
| --- | --- |
| ![Real Manchester 3-stop itinerary showing Z8 driving with crisp white on-carriageway turn chevron and Option B next-stop HUD, Z5 overview with active Leg 0 in magenta and future Legs 1-2 in lavender, and Menu Trip with Next and Total journey ETAs](src/docs/demo/v300-multileg-and-chevron.gif) | ![Pair new phone sheet keeping its built-in Connect QR open until ClioPlay Link sends a CLP3 Ping, followed by the frosted-glass floating map QR pill stepping stacked CS1 frames on BT ACKs, flashing Synced and auto-closing](src/docs/demo/v300-qr-sync-and-connect.gif) |

| Bidirectional CLP3 sync ([ClioPlay Link](https://pxwel-dev.github.io/ClioPlay-Send/)) | Bluetooth A2DP phone audio & playback controls |
| --- | --- |
| <img src="src/docs/demo/phone-destination.gif" width="391"> | <img src="src/docs/demo/bluetooth.gif" width="391"> |

| Offline traffic diversions & Explore preview | Learned usual routes & calibrated ETA ranges |
| --- | --- |
| ![Preview a proposed real-map Central London diversion learned purely from local driving history, inspect the junction in Explore, return via MAP and accept](src/docs/demo/v223-view-diversion.gif) | ![Clear-road Central London Mayfair route showing calibrated ETA reliability range, Usual route available with normal active route colour plus dashed teal parallel Park Street alternative bypassing the Oxford Street dogleg, and Use usual route? confirmation](src/docs/demo/v224-ml-eta-and-habits.gif) |
Expand All @@ -37,10 +44,6 @@ All previews below are captured from ClioPlay's native `480 × 272` renderer acr
| --- | --- |
| ![Offline destination prediction in the driving HUD and BT CTRL from local journey history with explicit Yes/No confirmation](src/docs/demo/v220-destination-prediction.gif) | ![Day theme driving in Edinburgh showing learned Auto-zoom speed-band preferences and automatic Day-to-Night transition applying learned per-theme brightness](src/docs/demo/v224-ml-adaptive-hud.gif) |

| Send destinations over Bluetooth ([ClioPlay Send](https://pxwel-dev.github.io/ClioPlay-Send/)) | Bluetooth A2DP phone audio & playback controls |
| --- | --- |
| <img src="src/docs/demo/phone-destination.gif" width="391"> | <img src="src/docs/demo/bluetooth.gif" width="391"> |

| Offline camera warnings, map badges & overspeed alerts | Live expandable GPS telemetry HUD |
| --- | --- |
| ![Offline country-aware camera warnings on Central London Victoria Embankment showing matching supersampled on-map badges, flush 43 px frosted-glass card, capsule progress bar, synced red overspeed speed pill and rim, red-light alert and average-speed zone progress](src/docs/demo/v227-camera-alerts.gif) | ![Double-OK expands the clock pill into a live driving GPS HUD on the Liverpool waterfront with seconds, compass dial, heading, accuracy, satellites, altitude and coordinates, adapting cleanly to popups and menus](src/docs/demo/v225-gps-panel.gif) |
Expand Down Expand Up @@ -68,7 +71,7 @@ Focus temperature readings take priority when valid. See the
[console setup and controls](src/README.md#physical-console-and-temperature-sources).
The hardware protocol was contributed from a tested Scénic 3.

ClioPlay automatically discovers Bluetooth hardware on the Carminat; for Bluetooth, the Carminat must have: (`hw_bluetooth=1`). If no Bluetooth hardware is discovered, ClioPlay hides all Bluetooth-related UI features (Bluetooth audio and sending destinations by phone via <a href="https://pxwel-dev.github.io/ClioPlay-Send/">ClioPlay Send</a>).
ClioPlay automatically discovers Bluetooth hardware on the Carminat; for Bluetooth, the Carminat must have: (`hw_bluetooth=1`). If no Bluetooth hardware is discovered, ClioPlay hides all Bluetooth-related UI features (Bluetooth audio and bidirectional phone sync via <a href="https://pxwel-dev.github.io/ClioPlay-Send/">ClioPlay Link</a>).

ClioPlay handles the audio source as follows:

Expand All @@ -94,7 +97,7 @@ BT CTRL also requires a connected phone. Unavailable radio/volume readings stay
- Day/Night themes with custom daily switch times in Auto, automatic units and time zones, and 18 interface languages.
- Mapped speed limits and camera alerts where the bundled country policy allows them.

For new stops/destinations, enter **Coordinates** on the head unit, choose **Next** on the keypad to validate both fields and proceed to naming, or use the separate [ClioPlay Send website](https://pxwel-dev.github.io/ClioPlay-Send/) to send the new route to ClioPlay from your phone via Bluetooth. For ease of use, add the website to your Home Screen as a web app.
For new stops/destinations, enter **Coordinates** on the head unit, choose **Next** on the keypad to validate both fields and proceed to naming, or use the [ClioPlay Link companion web app](https://pxwel-dev.github.io/ClioPlay-Send/) to send destinations, multi-stop trips, saved places and car settings over Bluetooth (and sync back from ClioPlay via optical QR). For ease of use, add the web app to your Home Screen.

## Install

Expand Down Expand Up @@ -206,4 +209,4 @@ Original ClioPlay development includes:

Third-party software and dependencies retain their respective licences and attribution notices, as documented in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).

<sub>Release files refreshed 27 November 2026 (Europe/London).</sub>
<sub>Release files refreshed 28 November 2026 (Europe/London).</sub>
Loading
Loading