summaryrefslogtreecommitdiff
path: root/text/labina.tex
blob: ffeb5e20d28cab6c53dbaaefa458c1682a0dab3e (plain)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
\chapter{Laboratory testing}

This chapter will evaluate selected \ac{IoT} modules in laboratory setting based on their two critical performance indicators: their wireless data transmission capabilities and their associated power consumption depending on signal quality.

Here is an overview of the main aspects considered in the chosen measurement method:

The goal fo this chapter is to evaluate the nRF916x performance parameters in different operating conditions. For each of these conditions \ac{RF} parameters are gathered directly from the modem and information of power consumption using external ampere meter.

Chosen simulated conditions are payload size, signal strength and operating mode.

To include most of potential use-cases the outlined parameters will be measured for three different payload sizes:
\begin{itemize}
    \item 0 B - empty transmission for reference on protocols overhead 
    \item 64 B - usual amount of data for simpler IoT devices
    \item 1024 B - larger continuous data block transfer
\end{itemize}

This is done for ever increasing signal attenuation until communicating can be no longer established.
Decline of signal strength is simulated using addition attenuators between \ac{RF} output and antenna. Additional shielding was necessary for prevention of \ac{RF} leaking. EMC champer is sufficient for this case.

This procedure is done for both NB-IoT and LTE-M.

\section{RF parameters - nRF modem}

The radio parameters can be measured with specialized measurement equipment to evaluate objective characteristics or directly on the specific RF chip/modem.
Usage of "on-chip" statistics has lower resolution compared to specialized measurement equipment such as spectrum analyzer but their integration into existing \ac{RF} circuits can introduce even more variability and thus lower the accuracy of measuring and still without getting the real signal that decoded by the modem.
Another key point for consideration of "on-chip measurement" is the fact that these are the values that the modem considers for its signal quality evaluation and for subsequent setting of radio output parameters regardless on the opinion of more accurate measuring instrument.

As described in chapter \ref{chap:nrfdesc} Nordic \ac{SiP}s consist of application core and modem core. The modem is responsible for all radio and communication related tasks. Among other it is a evaluation of signal quality based on which it select different \ac{BTS}s and optimal communication parameters. Communication with application core is done using the AT commands. As a form of human-machine abstraction layer \ac{NCS} includes a \ac{MoSh}. \ac{MoSh} is an application that runs in application core and encapsulates AT commands in unix-like commands. \cite{ncsmosh}

First used command for communication evaluation is \texttt{ping}. This command establishes a \ac{ICMP} connection and outputs packet drop and transfer duration both are gathered for later analysis.

The destination of these pings i a Cloudflare DNS service 1.1.1.1. It was chosen for their massive network infrastructure and according to them the fastest connection \cite{oneoneoneone}.

%Ping command has this signature: \texttt{ ping -d DESTINATION -c COUNT -t TIMEOUT -i INTERVAL -L PAYLOAD_LENGTH }.

Example from testing of NB-IoT on nRF9161 with 10 dB additional attenuation:
{ \tiny
\begin{lstlisting}
mosh:~$ ping -d 1.1.1.1 -c 10 -t 10000 -i 100 -l 1024
Initiating ping to: 1.1.1.1
Source IP addr: 100.97.68.179
Destination IP addr: 1.1.1.1
Pinging 1.1.1.1 results: time=1.448secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=2.082secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.490secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=3.103secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.089secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.171secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.364secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.891secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.581secs, payload sent: 1024, payload received 1024
Pinging 1.1.1.1 results: time=1.124secs, payload sent: 1024, payload received 1024
Ping statistics for 1.1.1.1:
    Packets: Sent = 10, Received = 10, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
    Minimum = 1089ms, Maximum = 3103ms, Average = 1634ms
Pinging DONE
\end{lstlisting}

}

Second command for communication evaluation is \texttt{link status}. This command prints out last done report of \ac{BTS} connection. For it to be accurate it is done after all \texttt{ping} commands. Items saved for analysis are \ac{RSRP} and \ac{SNR}.

Example from testing of NB-IoT on nRF9161 with 10 dB additional attenuation:

