Wiki source code of Data PostProcessing Examples
Last modified by Hera Guo on 2025/10/13 14:16
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
6.1 | 1 | == **1. Calcaute Data Delta in different uplink** == |
![]() |
2.1 | 2 | |
![]() |
5.1 | 3 | ==== Configuration for Data Delta calculations needs to be set up within the rule chain. ==== |
4 | |||
5 | ==== There are two types of nodes to choose from: ==== | ||
6 | |||
![]() |
6.1 | 7 | === **1.1 Use the script node** === |
![]() |
2.1 | 8 | |
9 | [[image:1760325448266-905.png]] | ||
10 | |||
![]() |
3.1 | 11 | [[image:1760325834320-734.png]] |
12 | |||
![]() |
2.1 | 13 | [[image:1760325888128-284.png]] |
14 | |||
![]() |
3.1 | 15 | ==== The calculation code is as follows: ==== |
16 | |||
17 | ==== The calculated difference result is saved to State and uploaded to telemetry for display. ==== | ||
18 | |||
19 | ==== If the normal increment occurs without packet loss, State ~= 1; ==== | ||
20 | |||
21 | ==== if packet loss occurs, State ~= 0. ==== | ||
22 | |||
![]() |
2.1 | 23 | [[image:1760325860551-151.png]] |
24 | |||
![]() |
5.1 | 25 | ==== Real-time values for State can be observed in the telemetry data. ==== |
![]() |
2.1 | 26 | |
27 | [[image:1760325531412-428.png]] | ||
28 | |||
![]() |
5.1 | 29 | ==== Packet loss incidents can be displayed on the dashboard, showing the exact time they occurred. ==== |
30 | |||
31 | [[image:1760335990899-383.png]] | ||
32 | |||
33 | [[image:1760336047448-430.png]] | ||
34 | |||
![]() |
6.1 | 35 | === **1.2 Use the calculate delta node** === |
![]() |
2.1 | 36 | |
37 | [[image:1760326967669-999.png]] | ||
38 | |||
![]() |
4.1 | 39 | [[image:1760327789972-615.png]] |
![]() |
3.1 | 40 | |
41 | |||
![]() |
2.1 | 42 |