xref: /aosp_15_r20/external/openthread/examples/platforms/simulation/README.md (revision cfb92d1480a9e65faed56933e9c12405f45898b4)
1# OpenThread Simulation on POSIX
2
3This directory contains example platform drivers for simulation on POSIX.
4
5## Build Examples
6
7```bash
8$ cd <path-to-openthread>
9$ mkdir build && cd build
10$ cmake -GNinja -DOT_PLATFORM=simulation ..
11$ ninja
12```
13
14After a successful build, the `elf` files are found in:
15
16- `<path-to-openthread>/build/examples/apps/cli`
17- `<path-to-openthread>/build/examples/apps/ncp`
18
19## Interact
20
211. Spawn the process:
22
23```bash
24$ cd <path-to-openthread>/build/simulation/examples/apps/cli
25$ ./ot-cli-ftd 1
26```
27
282. Type `help` for list of commands.
29
30```bash
31> help
32help
33channel
34childtimeout
35contextreusedelay
36extaddr
37extpanid
38ipaddr
39keysequence
40leaderweight
41mode
42netdata register
43networkidtimeout
44networkkey
45networkname
46panid
47ping
48prefix
49releaserouterid
50rloc16
51route
52routerupgradethreshold
53scan
54start
55state
56stop
57```
58