{ \tiny
\begin{lstlisting}
mosh:~$ link status
Modem functional mode: normal
Network registration status: Connected - roaming
Modem config for system mode: NB-IoT
Modem config for LTE preference: No preference, automatically selected by the modem
Currently active system mode: NB-IoT
Battery voltage:       5054 mV
Modem temperature:     28 C
Device ID:             nrf-358299840012328
Operator full name:   "Vodafone"
Operator short name:  "VF"
Operator PLMN:        "23003"
Current cell id:       269600 (0x00041D20)
Current phy cell id:   400
Current band:          20
Current TAC:           48024 (0xBB98)
Current rsrp:          57: -84dBm
Current snr:           26: 2dB
Mobile network time and date: 25/05/19,13:08:15+08
PDP context info 1:
  CID:                0
  PDN ID:             0
  PDP context active: yes
  PDP type:           IP
  APN:                lpwa.vodafone.com
  IPv4 MTU:           1430
  IPv4 address:       100.97.68.179
  IPv6 address:       ::
  IPv4 DNS address:   217.14.160.130, 217.14.164.35
  IPv6 DNS address:   ::, ::
}
\end{lstlisting}

}

Another two commands are \texttt{link sysmode} for switching between NB-IoT and LTE-M and \texttt{link funmode} for turning the modem to and from flight-mode for save antenna and attenuators reconfiguration.


\section{Power consumption - ampere meter}

Power consumption can be accurately measured with negligible influenced by introduction of additional measurement equipment so measurement with external meter was chosen over the modem estimates or table values. For the power consumption evaluation of \ac{IoT} devices there are two different factors to consider. First is standby or sleep power that is usually long (orders of minutes or hours) and very small (orders of miliamps) and second are short rapid transmission spikes in orders of amperes. This requires ampere meter with very high sampling speed and very high dynamic range.

For measuring of power consumption was done using Nordic \ac{PPK II}, seen in picture \ref{fig:ppk}. \ac{PPK II} was chosen for its high sampling rate, large dynamic range and its good integration with other Nordic applications and development kits.

\begin{figure}[H]
	\begin{center}
		\includegraphics[width=0.4\textwidth]{obrazky/ppk2foto.png}
	\end{center}
	\caption[Nordic Power Profiler Kit II]{Nordic Power Profiler Kit II\cite{ppkdatasheet}}
	\label{fig:ppk}
\end{figure}

Its key features are \cite{ppkdatasheet}:
\begin{itemize}
    \item 200nA to 1A current measurement range with a resolution that varies between 100nA and 1mA
    \item Source mode and ampere meter mode
    \item 100 ksps sampling rate
    \item 8 digital inputs for logic analyzer support
    \item Supported through nRF Connect for Desktop's Power Profiler app
\end{itemize}

The measurement setup of nRF9161 DK with PPK II in EMC chamber and addition attenuators can be seen in figure \ref{fig:ppkmeas}. Antennas connected to the other end of coaxial cable can be seen in figure \ref{fig:emcant}. These development kits from Nordic enable a direct connection of serial ampere meter using special pins. This is them main reason why both boards were chosen for this measurement. 

\begin{figure}[h]
	\begin{center}
		\includegraphics[width=0.8\textwidth]{obrazky/nrfppkemc.jpg}
	\end{center}
	\caption[Nordic PPK II measuring setup]{Nordic Power Profiler Kit II measuring setup with nRF9161 in EMC chamber\cite{ppkdatasheet}}
	\label{fig:ppkmeas}
\end{figure}

\begin{figure}[h]
	\begin{center}
		\includegraphics[width=0.6\textwidth]{obrazky/31_anthenna3.JPG}
	\end{center}
	\caption[Custom LTE antenna for bands around 800 MHz]{Custom LTE antenna for bands around 800 MHz}
	\label{fig:emcant}
\end{figure}


The output of PPK II can be seen in figure \ref{fig:ltemcurr} for LTE-M and and in figure \ref{fig:nbiotcurr}.

Yellow vertical lines mark a start of ping set and red vertical it end. These boundaries were set due to noise manually.
Green horizontal line indicates average draw in idle state where the modem does not communicate in cellular network. Red horizontal line indicates average draw in ready state where communication is established without need for active communication. Both "horizontal" values are calculated using Python script from the measured data.

\begin{figure}[H]
	\begin{center}
		\includegraphics[width=1\textwidth]{mereni/komora2/nrf9161_nb-iot_measured_current_20dB.png}
	\end{center}
	\caption[PPK II current plot of NB-IoT]{Current plot of nRF9161 communicating using NB-IoT}
	\label{fig:nbiotcurr}
