• Home
Name Date Size #Lines LOC

..--

virtual_time/04-Jul-2025-491317

CMakeLists.txtD04-Jul-20254.5 KiB129113

README.mdD04-Jul-2025832 5847

alarm.cD04-Jul-20257.9 KiB301204

ble.cD04-Jul-20257.4 KiB252178

crypto.cD04-Jul-20254.1 KiB12271

diag.cD04-Jul-20255.8 KiB186115

dns.cD04-Jul-20252 KiB4814

dnssd.cD04-Jul-20256.1 KiB168119

dso_transport.cD04-Jul-20252.3 KiB6024

entropy.cD04-Jul-20253.8 KiB13662

flash.cD04-Jul-20254.7 KiB15895

infra_if.cD04-Jul-202510.9 KiB340213

logging.cD04-Jul-20253.8 KiB12778

mdns_socket.cD04-Jul-202517.1 KiB560390

misc.cD04-Jul-20253.7 KiB12568

multipan.cD04-Jul-20252.4 KiB6728

openthread-core-simulation-config.hD04-Jul-20255 KiB15589

platform-config.hD04-Jul-20254 KiB12832

platform-simulation.hD04-Jul-202510.7 KiB35886

radio.cD04-Jul-202535.3 KiB1,240930

simul_utils.cD04-Jul-202514.6 KiB468348

simul_utils.hD04-Jul-20255.7 KiB14831

spi-stubs.cD04-Jul-20253.1 KiB8338

system.cD04-Jul-20259 KiB292217

trel.cD04-Jul-202513.9 KiB488348

uart.cD04-Jul-20259 KiB328207

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