-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotocol.drawio
More file actions
185 lines (185 loc) · 19.1 KB
/
protocol.drawio
File metadata and controls
185 lines (185 loc) · 19.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/24.7.8 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" version="24.7.8">
<diagram name="Page-1" id="eZkozRD6x2UW-9Mzc-z-">
<mxGraphModel dx="1754" dy="610" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2S405Q2y21AAYMWtFbDe-53" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-3" target="2S405Q2y21AAYMWtFbDe-47">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-58" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=classic;startFill=1;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-3" target="2S405Q2y21AAYMWtFbDe-10">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-3" value="Receive the shared key" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="120" y="360" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-4" value="Sender" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="152.5" y="320" width="60" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-5" value="Receiver" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="307.5" y="320" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-8" value="shared key" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#00FF80;" vertex="1" parent="1">
<mxGeometry x="222" y="330" width="80" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-9" value="Before take-off" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="-10" y="366" width="100" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-54" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-10" target="2S405Q2y21AAYMWtFbDe-49">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-10" value="Receive the shared key" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="360" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-11" value="Start of 1 communication frame<div>(small payload)</div>" style="text;html=1;align=right;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="-130" y="605" width="190" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-12" target="2S405Q2y21AAYMWtFbDe-27">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-12" value="Derived a frequency from the&nbsp;<span style="color: rgb(153, 204, 255); text-wrap: nowrap;">synced time</span>&nbsp;to send on&nbsp;<div><span style="color: rgb(255, 255, 255); text-wrap: nowrap;">(with frequency error count &lt; x)</span></div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="80" y="590" width="200" height="70" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-13" target="2S405Q2y21AAYMWtFbDe-32">
<mxGeometry relative="1" as="geometry">
<mxPoint x="340" y="830" as="targetPoint" />
<mxPoint x="340" y="560" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-13" value="Start listening to a frequency derived from the&nbsp;<span style="color: rgb(153, 204, 255); text-wrap: nowrap;">synced time&nbsp;</span><div><span style="text-wrap: nowrap;"><font color="#ffffff">(with frequency error count &lt; x)</font></span></div>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="250" y="477.5" width="180" height="65" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-20" value="" style="endArrow=none;dashed=1;html=1;rounded=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="-20" y="570" as="sourcePoint" />
<mxPoint x="840" y="570" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-21" value="Waiting for payload..." style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="340" y="720" width="140" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" target="2S405Q2y21AAYMWtFbDe-29">
<mxGeometry relative="1" as="geometry">
<mxPoint x="180" y="830" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-36" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-27" target="2S405Q2y21AAYMWtFbDe-34">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-27" value="Encrypt desired payload with <font color="#00ff80">shared key </font><font color="#ffffff">and</font><font color="#00ff80">&nbsp;</font><span style="color: rgb(153, 204, 255); text-wrap: nowrap;">synced time</span>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="120" y="680" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-37" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.25;entryY=0;entryDx=0;entryDy=0;dashed=1;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-29" target="2S405Q2y21AAYMWtFbDe-32">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-29" value="Send encrypted payload using radio" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="120" y="860" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-39" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-32" target="2S405Q2y21AAYMWtFbDe-38">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-32" value="Receive payload" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="930" width="120" height="50" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-34" value="Add hamming code to encrypted message" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="120" y="770" width="120" height="70" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-35" value="- There is an open source database of existing drone protocols. KU Leuven has it?<div>- Which frequencies can the USB radio use?</div><div>-&nbsp;https://www.expresslrs.org/software/gemini/?h=#what-is-gemini</div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="740" y="630" width="460" height="60" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-38" target="2S405Q2y21AAYMWtFbDe-40">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-65" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-38" target="2S405Q2y21AAYMWtFbDe-64">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-38" value="Verify message checksum/fix using hamming" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="1000" width="120" height="50" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-67" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-40" target="2S405Q2y21AAYMWtFbDe-80">
<mxGeometry relative="1" as="geometry">
<mxPoint x="340" y="1190" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-40" value="Verify/decrypt message using&nbsp;<span style="color: rgb(0, 255, 128);">shared key </span><font color="#ffffff">and</font><span style="color: rgb(0, 255, 128);">&nbsp;</span><span style="color: rgb(153, 204, 255); text-wrap: nowrap;">synced time</span>" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="1100" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-42" value="When succesful" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="340" y="1060" width="110" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-56" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=classic;startFill=1;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-47" target="2S405Q2y21AAYMWtFbDe-49">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-47" value="Sync time (using RTC?)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="120" y="420" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-48" value="How to derive?&nbsp; (always listen on 2 freq? Prev and next?)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="480" y="477.5" width="330" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-60" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-49" target="2S405Q2y21AAYMWtFbDe-13">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-49" value="Sync time (using RTC?)" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="420" width="120" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-62" value="<font color="#99ccff">synced time</font>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#00FF80;" vertex="1" parent="1">
<mxGeometry x="217" y="396" width="90" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-82" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-64" target="2S405Q2y21AAYMWtFbDe-13">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="540" y="1200" />
<mxPoint x="640" y="1200" />
<mxPoint x="640" y="510" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-64" value="Increase current frequency error count" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="480" y="1100" width="120" height="50" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-66" value="When not succesful" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=1" vertex="1" parent="1">
<mxGeometry x="425" y="990" width="130" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-70" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-68" target="2S405Q2y21AAYMWtFbDe-13">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="340" y="1380" />
<mxPoint x="640" y="1380" />
<mxPoint x="640" y="510" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-68" value="Handle payload" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="1270" width="120" height="50" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-71" value="How to sync? Using GPIO? Using NTP?" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="395" y="425" width="240" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-72" value="How fast to switch?<div>Slower switching -&gt; vulnerable to single channel jamming</div>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="480" y="520" width="330" height="40" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-73" value="Broadcast on all freq/channels vs freq/channel hopping?&nbsp;Why hopping better? -&gt; You must use multiple frequencies, uses more power, exposes more.<div>Is jamming per channel or full band?</div><div><br></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="565" y="685" width="820" height="60" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-74" value="Does the radio have some error correction itself?" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="240" y="790" width="280" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-75" value="AES256?" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontStyle=2" vertex="1" parent="1">
<mxGeometry x="240" y="700" width="70" height="30" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-76" value="<b><font style="font-size: 36px;">SkyHopper Protocol</font></b>" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="70" y="173" width="370" height="60" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-77" value="Channel -&gt; small frequency step in the protocol's defined band<div>Protocol can have multiple predefined channels</div><div>To span the whole spectrum (800MHz -&gt; 5GHz) multiple antennas (~4) are needed. (Physically not possible otherwise)</div><div><br></div>" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="705" y="820" width="650" height="70" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-81" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="2S405Q2y21AAYMWtFbDe-80" target="2S405Q2y21AAYMWtFbDe-68">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="2S405Q2y21AAYMWtFbDe-80" value="Clear current frequency error count" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="280" y="1200" width="120" height="50" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>