\end{figure}

\begin{figure}[H]
	\begin{center}
		\includegraphics[width=1\textwidth]{mereni/komora2/nrf9161_lte-m_measured_current_20dB.png}
	\end{center}
	\caption[PPK II current plot of LTE-M]{Current plot of nRF9161 communicating using LTE-M}
	\label{fig:ltemcurr}
\end{figure}

Another value that is calculated from these data and cannot be depicted in the chart is the raw charge needed for transmission of one packet. This is calculated by integration of the current over time set by the boundaries. This value expressed in coulombs or more commonly in mAh.

\section{Cellular Results}

Data described in sections above are aggregated into data tables using Python scripts. Example of such table can be seen in table \ref{tab:ltem61_1024ex}. Complete data for both LTE modes and all payload sizes are, for their large extent, placed in Appendix \ref{appendix:ltetables}.

\begin{table}[!h]
    \begin{center}
        \small
\hspace*{-2cm}\begin{tabular}{rrrrrrrrrrrr}
\hline
KU & RSRP & SNR & RT min & RT max & RT avg & Transmit & Max I & Ready I & Standby I & Charge & DR \\
{[dB]} & {[dBm]} & {[dB]} & {[ms]} & {[ms]} & {[ms]} & {[s]} & {[mA]} & {[mA]} & {[mA]} & {[uAh]} & {[kB/s]} \\\hline

0 & -75 & 1 & 1190 & 4500 & 3146 & 3.57 & 233.39 & 30.90 & 2.38 & 37.16 & 0.30 \\
3 & -77 & 2 & 1039 & 3731 & 1869 & 1.95 & 222.60 & 31.11 & 2.21 & 19.20 & 0.56 \\
6 & -82 & -1 & 983 & 2201 & 1618 & 1.74 & 220.29 & 31.56 & 2.71 & 17.59 & 0.63 \\
10 & -84 & 2 & 1089 & 3103 & 1634 & 1.79 & 217.21 & 30.82 & 2.35 & 18.38 & 0.61 \\
16 & -89 & 2 & 994 & 2888 & 1379 & 1.53 & 217.21 & 31.03 & 2.32 & 17.08 & 0.71 \\
20 & -94 & 1 & 1089 & 2618 & 1660 & 1.72 & 222.60 & 31.56 & 5.71 & 19.04 & 0.63 \\
21 & -92 & 3 & 1037 & 1542 & 1254 & 1.48 & 222.60 & 30.60 & 0.60 & 16.80 & 0.74 \\
26 & -98 & 4 & 976 & 1364 & 1162 & 1.32 & 222.60 & 30.52 & 2.36 & 15.51 & 0.82 \\
30 & -101 & 4 & 961 & 1670 & 1244 & 1.40 & 225.68 & 31.01 & 0.82 & 16.44 & 0.78 \\
36 & -109 & 3 & 1127 & 1562 & 1327 & 1.52 & 221.83 & 30.58 & 2.02 & 17.68 & 0.72 \\
40 & -112 & 4 & 1315 & 2352 & 1737 & 1.94 & 224.91 & 28.93 & 2.38 & 27.68 & 0.56 \\
46 & -119 & 3 & 1370 & 2040 & 1717 & 1.92 & 248.06 & 28.84 & 2.22 & 34.42 & 0.57 \\
50 & -124 & 1 & 1734 & 2917 & 2228 & 2.44 & 224.91 & 31.18 & 2.22 & 55.45 & 0.45 \\
51 & -124 & 2 & 1645 & 2501 & 2072 & 2.30 & 224.91 & 30.13 & 2.22 & 53.41 & 0.47 \\
56 & -131 & -3 & 3393 & 5091 & 4307 & 4.54 & 226.45 & 31.08 & 2.42 & 115.42 & 0.24 \\
60 & -133 & -5 & 11772 & 13685 & 12833 & 11.91 & 222.60 & 29.30 & 2.22 & 435.51 & 0.09 \\
\hline
\end{tabular}

    \end{center}
    \caption[NB-IoT nRF9161 measurements with payload size 1024 B]{NB-IoT nRF9161 measurements with payload size 1024 B}
    \label{tab:ltem61_1024ex}
