diff options
Diffstat (limited to 'manual/assets')
| -rw-r--r-- | manual/assets/components.pdf | bin | 0 -> 8704 bytes | |||
| -rw-r--r-- | manual/assets/node.py | 6 | ||||
| -rw-r--r-- | manual/assets/output.txt | 3 | ||||
| -rw-r--r-- | manual/assets/platform.yaml | 19 |
4 files changed, 28 insertions, 0 deletions
diff --git a/manual/assets/components.pdf b/manual/assets/components.pdf Binary files differnew file mode 100644 index 0000000..49afc21 --- /dev/null +++ b/manual/assets/components.pdf 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 |
