tree: 14be9e99963fd736f353b2b20965d993a7d52728 [path history] [tgz]
  1. virtual_time/
  2. alarm.c
  3. CMakeLists.txt
  4. crypto.c
  5. diag.c
  6. dso_transport.c
  7. entropy.c
  8. flash.c
  9. infra_if.c
  10. logging.c
  11. Makefile.am
  12. Makefile.platform.am
  13. misc.c
  14. openthread-core-simulation-config.h
  15. platform-config.h
  16. platform-simulation.h
  17. radio.c
  18. README.md
  19. spi-stubs.c
  20. system.c
  21. trel.c
  22. uart.c
examples/platforms/simulation/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