• Home
Name Date Size #Lines LOC

..--

virtual_time/03-May-2024-538360

CMakeLists.txtD03-May-20243.8 KiB10995

Makefile.amD03-May-20243.6 KiB8346

Makefile.platform.amD03-May-20242 KiB4238

README.mdD03-May-20241 KiB7256

alarm.cD03-May-20247.9 KiB317219

crypto.cD03-May-20243.1 KiB8542

diag.cD03-May-20242.5 KiB8137

dso_transport.cD03-May-20242.3 KiB6024

entropy.cD03-May-20243.8 KiB13762

flash.cD03-May-20244.7 KiB15895

infra_if.cD03-May-20242.3 KiB5521

logging.cD03-May-20242.5 KiB6528

misc.cD03-May-20243.2 KiB10251

openthread-core-simulation-config.hD03-May-20247.3 KiB25866

platform-config.hD03-May-20243.2 KiB10623

platform-simulation.hD03-May-20247.6 KiB27569

radio.cD03-May-202438 KiB1,324999

spi-stubs.cD03-May-20243.1 KiB8742

system.cD03-May-20246.8 KiB243169

trel.cD03-May-202414.1 KiB500348

uart.cD03-May-20249.2 KiB353228

README.md

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