1# OpenThread Simulation on POSIX 2 3This directory contains example platform drivers for simulation on POSIX. 4 5## Build Examples 6 7### Build using autotools 8 9```bash 10$ cd <path-to-openthread> 11$ ./bootstrap 12$ make -f examples/Makefile-simulation 13``` 14 15After a successful build, the `elf` files are found in: 16 17- `<path-to-openthread>/output/<platform>/bin` 18 19### Build using cmake/ninja 20 21```bash 22$ cd <path-to-openthread> 23$ mkdir build && cd build 24$ cmake -GNinja -DOT_PLATFORM=simulation .. 25$ ninja 26``` 27 28After a successful build, the `elf` files are found in: 29 30- `<path-to-openthread>/build/examples/apps/cli` 31- `<path-to-openthread>/build/examples/apps/ncp` 32 33## Interact 34 351. Spawn the process: 36 37```bash 38$ cd <path-to-openthread>/output/<platform>/bin 39$ ./ot-cli-ftd 1 40``` 41 422. Type `help` for list of commands. 43 44```bash 45> help 46help 47channel 48childtimeout 49contextreusedelay 50extaddr 51extpanid 52ipaddr 53keysequence 54leaderweight 55mode 56netdata register 57networkidtimeout 58networkkey 59networkname 60panid 61ping 62prefix 63releaserouterid 64rloc16 65route 66routerupgradethreshold 67scan 68start 69state 70stop 71``` 72