Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
virtual_time/ | 04-Jan-2025 | - | 490 | 316 | ||
CMakeLists.txt | D | 04-Jan-2025 | 4.2 KiB | 122 | 107 | |
README.md | D | 04-Jan-2025 | 832 | 58 | 47 | |
alarm.c | D | 04-Jan-2025 | 7.9 KiB | 301 | 204 | |
ble.c | D | 04-Jan-2025 | 7.4 KiB | 250 | 177 | |
crypto.c | D | 04-Jan-2025 | 4.1 KiB | 122 | 71 | |
diag.c | D | 04-Jan-2025 | 5.8 KiB | 187 | 115 | |
dns.c | D | 04-Jan-2025 | 2 KiB | 48 | 14 | |
dnssd.c | D | 04-Jan-2025 | 6 KiB | 168 | 119 | |
dso_transport.c | D | 04-Jan-2025 | 2.3 KiB | 60 | 24 | |
entropy.c | D | 04-Jan-2025 | 3.8 KiB | 137 | 62 | |
flash.c | D | 04-Jan-2025 | 4.7 KiB | 158 | 95 | |
infra_if.c | D | 04-Jan-2025 | 10.9 KiB | 339 | 212 | |
logging.c | D | 04-Jan-2025 | 3.8 KiB | 127 | 78 | |
mdns_socket.c | D | 04-Jan-2025 | 18 KiB | 570 | 398 | |
misc.c | D | 04-Jan-2025 | 3.5 KiB | 116 | 62 | |
multipan.c | D | 04-Jan-2025 | 2.4 KiB | 67 | 28 | |
openthread-core-simulation-config.h | D | 04-Jan-2025 | 4.8 KiB | 151 | 86 | |
platform-config.h | D | 04-Jan-2025 | 3.8 KiB | 129 | 29 | |
platform-simulation.h | D | 04-Jan-2025 | 10.8 KiB | 394 | 86 | |
radio.c | D | 04-Jan-2025 | 37.7 KiB | 1,332 | 1,012 | |
simul_utils.c | D | 04-Jan-2025 | 13.7 KiB | 456 | 337 | |
simul_utils.h | D | 04-Jan-2025 | 5.7 KiB | 158 | 31 | |
spi-stubs.c | D | 04-Jan-2025 | 3.1 KiB | 83 | 38 | |
system.c | D | 04-Jan-2025 | 9 KiB | 293 | 217 | |
trel.c | D | 04-Jan-2025 | 11.2 KiB | 401 | 279 | |
uart.c | D | 04-Jan-2025 | 9 KiB | 327 | 206 |
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