• Home
Name Date Size #Lines LOC

..--

virtual_time/06-Sep-2024-491316

CMakeLists.txtD06-Sep-20243.9 KiB114100

README.mdD06-Sep-2024832 5847

alarm.cD06-Sep-20247.9 KiB305207

ble.cD06-Sep-20246.4 KiB217150

crypto.cD06-Sep-20244.1 KiB12271

diag.cD06-Sep-20245.5 KiB180109

dns.cD06-Sep-20242 KiB4814

dnssd.cD06-Sep-20244.3 KiB10869

dso_transport.cD06-Sep-20242.3 KiB6024

entropy.cD06-Sep-20243.8 KiB13762

flash.cD06-Sep-20244.7 KiB15895

infra_if.cD06-Sep-202410.8 KiB339212

logging.cD06-Sep-20243.8 KiB12778

misc.cD06-Sep-20243.6 KiB12267

multipan.cD06-Sep-20242.4 KiB6728

openthread-core-simulation-config.hD06-Sep-20244.8 KiB15186

platform-config.hD06-Sep-20243.2 KiB10623

platform-simulation.hD06-Sep-202410.1 KiB37282

radio.cD06-Sep-202437.6 KiB1,3311,011

simul_utils.cD06-Sep-202413.7 KiB456337

simul_utils.hD06-Sep-20245.7 KiB15831

spi-stubs.cD06-Sep-20243.1 KiB8338

system.cD06-Sep-20248.4 KiB286209

trel.cD06-Sep-202411.2 KiB401279

uart.cD06-Sep-20249 KiB327206

README.md

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