Vue arbo
- Objectif : stations K/H/S/B, services locaux, backhaul modéré.
- Phases :
- Environnement FastAPI/SQLite (OK).
- Slice radio / docs / mini-blockchain / synchro bundles (voir phases 0→7 ci-dessous).
- Infra :
- ASCII + stations & matériel (rappel).
- Todo/achats (à faire : boîte outdoor, provisioning, etc.).
Vue ASCII (OBBHFL)
Nœud central (ville) – contenus + collecte chaîne
|
| (C-pro / backhaul)
v
RELAIS PRO / KIT K (mairie)
- antennes RX/TX
- SSD contenus + copie chaîne
- tablette/PC maire
|\
| \-- H : Boîtier HOME (antenne dir., synchro chain)
| \
| \-- C-port portable (panel antenne, synchro)
|
v (Wi-Fi local)
S : Boîtier STANDARD (ESP32, µSD, identité, actions)
Points à préciser
- À faire Cartographier multi-village (lien A↔B) et classes de QoS.
- À faire Diagramme physique avec hauteurs mât + distances cibles.
- Info à trouver Mesures de débit réels CPE210 / NanoStation sur site.
Stations & matériel (rappel)
S : Standard (6–8 €)
- ESP32-WROOM DevKit, lecteur µSD SPI, boîtier plastique, alim USB.
- À faire Script provisioning clé (génération ed25519 + enregistrement).
H : Home (15–35 €)
- Base S + antenne directionnelle (CPE210 ou PCB u.FL).
- Info Antennes drone 2.4 GHz Foxeer Omni long range (x2) disponibles pour tests.
- À acheter 2× panneaux 2.4 GHz ou CPE210 pour tests.
K : Relais (80–120 €)
- Routeur OpenWRT 2.4 GHz + SSD USB 64–128 Go.
- Option solaire 20–30W + batterie 7Ah.
- À faire Boîte outdoor + schéma câblage.
Backhaul COM (50–70 €)
- Paire NanoStation Loco M2/M5 ou clones (portée 2–10 km LoS).
- Info à trouver Bande autorisée/power local.
Terminal Maire (50–70 €)
- Tablette Android 8" + clé USB blockchain + boîtier S identité.
- À faire UX vote/validation hors ligne.
Todo & achats (V3)
Technique immédiat
- À faire Init repo
backend/obambu_node avec FastAPI skeleton.
- À faire READMEs par station dans
devices/*.
- À faire Script sync mock (HTTP + USB).
- À faire Format meta document (.json) + exemples.
Achats prioritaires
- À acheter 2× ESP32 u.FL + câbles/antennes.
- À acheter 2× CPE Wi-Fi ext. (CPE210 ou équivalent).
- À acheter 1× routeur OpenWRT low-power (GL.iNet).
- À acheter Kit solaire 20–30W + contrôleur + batterie 7Ah.
Infos à collecter
- Info à trouver Réglementation radio locale (puissance/bande 2.4/5 GHz).
- Info à trouver Conditions terrain (obstacles, hauteur mât) pour chaque village.
- Info à trouver Besoins UI mairie (vote, attestation, révocation).
Phase 0 – Environnement
- Repo FastAPI + SQLite (
backend/obambu_node).
- Endpoints de base
/health, /device/hello.
- OK Stack + env en place.
Phase 1 – Slice radio non sécu
- Endpoints device : hello, config, content_index, content.
- Stockage simple (SQLite).
- OK API côté nœud.
- À faire Sketch ESP32 (Wi-Fi dur + LED).
Phase 2 – Docs + .enc (fake crypto)
- CRUD documents (
storage/docs, meta).
- ESP32 : base64 → SPIFFS.
- OK Upload admin (base64) + stream binaire device.
Phase 3 – Mini-blockchain
- Tx pool + blocs append-only.
- API :
/transactions, /chain/head, /chain/blocks/{id}.
- À faire Implémentation blocs/tx.
Phase 4 – Synchro multi-nœuds
- En cours Bundles export/import (gzip+base64) + UI admin.
- Script
bundle_carrier.py (Termux/laptop).
- À faire Quotas/priors par lien + ACK/purge.
Phase 5 – Signatures & crypto laptop
- ed25519 (PyNaCl) pour maires/communes/nœuds.
- En cours Signature admin (ed25519) à fiabiliser; token OK.
- À faire Choisir format signature (COSE/CBOR vs JSON) pour tx.
Phase 6 – Chiffrement .enc réel
- libsodium pour docs (nonce, MAC).
- À faire Stratégie rotation clé doc.
Phase 7 – Forum maires
- Tx FORUM_THREAD / FORUM_POST.
- API forum + UI simple.
- À faire TTL/portée par classe P0..P3.