NexusKestrel:
the field controller,
on one microcontroller.
NexusKestrel talks to the equipment and building systems already in a mechanical room over their own field protocols, runs the same Talos control sequences as every AutomataNexus controller, scores each unit with its own Oxiryn fault model and keeps refining it on the device, and reports to the NexusEdge Console. All of it runs on the dual Hazard3 RISC-V cores of one Raspberry Pi RP2350B, with no Rockwell or Tridium licensing and no third-party runtime.
Abstract
Commercial buildings are run by a patchwork of controllers that speak a dozen protocols, many of them closed, many of them out of support. Replacing them is expensive and disruptive; supervising them usually means a licensed front end and a server. NexusKestrel takes a different route: one low-power microcontroller that reads and writes the buses a building already has, runs proven control sequences locally, watches every unit with its own model, and reports outward over a single encrypted link.
This paper describes the two boards (the fully kitted NexusKestrel and the compact Kestrel Nano, one firmware), the protocol stacks, the Talos control engine, on-device learning with Oxiryn, the security model from secure boot to the write governor, and the limits we design to.
Executive summary
A mini-JACE in a DIN-rail box: protocol gateway, site supervisor and point controller in one, built and signed by AutomataNexus.
What it does
- Protocol gateway and supervisor. Reads and writes BACnet, Modbus, PLCs, Niagara stations and legacy trunks, and brings those points into the Console. One Kestrel supervises up to 160 devices and 4,096 points.
- Point controller. Sensors, valves, dampers, relays and drives wired straight to it, run locally by Talos with the Console supervising. Up to 16 pieces of equipment at once.
- Integration bridge. Presents a unit to a customer's existing BAS as a native BACnet or Modbus device.
Why it is different
- Every sequence is ported Talos Rust, the same logic that runs across our fleet, with its test suite (all 69 sequences).
- Every command is read back. Every write from every source passes a change limit and a relay minimum off time, and is recorded in a tamper-evident audit chain.
- The fault model for each unit is trained on that unit, runs on the Kestrel, and keeps learning there; a refined model is used only after AutomataNexus re-checks and signs it for that controller.
Two boards, one firmware
Both sizes run the same signed firmware on the Raspberry Pi RP2350B. They differ in I/O and network, not in what the software can do.
| Kestrel Nano | NexusKestrel | |
|---|---|---|
| Made for | Protocol gateway and site supervisor, with a little local I/O | A plant, or several units, wired straight to the controller |
| Processor | RP2350B, dual Hazard3 RISC-V, 520 KB RAM | RP2350B, dual Hazard3 RISC-V, 520 KB RAM |
| Ethernet | 2 independent 10/100 ports (W5500), each with its own address | 1 x 10/100 (W5500) |
| Wi-Fi | None | 2.4 GHz 802.11n, Raspberry Pi Radio Module 2 |
| RS-485 | 2, termination and bias switched in software | 2, termination and bias switched in software |
| LonWorks FT-10 | None | Transmit and receive (build option) |
| Analog inputs | 2 x 0-10 V, 16-bit | 16, 16-bit, each 0-10 V or 4-20 mA |
| Thermistors | 2 x 10K Type II | 4 x 10K Type II on a precision reference |
| Dry contacts | 2 | 8 |
| Analog outputs | 2 x 0-10 V, 12-bit | 8 x 0-10 V, 12-bit |
| 24 VAC outputs | 2 solid-state | 8 solid-state, optically isolated, two banks |
| Power | 24 VAC/DC or 5 V, USB-C service port | 24 VAC/DC or 5 V, USB-C service port |
| Terminals | WAGO lever terminals | WAGO lever terminals, 80 poles |
| Board | 84 x 70 mm | 170 x 100 mm |
Both mount on a 35 mm DIN rail and use tool-free lever terminals in labelled rows. The NexusKestrel adds 1-Wire (DS18B20), PIR occupancy and a Qwiic I2C port.
Field protocols
The Kestrel reads and writes its field buses. It is not a listen-only gateway.
| Protocol | What the Kestrel does |
|---|---|
| BACnet MS/TP | Full BACnet device on either RS-485 port. Master and client: reads and writes other devices at a set priority, each write read back |
| BACnet/IP | Full BACnet device on UDP 47808, and supervisory client for routed BACnet networks. Off until a job enables it |
| Modbus RTU | Slave for a BAS, master for drives, meters and boilers. ABB ACH580, ACS580 and ACS550 drive profiles built in |
| Allen-Bradley | MicroLogix over EtherNet/IP with RSLogix addresses (N7:0, B3:1/0, T4:0.ACC). PLC mode and fault code monitored |
| Niagara AX and N4 | Through the station over oBIX, or under it, directly on the field trunk |
| Niagara R2 (UNC-510) | Reads points over HTTP and writes analog outputs through the station, each write read back |
| Siemens APOGEE | Supervisor of APOGEE field panels over P2 |
| Johnson Controls N2 | Decodes the trunk's polls and replies, so N2 points are read without disturbing the existing system |
| LonWorks FT-10 | Reads and writes LON devices as its own node on the channel (NexusKestrel with the LonWorks option) |
| Carrier CCN | Reads Carrier equipment directly as a CCN master |
| Trane Comm4 | Reads unit controllers and writes their occupied and unoccupied setpoints, each write read back |
| Staefa SMART II / NCRS | Connects to the Staefa front end and commands its digital points |
Pointed at an unknown RS-485 trunk, the Kestrel listens and reports what it hears, with its reasons. It also generates its own integration sheet: the BACnet object list, an EDE file for the front end's import, and the Modbus map. The protocol stacks are ported from NexusTap, our field protocol suite, as no_std copies with their tests.
Local control with Talos
Talos is the control engine of every AutomataNexus controller. On the Kestrel every sequence keeps its logic unchanged.
| Family | Examples from the 69 sequences |
|---|---|
| Air handlers and outdoor air | AHU, DX AHU, make-up air, steam AHU, rooftop unit, DOAS |
| Zones and terminals | Fan coil, classroom unit ventilator, VAV, zone reheat, heat pump |
| Plants | Chillers and chiller plant, cooling tower, lead/lag and cascade boilers, steam, seasonal changeover |
| Pumps and loops | VFD pump pack, lead/lag pumps, loop pump plant, pressure booster |
| Pools, greenhouses, lighting | Natatorium, pool controller, greenhouse plant, commercial lighting, load and water monitors |
| General-purpose loops | PID, linear, on/off, cascade, temperature modulation |
Up to 16 pieces of equipment run on one Kestrel at once (8 with on-device learning running), each with its own sequence, parameters and inputs. That limit is a RAM design choice of about 2.5 KB per slot; the supervision limit of 160 devices and 4,096 points is separate. Every sequence honors its safety inputs: a failed sensor trips its limit and never reads as safe. Settings and point assignments change live from a signed settings bundle, with no rebuild and no restart.
Oxiryn on the device
Each monitored unit gets its own fault model, trained on that unit's own operating history and run on the Kestrel's processor.
Scoring
The model scores the unit every 3 minutes. After three abnormal scores in a row the Console shows a flag with the likely fault. Control always comes first: scoring and learning run only while the control loop has headroom.
Learning (Scholar)
- What it learns from: the unit's install labels, set before field deployment.
- How: one sample per pass, a pass every 250 ms while no field-bus write is waiting and the die is under 70 C. Nano-batch SGD on a float mirror of the packed model with the incumbent's quantization scales frozen, in about 88 KiB of SRAM. A pass holds the executor for about 1 to 2 ms.
- Promotion: every 24 hours by default (1 to 168) a local gate runs; a pass goes to the AutomataNexus server, which re-judges the candidate against the model the unit was provisioned with: same header and scales, at most 30 % of codes moved, right on at least as many labels, and no new false alarm on a normal window. Only then is it signed.
- Commit: the Kestrel verifies the server's Ed25519 signature against its baked key, writes the model to the slot that is not current (CRC, read back) and serves it. Anything else rolls back. At boot the newest slot whose CRC, signature and model all hold is served, else the baked model.
The models are built with Oxiryn, our bare-metal Rust ML framework. On the Kestrel it runs on the RP2350's Hazard3 RISC-V cores; on our Linux supervisors the same models learn in micro-batches.
Security
Secure from the chip up, and outbound only.
| Layer | What it does |
|---|---|
| Secure boot | The processor runs only firmware signed with the AutomataNexus key |
| Signed A/B updates | New firmware runs on trial; if it does not prove healthy within five minutes the previous image is restored automatically |
| Outbound uplink | TLS 1.3 to our own certificate authority, pinned. No service is exposed to the internet; BACnet/IP stays off until a job enables it |
| NexusShield on the device | Every write from every source passes a change limit and a relay minimum off time and is recorded in a tamper-evident audit chain. Turning an output off is always allowed |
| Bus threat score | A bus that misbehaves has its writes refused for 10 minutes; reads continue |
| Fail-safe | Outputs power up off. If no supervisor is heard for 15 minutes while outputs are commanded, they return to off |
| Per-unit keys | Its own key for every unit; uplink secrets are decoded on the stack at use; the image carries no panic strings, file paths or symbols |
| Stack guard | A stack overflow faults instead of overwriting memory, resets, and an image on trial rolls back |
Runtime and fault handling
| Task | Period | Notes |
|---|---|---|
| Sensor loop | 1 s | Owns the 8 s watchdog. Thermistors, 1-Wire, PIR, rails, field I/O, die temperature |
| Uplink | Push 30 s, poll 5 s | TLS 1.3 to the Console, device CA pinned |
| Control | 2 s | Each equipment in turn; relay minimum off time runs from power-up |
| Model scoring | 3 min | Flag after 3 in a row |
| Scholar | every 250 ms with headroom | Promotion every 24 h by default |
| Fail-safe | 900 s | Commanded outputs return to off when no supervisor is heard |
| Fault | Response |
|---|---|
| Watchdog (8 s) | Reset; an image on trial rolls back |
| Field device fails 3 times | Marked offline, retried every 30 s |
| Bad settings bundle | Whole bundle rejected; nothing saved |
| Power cut during a settings save | The other flash sector holds the previous settings |
| Unsigned model candidate | Discarded; the unit keeps its model |
| Wired LAN dead | Wi-Fi for 10 min, then retry (NexusKestrel) |
Verification
| Gate | What it covers |
|---|---|
| Firmware gate | Clippy with warnings denied on 21 feature sets; the tests of the shield, field-bus, Talos, link, Scholar and host crates; a link of the shipped images so a RAM overflow fails the gate |
| Talos sequences | All 69 ported with their full Talos test suites run on every build |
| Four-reviewer gate | Bugs, errors, memory safety and hangs, security: separate reviewers, all green on the same tree before any deploy |
| Red-team pass | NexusProbe, 2026-10-25: no new exploitable issue |
| On hardware | Console link, shell, settings, watchdog, secure boot, signed update and rollback, Ethernet with Wi-Fi fallback, BACnet/IP from a front end, on-device fault detection |
NexusKestrel is in the field today as a supervisory module, reading and writing over BACnet/IP and MS/TP and APOGEE P2, reporting to the NexusEdge Console and to a site's existing front end.
References
- NexusKestrel brochure and user guide, AutomataNexus, 2026.
- NexusKestrel engineering reference: tasks, ports, flash layout, faults, build and signing.
- NexusKestrel firmware and security notes: Scholar on-device learning, secure boot, NexusShield-Kestrel, signed updates.
- NexusTap protocol suite: field protocol implementations ported to the Kestrel.
- Talos control engine: the sequence library shared by every AutomataNexus controller.