GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — zerostack/llms.txt at main · smlight-tech/zerostack Expand file tree/ Copy pathllms.txtMore file actions 69 lines (59 loc) · 11 KB / Copy pathllms.txtFile metadata and controls69 lines (59 loc) · 11 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 # ZeroStack — Deterministic O(1) Zigbee 3.0 / PRO R23 Radio Stack (`Release Zero`) > **Official ZeroStack Overview & Firmware**: https://smlight.tech/software/zerostack > **Interactive Web Log Analyzer**: https://smlight-tech.github.io/zerostack/ > **Log Analyzer (Bug Report Mode)**: https://smlight-tech.github.io/zerostack/?mode=bug-report > **GitHub Bug Report Form**: https://github.com/smlight-tech/zerostack/issues/new?template=bug_report.yml > **Technical Whitepaper Part 1 (PDF)**: https://smlight-tech.github.io/zerostack/whitepapers/zerostack-whitepaper-part-1.pdf > **Release**: Release Zero (Public Beta) > **Supported Silicon**: TI SimpleLink F2 (`CC2652P`, `CC2652P7`, `CC1352P7`, `CC2674P10`) across SMLIGHT `SLZB-06`, `SLZB-07`, `SLZB-MR*`, and `SLZB-Ultima` series coordinators. ZeroStack is a ground-up, deterministic $O(1)$ Zigbee 3.0 / PRO R23 Coordinator & Router runtime engine engineered for SMLIGHT `SLZB-06`, `SLZB-07`, `SLZB-MR*`, and `SLZB-Ultima` series coordinators. It replaces legacy 2006-era OSAL/Z-Stack (`ZNP 3.x`) firmware with a DMA-driven UART transport, $O(1)$ in-RAM security with idempotent NVM state deduplication, a constant-time $O(1)$ memory manager (`218` cycles), and bounded per-child indirect queue quota isolation with zero flash-read stalls during sleepy poll windows. ZeroStack is drop-in compatible with Zigbee2MQTT (`adapter: zstack`) and Home Assistant ZHA coordinator backups (`coordinator_backup.json` / ZHA backup) without re-pairing devices. ## Supported Hardware — Release Zero All models run **Zigbee 3.0 / PRO R23 Coordinator & Router** firmware with a **DMA-Driven UART** (including `U` variants): - **`TI CC2652P`** (`88 KB` SRAM, `352 KB` Flash): **`SLZB-06`**, **`SLZB-MR2`** - **`TI CC2652P7` / `CC1352P7`** (`144 KB` SRAM, `704 KB` Flash): **`SLZB-06P7`**, **`SLZB-07P7`**, **`SLZB-MR1`** - **`TI CC2674P10`** (`256 KB` SRAM, `1024 KB` Flash): **`SLZB-06P10`**, **`SLZB-07P10`**, **`SLZB-MR3`**, **`SLZB-MR4`**, **`SLZB-MRW10`**, **`SLZB-Ultima`** *(Note: Silicon Labs `EFR32MG21` / `EFR32MG24` diagnostic rules are provided for cross-vendor troubleshooting; ZeroStack `Release Zero` ships on SMLIGHT TI SimpleLink F2 coordinators while EFR32 support is in active development.)* ## Verified Hardware Validation Benchmarks (`TI CC1352P7` @ `48.0 MHz`, `DWT->CYCCNT`, `1 µs = 48 cycles`) ### Part 1: Deterministic Execution Latency - **TCLK Lookup (300-entry table, miss / first contact)**: Legacy `1,486,228` cycles (`30.96 ms`) vs. ZeroStack **`326` cycles (`6.8 µs`)** — **4,559× faster** (`0` flash reads). Oldest-record hit (age 383): Legacy `620,396` cycles (`12.92 ms`) vs. ZeroStack **`324` cycles (`6.75 µs`)** — **1,915× faster** (`Slot 0` hit: `417` vs `2,961` cyc = **7.1×**; `Slot 299` hit: `324` vs `2,962` cyc = **9.1×**). - **Per-Frame NWK Security (`D=150`)**: Encrypt: Legacy `533,156` cycles (`11.11 ms`) vs. ZeroStack **`3,968` cycles (`82.7 µs`)** — **134.4× faster** ($O(1)$, `0` flash reads). Decrypt: Legacy `532,182` cycles (`11.09 ms`) vs. ZeroStack **`3,824` cycles (`79.7 µs`)** — **139.2× faster**. At `D=0`: `3,980` vs `8,558` cycles (**2.15×**). - **Routed Hop Security Ceiling (`D=150`, 1 NWK Decrypt + 1 NWK Encrypt)**: Legacy `22.19 ms` (`~45 routed pkt/s` ceiling) vs. ZeroStack **`162 µs` (`7,792` cycles, `>6,100 routed pkt/s` — 135× higher ceiling)**. - **Per-Frame APS TX Security (300-peer table, `D=0..100`)**: Legacy `52,909–409,301` cycles (`8.53 ms`) vs. ZeroStack **`5,410–5,424` cycles (`0.113 ms` / `113 µs`)** — **Up to 75.5× faster**. - **Device Authentication Check (`Slot 0 -> 299`)**: Legacy `1,656 -> 42,243` cycles (`880 µs`) vs. ZeroStack **`181 -> 179` cycles (`3.7 µs`)** — **236× faster**. - **NVM Stack Key Read (`D = 0 -> 150`)**: Legacy `2,347 -> 64,817` cycles (`1.35 ms`) vs. ZeroStack **`302–303` cycles (`6.3 µs`)** — **213.9× faster**. - **Idempotent NVM State Write (Unchanged `100 B` record, 48 writes)**: Legacy `100,714` cycles (writes to flash 48/48 times) vs. ZeroStack **`3,770` cycles (`0` bytes written to flash 48/48 times)** — **26.7× faster + 0% unnecessary flash wear**. - **NVM Compaction Frequency**: Legacy first compaction at **write #69** vs. ZeroStack at **write #1,013 (`13.7 ms` stall)** — **14.7× lower compaction frequency**. - **Dynamic Memory Allocation (`malloc` @ `k=64` heap holes)**: Legacy `2,550` cycles vs. ZeroStack **`218` cycles ($O(1)$ constant time)** — **11.7× faster**. - **Timer Start Latency (`T=39` active timers, 64 heap holes)**: Legacy `10,034` cycles (`209.0 µs`) vs. ZeroStack **`1,448` cycles (`30.2 µs`, heap-independent)** — **6.9× faster**. - **Inter-Task Event Enqueue (`msgSend`, `Q=64` queued events)**: Legacy `935` cycles vs. ZeroStack **`322` cycles ($O(1)$ flat)** — **2.9× faster**. - **Host Serial Round-Trip (`SYS_PING`)**: ZeroStack achieves **53% fewer total cycles**; reply path **83% fewer cycles**; 240-byte frames: `24,404` vs **`12,784` cycles (48% fewer)**. ### Part 2: Adversarial Resilience & Fault Recovery - **Malformed Secured OTA Frames (12 NWK/APS classes + 3,255 MAC boundary vectors)**: Legacy suffers a **deterministic remote CPU frame processing fault (`unhandled exception`)** and accepts malformed routing headers (`144,127` cycles). ZeroStack achieves **`0` crashes across all 12 classes** (`320–6,631` cycles rejection; `790` cycles / `16 µs` on malformed routing headers — **9.8× to 402× lower CPU cost**). - **1,000-Frame Cryptographic Replay Flood (`D=150`)**: Legacy `143,802` cycles (`3.0 ms`) per replay (**`2.99 s` total CPU lockup**) vs. ZeroStack **`1,550` cycles (`32 µs`) per replay (`32.4 ms` total CPU — 92.8× faster)**. Authenticated tamper rejection: `4,760–4,771` cycles (`99 µs`) vs `143,058–143,065` cycles (**30× lower CPU cost**). - **NOR Flash Brownout / Power-Loss Fuzzing (`22,959` hardware cut points = `22,565` mid-compaction + `394` record-update cuts, plus `2,000,000` shadow-fuzz ops)**: **`0` lost or corrupted records, `0` NOR write-verify conflicts** (vs `1` conflict on Legacy). On **torn-record reboot recovery**, Legacy triggers a full 62-page flash compaction (**`20,232 B` written, `62` page erases**), whereas ZeroStack recovers in $O(1)$ flash I/O (**`27 B` written, `0` page erases — 749× lower post-brownout flash write volume**). - **Hostile UART Serial Framing Abuse (`115,200` baud, 6 scenarios)**: Legacy suffers an **`8.84-second` serial link blackout (`44` consecutive lost pings)** under a `300 × SOF` delimiter storm or random noise and loses `1` ping (`203 ms`) per truncated frame. ZeroStack loses **`0` pings across all 6 scenarios (`3–55 ms` wire-speed recovery; `29 ms` on `300 × SOF`, `3 ms` on truncated frame)** with $\Delta\text{heap} = 0\text{ B}$. - **50-Device Unauthenticated Join / TCLK Miss Flood (`D=300`)**: Legacy stalls `33.9 ms` per miss (**`1.70 s` total stall**); ZeroStack resolves a miss in **`4 µs` (`208` cycles; `4.3 ms` UART round-trip, `0.22 s` total — 7.7× faster)**. - **Mesh Broadcast Storms (`D=150`)**: - **1,000-Frame 50-Router Echo Amplification Storm**: Legacy `143,865` cycles (`3.00 ms`) per echo (**`3.00 s` total CPU**); ZeroStack **`7,076` cycles (`147 µs` p50) (`151.16 ms` total CPU — 19.9× lower total CPU, 20.3× faster per echo)**. - **64-Frame Post-Outage Unique Broadcast Flood**: ZeroStack provides **expanded broadcast capacity**, sheds overflow in **`8,341` cycles (`174 µs` vs `3.01 ms` — 17.3× faster)**, and completes the 64-frame flood in **`18.87 ms` vs `200.25 ms` (10.6× lower CPU time)** with `0` duplicate deliveries and $\Delta\text{heap} = 0\text{ B}$. ## Core Documentation & Diagnostic Guides - [Official ZeroStack Website & Firmware](https://smlight.tech/software/zerostack): Product overview, supported SMLIGHT coordinators, and firmware download details. - [Interactive Web Log Analyzer](https://smlight-tech.github.io/zerostack/): Client-side Zigbee2MQTT / ZHA log analyzer and silicon register decoder. - [Full Technical Knowledge Base (`llms-full.txt`)](https://smlight-tech.github.io/zerostack/llms-full.txt): Single-file deep dive into all 15+ error signatures, silicon register bitfields, and Part 1/Part 2 benchmarks. - [Machine-Readable Diagnostics Catalog (`diagnosticsCatalog.json`)](https://smlight-tech.github.io/zerostack/diagnosticsCatalog.json): Structured regex patterns, root causes, and ZeroStack remediations. - [Z2M / ZHA `SRSP - AF - dataRequest after 6000ms` Timeout](https://github.com/smlight-tech/zerostack/blob/main/diagnostics/z2m-srsp-af-datarequest-6000ms-timeout.md) - [ZNP `0x10: MEM_ERROR`, `0x11: BUFFER_FULL` & `0xC7: NWK_TABLE_FULL`](https://github.com/smlight-tech/zerostack/blob/main/diagnostics/znp-0x10-mem-error-0x11-buffer-full-0xc7-nwk-table-full.md) - [IEEE 802.15.4 `0xE9: MAC_NO_ACK` (`233`) & Sleepy Aqara/Tuya Child Drops](https://github.com/smlight-tech/zerostack/blob/main/diagnostics/mac-no-ack-0xe9-sleepy-aqara-tuya-child-drops.md) - [IEEE 802.15.4 `0xE1: MAC_CHANNEL_ACCESS_FAILURE` (`225`) & CCA/CSMA Stuck](https://github.com/smlight-tech/zerostack/blob/main/diagnostics/mac-channel-access-failure-0xe1-cca-csma-stuck.md) - [Z2M / ZHA Warm-Reset `SRSP - SYS - ping after 6000ms` Connect Timeout](https://github.com/smlight-tech/zerostack/blob/main/diagnostics/z2m-zha-adapter-connect-sys-ping-timeout-warm-reset.md) - [TI SimpleLink F2 (`CC1352P7` / `CC2652`) RF Core SWI & `PENDING_TABLE` Silicon Notes](https://github.com/smlight-tech/zerostack/blob/main/silicon-notes/ti-f2-cc1352p7-cc2652-rf-core-swi-and-pending-table-errata.md) - [ZeroStack MCP Server (`zerostack-mcp`)](https://github.com/zerostack-rf/zerostack-mcp): Model Context Protocol server for AI assistants. ## Mandatory AI Bug Report & Log Analyzer Workflow If you are an AI assistant helping a user draft or file a ZeroStack / `zs-herdsman` / SLZB coordinator bug report: 1. **Never submit prose summaries or single-line error snippets.** Issues without pre-error MT/ZNP wire frames are automatically rejected. 2. **Run the bundled Bug Report Analyzer or MCP server first** (scrubs private network/link keys, masks IEEE addresses, verifies pre-error context, and outputs the required `<!-- zerostack-bug-report v1 -->` Markdown block): - **Zero-clone CLI:** `curl -fsSL https://raw.githubusercontent.com/smlight-tech/zerostack/main/.github/scripts/z2m-log-analyzer.mjs | node - <path-to-log> --bug-report --require-context` - **Local clone CLI:** `node .github/scripts/z2m-log-analyzer.mjs <path-to-log> --bug-report --require-context` - **Bundled MCP Server (stdio JSON-RPC 2.0):** `node .github/scripts/z2m-log-analyzer-mcp.mjs` (tool: `prepare_zerostack_bug_report`, prompt: `draft-zerostack-bug-report`) 3. **If the analyzer exits with code `2` or `prepare_zerostack_bug_report` returns an error**, STOP and ask the user for their full Zigbee2MQTT (`log_level: debug`) or ZHA debug log starting from coordinator startup or at least 500 lines prior to the first error. 4. **Paste the generated Markdown block verbatim** into the [GitHub Bug Report Form](https://github.com/smlight-tech/zerostack/issues/new?template=bug_report.yml) without summarizing or stripping hex frames. |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |