OpenThread Daemon (OT Daemon) is an OpenThread POSIX build mode that runs OpenThread as a service. It uses a UNIX socket as input and output, to which clients can connect and communicate using the OpenThread CLI as a protocol.
OT Daemon is used in the Radio Co-Processor (RCP) design. It is included with
To build the OT Daemon binary, configure the system with
bootstrap and use the
DAEMON switch with the POSIX build:
make -f src/posix/Makefile-posix DAEMON=1
Once built, connect it to an OpenThread node.
Real node located at
While an instance of OT Daemon is running, use the built-in controller to manage the connected node:
This opens the OpenThread command line, which you can use as normal.
Alternatively, you can issue OpenThread CLI commands directly from the command
line, using the
sudo ot-ctl state
To learn more about how to use OT Daemon, see our Simulation Codelabs: