| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| virtual_time/ | 06-Sep-2024 | - | 491 | 316 | ||
| CMakeLists.txt | D | 06-Sep-2024 | 3.9 KiB | 114 | 100 | |
| README.md | D | 06-Sep-2024 | 832 | 58 | 47 | |
| alarm.c | D | 06-Sep-2024 | 7.9 KiB | 305 | 207 | |
| ble.c | D | 06-Sep-2024 | 6.4 KiB | 217 | 150 | |
| crypto.c | D | 06-Sep-2024 | 4.1 KiB | 122 | 71 | |
| diag.c | D | 06-Sep-2024 | 5.5 KiB | 180 | 109 | |
| dns.c | D | 06-Sep-2024 | 2 KiB | 48 | 14 | |
| dnssd.c | D | 06-Sep-2024 | 4.3 KiB | 108 | 69 | |
| dso_transport.c | D | 06-Sep-2024 | 2.3 KiB | 60 | 24 | |
| entropy.c | D | 06-Sep-2024 | 3.8 KiB | 137 | 62 | |
| flash.c | D | 06-Sep-2024 | 4.7 KiB | 158 | 95 | |
| infra_if.c | D | 06-Sep-2024 | 10.8 KiB | 339 | 212 | |
| logging.c | D | 06-Sep-2024 | 3.8 KiB | 127 | 78 | |
| misc.c | D | 06-Sep-2024 | 3.6 KiB | 122 | 67 | |
| multipan.c | D | 06-Sep-2024 | 2.4 KiB | 67 | 28 | |
| openthread-core-simulation-config.h | D | 06-Sep-2024 | 4.8 KiB | 151 | 86 | |
| platform-config.h | D | 06-Sep-2024 | 3.2 KiB | 106 | 23 | |
| platform-simulation.h | D | 06-Sep-2024 | 10.1 KiB | 372 | 82 | |
| radio.c | D | 06-Sep-2024 | 37.6 KiB | 1,331 | 1,011 | |
| simul_utils.c | D | 06-Sep-2024 | 13.7 KiB | 456 | 337 | |
| simul_utils.h | D | 06-Sep-2024 | 5.7 KiB | 158 | 31 | |
| spi-stubs.c | D | 06-Sep-2024 | 3.1 KiB | 83 | 38 | |
| system.c | D | 06-Sep-2024 | 8.4 KiB | 286 | 209 | |
| trel.c | D | 06-Sep-2024 | 11.2 KiB | 401 | 279 | |
| uart.c | D | 06-Sep-2024 | 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