\end{table}

These final data tables are used for generating more visually understandable plots. Lets have a closer look at some of them that would evaluate the performance of nRF916x as outlined in beginning of this chapter.
All charts can be found in appendix \ref{appendix:ltecharts}.

\subsection{Validity of attenuation and sensitivity}

Firstly to ensure validity of this measurement it is important to check if the addition attenuation really corresponds to attenuation of input signal. This can be seen in figure \ref{fig:rssitoatt}. The sudden jump at 20 dB is due to transition of the physical attenuator form the inside of the EMC chamber to outside to prevent RF leakage. Th same thing happened at 50 dB. Other than that the slope of the course seems linear.

Another key observation is that NB-IoT has by 3 dB better sensitivity over LTE-M (-133 dBm and -130 dB respectively). This is in contrast to datasheet values of -114 dBm and -108 dBm (see chapter \ref{chap:nrfdesc}) where the difference between the modes should be 6 dB and measured sensitivity is better by 19 dB and 22 dB.

Alternative value provided by modem that could be use to guess the sensitivity is its reported \ac{DL} path loss. This was 159 dB for NB-IoT and 148 for LTE-M. If the same transmit power of 23 dBm is assumed for the \ac{BTS} it would give a sensitivity of -136 dBm for NB-IoT and -125 dBm for LTE-M. This method or reported DL path loss in general are used sporadically in subsequent analysis for the author's doubts about validity and accuracy of such numbers.

Seemingly big difference is \ac{RSRP} at same attenuation between both modes. This has multiple possible explanation:
\begin{itemize}
    \item Slightly different bands - LTE-M was measured on LTE band 8 (UL: 880 - 915 MHz DL: 925 - 960 MHz) while NB-IoT was on LTE band 20 (UL: 832 - 862 MHz DL: 791 - 821 MHz )
    \item Different settings on actual \ac{BTS} for both modes
    \item Higher robustness of NB-IoT
\end{itemize}
For this reason subsequent analysis will be done using \ac{RSRP} supplied by modem.

From these possibilities the advantage of NB-IoT compared to LTE-M for detection of very weak signals is 3 dB if RSRP is to be belived, 6 db according to datasheet, 11 dB according to reported DL pash loss and 14 dB according to attenuation.

\begin{figure}[H]
    \begin{center}
        \includegraphics[width=1\textwidth]{"mereni/komora2/both61ReferenceSignalReceivedPowertoattenuation.png"}
    \end{center}
    \caption[Reference Signal Received Power to attenuation]{Reference Signal Received Power to attenuation}
    \label{fig:rssitoatt}
\end{figure}

\subsection{Power consumption analysis}

The value crucial for calculation of needed battery capacity in \ac{IoT} devices is electrical charge that is consumed by the transmission, together by constant current of ready and idle states and planned lifetime of such device.

In figure \ref{fig:chargenrf} can seen a comparison of LTE-M and NB-IoT in regards to this needed charge per single transmission of given payload size dependent to the signal strength reported using \ac{RSRP} from the LTE modem.

From this figure can be conclude following:
\begin{enumerate}
    \item LTE-M uses consistently less energy for every payload size compared to NB-IoT. If the total attenuation is takes as determinative value even than NB-IoT consumes less energy then LTE-M only at the limit of LTE-M abilities. See appendix figure \ref{fig:both61Chargepermessagetoattenuation} for this chart.
    \item Rapid increase in used energy for LTE-M happens only at signal levels close to connection loss. Gradual mild increase can be better seen in appendix table \ref{fig:ltem61ChargepermessagetoRSRP}
    \item NB-IoT is able to transmit messages at the cost of vastly higher energy consumption in worse conditions where LTE-M is unable to operate.
\end{enumerate}

Summed up this means that usage of NB-IoT is only advisable for situations where signal conditions are so bad that the better resilience is needed.

\begin{figure}[H]
    \begin{center}
        \includegraphics[width=1\textwidth]{"mereni/komora2/both61ChargepermessagetoRSRP.png"}
    \end{center}
    \caption[nRF9161 LTE-M and NB-IoT Charge per message to RSRP]{nRF9161 LTE-M and NB-IoT Charge per message to RSRP}
    \label{fig:chargenrf}
\end{figure}


\subsection{Transmission speed and comparison to LoRa}

