tree: e177c807530b029f3acdda6ef21862335c8004f1 [path history] [tgz]
  1. sim/
  2. alarm.c
  3. CMakeLists.txt
  4. diag.c
  5. entropy.c
  6. flash.c
  7. logging.c
  8. Makefile.am
  9. Makefile.platform.am
  10. misc.c
  11. openthread-core-posix-config.h
  12. platform-config.h
  13. platform-posix.h
  14. radio.c
  15. README.md
  16. spi-stubs.c
  17. system.c
  18. uart-posix.c
examples/platforms/posix/README.md

OpenThread on POSIX Emulation Example

This directory contains example platform drivers for POSIX emulation.

Build Examples

Build using autotools

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

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=posix ..
$ 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
masterkey
mode
netdataregister
networkidtimeout
networkname
panid
ping
prefix
releaserouterid
rloc16
route
routerupgradethreshold
scan
start
state
stop
whitelist