The Jitter Sensor Link platform: the shared code behind Jitter sensor devices, from the firmware on the device to the server it reports to. It also holds the tooling used to produce devices.
| Crate | Contents |
|---|---|
| sensor-link-firmware | Firmware building blocks: drivers, storage, bootloader etc |
| sensor-link-protocol | Device ↔ server protocol |
| server/sensor-link-server-core | Server core: devices, sensor data and time series, events, etc |
| server/sensor-link-mqtt | Server-side MQTT client |
| server/sensor-link-notify | Server-side Notifications: alarms, e-mail and SMS |
| server/task-supervisor | Supervised tokio background tasks: auto-restart on panic, graceful shutdown with timeout |
Tools to help build & test hardware during manufacturing.
| Directory | Contents |
|---|---|
| sensor-link-provision/ | Desktop provisioning tool: flashes bootloader, firmware and device config over J-Link, signs device certificates with a YubiKey-held CA |
| factory-test/ | Factory test firmware for test jigs, each its own embedded workspace excluded from the root workspace |
The workspace carries a backlog of clippy findings. Rather than fix them all at once, CI gates only files a pull request actually changes, so the backlog shrinks as the code gets touched. Run the script below to check what clippy warnings you must solve to get your PR accepted.
./scripts/clippy-changed.sh # compare against origin/master
./scripts/clippy-changed.sh HEAD~1 # or any other base refTo report a vulnerability, see SECURITY.md.
sensor-link-protocol/fuzz/ holds cargo-fuzz targets for the message decoders.
It is its own workspace and needs nightly.
CI runs each target for a minute.
| Target | Decoders |
|---|---|
downlink_json |
Topic parsing and the serde-json-core payloads the firmware receives |
samples_postcard |
UniformSamples::from_topic_data, plus a re-encode round trip and the NChannelSamples conversion |
samples_q15 |
q15::Uniform::from_topic_data with a round trip, and parse_q15_to_nchannel |
samples_q15xl |
q15xl::Uniform::from_topic_data with a round trip, and both parse_q15xl_to_nchannel variants |
cargo install cargo-fuzz
cd sensor-link-protocol/fuzz
cargo +nightly fuzz run downlink_json -- -max_total_time=600Each library crate is released on its own, with a <crate>-v<version> tag such
as sensor-link-firmware-v0.3.0. To release:
- Set
versionin the crate'sCargo.toml. - Rename the
## Unreleasedsection of the crate'sCHANGELOG.mdto## <version> - <date>. - Merge to master, then tag that commit and push the tag.
The Library release workflow checks the tag against Cargo.toml and publishes
a GitHub Release. Its notes are the changelog section and it carries a
CycloneDX SBOM (<tag>.cdx.json). Downstream pins the release with
tag = "<crate>-v<version>" on the git dependency.
sensor-link-provision follows the same steps with its own
sensor-link-provision-v* tags, see its README.
The Dependency audit workflow runs cargo audit on every pull request and
weekly. Advisories that do not apply, or have no usable fix yet, are ignored in
.cargo/audit.toml, each with its reason.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.