Difficulty of direct comparison of LTE modes to other technologies such as LoRa are described in depth the discussion chapter \ref{chap:drysty}. But since LoRa is the main "competitor" of LTE IoT protocols it should at least be tried with data that are available.

As a representative of LoRa the Semtech SX1262 chip was chosen. Primarily for similar band (around 800 MHz) and usage in similar applications\cite{loradatasheet}.

Values of data rate and formula for sensitivity of SX1262 were obtained from its datasheet \cite{loradatasheet}.

The formula is following:
$$
S = (12 - SF) * 2.5 - 137
$$

S is sensitivity in dBm, SF is LoRa speeding factor number, 2.5 is lowering of sensitivity in dB per SF and -137 is sensitivity of SX1262 for SF 12 in dBm.

These data were integrated into chart with measured data for NB-IoT and LTE-M as you can see in figure \ref{fig:complora}.

\begin{figure}[H]
    \begin{center}
        \includegraphics[width=1\textwidth]{mereni/complora.png}
    \end{center}
    \caption[Comparison of sensitivity and transmit speed of LTE to LoRa]{Comparison of sensitivity and transmit speed of LTE to LoRa}
    \label{fig:complora}
\end{figure}

Getting conclusions from comparing measured data and datasheet data without any assurance of measurement method comparability is hard but lets at least try to find some meaning in this.

NB-IoT seems to be slightly faster and so better than LoRa up to SF 10 at RSRP -132 dBm where we set a limit of NB-IoT abilities. Since attributes of fair measurement compression were not met, from current data and from knowledge of their limitation there can be made a vague statement that abilities of NB-IoT and LoRa would seem comparable.

LTE-M is a considerable improvement in aspect of data rate over NB-IoT. Over LoRa even though the difference seems huge, in case of real data they share on the signal strength axis only one point. From this it seems that these two are not very comparable in their target ideal use-cases.

\section{DECT NR+}

An additional measurement was made to test the capability of nRF9161 to transmit and receive using DECT NR+.

Measurements were done similarly to these of LTE but with other nRF9161 DK in place of LTE antenna. Measurement of current wa done on the node.

The fixed slot timing property of DECT NR+ means that device can transmit only in fixed time window. This gets rid of need for integration and power consumption can be established from maximal current and number of time slots used.

The two DKs do not communicate \ac{P2P} strictly speaking but one operates as a beacon that periodically sends information needed to establish communication with itself. The other operates as node, in 5G terminology named as \ac{PDU}. In implementations with more than 2 devices some devices can be beacon with established connection to other beacon and by this manner it is possible to create the mesh trees described in chapter \ref{dectdescrition}.

In the analysis there is used a term of \ac{FSPL} distance. This represents the attenuation as distance in completely free space that would have the same attenuation (ignoring latency increase). Here is how it was calculated. This is equation for freespace path loss:

$$ K_U = \left( \frac{4 \pi d}{\lambda} \right) ^2  $$

When frequency of 1.9 GHz is substituted, the equation solved for distance and signal loss expressed in decibels it forms this equation that was used in later analysis:

$$ d = 10^{\frac{K_U-98}{20}} $$

%In this case a attenuation is no longer arbitrary values with loose connection to real signal degradation but real 

\begin{table}[!h]
    \begin{center}
        \small
\begin{tabular}{rrrrrrrr}
\hline
& \multicolumn{2}{c}{Beacon} & \multicolumn{2}{c}{PDU} & & & \\
$K_U$ & RSSI & PWR & RSSI & PWR & FSPL d & Max I  & Att conf \\
{[dB]} & {[dBm]} & {[dBm]} & {[dBm]} & {[dBm]} & {[km]} &  {[mA]} & {[dB]} \\
\hline
106 & -105 & 4 & -91 & 23 & 2.51  & 213.28  & 60+46 \\
103 & -103 & 4 & -88 & 23 & 1.78  & 218.63  & 60+43 \\
93 & -93 & 4 & -78 & 23 & 0.56    & 220.93  & 60+33 \\
83 & -83 & 4 & -68 & 23 & 0.18    & 221.69  & 40+43 \\
73 & -72 & 4 & -60 & 16 & 0.06    & 160.71  & 40+33 \\
63 & -62 & 4 & -59 & 7 & 0.02     & 97.30   & 40+23 \\
53 & -52 & 4 & -60 & -4 & 0.01    & 89.05   & 40+13 \\
43 & -41 & 4 & -58 & -12 & 0.00   & 88.30   & 40+03 \\
\hline
\end{tabular}
    \end{center}
    \caption[Result table of DECT NR+ measurements]{Result table of DECT NR+ measurements}
    \label{tab:dect}
