Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
40cadf9
feat: add Phase 1 connectivity and diagnostics foundation
DagerottDev Sep 4, 2026
8669f3d
ci: add iOS simulator build
DagerottDev Sep 4, 2026
3b50178
fix: import Combine in Wi-Fi manager
DagerottDev Sep 4, 2026
9ed297a
fix: import Combine in network monitor
DagerottDev Sep 4, 2026
2564a0e
fix: import Combine in UDP transport
DagerottDev Sep 4, 2026
4d01494
fix: import Combine in diagnostic log
DagerottDev Sep 4, 2026
85b486e
ci: remove optional xcpretty dependency
DagerottDev Sep 4, 2026
e8e1b62
chore: remove CI workflow for manual device testing
DagerottDev Sep 4, 2026
42fbc8f
feat: add K1G protocol codec and RSA session authentication
DagerottDev Sep 4, 2026
aa8221c
feat: implement control input and video UDP transport
DagerottDev Sep 4, 2026
9dedd63
feat: add dash session state machine and projection control plane
DagerottDev Sep 4, 2026
147e121
feat: add dash renderer VideoToolbox encoder and RTP streamer
DagerottDev Sep 4, 2026
6a3576d
feat: add CoreLocation MapKit navigation engine
DagerottDev Sep 4, 2026
0e8f344
feat: add RideDash product screens and SwiftData models
DagerottDev Sep 4, 2026
a82d79a
feat: add complete RideDash tab navigation
DagerottDev Sep 4, 2026
a32412a
feat: configure local SwiftData store
DagerottDev Sep 4, 2026
7cf5975
chore: add iOS permissions deep link and background location metadata
DagerottDev Sep 4, 2026
f2873bb
chore: wire complete RideDash sources into Xcode target
DagerottDev Sep 4, 2026
76baffb
fix: harden RSA key construction and DER encoding
DagerottDev Sep 4, 2026
0a2e427
fix: harden renderer H264 output parsing and RTP fragmentation
DagerottDev Sep 4, 2026
945463c
fix: make UDP readiness state explicit and deterministic
DagerottDev Sep 4, 2026
cab3a04
fix: handle listener state patterns explicitly
DagerottDev Sep 4, 2026
3abc53f
fix: harden live route step tracking and shared destination parsing
DagerottDev Sep 4, 2026
4b90d13
refactor: replace generated product feature file with clean implement…
DagerottDev Sep 4, 2026
79173df
feat: add clean local-first RideDash product experience
DagerottDev Sep 4, 2026
0e79c83
fix: harden authentication gating and session lifecycle
DagerottDev Sep 4, 2026
0a7c937
refactor: align H264 RTP packaging with dash reference behavior
DagerottDev Sep 4, 2026
fe0c82e
feat: implement dash-compatible VideoToolbox H264 RTP projection
DagerottDev Sep 4, 2026
f600a6d
docs: track implementation status for manual testing
DagerottDev Sep 4, 2026
7cccfb9
docs: add protocol reference notes
DagerottDev Sep 4, 2026
4b116cc
feat: add centralized dash protocol configuration
DagerottDev Sep 4, 2026
a666b17
feat: add reusable hex codec
DagerottDev Sep 4, 2026
80a4136
feat: model inbound and outbound dash datagrams
DagerottDev Sep 4, 2026
1dfd3f5
chore: keep hardware test profile generic in app UI
DagerottDev Sep 4, 2026
6efe53e
chore: make diagnostics generic and reflect complete transport stack
DagerottDev Sep 4, 2026
5a167ee
feat: add dash session and input state models
DagerottDev Sep 4, 2026
84be181
feat: centralize public protocol constants
DagerottDev Sep 4, 2026
8a67352
feat: decode dash navigation button events
DagerottDev Sep 4, 2026
5c9fac0
feat: add defensive K1G packet codec
DagerottDev Sep 4, 2026
8c097b5
feat: add typed projection control packet accessors
DagerottDev Sep 4, 2026
fb4f97e
feat: add session metrics model
DagerottDev Sep 4, 2026
3686bbb
fix: keep Network.framework callbacks actor-safe
DagerottDev Sep 4, 2026
b61c444
feat: add firmware compatibility profile
DagerottDev Sep 4, 2026
e73d400
feat: add protocol error model
DagerottDev Sep 4, 2026
9292e18
feat: add packet trace model
DagerottDev Sep 4, 2026
97e2f11
feat: add session timeline entry model
DagerottDev Sep 4, 2026
05029ad
feat: add Maps route share extension
DagerottDev Sep 4, 2026
5cb0eb9
feat: add safe byte cursor for protocol decoding
DagerottDev Sep 4, 2026
43054f8
chore: configure RideDash share extension activation
DagerottDev Sep 4, 2026
1a2f499
feat: add generic TLV codec
DagerottDev Sep 4, 2026
72344fd
feat: add dash capability flags
DagerottDev Sep 4, 2026
10bf3ca
feat: add protocol version metadata
DagerottDev Sep 4, 2026
af43027
feat: define session commands
DagerottDev Sep 4, 2026
e717be8
feat: add session snapshot model
DagerottDev Sep 4, 2026
53e61e3
feat: add session timing policy
DagerottDev Sep 4, 2026
6ad9010
feat: add session events
DagerottDev Sep 4, 2026
4f47430
feat: add deterministic session reducer
DagerottDev Sep 4, 2026
775bf62
feat: add full UDP datagram transport
DagerottDev Sep 4, 2026
9b262e1
feat: embed RideDash route share extension target
DagerottDev Sep 4, 2026
d087e99
feat: model dash public key material
DagerottDev Sep 4, 2026
8163483
feat: parse public authentication response markers
DagerottDev Sep 4, 2026
c0a63bc
feat: generate ephemeral session key material
DagerottDev Sep 4, 2026
2c5a10e
feat: add integer byte normalization helper
DagerottDev Sep 4, 2026
c9b845e
feat: build DER RSA public keys from dash modulus exponent
DagerottDev Sep 4, 2026
1357955
feat: add Security-framework RSA session encryption
DagerottDev Sep 4, 2026
a175101
feat: build encrypted dash authentication packet
DagerottDev Sep 4, 2026
a31046f
docs: describe complete RideDash implementation and manual validation…
DagerottDev Sep 4, 2026
251ab72
feat: implement async dash authentication flow
DagerottDev Sep 4, 2026
f291603
feat: add route card model
DagerottDev Sep 4, 2026
b9222b4
feat: add dash navigation instruction model
DagerottDev Sep 4, 2026
913f5ba
feat: add isolated route and navigation packet builders
DagerottDev Sep 4, 2026
8581d40
docs: embed protocol validation warning
DagerottDev Sep 4, 2026
8e31557
docs: expand protocol implementation notes
DagerottDev Sep 4, 2026
3fa2d86
docs: record public protocol source reference
DagerottDev Sep 4, 2026
2779fd8
docs: note clean-room protocol asset boundary
DagerottDev Sep 4, 2026
ad33902
feat: add H264 NAL models
DagerottDev Sep 4, 2026
4fad0a3
feat: implement VideoToolbox H264 encoder
DagerottDev Sep 4, 2026
fc4fc9b
feat: implement H264 RTP packetizer with FU-A
DagerottDev Sep 4, 2026
5704f47
feat: add projection UI state
DagerottDev Sep 4, 2026
1a650a1
feat: implement 526x300 offscreen dash renderer
DagerottDev Sep 4, 2026
6dee736
feat: stream rendered frames as H264 RTP over UDP
DagerottDev Sep 4, 2026
2f27154
feat: add navigation-grade CoreLocation service
DagerottDev Sep 4, 2026
381f696
feat: implement MapKit navigation state engine
DagerottDev Sep 4, 2026
85ff20d
feat: parse shared map destinations
DagerottDev Sep 4, 2026
cb37b9d
feat: add RideDash route deep link parser
DagerottDev Sep 4, 2026
ba71faa
feat: orchestrate auth navigation projection and input lifecycle
DagerottDev Sep 4, 2026
5455fbf
feat: add protocol hardware validation state
DagerottDev Sep 4, 2026
59a3468
feat: add shared application model
DagerottDev Sep 4, 2026
0b9ceda
feat: add persistent vehicle model
DagerottDev Sep 4, 2026
f808b76
feat: add garage expense fuel and ride models
DagerottDev Sep 4, 2026
662ea04
chore: add lifecycle testing marker
DagerottDev Sep 4, 2026
16dd92e
chore: mark full manual-test implementation phase
DagerottDev Sep 4, 2026
7d8a00e
chore: document manual hardware validation requirement
DagerottDev Sep 4, 2026
a9e6a1f
chore: add application source marker
DagerottDev Sep 4, 2026
c8ae61d
feat: add projection feature flags
DagerottDev Sep 4, 2026
07c9d69
feat: add nav-info and status heartbeat loops
DagerottDev Sep 4, 2026
07e1100
fix: bind dash control traffic to expected local UDP port
DagerottDev Sep 4, 2026
ca72266
chore: remove duplicate scratch implementations
DagerottDev Sep 4, 2026
3c2578a
docs: add end-to-end manual hardware test guide
DagerottDev Sep 4, 2026
e0c8f33
docs: mark first hardware beta implementation complete
DagerottDev Sep 4, 2026
5e9e2b9
fix: keep app-managed dash Wi-Fi configuration for ride sessions
DagerottDev Sep 4, 2026
f106b36
fix: use control UDP port as diagnostics default
DagerottDev Sep 4, 2026
cf9f7b5
feat: harden dash session recovery and input handling
DagerottDev Sep 4, 2026
01d2817
feat: add route deviation detection and recalculation
DagerottDev Sep 4, 2026
8cfcbe2
feat: add device health metrics and local protocol self-check
DagerottDev Sep 4, 2026
d225b2b
feat: finish reconnect UI and maintenance reminders
DagerottDev Sep 4, 2026
626efb1
chore: add app privacy manifest
DagerottDev Sep 4, 2026
a04c8be
chore: bundle privacy manifest
DagerottDev Sep 4, 2026
1ee79fb
docs: add interoperability and trademark notice
DagerottDev Sep 4, 2026
5c55923
feat: record rides automatically during projection
DagerottDev Sep 4, 2026
62cf3b7
docs: mark remaining code-only work complete
DagerottDev Sep 4, 2026
88cb022
docs: update project plan with completed beta implementation
DagerottDev Sep 4, 2026
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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Xcode
DerivedData/
build/
*.xcuserstate
xcuserdata/
*.xccheckout
*.xcscmblueprint

