Skip to content

Commit b8fa174

Browse files
committed
Added packets and measurements to test
1 parent a8d28cb commit b8fa174

6 files changed

Lines changed: 330 additions & 7 deletions

File tree

boards.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
{
2-
"HVSCU-Cabinet": "boards/HVSCU-Cabinet/HVSCU-Cabinet.json",
3-
"BCU": "boards/BCU/BCU.json",
4-
"PCU": "boards/PCU/PCU.json",
5-
"LCU": "boards/LCU/LCU.json",
6-
"HVSCU": "boards/HVSCU/HVSCU.json",
7-
"BMSL": "boards/BMSL/BMSL.json",
8-
"VCU": "boards/VCU/VCU.json"
2+
"TEST": "boards/TEST/TEST.json"
93
}

boards/TEST/TEST.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"board_id": 1,
3+
"board_ip": "192.168.200.7",
4+
"measurements": [
5+
"TEST_measurements.json"
6+
],
7+
"packets": [
8+
"orders.json",
9+
"packets.json"
10+
],
11+
"sockets": [
12+
"sockets.json"
13+
]
14+
}

boards/TEST/TEST_measurements.json

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
[
2+
{
3+
"id": "enable_flag",
4+
"name": "Enable Flag",
5+
"type": "bool"
6+
},
7+
{
8+
"id": "small_counter",
9+
"name": "Small Counter",
10+
"type": "uint8"
11+
},
12+
{
13+
"id": "window_size",
14+
"name": "Window Size",
15+
"type": "uint16"
16+
},
17+
{
18+
"id": "magic_value",
19+
"name": "Magic Value",
20+
"type": "uint32"
21+
},
22+
{
23+
"id": "big_counter",
24+
"name": "Big Counter",
25+
"type": "uint64"
26+
},
27+
{
28+
"id": "trim_value",
29+
"name": "Trim Value",
30+
"type": "int8"
31+
},
32+
{
33+
"id": "offset_value",
34+
"name": "Offset Value",
35+
"type": "int16"
36+
},
37+
{
38+
"id": "position_value",
39+
"name": "Position Value",
40+
"type": "int32"
41+
},
42+
{
43+
"id": "energy_value",
44+
"name": "Energy Value",
45+
"type": "int64"
46+
},
47+
{
48+
"id": "ratio_value",
49+
"name": "Ratio Value",
50+
"type": "float32",
51+
"podUnits": "m/s",
52+
"displayUnits": "m/s"
53+
},
54+
{
55+
"id": "precise_value",
56+
"name": "Precise Value",
57+
"type": "float64",
58+
"podUnits": "V",
59+
"displayUnits": "V"
60+
},
61+
{
62+
"id": "tcp_order_count",
63+
"name": "TCP Order Count",
64+
"type": "uint32"
65+
},
66+
{
67+
"id": "udp_parse_count",
68+
"name": "UDP Parse Count",
69+
"type": "uint32"
70+
},
71+
{
72+
"id": "heartbeat_ticks",
73+
"name": "Heartbeat Ticks",
74+
"type": "uint32"
75+
},
76+
{
77+
"id": "last_order_code",
78+
"name": "Last Order Code",
79+
"type": "uint16"
80+
},
81+
{
82+
"id": "order_mode",
83+
"name": "Order Mode",
84+
"type": "enum",
85+
"enumValues": [
86+
"IDLE",
87+
"RUN",
88+
"SAFE",
89+
"CAL"
90+
]
91+
},
92+
{
93+
"id": "order_state",
94+
"name": "Order State",
95+
"type": "enum",
96+
"enumValues": [
97+
"BOOT",
98+
"ARMED",
99+
"STREAMING",
100+
"ERROR"
101+
]
102+
},
103+
{
104+
"id": "mirror_mode",
105+
"name": "Mirror Mode",
106+
"type": "enum",
107+
"enumValues": [
108+
"IDLE",
109+
"RUN",
110+
"SAFE",
111+
"CAL"
112+
]
113+
},
114+
{
115+
"id": "mirror_state",
116+
"name": "Mirror State",
117+
"type": "enum",
118+
"enumValues": [
119+
"BOOT",
120+
"ARMED",
121+
"STREAMING",
122+
"ERROR"
123+
]
124+
},
125+
{
126+
"id": "probe_seq",
127+
"name": "Probe Sequence",
128+
"type": "uint32"
129+
},
130+
{
131+
"id": "probe_toggle",
132+
"name": "Probe Toggle",
133+
"type": "bool"
134+
},
135+
{
136+
"id": "probe_window",
137+
"name": "Probe Window",
138+
"type": "uint16"
139+
},
140+
{
141+
"id": "probe_ratio",
142+
"name": "Probe Ratio",
143+
"type": "float32",
144+
"podUnits": "m/s",
145+
"displayUnits": "m/s"
146+
},
147+
{
148+
"id": "probe_mode",
149+
"name": "Probe Mode",
150+
"type": "enum",
151+
"enumValues": [
152+
"LOW",
153+
"MEDIUM",
154+
"HIGH",
155+
"TURBO"
156+
]
157+
}
158+
]

boards/TEST/orders.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[
2+
{
3+
"type": "order",
4+
"name": "set_small_profile",
5+
"variables": [
6+
"enable_flag",
7+
"small_counter",
8+
"offset_value",
9+
"order_mode"
10+
],
11+
"id": 20481
12+
},
13+
{
14+
"type": "order",
15+
"name": "set_large_profile",
16+
"variables": [
17+
"window_size",
18+
"magic_value",
19+
"position_value",
20+
"ratio_value",
21+
"precise_value"
22+
],
23+
"id": 20482
24+
},
25+
{
26+
"type": "order",
27+
"name": "set_extremes",
28+
"variables": [
29+
"trim_value",
30+
"energy_value",
31+
"big_counter"
32+
],
33+
"id": 20483
34+
},
35+
{
36+
"type": "order",
37+
"name": "bump_state",
38+
"id": 20484
39+
},
40+
{
41+
"type": "order",
42+
"name": "set_state_code",
43+
"variables": [
44+
"order_state"
45+
],
46+
"id": 20485
47+
}
48+
]

boards/TEST/packets.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
[
2+
{
3+
"type": "data",
4+
"name": "order_mirror",
5+
"variables": [
6+
"tcp_order_count",
7+
"last_order_code",
8+
"enable_flag",
9+
"small_counter",
10+
"offset_value",
11+
"mirror_mode"
12+
],
13+
"id": 20737,
14+
"socket": "telemetry_udp",
15+
"period": 50,
16+
"period_type": "ms"
17+
},
18+
{
19+
"type": "data",
20+
"name": "numeric_mirror",
21+
"variables": [
22+
"window_size",
23+
"magic_value",
24+
"position_value",
25+
"ratio_value",
26+
"precise_value"
27+
],
28+
"id": 20738,
29+
"socket": "telemetry_udp",
30+
"period": 50,
31+
"period_type": "ms"
32+
},
33+
{
34+
"type": "data",
35+
"name": "extremes_mirror",
36+
"variables": [
37+
"trim_value",
38+
"energy_value",
39+
"big_counter",
40+
"mirror_state"
41+
],
42+
"id": 20739,
43+
"socket": "telemetry_udp",
44+
"period": 50,
45+
"period_type": "ms"
46+
},
47+
{
48+
"type": "data",
49+
"name": "udp_probe",
50+
"variables": [
51+
"probe_seq",
52+
"probe_toggle",
53+
"probe_window",
54+
"probe_ratio",
55+
"probe_mode"
56+
],
57+
"id": 20740
58+
},
59+
{
60+
"type": "data",
61+
"name": "udp_probe_echo",
62+
"variables": [
63+
"udp_parse_count",
64+
"probe_seq",
65+
"probe_toggle",
66+
"probe_window",
67+
"probe_ratio",
68+
"probe_mode"
69+
],
70+
"id": 20741,
71+
"socket": "telemetry_udp",
72+
"period": 50,
73+
"period_type": "ms"
74+
},
75+
{
76+
"type": "data",
77+
"name": "heartbeat_snapshot",
78+
"variables": [
79+
"heartbeat_ticks",
80+
"tcp_order_count",
81+
"udp_parse_count",
82+
"mirror_state"
83+
],
84+
"id": 20742,
85+
"socket": "telemetry_udp",
86+
"period": 250,
87+
"period_type": "ms"
88+
}
89+
]

boards/TEST/sockets.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"type": "ServerSocket",
4+
"name": "control_test_tcp",
5+
"port": 41000
6+
},
7+
{
8+
"type": "Socket",
9+
"name": "control_test_client",
10+
"local_port": 41002,
11+
"remote_ip": "192.168.200.9",
12+
"remote_port": 41003
13+
},
14+
{
15+
"type": "DatagramSocket",
16+
"name": "telemetry_udp",
17+
"port": 41001,
18+
"remote_ip": "192.168.200.9"
19+
}
20+
]

0 commit comments

Comments
 (0)