Skip to main content

jetstan_ev_software

The vehicle software payload for Jetstan electric vehicles — the code that actually runs on the vehicle's Raspberry Pi and defines its behavior. Published independently of jetstan-agent (the OTA delivery mechanism) and jetstan-cli (the engineer-facing deploy tool): this package is versioned, released, and deployed on its own schedule, never tied to either.

jetstan-agent        = OTA/runtime agent (MQTT, self-update, process supervision)
jetstan-cli          = engineer-facing deployment CLI
jetstan_ev_software   = this package - what the vehicle actually runs

Import name: software. Distribution name on PyPI: jetstan_ev_software.

What's inside

  • Arduino firmware + OTA flashing (software.arduino_updates) — compiles the shipped motor-controller sketch with arduino-cli, flashes it over USB serial with avrdude, and verifies the board's contents against what was just written before trusting it.
  • Sensors & telemetry (software.sensors) — reads live pack voltage/temperature back from the Arduino, and forwards motor speed commands to it over the same serial connection.
  • State-of-charge prediction (software.soc) — an ONNX-exported model + FastAPI service for estimating battery state of charge from telemetry.
  • Deployment DAG (software.deployment) — the task graph that compiles, flashes, and starts telemetry in the correct order every time the vehicle software activates, with real skip logic (not a blind cache) so nothing gets reflashed unnecessarily.
  • MQTT command extension point (software.handlers) — this package's own custom MQTT commands, merged automatically into jetstan-agent's router without jetstan-agent ever needing to know this package exists.

How it gets onto a vehicle

jetstan deploy --release X --batch <batch>
    -> cloud-logics validates jetstan_ev_software==X on PyPI
    -> MQTT: {"type": "software.available", "version": "X"}
    -> jetstan-agent on the Pi -> software.handlers
    -> pip install --upgrade jetstan_ev_software==X
    -> restart -> deployment DAG compiles, flashes, and verifies

Not installed by hand in production — see jetstan-agent's own jetstan-agent-install for how a fresh Pi gets this package onto it in the first place.

Local development

cd software
pip install -e ".[dev]"
pytest

ARDUINO_ENABLED=false by default — Arduino compile/flash/telemetry are opt-in via environment variable (see .env.example), so running the test suite or importing this package never requires real hardware to be attached.

Release files for jetstan-ev-software 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jetstan-ev-software 0.1.4
File Size Uploaded
jetstan_ev_software-0.1.4.tar.gz 635.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jetstan-ev-software 0.1.4
File Interpreter ABI Platform
jetstan_ev_software-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / jetstan_ev_software-0.1.4.tar.gz

Download URL jetstan_ev_software-0.1.4.tar.gz
Size 635.1 kB
Tags Source
SHA-256 checksum
How to use checksums
96c81e9eb533b21c4cae0582557fc7a9989d92b3e04d156db63fb3d5c8ebf837
BLAKE2b-256 checksum
How to use checksums
12ea324e9b29208009dbb6c5d96ea0df2d7ac64008da7cc6cb1a254e8e3501df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / jetstan_ev_software-0.1.4-py3-none-any.whl

Download URL jetstan_ev_software-0.1.4-py3-none-any.whl
Size 644.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70cd71e305bddb1250c2b5ea9fbad60908be4f44dc3b38acb5a09e19e88189d1
BLAKE2b-256 checksum
How to use checksums
9e52802a73db40d302d7a461c3bf4b7a02e0e44fa7491d504bf0241efb1d2265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page