Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

P4: Community LoRaWAN air quality

Source docs/pilots/p4-community-lorawan-air-quality/README.md

On this page
  1. Goal
  2. Roles
  3. Success criteria (proposed; agree and fix them in the pilot plan before starting)
  4. What the pilot uses
  5. Runbook
  6. What this pilot does not show
  7. Files in this folder

Pilot kit, exported and partner-neutral. The kit names roles, not organisations. It uses live tree features and draft proposals (status DRAFT, can change before acceptance). Nothing here is a conformance claim, a result or a statement that any party conforms to anything; a run describes the documents it was given. See the pilot index for the common setup and the rules every pilot follows.

Goal

Show that a community network of low-cost particulate sensors reporting over LoRaWAN can publish values with an honest quality tier, a co-location record against a reference monitor, and pseudonymous reports from residents, with the privacy rules of the community profile checked.

Roles

Community organiser, network server operator, reference-monitor operator, receiving participant that issues pseudonyms and moderates, reviewer.

Success criteria (proposed; agree and fix them in the pilot plan before starting)

Id Criterion Measure Evidence
C1 Each uplink is mapped by the connector without guessing (null is not zero, a gap is recorded, a frame-counter repeat is recorded) connector tests pass; sampled uplinks reviewed test output, sample review
C2 A co-location record documents the fit of at least one sensor against a reference monitor with residuals in the property’s unit one record validates and its invariants pass validation log, conformance run
C3 No value is CALIBRATED without a current co-location record that awarded it; the default is INDICATIVE conformance case CT-COMMUNITY-003 passes; one deliberate upgrade is detected run logs
C4 Contributors are pseudonyms that rotate and are never an identifier shape case CT-COMMUNITY-001 passes run log
C5 Locations of reports and of home sensors are coarsened by default case CT-COMMUNITY-005 passes; review of how the sensor sites are published run log, review note
C6 A rejected report travels only as a tombstone manual case CT-COMMUNITY-006 attested after a forwarding test attestation

A criterion not met is a finding, not a failure to hide. The report template has a row for each.

What the pilot uses

Kind What
Profiles (live) OBSP-NODE for the gateway; OBSP-GRID
Drafts OIP-0017 OBSP-COMMUNITY (quality tiers, co-location records, human reports); OIP-0019 LoRaWAN connector binding; OIP-0006 observation record; OIP-0014 consent record
Bindings (drafts) lorawan (OIP-0019 copy)
Domain pack profiles/domains/air-quality (informative)
Privacy draft assessment for the community profile, for counsel review

Working copies needed: try 0017 (OIP-0017), try 0019 (OIP-0019).

Runbook

Every command below was run on the tree this kit ships in, and gave the result stated. Work from the repository root of a clean checkout, after the setup block of the index (the try, series, inside and clean helpers). A line that begins with ! is expected to fail (exit status 1 is the right answer). When your own evidence replaces the examples, the counts change; the shape of the result does not.

Step 1. Baseline on the live tree (nothing drafted)

Proves your checkout, tooling and evidence layout work before any draft is involved. Run from the repository root.

python3 -m obsp validate fixtures/positive/observation-record.valid.json
python3 -m obsp digest fixtures/positive/observation-record.valid.json
python3 -m obsp conformance run --profile OBSP-NODE --evidence conformance/examples/OBSP-NODE --out /dev/null

Expect. The first line says valid observation-record; the digest is sha256: and 64 hex digits; the last line of the run is OBSP-NODE: PASS (7/7 requirements).

Step 2. Domain pack

Properties, tests and bindings for air quality.

python3 -m unittest tests.test_domain_packs

Expect. OK.

Step 3. Community profile (OIP-0017 copy)

Objects, examples and the suite.

try 0017
inside 0017 python3 -m obsp validate fixtures/positive/co-location-record.valid.json fixtures/positive/human-report.valid.json fixtures/positive/human-report.persons-with-policy.json
! inside 0017 python3 -m obsp validate fixtures/negative/human-report.pseudonym-is-email.json
! inside 0017 python3 -m obsp validate fixtures/negative/human-report.coarsened-precision-too-fine.json
inside 0017 python3 -m obsp conformance run --profile OBSP-COMMUNITY --evidence conformance/examples/OBSP-COMMUNITY --out /dev/null
inside 0017 python3 -m unittest discover -s sdk/python/tests -p test_community.py

Expect. Positives valid; the two negatives exit 1; the run ends OBSP-COMMUNITY: PASS (4/4 requirements) (the manual case is attested in attestations.yaml); 47 tests OK.

Map uplinks; record gaps and repeats.

try 0019
inside 0019 python3 -m unittest tests.test_lorawan_binding
inside 0019 ls bindings/lorawan/examples/positive bindings/lorawan/examples/negative

Expect. OK (two tests are skipped until the connector schemas of OIP-0007 exist in the tree; the draft says so). Read bindings/lorawan/PROFILE.md and the examples: an uplink after a gap records the gap, a repeated frame counter is recorded, and the device address is never an identity (devaddr-as-identity.json is a negative example).

Step 5. Co-location rehearsal

Run a reference monitor beside one sensor for the declared period; fill a co-location record by hand from fixtures/positive/co-location-record.valid.json, validate it with --schema co-location-record, and run the profile on your evidence folder as in the last step.

python3 -m obsp digest fixtures/positive/sensor-passport.valid.json

Expect. The record’s evidenceRefs name the paired dataset by digest; a reader can recompute it.

Step 6. Your own evidence set and report

Replace the example documents with your own, one folder per run, and keep the report and its digest.

mkdir -p "$ROOT/../pilot-evidence" && cp conformance/examples/OBSP-NODE/* "$ROOT/../pilot-evidence/"
python3 -m obsp conformance run --profile OBSP-NODE --evidence "$ROOT/../pilot-evidence" --out "$ROOT/../pilot-evidence/report.json"
python3 -m obsp validate "$ROOT/../pilot-evidence/report.json" --schema conformance-report
python3 -m obsp digest "$ROOT/../pilot-evidence/report.json"
rm -rf "$ROOT/../pilot-evidence"

Expect. The example set is shown here only to prove the commands; in the pilot, copy your own documents into the folder instead. The report validates as a conformance-report and has a digest. Keep the folder, the report and the digest with the pilot’s evidence. A report describes documents and is not a conformance claim; no pilot ends in a claim above SELF_TESTED.

When you are finished, run clean to remove the throwaway copies.

What this pilot does not show

It does not show that low-cost values meet any air-quality performance scheme or may be used for a regulatory or health decision, that residents consented validly, or that any LoRaWAN network is operated well. A tier states the evidence behind a value, never fitness for a purpose.

Files in this folder

File Use
EVIDENCE_CHECKLIST.md what to collect, where to keep it, how it is made
REPORT_TEMPLATE.md the report the pilot lead fills at the end