tree: f469d94319625d462b367cac1b78861341c92080
  1. virtual_time/
  2. alarm.c
  3. ble.c
  4. CMakeLists.txt
  5. crypto.c
  6. diag.c
  7. dns.c
  8. dnssd.c
  9. dso_transport.c
  10. entropy.c
  11. flash.c
  12. infra_if.c
  13. logging.c
  14. misc.c
  15. multipan.c
  16. openthread-core-simulation-config.h
  17. platform-config.h
  18. platform-simulation.h
  19. radio.c
  20. README.md
  21. simul_utils.c
  22. simul_utils.h
  23. spi-stubs.c
  24. system.c
  25. trel.c
  26. uart.c
examples/platforms/simulation/README.md

OpenThread Simulation on POSIX

This directory contains example platform drivers for simulation on POSIX.

Build Examples

$ 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>/build/simulation/examples/apps/cli
$ ./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