ReadonlyapsReadonlycontextCentralized stack context holding all shared state
ReadonlymacMAC layer handler
ReadonlynwkNWK GP layer handler
ReadonlynwkNWK layer handler
ReadonlyparserReadonlywriterSet the Spinel properties required to start a 802.15.4 MAC network.
Should be called after start.
SPINEL_PROTOCOL_TYPE_*
Recommended format: STACK-NAME/STACK-VERSION[BUILD_INFO][; OTHER_INFO]; BUILD_DATE_AND_TIME Encoded as a zero-terminated UTF-8 string.
The CCA (clear-channel assessment) threshold. NOTE: Currently not implemented in: ot-ti
dBm (int8)
The current RSSI (Received signal strength indication) from the radio. This value can be used in energy scans and for determining the ambient noise floor for the operating environment.
dBm (int8)
The radio receive sensitivity. This value can be used as lower bound noise floor for link metrics computation.
dBm (int8)
The transmit power of the radio.
dBm (int8)
[SPINEL_PROTOCOL_VERSION_THREAD_MAJOR, SPINEL_PROTOCOL_VERSION_THREAD_MINOR]
Logic optimizes code paths to try to avoid more parsing when frames will eventually get ignored by detecting as early as possible. HOT PATH: This method is called for every incoming frame. Optimizations:
Performs a software reset into bootloader. If up, will stop network before.
Remove the current state file and clear all related tables.
Will throw if state already loaded (should be called before start).
Performs a STACK reset after resetting a few PHY/MAC properties to default. If up, will stop network before.
Wraps Zigbee APS DATA sending for broadcast. Throws if could not send.
The broadcast address to send to [0xfff8..0xffff]
The APS counter of the sent frame.
Wraps Zigbee APS DATA sending for groupcast. Throws if could not send.
The group to send to
The APS counter of the sent frame.
Wraps Zigbee APS DATA sending for unicast. Throws if could not send.
The APS counter of the sent frame.
Wraps Zigbee APS DATA sending for ZDO. Throws if could not send.
The CCA (clear-channel assessment) threshold. Set to -128 to disable. The value will be rounded down to a value that is supported by the underlying radio hardware. NOTE: Currently not implemented in: ot-ti
dBm (>= -128 and <= 127)
The transmit power of the radio. The value will be rounded down to a value that is supported by the underlying radio hardware.
dBm (>= -128 and <= 127)
Get the basic info from the RCP firmware and reset it.
https://datatracker.ietf.org/doc/html/draft-rquattle-spinel-unified#appendix-C.1
Should be called before formNetwork but after resetNetwork (if needed)
Start an energy scan. Cannot be used after state is loaded or network is up.
List of channels to scan
milliseconds per channel
Start sniffing.
Cannot be used after state is loaded or network is up.
WARNING: This is expected to run in the "run-and-quit" pattern as it overrides the onStreamRawFrame function.
The channel to sniff on
Start the components of the Zigbee stack
Stop the components of the Zigbee stack
APS layer handler