summaryrefslogtreecommitdiff
path: root/manual/assets
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-12 13:22:46 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-12 13:22:46 +0200
commit47c71c85c9d018fc42a7182fc7f6265e3a4e5388 (patch)
treedc1f0a2860349e8bfe85f4f6f9cce202fbbe604d /manual/assets
parentc75fbe854de2a0a881045fbd19a79eb8dcc898e2 (diff)
Update manual
Diffstat (limited to 'manual/assets')
-rw-r--r--manual/assets/components.pdfbin0 -> 8704 bytes
-rw-r--r--manual/assets/node.py6
-rw-r--r--manual/assets/output.txt3
-rw-r--r--manual/assets/platform.yaml19
4 files changed, 28 insertions, 0 deletions
diff --git a/manual/assets/components.pdf b/manual/assets/components.pdf
new file mode 100644
index 0000000..49afc21
--- /dev/null
+++ b/manual/assets/components.pdf
Binary files differ
diff --git a/manual/assets/node.py b/manual/assets/node.py
new file mode 100644
index 0000000..4c03dbf
--- /dev/null
+++ b/manual/assets/node.py
@@ -0,0 +1,6 @@
+def execute(api):
+ role=api.args # "sender" or "receiver" cf. platform.yaml
+ if role == "sender":
+ api.send("wlan0","MY MESSAGE",10,None)
+ else:
+ api.receive("wlan0")
diff --git a/manual/assets/output.txt b/manual/assets/output.txt
new file mode 100644
index 0000000..858bd83
--- /dev/null
+++ b/manual/assets/output.txt
@@ -0,0 +1,3 @@
+[t=0.000,src=n0] Send 10 bytes on wlan0
+[t=0.016,src=n1] Receive 10 bytes on wlan0
+[t=0.016,src=esds] Simulation ends
diff --git a/manual/assets/platform.yaml b/manual/assets/platform.yaml
new file mode 100644
index 0000000..ca5cd91
--- /dev/null
+++ b/manual/assets/platform.yaml
@@ -0,0 +1,19 @@
+general:
+ interferences: on # Turns on interferences
+
+nodes:
+ count: 2
+ implementations:
+ - all node.py
+ arguments: {
+ "0": "sender",
+ "1": "receiver"
+ }
+
+interfaces:
+ wlan0:
+ type: "wireless"
+ links:
+ - all 50kbps 0s all # All nodes are reachable by each other
+ txperfs:
+ - all 50kbps 0s \ No newline at end of file