# SwiftPM
.build/
.swiftpm/

# macOS
.DS_Store

# Local diagnostic exports / secrets
DiagnosticsExports/
*.pcap
*.pcapng
*.key
*.pem
*.p12
Secrets.xcconfig
32 changes: 32 additions & 0 deletions Docs/HARDWARE_TEST_MATRIX.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Hardware Test Matrix

Update this file only with sanitized, non-secret results. Never commit Wi-Fi passwords, cryptographic keys, private certificates, or precise personal route history.

## Test target

| Field | Value |
|---|---|
| Bike | Guerrilla 450 |
| Dash firmware | TBD |
| Dash SSID pattern | TBD / sanitize before commit |
| iPhone | TBD |
| iOS | TBD |
| Date | TBD |

## Phase gates

| Test | Pass condition | Result | Notes |
|---|---|---|---|
| Manual Wi-Fi join | iPhone joins dash AP | ⬜ | |
| In-app Wi-Fi join | User-approved join succeeds | ⬜ | |
| Local path | `NWPath` is satisfied on Wi-Fi | ⬜ | |
| UDP route | Network.framework state reaches ready | ⬜ | Ready does **not** prove remote response |
| Dash datagram | Expected response/event captured | ⬜ | Phase 2 |
| Authentication | 10/10 cold attempts | ⬜ | Phase 4 |
| Projection mode | Dash enters/leaves cleanly | ⬜ | Phase 5 |
| Calibration stream | iPhone pixels visible | ⬜ | Phase 7 |
| 30-minute stream | Stable at baseline profile | ⬜ | |
| Input | Known nav controls decoded | ⬜ | Phase 10 |
| Ignition cycle | Reconnect succeeds | ⬜ | Phase 11 |
| Phone lock | Behavior measured/documented | ⬜ | Phase 12 |
| 60-minute ride | Thermal/battery/network acceptable | ⬜ | Phase 13 |
95 changes: 95 additions & 0 deletions Docs/IMPLEMENTATION_STATUS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# RideDash Implementation Status

