Skip to content

Build a Vehicle Telemetry Decoder

Category Creative & Real-World AI Builds
Status โœ… Completed
Repo nextwork-build-a-vehicle-telemetry-decoder
Original NextWork guide nextwork.ai

Learning project

Practice work following a NextWork guide, separate from my production projects.

๐Ÿ“š NextWork learning project. This is a practice project I built while working through NextWork's Build a Vehicle Telemetry Decoder guide. It is part of my Learning portfolio and is fully separate from my production projects.

Category: Learning โ€บ Creative & Real-World AI Builds
Status: โœ… Completed

Overview

This decoder turns fictional telemetry frames into readings. The byte layout lives in JSON profiles rather than in the code, so a new layout (reversed byte order, or a new temperature signal) needs no Python change. The data is teaching data only, not a real vehicle protocol.

Summary

Profile-driven decoder for the guide's fictional frames: 2D96 โ†’ 90 km/h and 75 %, the reversed-order profile, malformed-frame rejection, and the secret-mission temperature signal added through JSON alone. 8 tests pass.

The checks behind this are in docs/verification.txt.

Skills & tools

Python, Binary/hex parsing, Data-driven design, pytest

What I built

  • decoder.py: decode_frame() driven by a profile (offset, length, byte order, scale, offset value, range checks) plus a CLI.
  • profiles/demo_a.json, demo_b.json (reversed byte order), and demo_c.json (secret mission: a coolant temperature signal).
  • test_decoder.py: both profiles, malformed and out-of-range frames, and the JSON-only temperature signal.

How to run

pip install pytest
python decoder.py demo_a 2D96     # demo_speed: 90 km/h / demo_tank_level: 75 %
pytest -q

Verification

I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.

python3 decoder.py demo_a 2D96 && python3 decoder.py demo_b 962D && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python -m pytest -q -p no:cacheprovider

Notes

The guide uses IDLE on macOS. I used the same Python code on Linux, and nothing in the project depends on the editor.


Original project: https://nextwork.ai/projects/17aca6a8-803e-43bb-9e3f-b1ca0b779f29 ยท Part of my NextWork Learning portfolio (hub).

Verification output

From docs/verification.txt:

$ python3 decoder.py demo_a 2D96 && python3 decoder.py demo_b 962D && PATH=/workspace/nextwork-portfolio/.venv/bin:$PATH python -m pytest -q -p no:cacheprovider

demo_speed: 90 km/h
demo_tank_level: 75 %
demo_speed: 90 km/h
demo_tank_level: 75 %
........                                                                 [100%]
8 passed in 0.01s

[exit code 0]