RUC Research

Sentinel

Vehicle-Distance Research
Computed at the Edge

An internal RUC on Rails research project measuring distance from a vehicle's own signals. A working prototype that calculated locally, without GPS, cellular connectivity or a continuously connected phone.

Explore the Research Data

Retained as company research. No commercial release planned.

Measurement Architecture

Distance from Motion
Privacy by Architecture

Sentinel combined vehicle speed with elapsed time to measure distance on the device itself. Its measurement protocol has no latitude, longitude or route-coordinate fields.

Vehicle → DeviceLocal measurement pipeline
01 / OBD / CAN

Vehicle Signal

Standard speed readings

02 / v(t) + Δt

Sample Timing

Actual elapsed time

03 / ∫ v(t) dt

Distance Engine

Integer mm + remainder

04 / FLASH

Local Storage

Checksummed checkpoints

Bluetooth retrieves snapshots and research records. Distance calculation continues independently.

Vehicle-Based Measurement

Distance derived from standard OBD speed readings and actual response timing. The recorded campaign averaged approximately 9.4 speed readings per second.

Autonomous Computation

The dongle calculated distance independently of GPS, cellular coverage and a connected phone. Bluetooth disconnection did not stop measurement.

Minimal Data by Design

Research recordings captured speed, timing and device diagnostics. Coordinate logs, mapped routes and movement histories were unnecessary to the calculation.

Embedded Foundation

Vehicle Signals
Purpose-Built Firmware

Custom firmware for the WiCAN OBD v340 dongle connected to the vehicle's diagnostic port and requested standard OBD speed readings over the CAN network.

Network discovery listens before diagnostic requests begin. The firmware requests vehicle readings; it does not write ECU settings or issue vehicle-control commands.

The vehicle supplied the signal.
Sentinel calculated the distance.

hardware_manifest
MCU
ESP32-C3WiCAN OBD v340
Firmware
C / ESP-IDFReal-time embedded
RTOS
FreeRTOSDeterministic scheduling
CAN
500 kbit/sRoad-test connection
Radio
BLE 5.0Communication layer
Storage
FlashLedger & research journal
Vehicle readings → on-device calculation → saved records

Distance Engine

Speed Integration
& Calibration

Successive speed readings and the actual time between them feed the distance calculation. The engine accumulates integer millimetres while retaining fractional remainders.

Trapezoidal Integration
Δd = v₁ + v₂2 × Δt
v₁, v₂
Successive vehicle speeds
Δt
Actual time between readings
Δd
Distance added to the total

Sample gaps over 500 ms are excluded to keep integration grounded in fresh data.

01 / Recorded Campaign

Vehicle-Speed Integration

Standard OBD speed readings are integrated over actual elapsed time. Fractional distance is carried forward between samples, preserving precision as the total accumulates.

On-device calculationFractional remainder retained
02 / Firmware Capability

Optional Odometer Calibration

Where a vehicle supplies a supported standard OBD odometer signal, the firmware can use it as an additional reference to gradually refine the distance scale. The recorded campaign used speed integration alone.

Gradual scale adjustmentContinuous speed integration
Checkpointed distance storage
Recovery from valid saved records
Lifetime distance retained between drives
Independent of Bluetooth connection

Recorded Campaign

Road-Test Results

Across 35 recorded drives, Sentinel calculated 2,500.685 km against 2,515.4 km shown by the vehicle's trip meter. These results used speed integration alone.

99.415%

Trip-Meter Agreement

Combined recorded drives

0.585%

Distance Difference

Across combined trip readings

35

Recorded Drives

Vehicle speed integration

2,000,680

Research Records

Analysed across the campaign

Continuous record sequences and consistent measurement throughout the recorded sessions.

No sequence gapsNo long integration gapsNo stationary drift at repeated zero speed

Explore the Research

Inside the Data

See vehicle signals become distance. Explore two recorded samples showing vehicle profiles, response timing and device measurements. These charts cover the selected samples; the campaign totals above cover all 35 drives.

2Recorded samples
30,334Sample records
Loading data samples…

Data Boundaries

Distance Retained
Location Unrecorded

Research sessions recorded speed, timing, accumulated distance and device diagnostics to examine how measurement behaved. The distance engine did not require location coordinates.

Authenticated Bluetooth retrieved distance snapshots and recorded evidence. Calculation continued independently, without a live location feed or continuous server upload.

Distance Ledger

Research Distance Total

Campaign metres, rounded
GPS CoordinatesNone
Route HistoryNone
Live Location FeedNone

Stored on Device

  • Accumulated distance and saved checkpoints
  • Research measurements and device diagnostics

Outside the Recorded Data

  • GPS coordinates and traces
  • Mapped routes and location history
  • Personal identity details

Engineering Investment

Built Across the
Embedded Stack

Custom firmware, local distance calculation, persistent storage and research analysis came together in a working vehicle-distance prototype.

Real-Time Firmware

C, ESP-IDF and FreeRTOS coordinate vehicle readings, distance calculation, storage and communication.

CAN Frame Parsing

Listen-only network discovery precedes standard OBD requests. The recorded campaign used a 500 kbit/s CAN connection.

Numerical Integration

Trapezoidal integration uses actual elapsed time, integer millimetres and retained fractional remainders.

BLE Communication

Authenticated transfer of distance snapshots and research evidence runs separately from local distance calculation.

Flash Persistence

Checksummed checkpoints preserve saved totals. On restart, the device recovers the latest valid saved record and resumes accumulation.

Sync Safeguards

Sequenced records support transfer verification. Snapshot acknowledgements track transferred totals while preserving accumulated distance.

Research Outcome

A Working Approach to
Local Distance Measurement

Sentinel demonstrated distance calculation using vehicle data without collecting location coordinates or requiring cellular connectivity. The prototype, firmware and test results remain part of RUC on Rails' internal research.