\end{table}

Results of these measurement can be seen in table \ref{tab:dect} and visualized in figures \ref{fig:dectPowerlevelstotoattenuation} and \ref{fig:dectRSSIlevelstotoattenuation}.
Note to the data: maybe contrary to common sense beacon TX power is output power transmitted from the beacon but its RSSI is value measured from PDU of the beacon's signal. Same thing is true for the PDU and its values.

\input{"mereni/komoradect/dectRSSIlevelstotoattenuation"}
\input{"mereni/komoradect/dectPowerlevelstotoattenuation"}
From these can conclude following:
\begin{enumerate}
    \item Beacon did not had automatic adjunction of power but PDU did. This can be clearly seen in figure \ref{fig:dectPowerlevelstotoattenuation}. This could be due to using experimental \ac{MoSh} for DECT NR+ that supports only the physical layer of DECT NR+.
    \item Maximal current grows in discrete jumps with PDU power level.
    \item Maximal theoretical range for measured power of 4 dBm is 2.5 km.
    \item If maximal power of 23 dBm on both boards is assumed, the maximal possible attenuation is 125 dB and theoretical range is 22.4 km.
    \item Minimal signal strength was -105 dBm. According to nRF9161 documentation its sensitivity for DECT NR+ is -103 dBm. 
\end{enumerate}




%\chapter{Labina osnova}


%\textit{Každá section jak protokol, Co chci změřit, Fyzika - princip toho co měřím, čím to měřím, zapojení měřící techniky, tabulky, graf}

%\section{Communication range}

%One of main consideration when choosing a IoT platform is communication range. Main source of attenuation of radio energy caused by electric field dispersion/diffusion of electric field. This effect if best described by \ac{FSPL}:

%\begin{equation}
	%FSPL=\left( \frac{4 \pi d}{\lambda} \right) ^2
%\end{equation}

%Signal attenuation is also dependent on directivity of antennas and loss on connectors and \textbf{electrical wiring}. When antenna and transmission total \textbf{gain} is constant and can be added to equation like this:

%\begin{equation}
	%A = D_{ANT} \cdot A_{RX} \cdot \left( \frac{4 \pi d}{\lambda} \right) ^2
%\end{equation}

%Where $D_{ANT}$ is directivity of antenna and $A_{RX}$ is total loss from \ac{RF} connector to \ac{LTE} modem. These must be accounted to only when measuring on directly on LTE modem.

%This can be converted to simplify calculation to decibel form:

%\begin{equation}
	%A = D_{ANT}^{[dB]} + A_{RX}^{[dB]} + 10 \cdot \log_{10} \left( \frac{4 \pi d}{\lambda} \right) ^2
%\end{equation}

%From this a maximal range can be simulated using \ac{RF} attenuators in laboratory environment by converting

%\begin{equation}
	%d = A_{max}
%\end{equation}

%\subsection{Antennas}

%For ability to add additional attenuators external antennas had to be made. For this a $\lambda / 4$ monopole antenna design has been chosen.


%O2 on 800 MHz


%Dosah zásvisí na vzdálenosti, v ideálních podmínkách line of sight Free-space path loss

%Popis Free-space path loss, teorie, vzorečky

%Technika - variable attenuator,

%Tabulka utlum , km ve free-space , teoreticka sila signalu , signal na vstupu podle FW , packet drop / BER

%\section{Noise immunity - reliability}

%Noise makes signal bad, reciver much sad.

%Teorie, vzorecky, Bit error rate, Added white gausian noise

%Teoreticke vypocty pro NB-IoT, LTE-M, DECT NR+

%Technika zdroj šumu, směšovač,

%Pro jednotlivé AWGN a CNR carier noise ratio
%Tabulka utlum , km ve free-space , teoreticka sila signalu , signal na vstupu podle FW , packet drop / BER , spotřeba

%\section{Power consumption}

