Projects STRLCPY CatSniffer Files
🤬
..
virtual_time Loading last commit info...
CMakeLists.txt
Makefile.am
Makefile.platform.am
README.md
alarm.c
diag.c
entropy.c
flash.c
infra_if.c
logging.c
misc.c
openthread-core-simulation-config.h
platform-config.h
platform-simulation.h
radio.c
spi-stubs.c
system.c
trel.c
uart.c
README.md

OpenThread Simulation on POSIX

This directory contains example platform drivers for simulation on POSIX.

Build Examples

Build using autotools

$ cd <path-to-openthread>
$ ./bootstrap
$ make -f examples/Makefile-simulation

After a successful build, the elf files are found in:

  • <path-to-openthread>/output/<platform>/bin

Build using cmake/ninja

$ cd <path-to-openthread>
$ mkdir build && cd build
$ cmake -GNinja -DOT_PLATFORM=simulation ..
$ ninja

After a successful build, the elf files are found in:

  • <path-to-openthread>/build/examples/apps/cli
  • <path-to-openthread>/build/examples/apps/ncp

Interact

  1. Spawn the process:
$ cd <path-to-openthread>/output/<platform>/bin
$ ./ot-cli-ftd 1
  1. Type help for list of commands.
> help
help
channel
childtimeout
contextreusedelay
extaddr
extpanid
ipaddr
keysequence
leaderweight
mode
netdata register
networkidtimeout
networkkey
networkname
panid
ping
prefix
releaserouterid
rloc16
route
routerupgradethreshold
scan
start
state
stop
Please wait...
Page is in error, reload to recover