RideDash is **code-complete for the planned first hardware beta**. Final validation is intentionally manual on a physical iPhone and the user's owned motorcycle display; there is no CI/CD workflow in this repository.

## iOS product

- [x] Native SwiftUI application targeting iOS 17+
- [x] SwiftData local-first persistence
- [x] Vehicle profiles and active vehicle
- [x] Garage / maintenance history
- [x] Fuel logs and full-tank mileage calculation
- [x] Expense tracking and CSV export
- [x] Manual ride history
- [x] Automatic ride recording during projection sessions
- [x] Maintenance next-due km/date tracking
- [x] Local maintenance due-date notifications
- [x] MapKit route calculation and preview
- [x] CoreLocation live navigation state
- [x] Off-route detection and cooldown-protected route recalculation
- [x] Remaining-distance / ETA updates
- [x] Apple Maps hand-off
- [x] `ridedash://` route deep links
- [x] Share Extension for shared map URLs/text
- [x] Currency / distance preferences
- [x] Persisted background-navigation behavior

## Display interoperability stack

- [x] Hotspot Configuration entitlement
- [x] User-approved in-app Wi-Fi join request
- [x] App-managed Wi-Fi configuration
- [x] Local network path monitoring
- [x] UDP control channel bound to the configured control source port
- [x] UDP input listener
- [x] UDP video channel
- [x] Sanitized packet/session diagnostic logging
- [x] Hardware test profile
- [x] K1G/TLV framing and rolling sequence patching
- [x] Dynamic dash-provided RSA public-key parsing
- [x] New ephemeral 32-byte AES-256 session key per authentication attempt
- [x] RSA PKCS#1 v1.5 session authentication
- [x] Auth timeout and rejection handling
- [x] Bounded exponential automatic reconnect
- [x] Navigation-mode restoration after reconnect
- [x] Repeated UDP-send failure recovery
- [x] Projection/navigation-mode enter/exit sequencing
- [x] Route-card keep-alive
- [x] Active nav-info keep-alive
- [x] 1 Hz metadata/status heartbeat
- [x] Projection frame heartbeat
- [x] 526×300 off-screen renderer
- [x] Calibration grid mode
- [x] VideoToolbox low-latency H.264 Baseline encoder
- [x] SPS/PPS extraction
- [x] RTP payload type 96 packetization
- [x] FU-A fragmentation for oversized NAL units
- [x] UDP H.264/RTP streaming
- [x] Known RIGHT / LEFT / DOWN / CLICK input decoding
- [x] Input acknowledgement flow
- [x] Input debounce for repeated events
- [x] Manual stop/disconnect recovery paths
- [x] Configurable host/broadcast/ports/FPS/bitrate

## Diagnostics / release hygiene

- [x] Thermal-state monitoring
- [x] Battery level/state monitoring
- [x] Low Power Mode monitoring
- [x] In-app deterministic K1G/RTP/FU-A self-check (no network traffic)
- [x] Sanitized diagnostics export
- [x] Privacy manifest bundled in the app target
- [x] UserDefaults required-reason declaration (`CA92.1`)
- [x] Independent-project / interoperability NOTICE
- [x] Safety boundary documented in code and docs

## Hardware validation still required

The code intentionally keeps firmware-sensitive assumptions configurable. The following cannot be truthfully marked complete until the physical test:

- [ ] Xcode compile/sign/install on the target iPhone
- [ ] Exact target-firmware endpoint/port validation
- [ ] Authentication success across cold ignition cycles
- [ ] Navigation-mode transition on the physical dash
- [ ] Calibration grid visible on the physical dash
- [ ] Stable 4 fps H.264/RTP stream for 30 minutes
- [ ] LEFT / RIGHT / DOWN / CLICK verified on the target controls
- [ ] Ignition-cycle reconnect behavior measured
- [ ] Locked-screen/background behavior measured on the target iPhone/iOS version
- [ ] 60-minute thermal/battery/network ride test

Follow [`MANUAL_TEST_GUIDE.md`](MANUAL_TEST_GUIDE.md) in order. Do not skip directly to video projection on the first hardware session.

## Validation policy

No GitHub Actions or CI/CD workflow is used. The first final integration build is compiled, signed and installed manually in Xcode. Unknown protocol families remain read-only, and RideDash permanently excludes ECU, throttle, brakes, ABS, traction control, immobilizer, engine control and other safety-critical vehicle commands.
Loading