%\colorbox{orange}{Toto asi bude chujovina}
%With wireless communication often comes an incentive for power source without need for external wires and power transmission network. Significant research has been made to alternative power sources for IoT devices from prevalent energy sources like light, vibration, temperature gradient and similar. Use of small solar panels with potential large capacitor seems to be the most viable out of these but there [tuzdroj].

%\colorbox{orange}{Konec chujoviny}

%All power sources expect the ones connected directly to energy power grid have some sort of limited capacity. In the case of primary batteries and rechargeable batteries this limit is absolute and usually has to be guarantied in terms of




%%Globální oteplování bad, small battery good

%\subsection{Nordic Power Profiler Kit II}

%\section{Latency}

%Pro jednotlivé AWGN a CNR carier noise ratio
%Tabulka utlum , km ve free-space , teoreticka sila signalu , signal na vstupu podle FW , packet drop / BER , spotřeba , latence

%Experimentální ověření NB-IoT, LTC-M, DECT NR+:
%\begin{itemize}
    %\item dosah - popis cesty šíření ve volném prostoru, odkaz na teoretický výpočet útlumi vzdáleností ve volném prostředí ve vzduchu. Popis atenuátoru.
    %\item spotřeba - variabilní snižování síly signálu, popis Power Profiler Kit II
	%\item přenosová rychlost - primárně pro DECT, praktická superhurbá přenosová rychlost UDP Byty/(čas od konce do začátku sleep)
	%\item odolnost vůči šumu - VF generátor šumu, teorie
%\end{itemize}

%Experimentální ověření DECT NR+ navíc:
%\begin{itemize}
    %\item spolehlivost -
    %\item latence -
%\end{itemize}

%Teorie mereni - Náhradní modely prostředí. Degradace signálu.

%Popis experimentální instrumentace a sestav.

%Spotřeba, packet drop, rychlost, latence závislá na útlumu (popř. intenzita bílého šumu) (vsechny protokoly)

%\section{Measurement}

%\begin{sidewaystable}
    %\centering

  %\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
    %\hline
      %\multicolumn{2}{|c|}{Nominal} &
      %\multicolumn{3}{c|}{nRF modem} &
	  %\multicolumn{2}{c|}{nRF FW} &
	  %\multicolumn{6}{c|}{Power Kit II} \\
	  %\hline
	  %$K_U$ & CL & $P_I$ & $Q_I$ & $SNR$ & $T_{lat}$ & $PD$ & $P_{TX}$ & $P_{RX}$ & W & $T_{TX}$ & $T_{RX}$ & $R_B$ \\

	  %[dB] & [dB] & [dBm] & [dBm] & [dB] & [ms] & [\%] & [mA] & [mA] & [J/msg] & [$\mu$ s] & [$\mu$ s] & [kB/s] \\\hline
	  %0  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %3  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %6  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %10 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %13 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %16 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %20 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %23 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %26 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %30 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %33 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %36 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %40 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %43 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %46 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %50 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %53 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %56 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %60 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
  %\end{tabular}
%\caption{NB-IoT / LTE-M measurements for message length = X B and added noise = X dBm}
%\end{sidewaystable}




%\begin{sidewaystable}
    %\centering

  %\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|}
    %\hline
      %\multicolumn{2}{|c|}{Nominal} &
      %\multicolumn{5}{c|}{nRF modem} &
	  %\multicolumn{6}{c|}{Power Kit II} \\
	  %\hline
	  %$K_U$ & CL & $RSSI$ & $RSSI-2$ & $SNR$ & $T_{lat}$ & $PD$ & $P_{TX}$ & $P_{RX}$ & W & $T_{TX}$ & $T_{RX}$ & $R_B$ \\

	  %[dB] & [dB] & [dBm] & [dBm] & [dB] & [ms] & [\%] & [mA] & [mA] & [J/msg] & [$\mu$ s] & [$\mu$ s] & [kB/s] \\\hline
	  %0  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %3  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %6  & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %10 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %13 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %16 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %20 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %23 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %26 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %30 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %33 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %36 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
	  %40 & -140 & -80 & 10 & 40 & 0.5 & 0.1 & 98 & 10 & 0.1 & 400 & 400 & 1 \\ \hline
  %\end{tabular}
%\caption{DECT-NR+ measurements for message length = X B and added noise = X dBm}
%\end{sidewaystable}