Skip to main content

Crate zigbee_sim

Crate zigbee_sim 

Source
Expand description

§zigbee-sim

A Zigbee network co-processor simulator, for testing Zigbee hosts without hardware.

Simulator plays one coordinator family over any byte stream: Silicon Labs EmberZNet (ASH and EZSP, protocol 13 as EmberZNet 7.4 does, or 14 and later), Texas Instruments Z-Stack 3 (ZNP) or dresden elektronik deCONZ (a ConBee II). It keeps a network as an NCP keeps its non-volatile memory (keys, PAN ids, frame counter, link keys, a written IEEE address), and runs simulated SimDevices that join when the network opens, answer ZDO and ZCL requests, keep bindings and reporting configuration, and report attributes the way they were configured to.

The zigbee-ncp-sim binary serves it over TCP, so a bridge can be pointed at tcp://127.0.0.1:<port>.

Part of zigbee-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.

License: MIT.

Re-exports§

pub use device::Outgoing;
pub use device::SimDevice;
pub use device::SimEndpoint;
pub use device::SimFirmware;
pub use ncp::SimConfig;
pub use ncp::SimError;
pub use ncp::SimNcp;
pub use ncp::SimNeighbor;
pub use ncp::SimSnapshot;
pub use ncp::Simulator;

Modules§

device
Simulated Zigbee devices: they answer ZDO and ZCL like real ones and report attributes the way they were configured to.
ncp
The simulator: one simulated network behind the NCP family of your choice.

Structs§

SimNetwork
The network the NCP has stored.