Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to OTNS version 2 #530

Open
wants to merge 303 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
c624f1b
[radiomodel] Removal of node.interferedBy (this can be part of a radi…
EskoDijk Oct 12, 2022
79f7062
[dispatcher] comment typo
EskoDijk Oct 12, 2022
ed81d46
[radiomodel] enable MutualInterference radiomodel.
EskoDijk Oct 12, 2022
00fb58b
[pylibs] display test name in unittest log files to make these log fi…
EskoDijk Oct 13, 2022
b570af2
[radiomodel] Method rename
EskoDijk Oct 13, 2022
9cf64cc
[radiomodel] Channel setting added for channelSample operation; metho…
EskoDijk Oct 13, 2022
2d4c3c2
[dispatcher] Sanity check added on Duration in goDurationChan (cannot…
EskoDijk Oct 13, 2022
1195050
[cli][dispatcher][simulation] 'go' command now also enabled in autogo…
EskoDijk Oct 13, 2022
610aee7
[cli][dispatcher][otoutfilter][simulation] Feature: use 'watch' comma…
EskoDijk Oct 14, 2022
801f473
[cli][dispatcher][main][simulation] Bugfixed 'go' command in autogo m…
EskoDijk Oct 15, 2022
a671f8a
[cli][dispatcher][main][simulation] Bugfixed 'go' command in autogo m…
EskoDijk Oct 16, 2022
82e8a8a
[cli] feature: in node context, use exclamation mark before command t…
EskoDijk Oct 16, 2022
f881567
[cli] feature: using 'node 0' command from within a node context, wil…
EskoDijk Oct 16, 2022
a044b1d
[cli] README.md updated to newest CLI commands or updates (node, watch)
EskoDijk Oct 16, 2022
d7a80fd
[cli] cli_test updated with new command formats (watch, exclamation m…
EskoDijk Oct 16, 2022
8bbc04c
[radiomodel] method for frame-interfere updated to only change checks…
EskoDijk Oct 16, 2022
320ace0
[dispatcher] update of watch debugLevel names supported.
EskoDijk Oct 16, 2022
7eddfc0
[types] Adding Startup/Invalid substate types for OT node.
EskoDijk Oct 17, 2022
0c75825
[cli][dispatcher][simulation] Added 'watch default' command to set de…
EskoDijk Oct 17, 2022
25bf9a6
[cli] Feature: time units (us, ms, s, m, h) in 'go' command duration.
EskoDijk Oct 17, 2022
868f843
[cli] Feature: 'time' command to display dispatcher time in us.
EskoDijk Oct 17, 2022
b13b1e9
[cli] Bugfix in 'go' command: add support for seconds 's' unit label.
EskoDijk Oct 17, 2022
b55079a
[otns_main] Feature: added '-watch' command line option to set the de…
EskoDijk Oct 17, 2022
fd3a571
[cli] Feature: added command 'watch default' to see the currently set…
EskoDijk Oct 18, 2022
1443833
[pylibs] Added note on how to use '-watch trace' in Python testcases.
EskoDijk Oct 18, 2022
ab8dedc
[pylibs/unittests] test_ping setup time shortened, samples lowered, a…
EskoDijk Oct 19, 2022
40d1471
[simulation] Simplified code for the OT StdErr lineReader function. T…
EskoDijk Oct 19, 2022
5148556
[radiomodel] Made MutualInterference radiomodel more robust by replac…
EskoDijk Oct 19, 2022
fe7e92a
update .gitmodules to point to matching OpenThread simulation platform.
EskoDijk Oct 20, 2022
2da2c9d
[pylibs/stress_tests] Adjusted time and eventcount bounds for the new…
EskoDijk Oct 20, 2022
45f8b59
[simulation] set default radiomodel in config to 'Ideal_Rssi'
EskoDijk Oct 20, 2022
d23bcdd
[cli][radiomodel] Provide alias names for radiomodels; and update REA…
EskoDijk Oct 20, 2022
2bc775c
[cli] CLI README updated for 'exit' command.
EskoDijk Oct 20, 2022
b64f9f7
[dispatcher][visualize][web] Reworked time viz bar to show ms and us …
EskoDijk Oct 30, 2022
18aee27
[dispatcher][visualize][web] Updated (c) years
EskoDijk Oct 30, 2022
78dffe6
[simulation][types] Refactoring to init a node from its InitScript; b…
EskoDijk Oct 30, 2022
4fc4416
[simulation] Pull the routerselectionjitter into the script.
EskoDijk Oct 30, 2022
2f2afbe
[otns_main][simulation] Feature: -ot-script cmd line parameter to use…
EskoDijk Oct 30, 2022
bb99538
[script] Fix in protocol buffers compile-proto script - paths=source_…
EskoDijk Nov 3, 2022
44d3c9c
[web][visualize][dispatcher] Feature: message event visualization tha…
EskoDijk Nov 3, 2022
74af6e7
[cli][simulation][types] Preliminary support for adding Border Router…
EskoDijk Dec 23, 2022
1e68846
Replaced submodule 'openthread' by 'ot-rfsim' platform project. Docum…
EskoDijk Dec 23, 2022
9bb9fce
Update 'test' script for new submodule ot-rfsim.
EskoDijk Dec 23, 2022
bd6214a
Fixes to 'test' script for new submodule.
EskoDijk Dec 23, 2022
fc95268
Fix for make-pretty / check-pretty scripts to ignore submodule.
EskoDijk Dec 24, 2022
1d74f73
Github workflow dependabot fix for new submodule.
EskoDijk Dec 24, 2022
0a2dee7
Fix in Github CI check-pretty (needs brew to install shfmt)
EskoDijk Dec 24, 2022
35a76fd
Make pretty (using script/make-pretty)
EskoDijk Dec 24, 2022
c20f94f
Fix for check-pretty to install shfmt using 'snap'.
EskoDijk Dec 24, 2022
f177db4
Make myself pretty.
EskoDijk Dec 24, 2022
42c4d2e
Fix script/test for MacOS Github CI
EskoDijk Dec 24, 2022
1a5dea4
Bump ot-rfsim
EskoDijk Dec 24, 2022
f541acf
Bump submodule ot-rfsim: new config settings location.
EskoDijk Dec 25, 2022
5a547b5
Bugfix call to Start() in raw mode; Github workflow updates; copyrigh…
EskoDijk Jan 4, 2023
4c5be0c
Pr to add 'help' cmd (#7)
EskoDijk Jan 9, 2023
7d25bed
[cli][simulation] Improved error handling for OT-node StdErr output. …
EskoDijk Jan 9, 2023
216f471
bump ot-rfsim: fixed logging issue.
EskoDijk Jan 16, 2023
dea1c4c
[pylibs] Relax time limit for 128-children stress test.
EskoDijk Jan 7, 2023
a1c2204
[pylibs] service_connectivity stress test relaxed; parameterized MAX_…
EskoDijk Jan 8, 2023
fa32b9a
[pylibs] 128_children test further relaxed to 8 mins attach time.
EskoDijk Jan 8, 2023
0f3def1
[pylibs] bugfix avoid too-small unparsable float in 128_children; com…
EskoDijk Jan 9, 2023
0e75073
[pylibs] stress test 128_children values set back to prior, as the is…
EskoDijk Jan 9, 2023
d7b5c5f
[dispatcher] Make msg in case of UDP error more informative.
EskoDijk Jan 10, 2023
1b9b274
[otnstester] Split basic Go test into 3 separate files to enable mult…
EskoDijk Jan 10, 2023
2acff99
[otns_main] clarify debug msg
EskoDijk Jan 10, 2023
a64e218
[simulation] defer logfile closing until process exited; avoid sendin…
EskoDijk Jan 10, 2023
b3d30fb
[dispatcher] revamped the exiting mechanism, stop 'go' duration using…
EskoDijk Jan 10, 2023
baf9809
[pylibs] Improved output to monitor stress test progress.
EskoDijk Jan 10, 2023
17c9a20
[pylibs] Added go 5 period to let node 1 settle as Leader; better fai…
EskoDijk Jan 10, 2023
b4e7be3
[otnstester] fix Lint
EskoDijk Jan 10, 2023
03028e3
[otnstester] Fix Go otnstester to allow multiple tests, while re-usin…
EskoDijk Jan 10, 2023
a16b461
[web][otns_main] Added go thread exit code for webSite (http.Serve) a…
EskoDijk Jan 11, 2023
842f3f3
[otnstester] Use SED type child for many-children test, as intended.
EskoDijk Jan 11, 2023
4050cab
[otns_main] reshuffled threads starting order.
EskoDijk Jan 11, 2023
c7a0e30
[web] Bugfix in Serve()/StopServe() combo. Now uses a mutex to guaran…
EskoDijk Jan 11, 2023
3a59140
Increase child count in test to see if bug pops up.
EskoDijk Jan 16, 2023
69bc9ed
[simulation] Bugfix for race conditions on sending log to Dispatcher.…
EskoDijk Jan 27, 2023
ab50441
Limit for now to 2 SED Children to avoid bug
EskoDijk Jan 27, 2023
3803cb4
bump ot-rfsim
EskoDijk Jan 29, 2023
1442436
[dispatcher][types] Added new EventType for extended address emission…
EskoDijk Jan 30, 2023
f4002b6
Added Enh-Ack support for the wpan dissector; added support for separ…
EskoDijk Feb 19, 2023
083edb6
Timing adjusted to allow new-Partition forming in testMultiRadioChann…
EskoDijk Feb 19, 2023
b0de5ca
Added Pcap saving for all unit-tests in the ./tmp folder. This enable…
EskoDijk Feb 19, 2023
658d825
testRestoreNode give slightly more time for node restore. Test had so…
EskoDijk Feb 19, 2023
5e53d1f
bump ot-rfsim
EskoDijk Mar 9, 2023
fe9f166
[pylibs][script] Add a CSL test.
EskoDijk Mar 16, 2023
914c82b
[dissectpkt] fix ineffectual assignment to 'n' warning
EskoDijk Mar 19, 2023
82bf7bb
[otns_main] bugfix, and fix of test error, by using the same executab…
EskoDijk Mar 19, 2023
c4fe561
bump ot-rfsim
EskoDijk Mar 21, 2023
2ccd579
Use Unix domain sockets for OT-NS / OT node communication (#12)
EskoDijk Mar 23, 2023
f9d86b2
Add CSL tests to test_radiomodel.
EskoDijk Mar 23, 2023
37e1155
[dispatcher][cli] Clarified ping usage and adapted default window to …
EskoDijk Mar 24, 2023
589f414
[script] Removed 'real' tests from the Python unittests.
EskoDijk Mar 24, 2023
854c4f9
[simulation] Dispatcher node-specific logging streamlined.
EskoDijk Mar 24, 2023
4e6f9f1
Ping default size set to >= 4 and default interval to 10 sec.
EskoDijk Mar 24, 2023
d80de7c
[unittests] CSL test expanded.
EskoDijk Mar 24, 2023
dbdb048
bump ot-rfsim
EskoDijk Mar 24, 2023
0923ccf
[dispatcher][types] Change to 'unix' stream socket type for MacOs sup…
EskoDijk Mar 25, 2023
db0add5
[pylibs] relax pip requirements for improved local running of unittes…
EskoDijk Mar 25, 2023
5341e6e
[pylibs] Extend CSL unittest.
EskoDijk Mar 27, 2023
1a24e58
Pcap code refactored to only write default channel traffic to Pcap fi…
EskoDijk Mar 27, 2023
2d53b88
[dispatcher] Robustness improvements for cases with large volumes of …
EskoDijk Mar 29, 2023
bee409e
[pylibs] add stress test for simulating many BRs with external routes.
EskoDijk Mar 29, 2023
260bc24
[stress_tests] reduce number of data points in NetData size tracking …
EskoDijk Apr 11, 2023
2355822
[ot-rfsim] submodule CSL phase calculation fix applied.
EskoDijk Apr 11, 2023
cdaef1e
[simulation] Improve resiliency against 'kill otns' command that may …
EskoDijk Apr 11, 2023
fbe207e
[otns_main] Added comment line showing how to log to file.
EskoDijk Apr 12, 2023
e938dcc
bump ot-rfsim
EskoDijk Apr 12, 2023
422925a
[dispatcher][simulation][pylibs] Bugfix in immediately recreating a n…
EskoDijk Apr 26, 2023
2d2569a
[simulation] Bugfix in multi-node deletion.
EskoDijk Apr 26, 2023
04183ec
[web] removed JS console log debug messages
EskoDijk Apr 27, 2023
6cd58c2
[web] Error handling for common JS errors when nodes are deleted.
EskoDijk Apr 27, 2023
b2a8812
[dispatcher] Try to avoid errors that may happen when closing dispatc…
EskoDijk Apr 27, 2023
c7fa500
[simulation] Avoid setting simulation.nodes to nil while simulation m…
EskoDijk Apr 27, 2023
a9d6ef1
[visualize] Changed error log msg to warn such that the 'signals' uni…
EskoDijk Apr 27, 2023
d629678
[simulation] Beautify info-level log output.
EskoDijk May 11, 2023
3296a17
Fix large-network stress test and fix routerselectionjitter. (#19)
EskoDijk May 15, 2023
26be0cf
Pr hanging node diags (#20)
EskoDijk May 15, 2023
fcffd5a
bump ot-rfsim
EskoDijk May 16, 2023
538a71f
Pr auto node placement (#21)
EskoDijk May 17, 2023
5ae1c14
[web] More sim speeds selectable from ActionBar. (#22)
EskoDijk May 18, 2023
e3a530a
Feature: 'exe' command to set default OT executable per node-type, an…
EskoDijk May 31, 2023
ec02076
[ot-rfsim] bumped (build fix)
EskoDijk Jun 1, 2023
3dfe88a
Feature: auto placing for CLI and GUI in unison. (#24)
EskoDijk Jun 2, 2023
537bba3
Pr router child count max set to 10 (#28)
EskoDijk Jun 2, 2023
2cbfb6e
Feature/fix: improved OT node error handling and assert handling (wit…
EskoDijk Jun 6, 2023
b42c603
Pr avoid clearing the web GUI when simulation exited (#33)
EskoDijk Jun 6, 2023
fc227c7
PR radiomodel 'MIDisc' with high-RSSI reception within disc
EskoDijk Jun 6, 2023
896a2e9
Feature: interactive CLI in python scripts (#40)
EskoDijk Jun 9, 2023
a1b4b04
PR support more node versions (adds v13) (#41)
EskoDijk Jun 13, 2023
df049d7
Feature: timestamp in us prepended in node log files (#42)
EskoDijk Jun 13, 2023
ff1a355
[types] bugfix in NodeInfo event deserialization when Node ID >= 256;…
EskoDijk Aug 9, 2023
7e4227a
[pylibs][ot-rfsim] bump ot-rfsim and new CSL CLI parameter usage in l…
EskoDijk Aug 11, 2023
391caba
Update: Docker workflow to build useful complete OT-NS (#47)
EskoDijk Aug 11, 2023
deb7434
documentation (md) updates
EskoDijk Aug 13, 2023
af05e55
Update: add stress-test for very large network (no-gui) (#49)
EskoDijk Aug 15, 2023
5353cd5
Fix: improved node radio Failure Control (#48)
EskoDijk Aug 15, 2023
11896de
Fix: ot-rfsim CSL/timing updates (#52)
EskoDijk Aug 19, 2023
f64b687
[pylibs] added example for many-hops network testing.
EskoDijk Aug 19, 2023
6a94699
[pylibs] add CCA threshold printing for hidden_nodes_test
EskoDijk Aug 19, 2023
a030c43
Update: node autoplacer improvements and log window visibility enhanc…
EskoDijk Aug 21, 2023
876c968
Fix: node and webserver exit procedure (#55)
EskoDijk Aug 21, 2023
212cf98
Update: large net and dense net unit tests (#59)
EskoDijk Aug 22, 2023
8261f8b
Fix: hidden nodes test and related node-counters for CCA (#60)
EskoDijk Aug 23, 2023
90c9119
FIX: RF MIDisc model in combination with ping unit tests (#62)
EskoDijk Aug 25, 2023
8aab1b6
Fix: CSL use in RFSIM platform (#61)
EskoDijk Sep 1, 2023
bbdd599
Feature: BER model for radiomodels (#64)
EskoDijk Sep 12, 2023
b7d29dc
Fix: energy-stats viewer is not displaying (script 404 on webserver) …
EskoDijk Sep 13, 2023
5c655b7
[ot-rfsim] bump (#66)
EskoDijk Sep 13, 2023
5a63444
[ot-rfsim] bump
EskoDijk Sep 14, 2023
cf11dfc
Update: DNS client example; Fixes: background CLI commands and CLI er…
EskoDijk Sep 14, 2023
c92af39
Feature: detailed help function (#68)
EskoDijk Sep 14, 2023
0dc84ed
Update: added SRP example (#69)
EskoDijk Sep 17, 2023
eb666f3
Fix: errors on 'exit' and signal handling / Feature: node panel in GU…
EskoDijk Sep 21, 2023
16db6f3
Update: replace simplelogger by logger package / NodeLogger functions…
EskoDijk Sep 25, 2023
1387080
Update: multi-channel example&test added / Fix: 'watch default' opera…
EskoDijk Sep 26, 2023
8c3cc85
[cli] noinspection tags update to suppress warnings; avoid ParseBytes…
EskoDijk Sep 27, 2023
89e99ec
Feature: 'radioparam' command to change radiomodel parameters (#73)
EskoDijk Sep 27, 2023
043fc36
Feature: receiver sensitivity setting/getting by CLI command (#76)
EskoDijk Sep 29, 2023
3c44ac3
Update: new network key rekey example (#77) and some bugfixes
EskoDijk Oct 2, 2023
9be6ecc
Update: added diagnostics example; Fixes: background command handling…
EskoDijk Oct 5, 2023
78886f4
[cli][ot-rfsim][pylibs] Added support for meshdiag CLI command, used …
EskoDijk Oct 5, 2023
a5c85d4
[pylibs] Added more TLV types to the test.
EskoDijk Oct 5, 2023
5148e76
Fix: CLI fix for diagnostics example / Update: README and GUIDE
EskoDijk Oct 6, 2023
ac43278
enable tcat BLE advertisement transmissions. (#80)
EskoDijk Oct 12, 2023
97df142
Update: added power_cycle example / Fixes: use of interactive_cli() …
EskoDijk Oct 12, 2023
33c534a
[cli] README.md update 'add' command with v13, v131 flags.
EskoDijk Oct 12, 2023
cf18454
Fix: CCA ED threshold set to -75 dBm default (#85)
EskoDijk Oct 23, 2023
59ea36c
[pylibs] tcp example added
EskoDijk Oct 24, 2023
87e86aa
Add: case study deprecated on-mesh prefix (#89)
EskoDijk Nov 1, 2023
9620632
Feature: generate CSV log file with network stats (#87)
EskoDijk Nov 17, 2023
7809160
[pylibs] Add OTNS.py cmd() public method to execute OTNS CLI commands…
EskoDijk Nov 20, 2023
aff828e
Fix: help command not listing all CLI commands (#92)
EskoDijk Nov 20, 2023
fb5dba8
Fix: error handling within interactive-CLI mode (#93)
EskoDijk Nov 22, 2023
d6ba882
[web] add partition-counter to top bar (#94)
EskoDijk Nov 23, 2023
59a84d7
Fix: 'netinfo' OT version display works automatically based on nodes …
EskoDijk Nov 23, 2023
66a8c92
[radiomodel][cli] added time-variant fading (TVF) to fading_model; re…
EskoDijk Nov 24, 2023
f24e924
Fix: better PCAP support for multi-channel (#105)
EskoDijk Nov 27, 2023
9a0fbca
Feature: pseudo-BR node type ('br') (#107)
EskoDijk Nov 29, 2023
8148067
[all] use distinct ot-cli-mtd executables for the MTD node types. (#110)
EskoDijk Nov 30, 2023
c6ab3be
Feature: show OT node code/Thread versions (#111)
EskoDijk Dec 2, 2023
2cc57d8
[all] Added 'rfsim' command to get/set OT-RFSIM radio parameters.
EskoDijk Dec 4, 2023
51b9c9a
Feature: rfsim command to set radio parameters on OT-RFSIM platform (…
EskoDijk Dec 5, 2023
f7d42f0
Fix: csv log timestamps and sleepy-count / Feature: BR with leader we…
EskoDijk Dec 7, 2023
8995b34
[ot-rfsim] bump ot-rfsim to include TCAT over BLE. (#118)
EskoDijk Dec 8, 2023
39791cf
[pylibs] Added case study on fast (1-hour) key rotation; fixes in dep…
EskoDijk Jan 17, 2024
ba32ee0
Example: office floor 200 node topology (#121)
EskoDijk Jan 18, 2024
1113963
[pylibs] runnable .py scripts made executable (+x)
EskoDijk Jan 18, 2024
d79f4f6
Fix: removed unneeded SRP AUTO_START config; default disabled SRP ser…
EskoDijk Jan 18, 2024
803a58a
[pylibs] minor fixes to examples: farm, tcp
EskoDijk Jan 18, 2024
9b35655
.gitignore updates
EskoDijk Jan 18, 2024
58a5234
Fix: gRPC client can miss some init messages which leads to incorrect…
EskoDijk Jan 22, 2024
f41426f
Feature: 'ssed' node type (#125)
EskoDijk Jan 22, 2024
2feaf19
Feature: 'z' coordinate - 3D node positions (#126)
EskoDijk Jan 23, 2024
f216658
Fix: Outdoor radio model and 'farm' example (#127)
EskoDijk Jan 25, 2024
7df12b2
Feature: random-seed configuration for simulation (#128)
EskoDijk Feb 4, 2024
d301ead
Feature: recording of KPIs during simulation and output KPI JSON file…
EskoDijk Feb 9, 2024
22bc664
Feature: load/save network topologies in YAML file (#130)
EskoDijk Feb 13, 2024
7bd31fd
[otns_main][simulation] Replace '-raw' argument by '-ot-script none'
EskoDijk Feb 14, 2024
28c72a4
Fixes: log handling and related commandline arguments and CLI command…
EskoDijk Feb 22, 2024
0c12ff2
Feature: 'raw' flag for add CLI command (#135)
EskoDijk Feb 23, 2024
0fa1a7f
Fix: node context display in Python interactive CLI modes (#136)
EskoDijk Feb 26, 2024
07010e5
Feature: '-real' argument to mean realtime speed=1.0 (#137)
EskoDijk Feb 26, 2024
b0ab6ca
Feature: Wi-Fi interferer node type (#138)
EskoDijk Mar 5, 2024
f3da139
Update: use 1.3.1 node as the new default; bump OpenThread repo (#139)
EskoDijk Mar 6, 2024
b938f60
[pylibs] bugfix pending dataset construction; cleaner output.
EskoDijk Mar 7, 2024
9ec53cb
[all] added radio parameter for clock drift
EskoDijk Mar 9, 2024
1931637
[pylibs] change unit of OTNS.time() function from us to sec; minor co…
EskoDijk Mar 9, 2024
015a414
Refactoring: separate node-version tests from basic tests / Fixes: te…
EskoDijk Mar 12, 2024
72a37bc
[GUIDE] updated with install-nodes invocation and some extra info. (#…
EskoDijk Mar 14, 2024
fd9de14
Feature: traffic patterns generation (unicast/multicast) (#143)
EskoDijk Mar 28, 2024
6d80f13
[Update] include OT-RFSIM platform code in repo (#145)
EskoDijk Mar 30, 2024
ef8eafa
[pylibs] pyOTNS set to version 2.0.0
EskoDijk Mar 31, 2024
b4a7c8d
Fix: error raised by 'delete' command in certain CI flows #146
EskoDijk Mar 31, 2024
47fd23f
Update: made versions v131 and latest equal; and some build script fi…
EskoDijk Apr 3, 2024
280a600
Update: build to work better on MacOS 14 (#149)
EskoDijk Apr 8, 2024
b050d6e
[ot-rfsim] fix specific to Windows Linux subsystem on Ubuntu 22.04 bu…
EskoDijk Apr 15, 2024
8d96111
[pylibs][etc] Added office 200 node case study
EskoDijk Apr 16, 2024
fb77208
[pylibs/case_studies] store pcap and other results in own folder.
EskoDijk Apr 18, 2024
df0434f
Fix: stats-logging visualizer bugfixes (#153)
EskoDijk Apr 18, 2024
e7ede7f
[.github] updated macos-11 build to macos-13 due to support removal b…
EskoDijk May 21, 2024
5ec1516
[pylibs] added 2nd SRP reregistration case study script.
EskoDijk May 24, 2024
50d8ca6
[pylibs] srp_reregistration_2 test - made service registration longer.
EskoDijk May 25, 2024
e951f1d
[pylibs] case study force_key_rotation added
EskoDijk May 31, 2024
5b6945a
[.github] runners updated Python 3.7 -> 3.10
EskoDijk Jun 4, 2024
4a3a1d0
[.github] runner script fixes for Python 3.10
EskoDijk Jun 4, 2024
4ba2465
[README] mention 1.4
EskoDijk Jun 4, 2024
b66a066
Feature: add data rate (kbps) stats over time windows / Fix: avoid st…
EskoDijk Jun 5, 2024
8f51f4c
[.gitignore] venv name fix
EskoDijk Jun 5, 2024
6767e21
Update: v1.3.1 to 1.4 Thread version; and 1.4 OT bumped to recent commit
EskoDijk Jun 5, 2024
5fd5015
Updates/Fixes: merge in recent OTNS1 PRs (#161)
EskoDijk Jun 12, 2024
500b5d2
Update: added separate 'log write' event type for OT nodes (#162)
EskoDijk Jun 14, 2024
f0a8e38
[pylibs] srp_reregistration_3 case study: streamlined simulation time…
EskoDijk Jun 14, 2024
636b935
Feature: saving additional PHY stats to CSV file (eg channel samples …
EskoDijk Jun 15, 2024
1c701b2
[pylibs] add partial_dataset case study
EskoDijk Jun 17, 2024
a90bc8d
Feature: add simulated-external-hosts support (#157)
EskoDijk Jun 24, 2024
d013f7a
[ot-rfsim] bugfix radio channel setting when MAC/subMAC switches to l…
EskoDijk Jun 25, 2024
57e33b9
Fix: remove dataset auto init (#164)
EskoDijk Jun 26, 2024
05bf4e7
Fix: more automatic install using bootstrap script / MacOS build fixe…
EskoDijk Jul 3, 2024
89a0b87
Fix: use submodules to build different OT node versions (#167)
EskoDijk Jul 5, 2024
0f4beb1
[.github] Update: use Github 'concurrency' definition instead of work…
EskoDijk Jul 6, 2024
0130499
Prepare future inclusion of Thread CCM nodes ; Improved node build sy…
EskoDijk Sep 10, 2024
52cd3c1
Feature: make-pretty for all languages / Updates: Github yml build fi…
EskoDijk Sep 11, 2024
54a2371
[.md] Documentation update, including update for new node build syste…
EskoDijk Sep 12, 2024
987c786
Update: CI efficiency fixes; add 'bootstrap' script test; script bugf…
EskoDijk Sep 13, 2024
5296462
[.md] README.md updated for merge into OpenThread ot-ns repo.
EskoDijk Sep 13, 2024
47e5027
[script] Bugfix: enable 'test' script to properly build and test for …
EskoDijk Sep 13, 2024
fa32e3c
[dispatcher][pylibs][script] removing code that was mistakenly insert…
EskoDijk Sep 24, 2024
32e3d0f
[ot-rfsim] lint fix on script/build
EskoDijk Sep 24, 2024
f1bc1b8
[pylibs] unit test YAML save/load extended with node position checks.
EskoDijk Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
BeforeCatch: false
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
- Regex: '^<openthread/.*/'
Priority: 4
- Regex: '^<openthread/'
Priority: 3
- Regex: '^<'
Priority: 2
- Regex: '^".*/'
Priority: 5
- Regex: '^"'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 1000
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never
...

23 changes: 23 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
Checks: >
-*,
bugprone-argument-comment,
bugprone-too-small-loop-variable,
google-explicit-constructor,
google-readability-casting,
misc-unused-using-decls,
modernize-loop-convert,
modernize-use-bool-literals,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-nullptr,
readability-avoid-const-params-in-decls,
readability-else-after-return,
readability-inconsistent-declaration-parameter-name,
readability-make-member-function-const,
readability-redundant-control-flow,
readability-redundant-member-init,
readability-simplify-boolean-expr,
readability-static-accessed-through-instance
WarningsAsErrors: '*'
HeaderFilterRegex: '(examples|include|src).*(?<!third_party.*repo)'
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021, The OTNS Authors.
# Copyright (c) 2021-2024, The OTNS Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
60 changes: 42 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, The OTNS Authors.
# Copyright (c) 2020-2024, The OTNS Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -27,36 +27,60 @@
name: Build

on:
push:
branches-ignore:
- 'dependabot/**'
workflow_dispatch:
pull_request:
branches:
- 'main'

jobs:
cancel-previous-runs:
runs-on: ubuntu-22.04
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "github.ref != 'refs/heads/main'"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

build:
name: Build (Go ${{ matrix.go }}, ${{ matrix.os }})
jobs:
build-otns:
name: Build OTNS (Go ${{ matrix.go }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
go: [ "1.17", "1.20" ]
os: [ ubuntu-22.04, macos-12 ]
go: [ '1.18', '1.20', '1.22' ]
os: [ ubuntu-22.04, macos-13, macos-14 ]
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: Build
run: |
./script/install-deps
./script/install

build-nodes:
name: Build Nodes (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, macos-13, macos-14 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: |
./script/install-deps
./script/install-nodes

bootstrap-script:
name: Bootstrap script (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04, macos-13, macos-14 ]
steps:
- uses: actions/checkout@v4
- name: Bootstrap
run: |
./script/bootstrap
47 changes: 22 additions & 25 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, The OTNS Authors.
# Copyright (c) 2020-2024, The OTNS Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -27,47 +27,44 @@
name: Develop

on:
push:
branches-ignore:
- 'dependabot/**'
workflow_dispatch:
pull_request:
branches:
- 'main'
- 'develop'

jobs:
cancel-previous-runs:
runs-on: ubuntu-22.04
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "github.ref != 'refs/heads/main'"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
develop:
name: Develop (Go${{ matrix.go }},${{ matrix.os }})
name: Develop (Go${{ matrix.go }}, Python${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
env:
HOMEBREW_NO_AUTO_UPDATE: 1
strategy:
fail-fast: false
matrix:
go: ["1.17", "1.20"]
python-version: ["3.9"]
go: ['1.22']
python-version: ['3.10']
os: [ubuntu-22.04]
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Build
- name: Build OTNS Web
run: |
docker build -t otns-env -f etc/docker/environment/Dockerfile .
docker run -t -v$PWD:/otns otns-env -c "./script/pack-web"
if ! git diff --quiet; then
echo "script/pack-web was not properly executed:"
git diff
exit 1
fi
git diff --quiet
- name: Build custom OT node
# Note: OT_CMAKE_NINJA_TARGET excludes tests because test_platform.cpp is missing otPlatAssertFail()
run: |
./script/install-deps
./script/setup-dev
cd ot-rfsim
OT_CMAKE_NINJA_TARGET="ot-cli-ftd ot-cli-mtd" ./script/build
29 changes: 13 additions & 16 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, The OTNS Authors.
# Copyright (c) 2020-2024, The OTNS Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -27,22 +27,16 @@
name: Docker

on:
push:
branches-ignore:
- 'dependabot/**'
workflow_dispatch:
pull_request:
branches:
- 'main'
- 'docker'

jobs:
cancel-previous-runs:
runs-on: ubuntu-22.04
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "github.ref != 'refs/heads/main'"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
buildx:
name: buildx-${{ matrix.version }}
runs-on: ubuntu-22.04
Expand All @@ -53,13 +47,16 @@ jobs:
- "environment"
- "playground"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Prepare
id: prepare
run: |
DOCKER_IMAGE=openthread/otns
DOCKER_IMAGE=openthread/otns2
DOCKER_FILE=etc/docker/${{ matrix.version }}/Dockerfile
DOCKER_PLATFORMS=linux/amd64
VERSION=${{ matrix.version }}
Expand Down
Loading
Loading