Browse Source

Increase white space in tables so they look ok with ports number > 99.

Georgi Chorbadzhiyski 10 years ago
parent
commit
9dadd08575
16 changed files with 1080 additions and 653 deletions
  1. 94
    94
      README
  2. 29
    29
      display.c
  3. 211
    0
      test/input-17.txt
  4. 3
    0
      test/run
  5. 73
    73
      test/test-01.ok
  6. 102
    102
      test/test-02.ok
  7. 73
    73
      test/test-03.ok
  8. 74
    74
      test/test-04.ok
  9. 73
    73
      test/test-05.ok
  10. 11
    11
      test/test-07.ok
  11. 22
    22
      test/test-08.ok
  12. 20
    20
      test/test-09.ok
  13. 62
    62
      test/test-14.ok
  14. 8
    8
      test/test-15.ok
  15. 12
    12
      test/test-16.ok
  16. 213
    0
      test/test-17.ok

+ 94
- 94
README View File

158
 |----------------------------------------------------------------------|
158
 |----------------------------------------------------------------------|
159
 $ videohubctrl --test tests/input-00.txt
159
 $ videohubctrl --test tests/input-00.txt
160
 Device info
160
 Device info
161
-  -----------------------------------------------------------
162
-  | Device address             | sdi-matrix                 |
163
-  | Device port                | 9990                       |
164
-  | Model name                 | Blackmagic Micro Videohub  |
165
-  | Unique ID                  | 7c2e0d021714               |
166
-  | Protocol                   | 2.4                        |
167
-  | Video inputs               | 16                         |
168
-  | Video outputs              | 16                         |
169
-  | Serial ports               | 8                          |
170
-  | Video monitoring outputs   | 4                          |
171
-  -----------------------------------------------------------
161
+  -------------------------------------------------------------------
162
+  | Device address             | sdi-matrix                         |
163
+  | Device port                | 9990                               |
164
+  | Model name                 | Blackmagic Micro Videohub          |
165
+  | Unique ID                  | 7c2e0d021714                       |
166
+  | Protocol                   | 2.4                                |
167
+  | Video inputs               | 16                                 |
168
+  | Video outputs              | 16                                 |
169
+  | Serial ports               | 8                                  |
170
+  | Video monitoring outputs   | 4                                  |
171
+  -------------------------------------------------------------------
172
 
172
 
173
 Video inputs
173
 Video inputs
174
-  --------------------------------------------------------------------
175
-  | ## | Video input name         | n | Routed to output         | s |
176
-  --------------------------------------------------------------------
177
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
178
-  |    |                          |   | Enc1 4                   |   |
179
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
180
-  |  3 | Windows 3                | 1 | Enc1 1                   | B |
181
-  |  4 | Windows 4 HD             | 2 | Output 8                 | B |
182
-  |    |                          |   | Enc2 1                   |   |
183
-  |  5 | Input 5                  | 1 | Output 5                 | o |
184
-  |  6 | Input 6                  | 1 | Output 6                 | o |
185
-  |  7 | Input 7                  | 1 | Output 7                 | o |
186
-  |  8 | Input 8                  | 0 | -                        | o |
187
-  |  9 | Input 9                  | 0 | -                        |   |
188
-  | 10 | Input 10                 | 1 | Output 10                |   |
189
-  | 11 | Input 11                 | 1 | Output 11                |   |
190
-  | 12 | DPlay1                   | 1 | Output 13                |   |
191
-  | 13 | DPlay2                   | 1 | Denc                     |   |
192
-  | 14 | Input 14                 | 1 | Output 14                | x |
193
-  | 15 | Input 15                 | 1 | Output 15                | x |
194
-  | 16 | Loopback                 | 1 | Loopback                 |   |
195
-  --------------------------------------------------------------------
174
+  ----------------------------------------------------------------------
175
+  | ### | Video input name         | nn | Routed to output         | s |
176
+  ----------------------------------------------------------------------
177
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
178
+  |     |                          |    | Enc1 4                   |   |
179
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
180
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
181
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
182
+  |     |                          |    | Enc2 1                   |   |
183
+  |   5 | Input 5                  |  1 | Output 5                 | o |
184
+  |   6 | Input 6                  |  1 | Output 6                 | o |
185
+  |   7 | Input 7                  |  1 | Output 7                 | o |
186
+  |   8 | Input 8                  |  0 | -                        | o |
187
+  |   9 | Input 9                  |  0 | -                        |   |
188
+  |  10 | Input 10                 |  1 | Output 10                |   |
189
+  |  11 | Input 11                 |  1 | Output 11                |   |
190
+  |  12 | DPlay1                   |  1 | Output 13                |   |
191
+  |  13 | DPlay2                   |  1 | Denc                     |   |
192
+  |  14 | Input 14                 |  1 | Output 14                | x |
193
+  |  15 | Input 15                 |  1 | Output 15                | x |
194
+  |  16 | Loopback                 |  1 | Loopback                 |   |
195
+  ----------------------------------------------------------------------
196
 
196
 
197
 Video outputs
197
 Video outputs
198
-  --------------------------------------------------------------------
199
-  | ## | x | Video output name        | Connected video input    | s |
200
-  --------------------------------------------------------------------
201
-  |  1 | L | Enc1 1                   | Windows 3                |   |
202
-  |  2 | L | Enc1 2                   | Windows 2                |   |
203
-  |  3 | L | Enc1 3                   | Windows 1                |   |
204
-  |  4 | L | Enc1 4                   | Windows 1                |   |
205
-  |  5 |   | Output 5                 | Input 5                  | x |
206
-  |  6 |   | Output 6                 | Input 6                  | x |
207
-  |  7 |   | Output 7                 | Input 7                  | x |
208
-  |  8 |   | Output 8                 | Windows 4 HD             |   |
209
-  |  9 | L | Enc2 1                   | Windows 4 HD             | B |
210
-  | 10 |   | Output 10                | Input 10                 | B |
211
-  | 11 |   | Output 11                | Input 11                 | B |
212
-  | 12 | L | Denc                     | DPlay2                   | B |
213
-  | 13 | O | Output 13                | DPlay1                   | o |
214
-  | 14 |   | Output 14                | Input 14                 | o |
215
-  | 15 |   | Output 15                | Input 15                 | o |
216
-  | 16 | O | Loopback                 | Loopback                 | o |
217
-  --------------------------------------------------------------------
198
+  ---------------------------------------------------------------------
199
+  | ### | x | Video output name        | Connected video input    | s |
200
+  ---------------------------------------------------------------------
201
+  |   1 | L | Enc1 1                   | Windows 3                |   |
202
+  |   2 | L | Enc1 2                   | Windows 2                |   |
203
+  |   3 | L | Enc1 3                   | Windows 1                |   |
204
+  |   4 | L | Enc1 4                   | Windows 1                |   |
205
+  |   5 |   | Output 5                 | Input 5                  | x |
206
+  |   6 |   | Output 6                 | Input 6                  | x |
207
+  |   7 |   | Output 7                 | Input 7                  | x |
208
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
209
+  |   9 | L | Enc2 1                   | Windows 4 HD             | B |
210
+  |  10 |   | Output 10                | Input 10                 | B |
211
+  |  11 |   | Output 11                | Input 11                 | B |
212
+  |  12 | L | Denc                     | DPlay2                   | B |
213
+  |  13 | O | Output 13                | DPlay1                   | o |
214
+  |  14 |   | Output 14                | Input 14                 | o |
215
+  |  15 |   | Output 15                | Input 15                 | o |
216
+  |  16 | O | Loopback                 | Loopback                 | o |
217
+  ---------------------------------------------------------------------
218
 
218
 
219
 Monitoring outputs
219
 Monitoring outputs
220
-  ----------------------------------------------------------------
221
-  | ## | x | Monitoring output name   | Connected video input    |
222
-  ----------------------------------------------------------------
223
-  |  1 |   | Monitor 1                | Windows 1                |
224
-  |  2 | O | Monitor 2                | Windows 2                |
225
-  |  3 | L | Monitor 3                | Windows 3                |
226
-  |  4 |   | Monitor 4                | Windows 4 HD             |
227
-  ----------------------------------------------------------------
220
+  -----------------------------------------------------------------
221
+  | ### | x | Monitoring output name   | Connected video input    |
222
+  -----------------------------------------------------------------
223
+  |   1 |   | Monitor 1                | Windows 1                |
224
+  |   2 | O | Monitor 2                | Windows 2                |
225
+  |   3 | L | Monitor 3                | Windows 3                |
226
+  |   4 |   | Monitor 4                | Windows 4 HD             |
227
+  -----------------------------------------------------------------
228
 
228
 
229
 Serial ports
229
 Serial ports
230
-  ---------------------------------------------------------------
231
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
232
-  ---------------------------------------------------------------
233
-  |  1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
234
-  |  2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
235
-  |  3 | L |  out | Deck 3             |                    | 4 |
236
-  |  4 |   | auto | Deck 4             |                    | 4 |
237
-  |  5 |   | auto | Serial 5           |                    |   |
238
-  |  6 |   | auto | Serial 6           |                    |   |
239
-  |  7 |   |   in | Serial 7           |                    | x |
240
-  |  8 |   |  out | Serial 8           |                    | x |
241
-  ---------------------------------------------------------------
230
+  ----------------------------------------------------------------
231
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
232
+  ----------------------------------------------------------------
233
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
234
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
235
+  |   3 | L |  out | Deck 3             |                    | 4 |
236
+  |   4 |   | auto | Deck 4             |                    | 4 |
237
+  |   5 |   | auto | Serial 5           |                    |   |
238
+  |   6 |   | auto | Serial 6           |                    |   |
239
+  |   7 |   |   in | Serial 7           |                    | x |
240
+  |   8 |   |  out | Serial 8           |                    | x |
241
+  ----------------------------------------------------------------
242
 
242
 
243
 |----------------------------------------------------------------------|
243
 |----------------------------------------------------------------------|
244
 
244
 
246
 Video inputs Legend
246
 Video inputs Legend
247
 ===================
247
 ===================
248
 
248
 
249
- Column 1 (##) - Input port number
250
- Column 2      - Input port names
251
- Column 3 (n)  - To how much outputs this input is routed.
252
- Column 4      - List of output ports which are connected to this input.
253
- Column 5 (s)  - Port status /type/. Universal Videohub's support
254
-                 BNC/Optical ports and this column shows the port type.
255
-                     - Empty means that the device do not support port
256
-                       status.
257
-                  x  - The port type is "None". This means that the
258
-                       port is not installed.
259
-                  B  - The port type is "BNC".
260
-                  o  - The port type is "Optical".
261
-                  T  - The port type is "Thunderbolt".
249
+ Column 1 (###) - Input port number
250
+ Column 2       - Input port names
251
+ Column 3 (nn)  - To how much outputs this input is routed.
252
+ Column 4       - List of output ports which are connected to this input.
253
+ Column 5 (s)   - Port status /type/. Universal Videohub's support
254
+                  BNC/Optical ports and this column shows the port type.
255
+                      - Empty means that the device do not support port
256
+                        status.
257
+                   x  - The port type is "None". This means that the
258
+                        port is not installed.
259
+                   B  - The port type is "BNC".
260
+                   o  - The port type is "Optical".
261
+                   T  - The port type is "Thunderbolt".
262
 
262
 
263
 
263
 
264
 Video outputs Legend
264
 Video outputs Legend
265
 ====================
265
 ====================
266
 
266
 
267
- Column 1 (##) - Output port number
268
- Column 2 (x)  - Output port lock status
269
-                  L - The port is locked by another IP address (user)
270
-                  O - The port is locked by me (from my IP address)
271
- Column 3      - Output port names
272
- Column 4      - Which input port is routed to this output
273
- Column 5 (s)  - Port status /type/. Same format as in input ports.
267
+ Column 1 (###) - Output port number
268
+ Column 2 (x)   - Output port lock status
269
+                   L - The port is locked by another IP address (user)
270
+                   O - The port is locked by me (from my IP address)
271
+ Column 3       - Output port names
272
+ Column 4       - Which input port is routed to this output
273
+ Column 5 (s)   - Port status /type/. Same format as in input ports.
274
 
274
 
275
 
275
 
276
 Serial ports Legend
276
 Serial ports Legend
277
 ===================
277
 ===================
278
 
278
 
279
- Column 1 (##)  - Serial port number
279
+ Column 1 (###) - Serial port number
280
  Column 2 (x)   - Serial port lock status
280
  Column 2 (x)   - Serial port lock status
281
  Column 3 (Dir) - Serial port direction.
281
  Column 3 (Dir) - Serial port direction.
282
                    in   - Input/Control (Workstation) port
282
                    in   - Input/Control (Workstation) port

+ 29
- 29
display.c View File

39
 }
39
 }
40
 
40
 
41
 void print_device_info(struct videohub_data *d) {
41
 void print_device_info(struct videohub_data *d) {
42
-	int len = 59;
42
+	int len = 67;
43
 	printf("Device info\n");
43
 	printf("Device info\n");
44
 	printf_line(len);
44
 	printf_line(len);
45
-	printf("  | %-26s | %-26s |\n", "Device address", d->dev_host);
46
-	printf("  | %-26s | %-26s |\n", "Device port", d->dev_port);
47
-	printf("  | %-26s | %-26s |\n", "Model name", d->device.model_name);
48
-	printf("  | %-26s | %-26s |\n", "Unique ID", d->device.unique_id);
49
-	printf("  | %-26s | %-26s |\n", "Protocol", d->device.protocol_ver);
50
-	printf("  | %-26s | %-26u |\n", "Video inputs", d->inputs.num);
51
-	printf("  | %-26s | %-26u |\n", "Video outputs", d->outputs.num);
45
+	printf("  | %-26s | %-34s |\n", "Device address", d->dev_host);
46
+	printf("  | %-26s | %-34s |\n", "Device port", d->dev_port);
47
+	printf("  | %-26s | %-34s |\n", "Model name", d->device.model_name);
48
+	printf("  | %-26s | %-34s |\n", "Unique ID", d->device.unique_id);
49
+	printf("  | %-26s | %-34s |\n", "Protocol", d->device.protocol_ver);
50
+	printf("  | %-26s | %-34u |\n", "Video inputs", d->inputs.num);
51
+	printf("  | %-26s | %-34u |\n", "Video outputs", d->outputs.num);
52
 	if (d->serial.num)
52
 	if (d->serial.num)
53
-		printf("  | %-26s | %-26u |\n", "Serial ports", d->serial.num);
53
+		printf("  | %-26s | %-34u |\n", "Serial ports", d->serial.num);
54
 	if (d->device.num_video_processing_units)
54
 	if (d->device.num_video_processing_units)
55
-		printf("  | %-26s | %-26u |\n", "Video processing units", d->device.num_video_processing_units);
55
+		printf("  | %-26s | %-34u |\n", "Video processing units", d->device.num_video_processing_units);
56
 	if (d->mon_outputs.num)
56
 	if (d->mon_outputs.num)
57
-		printf("  | %-26s | %-26u |\n", "Video monitoring outputs", d->mon_outputs.num);
57
+		printf("  | %-26s | %-34u |\n", "Video monitoring outputs", d->mon_outputs.num);
58
 	printf_line(len);
58
 	printf_line(len);
59
 	printf("\n");
59
 	printf("\n");
60
 }
60
 }
61
 
61
 
62
 void print_device_video_inputs(struct videohub_data *d) {
62
 void print_device_video_inputs(struct videohub_data *d) {
63
-	unsigned int i, r, len = 68;
63
+	unsigned int i, r, len = 70;
64
 	if (!d->inputs.num)
64
 	if (!d->inputs.num)
65
 		return;
65
 		return;
66
 	printf("Video inputs\n");
66
 	printf("Video inputs\n");
67
 	printf_line(len);
67
 	printf_line(len);
68
-	printf("  | ## | %-24s | n | %-24s | s |\n", "Video input name", "Routed to output");
68
+	printf("  | ### | %-24s | nn | %-24s | s |\n", "Video input name", "Routed to output");
69
 	printf_line(len);
69
 	printf_line(len);
70
 	for(i = 0; i < d->inputs.num; i++) {
70
 	for(i = 0; i < d->inputs.num; i++) {
71
 		unsigned int num_outputs = 0, routed_to = 0;
71
 		unsigned int num_outputs = 0, routed_to = 0;
76
 					routed_to = r; // The first output
76
 					routed_to = r; // The first output
77
 			}
77
 			}
78
 		}
78
 		}
79
-		printf("  | %2d | %-24s | %d | ", i + 1, d->inputs.port[i].name,
79
+		printf("  | %3d | %-24s | %2d | ", i + 1, d->inputs.port[i].name,
80
 			 num_outputs);
80
 			 num_outputs);
81
 		if (num_outputs == 0) {
81
 		if (num_outputs == 0) {
82
 			printf("%-24s | %c |\n", "-", format_status(d->inputs.port[i].status));
82
 			printf("%-24s | %c |\n", "-", format_status(d->inputs.port[i].status));
92
 						first_skipped = true;
92
 						first_skipped = true;
93
 						continue;
93
 						continue;
94
 					}
94
 					}
95
-					printf("  | %2s | %-24s | %s | %-24s | %c |\n",
95
+					printf("  | %3s | %-24s | %2s | %-24s | %c |\n",
96
 						" ", " ", " ", d->outputs.port[r].name, ' ');
96
 						" ", " ", " ", d->outputs.port[r].name, ' ');
97
 				}
97
 				}
98
 			}
98
 			}
112
 }
112
 }
113
 
113
 
114
 void print_device_video_outputs(struct videohub_data *d) {
114
 void print_device_video_outputs(struct videohub_data *d) {
115
-	unsigned int i, len = 68;
115
+	unsigned int i, len = 69;
116
 	if (!d->outputs.num)
116
 	if (!d->outputs.num)
117
 		return;
117
 		return;
118
 	printf("Video outputs\n");
118
 	printf("Video outputs\n");
119
 	printf_line(len);
119
 	printf_line(len);
120
-	printf("  | ## | x | %-24s | %-24s | s |\n", "Video output name", "Connected video input");
120
+	printf("  | ### | x | %-24s | %-24s | s |\n", "Video output name", "Connected video input");
121
 	printf_line(len);
121
 	printf_line(len);
122
 	for(i = 0; i < d->outputs.num; i++) {
122
 	for(i = 0; i < d->outputs.num; i++) {
123
-		printf("  | %2d | %c | %-24s | %-24s | %c |\n",
123
+		printf("  | %3d | %c | %-24s | %-24s | %c |\n",
124
 			i + 1,
124
 			i + 1,
125
 			port_lock_symbol(d->outputs.port[i].lock),
125
 			port_lock_symbol(d->outputs.port[i].lock),
126
 			d->outputs.port[i].name,
126
 			d->outputs.port[i].name,
133
 }
133
 }
134
 
134
 
135
 void print_device_monitoring_outputs(struct videohub_data *d) {
135
 void print_device_monitoring_outputs(struct videohub_data *d) {
136
-	unsigned int i, len = 64;
136
+	unsigned int i, len = 65;
137
 	if (!d->mon_outputs.num)
137
 	if (!d->mon_outputs.num)
138
 		return;
138
 		return;
139
 	printf("Monitoring outputs\n");
139
 	printf("Monitoring outputs\n");
140
 	printf_line(len);
140
 	printf_line(len);
141
-	printf("  | ## | x | %-24s | %-24s |\n", "Monitoring output name", "Connected video input");
141
+	printf("  | ### | x | %-24s | %-24s |\n", "Monitoring output name", "Connected video input");
142
 	printf_line(len);
142
 	printf_line(len);
143
 	for(i = 0; i < d->mon_outputs.num; i++) {
143
 	for(i = 0; i < d->mon_outputs.num; i++) {
144
-		printf("  | %2d | %c | %-24s | %-24s |\n",
144
+		printf("  | %3d | %c | %-24s | %-24s |\n",
145
 			i + 1,
145
 			i + 1,
146
 			port_lock_symbol(d->mon_outputs.port[i].lock),
146
 			port_lock_symbol(d->mon_outputs.port[i].lock),
147
 			d->mon_outputs.port[i].name,
147
 			d->mon_outputs.port[i].name,
162
 }
162
 }
163
 
163
 
164
 void print_device_serial_ports(struct videohub_data *d) {
164
 void print_device_serial_ports(struct videohub_data *d) {
165
-	unsigned int i, len = 63;
165
+	unsigned int i, len = 64;
166
 	if (!d->serial.num)
166
 	if (!d->serial.num)
167
 		return;
167
 		return;
168
 	printf("Serial ports\n");
168
 	printf("Serial ports\n");
169
 	printf_line(len);
169
 	printf_line(len);
170
-	printf("  | ## | x | Dir  | %-18s | %-18s | s |\n", "Serial port", "Connected serial");
170
+	printf("  | ### | x | Dir  | %-18s | %-18s | s |\n", "Serial port", "Connected serial");
171
 	printf_line(len);
171
 	printf_line(len);
172
 	for(i = 0; i < d->serial.num; i++) {
172
 	for(i = 0; i < d->serial.num; i++) {
173
-		printf("  | %2d | %c | %4s | %-18s | %-18s | %c |\n",
173
+		printf("  | %3d | %c | %4s | %-18s | %-18s | %c |\n",
174
 			i + 1,
174
 			i + 1,
175
 			port_lock_symbol(d->serial.port[i].lock),
175
 			port_lock_symbol(d->serial.port[i].lock),
176
 			dir2opt(d->serial.port[i].direction),
176
 			dir2opt(d->serial.port[i].direction),
191
 	for(i = 0; i < s_port->num; i++) {
191
 	for(i = 0; i < s_port->num; i++) {
192
 		switch (v->type) {
192
 		switch (v->type) {
193
 		case PARSE_LABEL:
193
 		case PARSE_LABEL:
194
-			printf("  --%s-name %2d \"%s\" \\\n", p, i + 1, s_port->port[i].name);
194
+			printf("  --%s-name %3d \"%s\" \\\n", p, i + 1, s_port->port[i].name);
195
 			break;
195
 			break;
196
 		case PARSE_ROUTE:
196
 		case PARSE_ROUTE:
197
 			if (s_port->port[i].routed_to == NO_PORT)
197
 			if (s_port->port[i].routed_to == NO_PORT)
198
 				continue;
198
 				continue;
199
-			printf("  --%s-input %2d %2d \\\n", p, i + 1, s_port->port[i].routed_to + 1);
199
+			printf("  --%s-input %3d %3d \\\n", p, i + 1, s_port->port[i].routed_to + 1);
200
 			break;
200
 			break;
201
 		case PARSE_LOCK:
201
 		case PARSE_LOCK:
202
 			last = i + 1 < s_port->num;
202
 			last = i + 1 < s_port->num;
203
 			if (s_port->port[i].lock != PORT_UNLOCKED) {
203
 			if (s_port->port[i].lock != PORT_UNLOCKED) {
204
-				printf("  --%s-unlock %2d --%s-lock %2d%s\n",
204
+				printf("  --%s-unlock %3d --%s-lock %3d%s\n",
205
 					p, i + 1, p, i + 1, last ? " \\" : "");
205
 					p, i + 1, p, i + 1, last ? " \\" : "");
206
 			} else {
206
 			} else {
207
-				printf("  --%s-unlock %2d%s\n", p, i + 1, last ? " \\" : "");
207
+				printf("  --%s-unlock %3d%s\n", p, i + 1, last ? " \\" : "");
208
 			}
208
 			}
209
 			break;
209
 			break;
210
 		case PARSE_DIR:
210
 		case PARSE_DIR:
211
-			printf("  --%s-dir %2d %s \\\n", p, i + 1, dir2opt(s_port->port[i].direction));
211
+			printf("  --%s-dir %3d %s \\\n", p, i + 1, dir2opt(s_port->port[i].direction));
212
 			break;
212
 			break;
213
 		default: break;
213
 		default: break;
214
 		}
214
 		}

+ 211
- 0
test/input-17.txt View File

1
+PROTOCOL PREAMBLE:
2
+Version: 2.4
3
+
4
+VIDEOHUB DEVICE:
5
+Device present: true
6
+Model name: Blackmagic Workgroup Videohub
7
+Friendly name: SDI router on the 5th floor
8
+Unique ID: 465647757584
9
+Video inputs: 16
10
+Video processing units: 16
11
+Video outputs: 32
12
+Video monitoring outputs: 8
13
+Serial ports: 8
14
+Debug mode: true
15
+Debug mode: yes
16
+Power: both
17
+
18
+INPUT LABELS:
19
+0 Windows 1
20
+1 Windows 2
21
+2 Windows 3
22
+3 Windows 4 HD
23
+4 Input 5
24
+5 Input 6
25
+6 Input 7
26
+7 Input 8
27
+8 Input 9
28
+9 Input 10
29
+10 Input 11
30
+11 DPlay1
31
+12 DPlay2
32
+13 Input 14
33
+14 Input 15
34
+15 Loopback
35
+
36
+ALARM STATUS:
37
+0 Error
38
+
39
+END PRELUDE:
40
+
41
+ENGINEERING:
42
+0 Hack
43
+1 Hack
44
+
45
+OUTPUT LABELS:
46
+0 Enc1 1
47
+1 Enc1 2
48
+2 Enc1 3
49
+3 Enc1 4
50
+4 Output 5
51
+5 Output 6
52
+6 Output 7
53
+7 Output 8
54
+8 Enc2 1
55
+9 Output 10
56
+10 Output 11
57
+11 Denc
58
+12 Output 13
59
+13 Output 14
60
+14 Output 15
61
+15 Loopback
62
+
63
+VIDEO OUTPUT LOCKS:
64
+0 L
65
+1 L
66
+2 L
67
+3 L
68
+4 U
69
+5 U
70
+6 U
71
+7 U
72
+8 L
73
+9 U
74
+10 U
75
+11 L
76
+12 O
77
+13 U
78
+14 U
79
+15 O
80
+
81
+VIDEO OUTPUT ROUTING:
82
+0 2
83
+1 1
84
+2 0
85
+3 0
86
+4 4
87
+5 5
88
+6 6
89
+7 3
90
+8 3
91
+9 9
92
+10 10
93
+11 12
94
+12 11
95
+13 13
96
+14 14
97
+15 15
98
+
99
+VIDEO INPUT STATUS:
100
+0 BNC
101
+1 BNC
102
+2 BNC
103
+3 BNC
104
+4 Optical
105
+5 Optical
106
+6 Optical
107
+7 Optical
108
+13 None
109
+14 None
110
+
111
+VIDEO OUTPUT STATUS:
112
+4 None
113
+5 None
114
+6 None
115
+8 BNC
116
+9 BNC
117
+10 BNC
118
+11 BNC
119
+12 Optical
120
+13 Optical
121
+14 Optical
122
+15 Optical
123
+
124
+MONITORING OUTPUT LABELS:
125
+0 Monitor 1
126
+1 Monitor 2
127
+2 Monitor 3
128
+3 Monitor 4
129
+
130
+VIDEO MONITORING OUTPUT ROUTING:
131
+0 0
132
+1 1
133
+2 2
134
+3 3
135
+
136
+MONITORING OUTPUT LOCKS:
137
+0 U
138
+1 O
139
+2 L
140
+3 U
141
+
142
+SERIAL PORT LABELS:
143
+0 Serial Ctrl 1
144
+1 Serial Ctrl 2
145
+2 Deck 3
146
+3 Deck 4
147
+4 Serial 5
148
+5 Serial 6
149
+6 Serial 7
150
+7 Serial 8
151
+
152
+SERIAL PORT ROUTING:
153
+0 2
154
+1 3
155
+
156
+SERIAL PORT LOCKS:
157
+0 O
158
+1 U
159
+2 L
160
+3 U
161
+
162
+SERIAL PORT STATUS:
163
+0 RS422
164
+1 RS422
165
+2 RS422
166
+3 RS422
167
+6 None
168
+7 None
169
+
170
+SERIAL PORT DIRECTIONS:
171
+0 control
172
+1 auto
173
+2 slave
174
+3 auto
175
+4 auto
176
+5 auto
177
+6 control
178
+7 slave
179
+
180
+FRAME LABELS:
181
+0 gf-Frame 1
182
+1 Frame 2
183
+2 gf-Frame 3
184
+3 Frame 4
185
+4 gf-Frame 5
186
+5 Frame 6
187
+6 gf-Frame 7
188
+7 Frame 8
189
+
190
+FRAME BUFFER ROUTING:
191
+0 Frame 4
192
+1 gf-Frame 3
193
+2 Frame 6
194
+
195
+FRAME BUFFER LOCKS:
196
+0 U
197
+
198
+PROCESSING UNIT ROUTING:
199
+0 Output 15
200
+
201
+PROCESSING UNIT LOCKS:
202
+0 U
203
+
204
+ALARM STATUS:
205
+0 Error
206
+
207
+END PRELUDE:
208
+
209
+ENGINEERING:
210
+0 Debug
211
+

+ 3
- 0
test/run View File

129
 
129
 
130
 videohubctrl --test-input test/input-00.txt --list-serial $@ &> test/test-16.out
130
 videohubctrl --test-input test/input-00.txt --list-serial $@ &> test/test-16.out
131
 check test/test-16 "Test --list-serial option output"
131
 check test/test-16 "Test --list-serial option output"
132
+
133
+videohubctrl --test-input test/input-17.txt --info $@ &> test/test-17.out
134
+check test/test-17 "Test wider range of input commands"

+ 73
- 73
test/test-01.ok View File

1
 Device info
1
 Device info
2
-  -----------------------------------------------------------
3
-  | Device address             | sdi-matrix                 |
4
-  | Device port                | 9990                       |
5
-  | Model name                 | Blackmagic Micro Videohub  |
6
-  | Unique ID                  | 7c2e0d021714               |
7
-  | Protocol                   | 2.4                        |
8
-  | Video inputs               | 16                         |
9
-  | Video outputs              | 16                         |
10
-  | Serial ports               | 8                          |
11
-  | Video monitoring outputs   | 4                          |
12
-  -----------------------------------------------------------
2
+  -------------------------------------------------------------------
3
+  | Device address             | sdi-matrix                         |
4
+  | Device port                | 9990                               |
5
+  | Model name                 | Blackmagic Micro Videohub          |
6
+  | Unique ID                  | 7c2e0d021714                       |
7
+  | Protocol                   | 2.4                                |
8
+  | Video inputs               | 16                                 |
9
+  | Video outputs              | 16                                 |
10
+  | Serial ports               | 8                                  |
11
+  | Video monitoring outputs   | 4                                  |
12
+  -------------------------------------------------------------------
13
 
13
 
14
 Video inputs
14
 Video inputs
15
-  --------------------------------------------------------------------
16
-  | ## | Video input name         | n | Routed to output         | s |
17
-  --------------------------------------------------------------------
18
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
19
-  |    |                          |   | Enc1 4                   |   |
20
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
21
-  |  3 | Windows 3                | 1 | Enc1 1                   | B |
22
-  |  4 | Windows 4 HD             | 2 | Output 8                 | B |
23
-  |    |                          |   | Enc2 1                   |   |
24
-  |  5 | Input 5                  | 1 | Output 5                 | o |
25
-  |  6 | Input 6                  | 1 | Output 6                 | o |
26
-  |  7 | Input 7                  | 1 | Output 7                 | o |
27
-  |  8 | Input 8                  | 0 | -                        | o |
28
-  |  9 | Input 9                  | 0 | -                        |   |
29
-  | 10 | Input 10                 | 1 | Output 10                |   |
30
-  | 11 | Input 11                 | 1 | Output 11                |   |
31
-  | 12 | DPlay1                   | 1 | Output 13                |   |
32
-  | 13 | DPlay2                   | 1 | Denc                     |   |
33
-  | 14 | Input 14                 | 1 | Output 14                | x |
34
-  | 15 | Input 15                 | 1 | Output 15                | x |
35
-  | 16 | Loopback                 | 1 | Loopback                 |   |
36
-  --------------------------------------------------------------------
15
+  ----------------------------------------------------------------------
16
+  | ### | Video input name         | nn | Routed to output         | s |
17
+  ----------------------------------------------------------------------
18
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
19
+  |     |                          |    | Enc1 4                   |   |
20
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
21
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
22
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
23
+  |     |                          |    | Enc2 1                   |   |
24
+  |   5 | Input 5                  |  1 | Output 5                 | o |
25
+  |   6 | Input 6                  |  1 | Output 6                 | o |
26
+  |   7 | Input 7                  |  1 | Output 7                 | o |
27
+  |   8 | Input 8                  |  0 | -                        | o |
28
+  |   9 | Input 9                  |  0 | -                        |   |
29
+  |  10 | Input 10                 |  1 | Output 10                |   |
30
+  |  11 | Input 11                 |  1 | Output 11                |   |
31
+  |  12 | DPlay1                   |  1 | Output 13                |   |
32
+  |  13 | DPlay2                   |  1 | Denc                     |   |
33
+  |  14 | Input 14                 |  1 | Output 14                | x |
34
+  |  15 | Input 15                 |  1 | Output 15                | x |
35
+  |  16 | Loopback                 |  1 | Loopback                 |   |
36
+  ----------------------------------------------------------------------
37
 
37
 
38
 Video outputs
38
 Video outputs
39
-  --------------------------------------------------------------------
40
-  | ## | x | Video output name        | Connected video input    | s |
41
-  --------------------------------------------------------------------
42
-  |  1 | L | Enc1 1                   | Windows 3                |   |
43
-  |  2 | L | Enc1 2                   | Windows 2                |   |
44
-  |  3 | L | Enc1 3                   | Windows 1                |   |
45
-  |  4 | L | Enc1 4                   | Windows 1                |   |
46
-  |  5 |   | Output 5                 | Input 5                  | x |
47
-  |  6 |   | Output 6                 | Input 6                  | x |
48
-  |  7 |   | Output 7                 | Input 7                  | x |
49
-  |  8 |   | Output 8                 | Windows 4 HD             |   |
50
-  |  9 | L | Enc2 1                   | Windows 4 HD             | B |
51
-  | 10 |   | Output 10                | Input 10                 | B |
52
-  | 11 |   | Output 11                | Input 11                 | B |
53
-  | 12 | L | Denc                     | DPlay2                   | B |
54
-  | 13 | O | Output 13                | DPlay1                   | o |
55
-  | 14 |   | Output 14                | Input 14                 | o |
56
-  | 15 |   | Output 15                | Input 15                 | o |
57
-  | 16 | O | Loopback                 | Loopback                 | o |
58
-  --------------------------------------------------------------------
39
+  ---------------------------------------------------------------------
40
+  | ### | x | Video output name        | Connected video input    | s |
41
+  ---------------------------------------------------------------------
42
+  |   1 | L | Enc1 1                   | Windows 3                |   |
43
+  |   2 | L | Enc1 2                   | Windows 2                |   |
44
+  |   3 | L | Enc1 3                   | Windows 1                |   |
45
+  |   4 | L | Enc1 4                   | Windows 1                |   |
46
+  |   5 |   | Output 5                 | Input 5                  | x |
47
+  |   6 |   | Output 6                 | Input 6                  | x |
48
+  |   7 |   | Output 7                 | Input 7                  | x |
49
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
50
+  |   9 | L | Enc2 1                   | Windows 4 HD             | B |
51
+  |  10 |   | Output 10                | Input 10                 | B |
52
+  |  11 |   | Output 11                | Input 11                 | B |
53
+  |  12 | L | Denc                     | DPlay2                   | B |
54
+  |  13 | O | Output 13                | DPlay1                   | o |
55
+  |  14 |   | Output 14                | Input 14                 | o |
56
+  |  15 |   | Output 15                | Input 15                 | o |
57
+  |  16 | O | Loopback                 | Loopback                 | o |
58
+  ---------------------------------------------------------------------
59
 
59
 
60
 Monitoring outputs
60
 Monitoring outputs
61
-  ----------------------------------------------------------------
62
-  | ## | x | Monitoring output name   | Connected video input    |
63
-  ----------------------------------------------------------------
64
-  |  1 |   | Monitor 1                | Windows 1                |
65
-  |  2 | O | Monitor 2                | Windows 2                |
66
-  |  3 | L | Monitor 3                | Windows 3                |
67
-  |  4 |   | Monitor 4                | Windows 4 HD             |
68
-  ----------------------------------------------------------------
61
+  -----------------------------------------------------------------
62
+  | ### | x | Monitoring output name   | Connected video input    |
63
+  -----------------------------------------------------------------
64
+  |   1 |   | Monitor 1                | Windows 1                |
65
+  |   2 | O | Monitor 2                | Windows 2                |
66
+  |   3 | L | Monitor 3                | Windows 3                |
67
+  |   4 |   | Monitor 4                | Windows 4 HD             |
68
+  -----------------------------------------------------------------
69
 
69
 
70
 Serial ports
70
 Serial ports
71
-  ---------------------------------------------------------------
72
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
73
-  ---------------------------------------------------------------
74
-  |  1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
75
-  |  2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
76
-  |  3 | L |  out | Deck 3             |                    | 4 |
77
-  |  4 |   | auto | Deck 4             |                    | 4 |
78
-  |  5 |   | auto | Serial 5           |                    |   |
79
-  |  6 |   | auto | Serial 6           |                    |   |
80
-  |  7 |   |   in | Serial 7           |                    | x |
81
-  |  8 |   |  out | Serial 8           |                    | x |
82
-  ---------------------------------------------------------------
71
+  ----------------------------------------------------------------
72
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
73
+  ----------------------------------------------------------------
74
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
75
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
76
+  |   3 | L |  out | Deck 3             |                    | 4 |
77
+  |   4 |   | auto | Deck 4             |                    | 4 |
78
+  |   5 |   | auto | Serial 5           |                    |   |
79
+  |   6 |   | auto | Serial 6           |                    |   |
80
+  |   7 |   |   in | Serial 7           |                    | x |
81
+  |   8 |   |  out | Serial 8           |                    | x |
82
+  ----------------------------------------------------------------
83
 
83
 

+ 102
- 102
test/test-02.ok View File

1
 videohubctrl \
1
 videohubctrl \
2
-  --vi-name  1 "Windows 1" \
3
-  --vi-name  2 "Windows 2" \
4
-  --vi-name  3 "Windows 3" \
5
-  --vi-name  4 "Windows 4 HD" \
6
-  --vi-name  5 "Input 5" \
7
-  --vi-name  6 "Input 6" \
8
-  --vi-name  7 "Input 7" \
9
-  --vi-name  8 "Input 8" \
10
-  --vi-name  9 "Input 9" \
11
-  --vi-name 10 "Input 10" \
12
-  --vi-name 11 "Input 11" \
13
-  --vi-name 12 "DPlay1" \
14
-  --vi-name 13 "DPlay2" \
15
-  --vi-name 14 "Input 14" \
16
-  --vi-name 15 "Input 15" \
17
-  --vi-name 16 "Loopback" \
18
-  --vo-name  1 "Enc1 1" \
19
-  --vo-name  2 "Enc1 2" \
20
-  --vo-name  3 "Enc1 3" \
21
-  --vo-name  4 "Enc1 4" \
22
-  --vo-name  5 "Output 5" \
23
-  --vo-name  6 "Output 6" \
24
-  --vo-name  7 "Output 7" \
25
-  --vo-name  8 "Output 8" \
26
-  --vo-name  9 "Enc2 1" \
27
-  --vo-name 10 "Output 10" \
28
-  --vo-name 11 "Output 11" \
29
-  --vo-name 12 "Denc" \
30
-  --vo-name 13 "Output 13" \
31
-  --vo-name 14 "Output 14" \
32
-  --vo-name 15 "Output 15" \
33
-  --vo-name 16 "Loopback" \
34
-  --mo-name  1 "Monitor 1" \
35
-  --mo-name  2 "Monitor 2" \
36
-  --mo-name  3 "Monitor 3" \
37
-  --mo-name  4 "Monitor 4" \
38
-  --se-name  1 "Serial Ctrl 1" \
39
-  --se-name  2 "Serial Ctrl 2" \
40
-  --se-name  3 "Deck 3" \
41
-  --se-name  4 "Deck 4" \
42
-  --se-name  5 "Serial 5" \
43
-  --se-name  6 "Serial 6" \
44
-  --se-name  7 "Serial 7" \
45
-  --se-name  8 "Serial 8" \
46
-  --vo-input  1  3 \
47
-  --vo-input  2  2 \
48
-  --vo-input  3  1 \
49
-  --vo-input  4  1 \
50
-  --vo-input  5  5 \
51
-  --vo-input  6  6 \
52
-  --vo-input  7  7 \
53
-  --vo-input  8  4 \
54
-  --vo-input  9  4 \
55
-  --vo-input 10 10 \
56
-  --vo-input 11 11 \
57
-  --vo-input 12 13 \
58
-  --vo-input 13 12 \
59
-  --vo-input 14 14 \
60
-  --vo-input 15 15 \
61
-  --vo-input 16 16 \
62
-  --mo-input  1  1 \
63
-  --mo-input  2  2 \
64
-  --mo-input  3  3 \
65
-  --mo-input  4  4 \
66
-  --se-input  1  3 \
67
-  --se-input  2  4 \
68
-  --se-dir  1 in \
69
-  --se-dir  2 auto \
70
-  --se-dir  3 out \
71
-  --se-dir  4 auto \
72
-  --se-dir  5 auto \
73
-  --se-dir  6 auto \
74
-  --se-dir  7 in \
75
-  --se-dir  8 out \
76
-  --vo-unlock  1 --vo-lock  1 \
77
-  --vo-unlock  2 --vo-lock  2 \
78
-  --vo-unlock  3 --vo-lock  3 \
79
-  --vo-unlock  4 --vo-lock  4 \
80
-  --vo-unlock  5 \
81
-  --vo-unlock  6 \
82
-  --vo-unlock  7 \
83
-  --vo-unlock  8 \
84
-  --vo-unlock  9 --vo-lock  9 \
85
-  --vo-unlock 10 \
86
-  --vo-unlock 11 \
87
-  --vo-unlock 12 --vo-lock 12 \
88
-  --vo-unlock 13 --vo-lock 13 \
89
-  --vo-unlock 14 \
90
-  --vo-unlock 15 \
91
-  --vo-unlock 16 --vo-lock 16
92
-  --mo-unlock  1 \
93
-  --mo-unlock  2 --mo-lock  2 \
94
-  --mo-unlock  3 --mo-lock  3 \
95
-  --mo-unlock  4
96
-  --se-unlock  1 --se-lock  1 \
97
-  --se-unlock  2 \
98
-  --se-unlock  3 --se-lock  3 \
99
-  --se-unlock  4 \
100
-  --se-unlock  5 \
101
-  --se-unlock  6 \
102
-  --se-unlock  7 \
103
-  --se-unlock  8
2
+  --vi-name   1 "Windows 1" \
3
+  --vi-name   2 "Windows 2" \
4
+  --vi-name   3 "Windows 3" \
5
+  --vi-name   4 "Windows 4 HD" \
6
+  --vi-name   5 "Input 5" \
7
+  --vi-name   6 "Input 6" \
8
+  --vi-name   7 "Input 7" \
9
+  --vi-name   8 "Input 8" \
10
+  --vi-name   9 "Input 9" \
11
+  --vi-name  10 "Input 10" \
12
+  --vi-name  11 "Input 11" \
13
+  --vi-name  12 "DPlay1" \
14
+  --vi-name  13 "DPlay2" \
15
+  --vi-name  14 "Input 14" \
16
+  --vi-name  15 "Input 15" \
17
+  --vi-name  16 "Loopback" \
18
+  --vo-name   1 "Enc1 1" \
19
+  --vo-name   2 "Enc1 2" \
20
+  --vo-name   3 "Enc1 3" \
21
+  --vo-name   4 "Enc1 4" \
22
+  --vo-name   5 "Output 5" \
23
+  --vo-name   6 "Output 6" \
24
+  --vo-name   7 "Output 7" \
25
+  --vo-name   8 "Output 8" \
26
+  --vo-name   9 "Enc2 1" \
27
+  --vo-name  10 "Output 10" \
28
+  --vo-name  11 "Output 11" \
29
+  --vo-name  12 "Denc" \
30
+  --vo-name  13 "Output 13" \
31
+  --vo-name  14 "Output 14" \
32
+  --vo-name  15 "Output 15" \
33
+  --vo-name  16 "Loopback" \
34
+  --mo-name   1 "Monitor 1" \
35
+  --mo-name   2 "Monitor 2" \
36
+  --mo-name   3 "Monitor 3" \
37
+  --mo-name   4 "Monitor 4" \
38
+  --se-name   1 "Serial Ctrl 1" \
39
+  --se-name   2 "Serial Ctrl 2" \
40
+  --se-name   3 "Deck 3" \
41
+  --se-name   4 "Deck 4" \
42
+  --se-name   5 "Serial 5" \
43
+  --se-name   6 "Serial 6" \
44
+  --se-name   7 "Serial 7" \
45
+  --se-name   8 "Serial 8" \
46
+  --vo-input   1   3 \
47
+  --vo-input   2   2 \
48
+  --vo-input   3   1 \
49
+  --vo-input   4   1 \
50
+  --vo-input   5   5 \
51
+  --vo-input   6   6 \
52
+  --vo-input   7   7 \
53
+  --vo-input   8   4 \
54
+  --vo-input   9   4 \
55
+  --vo-input  10  10 \
56
+  --vo-input  11  11 \
57
+  --vo-input  12  13 \
58
+  --vo-input  13  12 \
59
+  --vo-input  14  14 \
60
+  --vo-input  15  15 \
61
+  --vo-input  16  16 \
62
+  --mo-input   1   1 \
63
+  --mo-input   2   2 \
64
+  --mo-input   3   3 \
65
+  --mo-input   4   4 \
66
+  --se-input   1   3 \
67
+  --se-input   2   4 \
68
+  --se-dir   1 in \
69
+  --se-dir   2 auto \
70
+  --se-dir   3 out \
71
+  --se-dir   4 auto \
72
+  --se-dir   5 auto \
73
+  --se-dir   6 auto \
74
+  --se-dir   7 in \
75
+  --se-dir   8 out \
76
+  --vo-unlock   1 --vo-lock   1 \
77
+  --vo-unlock   2 --vo-lock   2 \
78
+  --vo-unlock   3 --vo-lock   3 \
79
+  --vo-unlock   4 --vo-lock   4 \
80
+  --vo-unlock   5 \
81
+  --vo-unlock   6 \
82
+  --vo-unlock   7 \
83
+  --vo-unlock   8 \
84
+  --vo-unlock   9 --vo-lock   9 \
85
+  --vo-unlock  10 \
86
+  --vo-unlock  11 \
87
+  --vo-unlock  12 --vo-lock  12 \
88
+  --vo-unlock  13 --vo-lock  13 \
89
+  --vo-unlock  14 \
90
+  --vo-unlock  15 \
91
+  --vo-unlock  16 --vo-lock  16
92
+  --mo-unlock   1 \
93
+  --mo-unlock   2 --mo-lock   2 \
94
+  --mo-unlock   3 --mo-lock   3 \
95
+  --mo-unlock   4
96
+  --se-unlock   1 --se-lock   1 \
97
+  --se-unlock   2 \
98
+  --se-unlock   3 --se-lock   3 \
99
+  --se-unlock   4 \
100
+  --se-unlock   5 \
101
+  --se-unlock   6 \
102
+  --se-unlock   7 \
103
+  --se-unlock   8
104
 
104
 

+ 73
- 73
test/test-03.ok View File

113
 videohub: unlock serial 7 "Serial 7"
113
 videohub: unlock serial 7 "Serial 7"
114
 videohub: unlock serial 8 "Serial 8"
114
 videohub: unlock serial 8 "Serial 8"
115
 Device info
115
 Device info
116
-  -----------------------------------------------------------
117
-  | Device address             | sdi-matrix                 |
118
-  | Device port                | 9990                       |
119
-  | Model name                 | Blackmagic Micro Videohub  |
120
-  | Unique ID                  | 7c2e0d021714               |
121
-  | Protocol                   | 2.4                        |
122
-  | Video inputs               | 16                         |
123
-  | Video outputs              | 16                         |
124
-  | Serial ports               | 8                          |
125
-  | Video monitoring outputs   | 4                          |
126
-  -----------------------------------------------------------
116
+  -------------------------------------------------------------------
117
+  | Device address             | sdi-matrix                         |
118
+  | Device port                | 9990                               |
119
+  | Model name                 | Blackmagic Micro Videohub          |
120
+  | Unique ID                  | 7c2e0d021714                       |
121
+  | Protocol                   | 2.4                                |
122
+  | Video inputs               | 16                                 |
123
+  | Video outputs              | 16                                 |
124
+  | Serial ports               | 8                                  |
125
+  | Video monitoring outputs   | 4                                  |
126
+  -------------------------------------------------------------------
127
 
127
 
128
 Video inputs
128
 Video inputs
129
-  --------------------------------------------------------------------
130
-  | ## | Video input name         | n | Routed to output         | s |
131
-  --------------------------------------------------------------------
132
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
133
-  |    |                          |   | Enc1 4                   |   |
134
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
135
-  |  3 | Windows 3                | 1 | Enc1 1                   | B |
136
-  |  4 | Windows 4 HD             | 2 | Output 8                 | B |
137
-  |    |                          |   | Enc2 1                   |   |
138
-  |  5 | Input 5                  | 1 | Output 5                 | o |
139
-  |  6 | Input 6                  | 1 | Output 6                 | o |
140
-  |  7 | Input 7                  | 1 | Output 7                 | o |
141
-  |  8 | Input 8                  | 0 | -                        | o |
142
-  |  9 | Input 9                  | 0 | -                        |   |
143
-  | 10 | Input 10                 | 1 | Output 10                |   |
144
-  | 11 | Input 11                 | 1 | Output 11                |   |
145
-  | 12 | DPlay1                   | 1 | Output 13                |   |
146
-  | 13 | DPlay2                   | 1 | Denc                     |   |
147
-  | 14 | Input 14                 | 1 | Output 14                | x |
148
-  | 15 | Input 15                 | 1 | Output 15                | x |
149
-  | 16 | Loopback                 | 1 | Loopback                 |   |
150
-  --------------------------------------------------------------------
129
+  ----------------------------------------------------------------------
130
+  | ### | Video input name         | nn | Routed to output         | s |
131
+  ----------------------------------------------------------------------
132
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
133
+  |     |                          |    | Enc1 4                   |   |
134
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
135
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
136
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
137
+  |     |                          |    | Enc2 1                   |   |
138
+  |   5 | Input 5                  |  1 | Output 5                 | o |
139
+  |   6 | Input 6                  |  1 | Output 6                 | o |
140
+  |   7 | Input 7                  |  1 | Output 7                 | o |
141
+  |   8 | Input 8                  |  0 | -                        | o |
142
+  |   9 | Input 9                  |  0 | -                        |   |
143
+  |  10 | Input 10                 |  1 | Output 10                |   |
144
+  |  11 | Input 11                 |  1 | Output 11                |   |
145
+  |  12 | DPlay1                   |  1 | Output 13                |   |
146
+  |  13 | DPlay2                   |  1 | Denc                     |   |
147
+  |  14 | Input 14                 |  1 | Output 14                | x |
148
+  |  15 | Input 15                 |  1 | Output 15                | x |
149
+  |  16 | Loopback                 |  1 | Loopback                 |   |
150
+  ----------------------------------------------------------------------
151
 
151
 
152
 Video outputs
152
 Video outputs
153
-  --------------------------------------------------------------------
154
-  | ## | x | Video output name        | Connected video input    | s |
155
-  --------------------------------------------------------------------
156
-  |  1 | O | Enc1 1                   | Windows 3                |   |
157
-  |  2 | O | Enc1 2                   | Windows 2                |   |
158
-  |  3 | O | Enc1 3                   | Windows 1                |   |
159
-  |  4 | O | Enc1 4                   | Windows 1                |   |
160
-  |  5 |   | Output 5                 | Input 5                  | x |
161
-  |  6 |   | Output 6                 | Input 6                  | x |
162
-  |  7 |   | Output 7                 | Input 7                  | x |
163
-  |  8 |   | Output 8                 | Windows 4 HD             |   |
164
-  |  9 | O | Enc2 1                   | Windows 4 HD             | B |
165
-  | 10 |   | Output 10                | Input 10                 | B |
166
-  | 11 |   | Output 11                | Input 11                 | B |
167
-  | 12 | O | Denc                     | DPlay2                   | B |
168
-  | 13 | O | Output 13                | DPlay1                   | o |
169
-  | 14 |   | Output 14                | Input 14                 | o |
170
-  | 15 |   | Output 15                | Input 15                 | o |
171
-  | 16 | O | Loopback                 | Loopback                 | o |
172
-  --------------------------------------------------------------------
153
+  ---------------------------------------------------------------------
154
+  | ### | x | Video output name        | Connected video input    | s |
155
+  ---------------------------------------------------------------------
156
+  |   1 | O | Enc1 1                   | Windows 3                |   |
157
+  |   2 | O | Enc1 2                   | Windows 2                |   |
158
+  |   3 | O | Enc1 3                   | Windows 1                |   |
159
+  |   4 | O | Enc1 4                   | Windows 1                |   |
160
+  |   5 |   | Output 5                 | Input 5                  | x |
161
+  |   6 |   | Output 6                 | Input 6                  | x |
162
+  |   7 |   | Output 7                 | Input 7                  | x |
163
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
164
+  |   9 | O | Enc2 1                   | Windows 4 HD             | B |
165
+  |  10 |   | Output 10                | Input 10                 | B |
166
+  |  11 |   | Output 11                | Input 11                 | B |
167
+  |  12 | O | Denc                     | DPlay2                   | B |
168
+  |  13 | O | Output 13                | DPlay1                   | o |
169
+  |  14 |   | Output 14                | Input 14                 | o |
170
+  |  15 |   | Output 15                | Input 15                 | o |
171
+  |  16 | O | Loopback                 | Loopback                 | o |
172
+  ---------------------------------------------------------------------
173
 
173
 
174
 Monitoring outputs
174
 Monitoring outputs
175
-  ----------------------------------------------------------------
176
-  | ## | x | Monitoring output name   | Connected video input    |
177
-  ----------------------------------------------------------------
178
-  |  1 |   | Monitor 1                | Windows 1                |
179
-  |  2 | O | Monitor 2                | Windows 2                |
180
-  |  3 | O | Monitor 3                | Windows 3                |
181
-  |  4 |   | Monitor 4                | Windows 4 HD             |
182
-  ----------------------------------------------------------------
175
+  -----------------------------------------------------------------
176
+  | ### | x | Monitoring output name   | Connected video input    |
177
+  -----------------------------------------------------------------
178
+  |   1 |   | Monitor 1                | Windows 1                |
179
+  |   2 | O | Monitor 2                | Windows 2                |
180
+  |   3 | O | Monitor 3                | Windows 3                |
181
+  |   4 |   | Monitor 4                | Windows 4 HD             |
182
+  -----------------------------------------------------------------
183
 
183
 
184
 Serial ports
184
 Serial ports
185
-  ---------------------------------------------------------------
186
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
187
-  ---------------------------------------------------------------
188
-  |  1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
189
-  |  2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
190
-  |  3 | O |  out | Deck 3             |                    | 4 |
191
-  |  4 |   | auto | Deck 4             |                    | 4 |
192
-  |  5 |   | auto | Serial 5           |                    |   |
193
-  |  6 |   | auto | Serial 6           |                    |   |
194
-  |  7 |   |   in | Serial 7           |                    | x |
195
-  |  8 |   |  out | Serial 8           |                    | x |
196
-  ---------------------------------------------------------------
185
+  ----------------------------------------------------------------
186
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
187
+  ----------------------------------------------------------------
188
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
189
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
190
+  |   3 | O |  out | Deck 3             |                    | 4 |
191
+  |   4 |   | auto | Deck 4             |                    | 4 |
192
+  |   5 |   | auto | Serial 5           |                    |   |
193
+  |   6 |   | auto | Serial 6           |                    |   |
194
+  |   7 |   |   in | Serial 7           |                    | x |
195
+  |   8 |   |  out | Serial 8           |                    | x |
196
+  ----------------------------------------------------------------
197
 
197
 

+ 74
- 74
test/test-04.ok View File

30
 videohub: disconnect serial 4 "Deck 4"
30
 videohub: disconnect serial 4 "Deck 4"
31
 videohub: disconnect serial 6 "Serial 6"
31
 videohub: disconnect serial 6 "Serial 6"
32
 Device info
32
 Device info
33
-  -----------------------------------------------------------
34
-  | Device address             | sdi-matrix                 |
35
-  | Device port                | 9990                       |
36
-  | Model name                 | Blackmagic Micro Videohub  |
37
-  | Unique ID                  | 7c2e0d021714               |
38
-  | Protocol                   | 2.4                        |
39
-  | Video inputs               | 16                         |
40
-  | Video outputs              | 16                         |
41
-  | Serial ports               | 8                          |
42
-  | Video monitoring outputs   | 4                          |
43
-  -----------------------------------------------------------
33
+  -------------------------------------------------------------------
34
+  | Device address             | sdi-matrix                         |
35
+  | Device port                | 9990                               |
36
+  | Model name                 | Blackmagic Micro Videohub          |
37
+  | Unique ID                  | 7c2e0d021714                       |
38
+  | Protocol                   | 2.4                                |
39
+  | Video inputs               | 16                                 |
40
+  | Video outputs              | 16                                 |
41
+  | Serial ports               | 8                                  |
42
+  | Video monitoring outputs   | 4                                  |
43
+  -------------------------------------------------------------------
44
 
44
 
45
 Video inputs
45
 Video inputs
46
-  --------------------------------------------------------------------
47
-  | ## | Video input name         | n | Routed to output         | s |
48
-  --------------------------------------------------------------------
49
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
50
-  |    |                          |   | Enc1 4                   |   |
51
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
52
-  |  3 | Windows 3                | 2 | Encoder 1                | B |
53
-  |    |                          |   | Output 5                 |   |
54
-  |  4 | Windows 4 HighDef        | 2 | Output 8                 | B |
55
-  |    |                          |   | Enc2 1                   |   |
56
-  |  5 | In 5                     | 0 | -                        | o |
57
-  |  6 | Camera 6                 | 1 | Output 6                 | o |
58
-  |  7 | Input 7                  | 1 | Output 7                 | o |
59
-  |  8 | Input 8                  | 0 | -                        | o |
60
-  |  9 | Input 9                  | 0 | -                        |   |
61
-  | 10 | Input 10                 | 1 | Output 10                |   |
62
-  | 11 | Input 11                 | 1 | Output 11                |   |
63
-  | 12 | DPlay1                   | 1 | Output 13                |   |
64
-  | 13 | DPlay2                   | 1 | Denc                     |   |
65
-  | 14 | Input 14                 | 1 | Output 14                | x |
66
-  | 15 | Input 15                 | 1 | Output 15                | x |
67
-  | 16 | Loopback                 | 1 | Dev-Lo                   |   |
68
-  --------------------------------------------------------------------
46
+  ----------------------------------------------------------------------
47
+  | ### | Video input name         | nn | Routed to output         | s |
48
+  ----------------------------------------------------------------------
49
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
50
+  |     |                          |    | Enc1 4                   |   |
51
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
52
+  |   3 | Windows 3                |  2 | Encoder 1                | B |
53
+  |     |                          |    | Output 5                 |   |
54
+  |   4 | Windows 4 HighDef        |  2 | Output 8                 | B |
55
+  |     |                          |    | Enc2 1                   |   |
56
+  |   5 | In 5                     |  0 | -                        | o |
57
+  |   6 | Camera 6                 |  1 | Output 6                 | o |
58
+  |   7 | Input 7                  |  1 | Output 7                 | o |
59
+  |   8 | Input 8                  |  0 | -                        | o |
60
+  |   9 | Input 9                  |  0 | -                        |   |
61
+  |  10 | Input 10                 |  1 | Output 10                |   |
62
+  |  11 | Input 11                 |  1 | Output 11                |   |
63
+  |  12 | DPlay1                   |  1 | Output 13                |   |
64
+  |  13 | DPlay2                   |  1 | Denc                     |   |
65
+  |  14 | Input 14                 |  1 | Output 14                | x |
66
+  |  15 | Input 15                 |  1 | Output 15                | x |
67
+  |  16 | Loopback                 |  1 | Dev-Lo                   |   |
68
+  ----------------------------------------------------------------------
69
 
69
 
70
 Video outputs
70
 Video outputs
71
-  --------------------------------------------------------------------
72
-  | ## | x | Video output name        | Connected video input    | s |
73
-  --------------------------------------------------------------------
74
-  |  1 | L | Encoder 1                | Windows 3                |   |
75
-  |  2 | L | Enc1 2                   | Windows 2                |   |
76
-  |  3 | L | Enc1 3                   | Windows 1                |   |
77
-  |  4 | L | Enc1 4                   | Windows 1                |   |
78
-  |  5 |   | Output 5                 | Windows 3                | x |
79
-  |  6 | O | Output 6                 | Camera 6                 | x |
80
-  |  7 |   | Output 7                 | Input 7                  | x |
81
-  |  8 |   | Output 8                 | Windows 4 HighDef        |   |
82
-  |  9 |   | Enc2 1                   | Windows 4 HighDef        | B |
83
-  | 10 |   | Output 10                | Input 10                 | B |
84
-  | 11 |   | Output 11                | Input 11                 | B |
85
-  | 12 |   | Denc                     | DPlay2                   | B |
86
-  | 13 | O | Output 13                | DPlay1                   | o |
87
-  | 14 |   | Output 14                | Input 14                 | o |
88
-  | 15 | O | Output 15                | Input 15                 | o |
89
-  | 16 | O | Dev-Lo                   | Loopback                 | o |
90
-  --------------------------------------------------------------------
71
+  ---------------------------------------------------------------------
72
+  | ### | x | Video output name        | Connected video input    | s |
73
+  ---------------------------------------------------------------------
74
+  |   1 | L | Encoder 1                | Windows 3                |   |
75
+  |   2 | L | Enc1 2                   | Windows 2                |   |
76
+  |   3 | L | Enc1 3                   | Windows 1                |   |
77
+  |   4 | L | Enc1 4                   | Windows 1                |   |
78
+  |   5 |   | Output 5                 | Windows 3                | x |
79
+  |   6 | O | Output 6                 | Camera 6                 | x |
80
+  |   7 |   | Output 7                 | Input 7                  | x |
81
+  |   8 |   | Output 8                 | Windows 4 HighDef        |   |
82
+  |   9 |   | Enc2 1                   | Windows 4 HighDef        | B |
83
+  |  10 |   | Output 10                | Input 10                 | B |
84
+  |  11 |   | Output 11                | Input 11                 | B |
85
+  |  12 |   | Denc                     | DPlay2                   | B |
86
+  |  13 | O | Output 13                | DPlay1                   | o |
87
+  |  14 |   | Output 14                | Input 14                 | o |
88
+  |  15 | O | Output 15                | Input 15                 | o |
89
+  |  16 | O | Dev-Lo                   | Loopback                 | o |
90
+  ---------------------------------------------------------------------
91
 
91
 
92
 Monitoring outputs
92
 Monitoring outputs
93
-  ----------------------------------------------------------------
94
-  | ## | x | Monitoring output name   | Connected video input    |
95
-  ----------------------------------------------------------------
96
-  |  1 |   | PC 1 Mon                 | Windows 1                |
97
-  |  2 |   | Monitor 2                | Windows 2                |
98
-  |  3 | L | Loopback                 | Loopback                 |
99
-  |  4 | O | Decklink                 | Windows 4 HighDef        |
100
-  ----------------------------------------------------------------
93
+  -----------------------------------------------------------------
94
+  | ### | x | Monitoring output name   | Connected video input    |
95
+  -----------------------------------------------------------------
96
+  |   1 |   | PC 1 Mon                 | Windows 1                |
97
+  |   2 |   | Monitor 2                | Windows 2                |
98
+  |   3 | L | Loopback                 | Loopback                 |
99
+  |   4 | O | Decklink                 | Windows 4 HighDef        |
100
+  -----------------------------------------------------------------
101
 
101
 
102
 Serial ports
102
 Serial ports
103
-  ---------------------------------------------------------------
104
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
105
-  ---------------------------------------------------------------
106
-  |  1 |   |   in | Ren Ctrl 1         | Ren Deck 3         | 4 |
107
-  |  2 | O | auto | Serial Ctrl 2      | Ren Ctrl 1         | 4 |
108
-  |  3 | L |  out | Ren Deck 3         |                    | 4 |
109
-  |  4 |   | auto | Deck 4             |                    | 4 |
110
-  |  5 |   | auto | Serial 5           |                    |   |
111
-  |  6 |   |   in | Serial 6           |                    |   |
112
-  |  7 |   |  out | Serial 7           |                    | x |
113
-  |  8 |   | auto | Serial 8           |                    | x |
114
-  ---------------------------------------------------------------
103
+  ----------------------------------------------------------------
104
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
105
+  ----------------------------------------------------------------
106
+  |   1 |   |   in | Ren Ctrl 1         | Ren Deck 3         | 4 |
107
+  |   2 | O | auto | Serial Ctrl 2      | Ren Ctrl 1         | 4 |
108
+  |   3 | L |  out | Ren Deck 3         |                    | 4 |
109
+  |   4 |   | auto | Deck 4             |                    | 4 |
110
+  |   5 |   | auto | Serial 5           |                    |   |
111
+  |   6 |   |   in | Serial 6           |                    |   |
112
+  |   7 |   |  out | Serial 7           |                    | x |
113
+  |   8 |   | auto | Serial 8           |                    | x |
114
+  ----------------------------------------------------------------
115
 
115
 

+ 73
- 73
test/test-05.ok View File

1
 Device info
1
 Device info
2
-  -----------------------------------------------------------
3
-  | Device address             | sdi-matrix                 |
4
-  | Device port                | 9990                       |
5
-  | Model name                 | Blackmagic Micro Videohub  |
6
-  | Unique ID                  | 7c2e0d021714               |
7
-  | Protocol                   | 2.4                        |
8
-  | Video inputs               | 16                         |
9
-  | Video outputs              | 16                         |
10
-  | Serial ports               | 8                          |
11
-  | Video monitoring outputs   | 4                          |
12
-  -----------------------------------------------------------
2
+  -------------------------------------------------------------------
3
+  | Device address             | sdi-matrix                         |
4
+  | Device port                | 9990                               |
5
+  | Model name                 | Blackmagic Micro Videohub          |
6
+  | Unique ID                  | 7c2e0d021714                       |
7
+  | Protocol                   | 2.4                                |
8
+  | Video inputs               | 16                                 |
9
+  | Video outputs              | 16                                 |
10
+  | Serial ports               | 8                                  |
11
+  | Video monitoring outputs   | 4                                  |
12
+  -------------------------------------------------------------------
13
 
13
 
14
 Video inputs
14
 Video inputs
15
-  --------------------------------------------------------------------
16
-  | ## | Video input name         | n | Routed to output         | s |
17
-  --------------------------------------------------------------------
18
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
19
-  |    |                          |   | Enc1 4                   |   |
20
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
21
-  |  3 | Windows 3                | 1 | Enc1 1                   | B |
22
-  |  4 | Windows 4 HD             | 2 | Output 8                 | B |
23
-  |    |                          |   | Enc2 1                   |   |
24
-  |  5 | Input 5                  | 1 | Output 5                 | o |
25
-  |  6 | Input 6                  | 1 | Output 6                 | o |
26
-  |  7 | Input 7                  | 1 | Output 7                 | o |
27
-  |  8 | Input 8                  | 0 | -                        | o |
28
-  |  9 | Input 9                  | 0 | -                        |   |
29
-  | 10 | Input 10                 | 1 | Output 10                |   |
30
-  | 11 | Input 11                 | 1 | Output 11                |   |
31
-  | 12 | DPlay1                   | 1 | Output 13                |   |
32
-  | 13 | DPlay2                   | 1 | Denc                     |   |
33
-  | 14 | Input 14                 | 1 | Output 14                | x |
34
-  | 15 | Input 15                 | 1 | Output 15                | x |
35
-  | 16 | Loopback                 | 1 | Loopback                 |   |
36
-  --------------------------------------------------------------------
15
+  ----------------------------------------------------------------------
16
+  | ### | Video input name         | nn | Routed to output         | s |
17
+  ----------------------------------------------------------------------
18
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
19
+  |     |                          |    | Enc1 4                   |   |
20
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
21
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
22
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
23
+  |     |                          |    | Enc2 1                   |   |
24
+  |   5 | Input 5                  |  1 | Output 5                 | o |
25
+  |   6 | Input 6                  |  1 | Output 6                 | o |
26
+  |   7 | Input 7                  |  1 | Output 7                 | o |
27
+  |   8 | Input 8                  |  0 | -                        | o |
28
+  |   9 | Input 9                  |  0 | -                        |   |
29
+  |  10 | Input 10                 |  1 | Output 10                |   |
30
+  |  11 | Input 11                 |  1 | Output 11                |   |
31
+  |  12 | DPlay1                   |  1 | Output 13                |   |
32
+  |  13 | DPlay2                   |  1 | Denc                     |   |
33
+  |  14 | Input 14                 |  1 | Output 14                | x |
34
+  |  15 | Input 15                 |  1 | Output 15                | x |
35
+  |  16 | Loopback                 |  1 | Loopback                 |   |
36
+  ----------------------------------------------------------------------
37
 
37
 
38
 Video outputs
38
 Video outputs
39
-  --------------------------------------------------------------------
40
-  | ## | x | Video output name        | Connected video input    | s |
41
-  --------------------------------------------------------------------
42
-  |  1 | O | Enc1 1                   | Windows 3                |   |
43
-  |  2 | O | Enc1 2                   | Windows 2                |   |
44
-  |  3 | O | Enc1 3                   | Windows 1                |   |
45
-  |  4 | O | Enc1 4                   | Windows 1                |   |
46
-  |  5 |   | Output 5                 | Input 5                  | x |
47
-  |  6 |   | Output 6                 | Input 6                  | x |
48
-  |  7 |   | Output 7                 | Input 7                  | x |
49
-  |  8 |   | Output 8                 | Windows 4 HD             |   |
50
-  |  9 | O | Enc2 1                   | Windows 4 HD             | B |
51
-  | 10 |   | Output 10                | Input 10                 | B |
52
-  | 11 |   | Output 11                | Input 11                 | B |
53
-  | 12 | O | Denc                     | DPlay2                   | B |
54
-  | 13 | O | Output 13                | DPlay1                   | o |
55
-  | 14 |   | Output 14                | Input 14                 | o |
56
-  | 15 |   | Output 15                | Input 15                 | o |
57
-  | 16 | O | Loopback                 | Loopback                 | o |
58
-  --------------------------------------------------------------------
39
+  ---------------------------------------------------------------------
40
+  | ### | x | Video output name        | Connected video input    | s |
41
+  ---------------------------------------------------------------------
42
+  |   1 | O | Enc1 1                   | Windows 3                |   |
43
+  |   2 | O | Enc1 2                   | Windows 2                |   |
44
+  |   3 | O | Enc1 3                   | Windows 1                |   |
45
+  |   4 | O | Enc1 4                   | Windows 1                |   |
46
+  |   5 |   | Output 5                 | Input 5                  | x |
47
+  |   6 |   | Output 6                 | Input 6                  | x |
48
+  |   7 |   | Output 7                 | Input 7                  | x |
49
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
50
+  |   9 | O | Enc2 1                   | Windows 4 HD             | B |
51
+  |  10 |   | Output 10                | Input 10                 | B |
52
+  |  11 |   | Output 11                | Input 11                 | B |
53
+  |  12 | O | Denc                     | DPlay2                   | B |
54
+  |  13 | O | Output 13                | DPlay1                   | o |
55
+  |  14 |   | Output 14                | Input 14                 | o |
56
+  |  15 |   | Output 15                | Input 15                 | o |
57
+  |  16 | O | Loopback                 | Loopback                 | o |
58
+  ---------------------------------------------------------------------
59
 
59
 
60
 Monitoring outputs
60
 Monitoring outputs
61
-  ----------------------------------------------------------------
62
-  | ## | x | Monitoring output name   | Connected video input    |
63
-  ----------------------------------------------------------------
64
-  |  1 |   | Monitor 1                | Windows 1                |
65
-  |  2 | O | Monitor 2                | Windows 2                |
66
-  |  3 | O | Monitor 3                | Windows 3                |
67
-  |  4 |   | Monitor 4                | Windows 4 HD             |
68
-  ----------------------------------------------------------------
61
+  -----------------------------------------------------------------
62
+  | ### | x | Monitoring output name   | Connected video input    |
63
+  -----------------------------------------------------------------
64
+  |   1 |   | Monitor 1                | Windows 1                |
65
+  |   2 | O | Monitor 2                | Windows 2                |
66
+  |   3 | O | Monitor 3                | Windows 3                |
67
+  |   4 |   | Monitor 4                | Windows 4 HD             |
68
+  -----------------------------------------------------------------
69
 
69
 
70
 Serial ports
70
 Serial ports
71
-  ---------------------------------------------------------------
72
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
73
-  ---------------------------------------------------------------
74
-  |  1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
75
-  |  2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
76
-  |  3 | O |  out | Deck 3             |                    | 4 |
77
-  |  4 |   | auto | Deck 4             |                    | 4 |
78
-  |  5 |   | auto | Serial 5           |                    |   |
79
-  |  6 |   | auto | Serial 6           |                    |   |
80
-  |  7 |   |   in | Serial 7           |                    | x |
81
-  |  8 |   |  out | Serial 8           |                    | x |
82
-  ---------------------------------------------------------------
71
+  ----------------------------------------------------------------
72
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
73
+  ----------------------------------------------------------------
74
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
75
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
76
+  |   3 | O |  out | Deck 3             |                    | 4 |
77
+  |   4 |   | auto | Deck 4             |                    | 4 |
78
+  |   5 |   | auto | Serial 5           |                    |   |
79
+  |   6 |   | auto | Serial 6           |                    |   |
80
+  |   7 |   |   in | Serial 7           |                    | x |
81
+  |   8 |   |  out | Serial 8           |                    | x |
82
+  ----------------------------------------------------------------
83
 
83
 

+ 11
- 11
test/test-07.ok View File

1
 Device info
1
 Device info
2
-  -----------------------------------------------------------
3
-  | Device address             | sdi-matrix                 |
4
-  | Device port                | 9990                       |
5
-  | Model name                 | Blackmagic Micro Videohub  |
6
-  | Unique ID                  | 7c2e0d021714               |
7
-  | Protocol                   | 2.4                        |
8
-  | Video inputs               | 16                         |
9
-  | Video outputs              | 16                         |
10
-  | Serial ports               | 8                          |
11
-  | Video monitoring outputs   | 4                          |
12
-  -----------------------------------------------------------
2
+  -------------------------------------------------------------------
3
+  | Device address             | sdi-matrix                         |
4
+  | Device port                | 9990                               |
5
+  | Model name                 | Blackmagic Micro Videohub          |
6
+  | Unique ID                  | 7c2e0d021714                       |
7
+  | Protocol                   | 2.4                                |
8
+  | Video inputs               | 16                                 |
9
+  | Video outputs              | 16                                 |
10
+  | Serial ports               | 8                                  |
11
+  | Video monitoring outputs   | 4                                  |
12
+  -------------------------------------------------------------------
13
 
13
 

+ 22
- 22
test/test-08.ok View File

1
 Video inputs
1
 Video inputs
2
-  --------------------------------------------------------------------
3
-  | ## | Video input name         | n | Routed to output         | s |
4
-  --------------------------------------------------------------------
5
-  |  1 | Windows 1                | 2 | Enc1 3                   | B |
6
-  |    |                          |   | Enc1 4                   |   |
7
-  |  2 | Windows 2                | 1 | Enc1 2                   | B |
8
-  |  3 | Windows 3                | 1 | Enc1 1                   | B |
9
-  |  4 | Windows 4 HD             | 2 | Output 8                 | B |
10
-  |    |                          |   | Enc2 1                   |   |
11
-  |  5 | Input 5                  | 1 | Output 5                 | o |
12
-  |  6 | Input 6                  | 1 | Output 6                 | o |
13
-  |  7 | Input 7                  | 1 | Output 7                 | o |
14
-  |  8 | Input 8                  | 0 | -                        | o |
15
-  |  9 | Input 9                  | 0 | -                        |   |
16
-  | 10 | Input 10                 | 1 | Output 10                |   |
17
-  | 11 | Input 11                 | 1 | Output 11                |   |
18
-  | 12 | DPlay1                   | 1 | Output 13                |   |
19
-  | 13 | DPlay2                   | 1 | Denc                     |   |
20
-  | 14 | Input 14                 | 1 | Output 14                | x |
21
-  | 15 | Input 15                 | 1 | Output 15                | x |
22
-  | 16 | Loopback                 | 1 | Loopback                 |   |
23
-  --------------------------------------------------------------------
2
+  ----------------------------------------------------------------------
3
+  | ### | Video input name         | nn | Routed to output         | s |
4
+  ----------------------------------------------------------------------
5
+  |   1 | Windows 1                |  2 | Enc1 3                   | B |
6
+  |     |                          |    | Enc1 4                   |   |
7
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
8
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
9
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
10
+  |     |                          |    | Enc2 1                   |   |
11
+  |   5 | Input 5                  |  1 | Output 5                 | o |
12
+  |   6 | Input 6                  |  1 | Output 6                 | o |
13
+  |   7 | Input 7                  |  1 | Output 7                 | o |
14
+  |   8 | Input 8                  |  0 | -                        | o |
15
+  |   9 | Input 9                  |  0 | -                        |   |
16
+  |  10 | Input 10                 |  1 | Output 10                |   |
17
+  |  11 | Input 11                 |  1 | Output 11                |   |
18
+  |  12 | DPlay1                   |  1 | Output 13                |   |
19
+  |  13 | DPlay2                   |  1 | Denc                     |   |
20
+  |  14 | Input 14                 |  1 | Output 14                | x |
21
+  |  15 | Input 15                 |  1 | Output 15                | x |
22
+  |  16 | Loopback                 |  1 | Loopback                 |   |
23
+  ----------------------------------------------------------------------
24
 
24
 

+ 20
- 20
test/test-09.ok View File

1
 Video outputs
1
 Video outputs
2
-  --------------------------------------------------------------------
3
-  | ## | x | Video output name        | Connected video input    | s |
4
-  --------------------------------------------------------------------
5
-  |  1 | L | Enc1 1                   | Windows 3                |   |
6
-  |  2 | L | Enc1 2                   | Windows 2                |   |
7
-  |  3 | L | Enc1 3                   | Windows 1                |   |
8
-  |  4 | L | Enc1 4                   | Windows 1                |   |
9
-  |  5 |   | Output 5                 | Input 5                  | x |
10
-  |  6 |   | Output 6                 | Input 6                  | x |
11
-  |  7 |   | Output 7                 | Input 7                  | x |
12
-  |  8 |   | Output 8                 | Windows 4 HD             |   |
13
-  |  9 | L | Enc2 1                   | Windows 4 HD             | B |
14
-  | 10 |   | Output 10                | Input 10                 | B |
15
-  | 11 |   | Output 11                | Input 11                 | B |
16
-  | 12 | L | Denc                     | DPlay2                   | B |
17
-  | 13 | O | Output 13                | DPlay1                   | o |
18
-  | 14 |   | Output 14                | Input 14                 | o |
19
-  | 15 |   | Output 15                | Input 15                 | o |
20
-  | 16 | O | Loopback                 | Loopback                 | o |
21
-  --------------------------------------------------------------------
2
+  ---------------------------------------------------------------------
3
+  | ### | x | Video output name        | Connected video input    | s |
4
+  ---------------------------------------------------------------------
5
+  |   1 | L | Enc1 1                   | Windows 3                |   |
6
+  |   2 | L | Enc1 2                   | Windows 2                |   |
7
+  |   3 | L | Enc1 3                   | Windows 1                |   |
8
+  |   4 | L | Enc1 4                   | Windows 1                |   |
9
+  |   5 |   | Output 5                 | Input 5                  | x |
10
+  |   6 |   | Output 6                 | Input 6                  | x |
11
+  |   7 |   | Output 7                 | Input 7                  | x |
12
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
13
+  |   9 | L | Enc2 1                   | Windows 4 HD             | B |
14
+  |  10 |   | Output 10                | Input 10                 | B |
15
+  |  11 |   | Output 11                | Input 11                 | B |
16
+  |  12 | L | Denc                     | DPlay2                   | B |
17
+  |  13 | O | Output 13                | DPlay1                   | o |
18
+  |  14 |   | Output 14                | Input 14                 | o |
19
+  |  15 |   | Output 15                | Input 15                 | o |
20
+  |  16 | O | Loopback                 | Loopback                 | o |
21
+  ---------------------------------------------------------------------
22
 
22
 

+ 62
- 62
test/test-14.ok View File

24
 WARNING: SERIAL PORT STATUS command returned unknown status: 'Thunderbolt'
24
 WARNING: SERIAL PORT STATUS command returned unknown status: 'Thunderbolt'
25
 Please report this line to author's email: georgi@unixsol.org
25
 Please report this line to author's email: georgi@unixsol.org
26
 Device info
26
 Device info
27
-  -----------------------------------------------------------
28
-  | Device address             | sdi-matrix                 |
29
-  | Device port                | 9990                       |
30
-  | Model name                 | Blackmagic Micro Videohub  |
31
-  | Unique ID                  | 7c2e0d021714               |
32
-  | Protocol                   | 2.4                        |
33
-  | Video inputs               | 16                         |
34
-  | Video outputs              | 16                         |
35
-  | Serial ports               | 4                          |
36
-  -----------------------------------------------------------
27
+  -------------------------------------------------------------------
28
+  | Device address             | sdi-matrix                         |
29
+  | Device port                | 9990                               |
30
+  | Model name                 | Blackmagic Micro Videohub          |
31
+  | Unique ID                  | 7c2e0d021714                       |
32
+  | Protocol                   | 2.4                                |
33
+  | Video inputs               | 16                                 |
34
+  | Video outputs              | 16                                 |
35
+  | Serial ports               | 4                                  |
36
+  -------------------------------------------------------------------
37
 
37
 
38
 Video inputs
38
 Video inputs
39
-  --------------------------------------------------------------------
40
-  | ## | Video input name         | n | Routed to output         | s |
41
-  --------------------------------------------------------------------
42
-  |  1 | Windows 1                | 4 | Enc1 3                   |   |
43
-  |    |                          |   | Enc1 4                   |   |
44
-  |    |                          |   | Output 7                 |   |
45
-  |    |                          |   | Output 10                |   |
46
-  |  2 | Windows 2                | 1 | Enc1 2                   |   |
47
-  |  3 | Windows 3                | 1 | Enc1 1                   |   |
48
-  |  4 | Windows 4 HD             | 2 |                          |   |
49
-  |    |                          |   | Enc2 1                   |   |
50
-  |  5 | Input 5                  | 1 | Output 5                 |   |
51
-  |  6 | Input 6                  | 1 | Output 6                 |   |
52
-  |  7 |                          | 0 | -                        |   |
53
-  |  8 | Input 8                  | 0 | -                        |   |
54
-  |  9 | Input 9                  | 0 | -                        |   |
55
-  | 10 | Input 10                 | 0 | -                        |   |
56
-  | 11 | Input 11                 | 1 | Output 11                |   |
57
-  | 12 | DPlay1                   | 1 | Output 13                |   |
58
-  | 13 | DPlay2                   | 1 | Denc                     |   |
59
-  | 14 | Input 14                 | 1 | Output 14                |   |
60
-  | 15 | Input 15                 | 1 | Output 15                |   |
61
-  | 16 | Loopback                 | 1 | Loopback                 |   |
62
-  --------------------------------------------------------------------
39
+  ----------------------------------------------------------------------
40
+  | ### | Video input name         | nn | Routed to output         | s |
41
+  ----------------------------------------------------------------------
42
+  |   1 | Windows 1                |  4 | Enc1 3                   |   |
43
+  |     |                          |    | Enc1 4                   |   |
44
+  |     |                          |    | Output 7                 |   |
45
+  |     |                          |    | Output 10                |   |
46
+  |   2 | Windows 2                |  1 | Enc1 2                   |   |
47
+  |   3 | Windows 3                |  1 | Enc1 1                   |   |
48
+  |   4 | Windows 4 HD             |  2 |                          |   |
49
+  |     |                          |    | Enc2 1                   |   |
50
+  |   5 | Input 5                  |  1 | Output 5                 |   |
51
+  |   6 | Input 6                  |  1 | Output 6                 |   |
52
+  |   7 |                          |  0 | -                        |   |
53
+  |   8 | Input 8                  |  0 | -                        |   |
54
+  |   9 | Input 9                  |  0 | -                        |   |
55
+  |  10 | Input 10                 |  0 | -                        |   |
56
+  |  11 | Input 11                 |  1 | Output 11                |   |
57
+  |  12 | DPlay1                   |  1 | Output 13                |   |
58
+  |  13 | DPlay2                   |  1 | Denc                     |   |
59
+  |  14 | Input 14                 |  1 | Output 14                |   |
60
+  |  15 | Input 15                 |  1 | Output 15                |   |
61
+  |  16 | Loopback                 |  1 | Loopback                 |   |
62
+  ----------------------------------------------------------------------
63
 
63
 
64
 Video outputs
64
 Video outputs
65
-  --------------------------------------------------------------------
66
-  | ## | x | Video output name        | Connected video input    | s |
67
-  --------------------------------------------------------------------
68
-  |  1 | L | Enc1 1                   | Windows 3                | B |
69
-  |  2 | L | Enc1 2                   | Windows 2                | x |
70
-  |  3 | L | Enc1 3                   | Windows 1                | o |
71
-  |  4 | L | Enc1 4                   | Windows 1                | T |
72
-  |  5 |   | Output 5                 | Input 5                  |   |
73
-  |  6 |   | Output 6                 | Input 6                  |   |
74
-  |  7 |   | Output 7                 | Windows 1                |   |
75
-  |  8 |   |                          | Windows 4 HD             |   |
76
-  |  9 | L | Enc2 1                   | Windows 4 HD             |   |
77
-  | 10 |   | Output 10                | Windows 1                |   |
78
-  | 11 |   | Output 11                | Input 11                 |   |
79
-  | 12 | L | Denc                     | DPlay2                   |   |
80
-  | 13 | O | Output 13                | DPlay1                   |   |
81
-  | 14 |   | Output 14                | Input 14                 |   |
82
-  | 15 |   | Output 15                | Input 15                 |   |
83
-  | 16 |   | Loopback                 | Loopback                 |   |
84
-  --------------------------------------------------------------------
65
+  ---------------------------------------------------------------------
66
+  | ### | x | Video output name        | Connected video input    | s |
67
+  ---------------------------------------------------------------------
68
+  |   1 | L | Enc1 1                   | Windows 3                | B |
69
+  |   2 | L | Enc1 2                   | Windows 2                | x |
70
+  |   3 | L | Enc1 3                   | Windows 1                | o |
71
+  |   4 | L | Enc1 4                   | Windows 1                | T |
72
+  |   5 |   | Output 5                 | Input 5                  |   |
73
+  |   6 |   | Output 6                 | Input 6                  |   |
74
+  |   7 |   | Output 7                 | Windows 1                |   |
75
+  |   8 |   |                          | Windows 4 HD             |   |
76
+  |   9 | L | Enc2 1                   | Windows 4 HD             |   |
77
+  |  10 |   | Output 10                | Windows 1                |   |
78
+  |  11 |   | Output 11                | Input 11                 |   |
79
+  |  12 | L | Denc                     | DPlay2                   |   |
80
+  |  13 | O | Output 13                | DPlay1                   |   |
81
+  |  14 |   | Output 14                | Input 14                 |   |
82
+  |  15 |   | Output 15                | Input 15                 |   |
83
+  |  16 |   | Loopback                 | Loopback                 |   |
84
+  ---------------------------------------------------------------------
85
 
85
 
86
 Serial ports
86
 Serial ports
87
-  ---------------------------------------------------------------
88
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
89
-  ---------------------------------------------------------------
90
-  |  1 |   | auto | Remote 1           |                    |   |
91
-  |  2 |   |   in | Remote 2           |                    |   |
92
-  |  3 |   |  out | Remote 3           |                    |   |
93
-  |  4 |   | auto | Remote 4           |                    | 4 |
94
-  ---------------------------------------------------------------
87
+  ----------------------------------------------------------------
88
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
89
+  ----------------------------------------------------------------
90
+  |   1 |   | auto | Remote 1           |                    |   |
91
+  |   2 |   |   in | Remote 2           |                    |   |
92
+  |   3 |   |  out | Remote 3           |                    |   |
93
+  |   4 |   | auto | Remote 4           |                    | 4 |
94
+  ----------------------------------------------------------------
95
 
95
 

+ 8
- 8
test/test-15.ok View File

1
 Monitoring outputs
1
 Monitoring outputs
2
-  ----------------------------------------------------------------
3
-  | ## | x | Monitoring output name   | Connected video input    |
4
-  ----------------------------------------------------------------
5
-  |  1 |   | Monitor 1                | Windows 1                |
6
-  |  2 | O | Monitor 2                | Windows 2                |
7
-  |  3 | L | Monitor 3                | Windows 3                |
8
-  |  4 |   | Monitor 4                | Windows 4 HD             |
9
-  ----------------------------------------------------------------
2
+  -----------------------------------------------------------------
3
+  | ### | x | Monitoring output name   | Connected video input    |
4
+  -----------------------------------------------------------------
5
+  |   1 |   | Monitor 1                | Windows 1                |
6
+  |   2 | O | Monitor 2                | Windows 2                |
7
+  |   3 | L | Monitor 3                | Windows 3                |
8
+  |   4 |   | Monitor 4                | Windows 4 HD             |
9
+  -----------------------------------------------------------------
10
 
10
 

+ 12
- 12
test/test-16.ok View File

1
 Serial ports
1
 Serial ports
2
-  ---------------------------------------------------------------
3
-  | ## | x | Dir  | Serial port        | Connected serial   | s |
4
-  ---------------------------------------------------------------
5
-  |  1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
6
-  |  2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
7
-  |  3 | L |  out | Deck 3             |                    | 4 |
8
-  |  4 |   | auto | Deck 4             |                    | 4 |
9
-  |  5 |   | auto | Serial 5           |                    |   |
10
-  |  6 |   | auto | Serial 6           |                    |   |
11
-  |  7 |   |   in | Serial 7           |                    | x |
12
-  |  8 |   |  out | Serial 8           |                    | x |
13
-  ---------------------------------------------------------------
2
+  ----------------------------------------------------------------
3
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
4
+  ----------------------------------------------------------------
5
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
6
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
7
+  |   3 | L |  out | Deck 3             |                    | 4 |
8
+  |   4 |   | auto | Deck 4             |                    | 4 |
9
+  |   5 |   | auto | Serial 5           |                    |   |
10
+  |   6 |   | auto | Serial 6           |                    |   |
11
+  |   7 |   |   in | Serial 7           |                    | x |
12
+  |   8 |   |  out | Serial 8           |                    | x |
13
+  ----------------------------------------------------------------
14
 
14
 

+ 213
- 0
test/test-17.ok View File

1
+WARNING: VIDEOHUB DEVICE command sent unknown line: 'Friendly name: SDI router on the 5th floor'
2
+Please report this line to author's email: georgi@unixsol.org
3
+WARNING: VIDEOHUB DEVICE command sent unknown line: 'Debug mode: true'
4
+Please report this line to author's email: georgi@unixsol.org
5
+WARNING: VIDEOHUB DEVICE command sent unknown line: 'Debug mode: yes'
6
+Please report this line to author's email: georgi@unixsol.org
7
+WARNING: VIDEOHUB DEVICE command sent unknown line: 'Power: both'
8
+Please report this line to author's email: georgi@unixsol.org
9
+WARNING: Videohub sent unknown command!
10
+         Please report this command to author's email: georgi@unixsol.org
11
+         You may use -q or --quiet to suppress the message.
12
+---------8<-----------8<----------- cut here ---------8<------------8<---------
13
+ALARM STATUS:
14
+0 Error
15
+---------8<-----------8<----------- cut here ---------8<------------8<---------
16
+WARNING: Videohub sent unknown command!
17
+         Please report this command to author's email: georgi@unixsol.org
18
+         You may use -q or --quiet to suppress the message.
19
+---------8<-----------8<----------- cut here ---------8<------------8<---------
20
+END PRELUDE:
21
+---------8<-----------8<----------- cut here ---------8<------------8<---------
22
+WARNING: Videohub sent unknown command!
23
+         Please report this command to author's email: georgi@unixsol.org
24
+         You may use -q or --quiet to suppress the message.
25
+---------8<-----------8<----------- cut here ---------8<------------8<---------
26
+ENGINEERING:
27
+0 Hack
28
+1 Hack
29
+---------8<-----------8<----------- cut here ---------8<------------8<---------
30
+WARNING: Videohub sent unknown command!
31
+         Please report this command to author's email: georgi@unixsol.org
32
+         You may use -q or --quiet to suppress the message.
33
+---------8<-----------8<----------- cut here ---------8<------------8<---------
34
+FRAME LABELS:
35
+0 gf-Frame 1
36
+1 Frame 2
37
+2 gf-Frame 3
38
+3 Frame 4
39
+4 gf-Frame 5
40
+5 Frame 6
41
+6 gf-Frame 7
42
+7 Frame 8
43
+---------8<-----------8<----------- cut here ---------8<------------8<---------
44
+WARNING: Videohub sent unknown command!
45
+         Please report this command to author's email: georgi@unixsol.org
46
+         You may use -q or --quiet to suppress the message.
47
+---------8<-----------8<----------- cut here ---------8<------------8<---------
48
+FRAME BUFFER ROUTING:
49
+0 Frame 4
50
+1 gf-Frame 3
51
+2 Frame 6
52
+---------8<-----------8<----------- cut here ---------8<------------8<---------
53
+WARNING: Videohub sent unknown command!
54
+         Please report this command to author's email: georgi@unixsol.org
55
+         You may use -q or --quiet to suppress the message.
56
+---------8<-----------8<----------- cut here ---------8<------------8<---------
57
+FRAME BUFFER LOCKS:
58
+0 U
59
+---------8<-----------8<----------- cut here ---------8<------------8<---------
60
+WARNING: Videohub sent unknown command!
61
+         Please report this command to author's email: georgi@unixsol.org
62
+         You may use -q or --quiet to suppress the message.
63
+---------8<-----------8<----------- cut here ---------8<------------8<---------
64
+PROCESSING UNIT ROUTING:
65
+0 Output 15
66
+---------8<-----------8<----------- cut here ---------8<------------8<---------
67
+WARNING: Videohub sent unknown command!
68
+         Please report this command to author's email: georgi@unixsol.org
69
+         You may use -q or --quiet to suppress the message.
70
+---------8<-----------8<----------- cut here ---------8<------------8<---------
71
+PROCESSING UNIT LOCKS:
72
+0 U
73
+---------8<-----------8<----------- cut here ---------8<------------8<---------
74
+WARNING: Videohub sent unknown command!
75
+         Please report this command to author's email: georgi@unixsol.org
76
+         You may use -q or --quiet to suppress the message.
77
+---------8<-----------8<----------- cut here ---------8<------------8<---------
78
+ALARM STATUS:
79
+0 Error
80
+---------8<-----------8<----------- cut here ---------8<------------8<---------
81
+WARNING: Videohub sent unknown command!
82
+         Please report this command to author's email: georgi@unixsol.org
83
+         You may use -q or --quiet to suppress the message.
84
+---------8<-----------8<----------- cut here ---------8<------------8<---------
85
+END PRELUDE:
86
+---------8<-----------8<----------- cut here ---------8<------------8<---------
87
+WARNING: Videohub sent unknown command!
88
+         Please report this command to author's email: georgi@unixsol.org
89
+         You may use -q or --quiet to suppress the message.
90
+---------8<-----------8<----------- cut here ---------8<------------8<---------
91
+ENGINEERING:
92
+0 Debug
93
+---------8<-----------8<----------- cut here ---------8<------------8<---------
94
+Device info
95
+  -------------------------------------------------------------------
96
+  | Device address             | sdi-matrix                         |
97
+  | Device port                | 9990                               |
98
+  | Model name                 | Blackmagic Workgroup Videohub      |
99
+  | Unique ID                  | 465647757584                       |
100
+  | Protocol                   | 2.4                                |
101
+  | Video inputs               | 16                                 |
102
+  | Video outputs              | 32                                 |
103
+  | Serial ports               | 8                                  |
104
+  | Video processing units     | 16                                 |
105
+  | Video monitoring outputs   | 8                                  |
106
+  -------------------------------------------------------------------
107
+
108
+Video inputs
109
+  ----------------------------------------------------------------------
110
+  | ### | Video input name         | nn | Routed to output         | s |
111
+  ----------------------------------------------------------------------
112
+  |   1 | Windows 1                | 18 | Enc1 3                   | B |
113
+  |     |                          |    | Enc1 4                   |   |
114
+  |     |                          |    |                          |   |
115
+  |     |                          |    |                          |   |
116
+  |     |                          |    |                          |   |
117
+  |     |                          |    |                          |   |
118
+  |     |                          |    |                          |   |
119
+  |     |                          |    |                          |   |
120
+  |     |                          |    |                          |   |
121
+  |     |                          |    |                          |   |
122
+  |     |                          |    |                          |   |
123
+  |     |                          |    |                          |   |
124
+  |     |                          |    |                          |   |
125
+  |     |                          |    |                          |   |
126
+  |     |                          |    |                          |   |
127
+  |     |                          |    |                          |   |
128
+  |     |                          |    |                          |   |
129
+  |     |                          |    |                          |   |
130
+  |   2 | Windows 2                |  1 | Enc1 2                   | B |
131
+  |   3 | Windows 3                |  1 | Enc1 1                   | B |
132
+  |   4 | Windows 4 HD             |  2 | Output 8                 | B |
133
+  |     |                          |    | Enc2 1                   |   |
134
+  |   5 | Input 5                  |  1 | Output 5                 | o |
135
+  |   6 | Input 6                  |  1 | Output 6                 | o |
136
+  |   7 | Input 7                  |  1 | Output 7                 | o |
137
+  |   8 | Input 8                  |  0 | -                        | o |
138
+  |   9 | Input 9                  |  0 | -                        |   |
139
+  |  10 | Input 10                 |  1 | Output 10                |   |
140
+  |  11 | Input 11                 |  1 | Output 11                |   |
141
+  |  12 | DPlay1                   |  1 | Output 13                |   |
142
+  |  13 | DPlay2                   |  1 | Denc                     |   |
143
+  |  14 | Input 14                 |  1 | Output 14                | x |
144
+  |  15 | Input 15                 |  1 | Output 15                | x |
145
+  |  16 | Loopback                 |  1 | Loopback                 |   |
146
+  ----------------------------------------------------------------------
147
+
148
+Video outputs
149
+  ---------------------------------------------------------------------
150
+  | ### | x | Video output name        | Connected video input    | s |
151
+  ---------------------------------------------------------------------
152
+  |   1 | L | Enc1 1                   | Windows 3                |   |
153
+  |   2 | L | Enc1 2                   | Windows 2                |   |
154
+  |   3 | L | Enc1 3                   | Windows 1                |   |
155
+  |   4 | L | Enc1 4                   | Windows 1                |   |
156
+  |   5 |   | Output 5                 | Input 5                  | x |
157
+  |   6 |   | Output 6                 | Input 6                  | x |
158
+  |   7 |   | Output 7                 | Input 7                  | x |
159
+  |   8 |   | Output 8                 | Windows 4 HD             |   |
160
+  |   9 | L | Enc2 1                   | Windows 4 HD             | B |
161
+  |  10 |   | Output 10                | Input 10                 | B |
162
+  |  11 |   | Output 11                | Input 11                 | B |
163
+  |  12 | L | Denc                     | DPlay2                   | B |
164
+  |  13 | O | Output 13                | DPlay1                   | o |
165
+  |  14 |   | Output 14                | Input 14                 | o |
166
+  |  15 |   | Output 15                | Input 15                 | o |
167
+  |  16 | O | Loopback                 | Loopback                 | o |
168
+  |  17 |   |                          | Windows 1                |   |
169
+  |  18 |   |                          | Windows 1                |   |
170
+  |  19 |   |                          | Windows 1                |   |
171
+  |  20 |   |                          | Windows 1                |   |
172
+  |  21 |   |                          | Windows 1                |   |
173
+  |  22 |   |                          | Windows 1                |   |
174
+  |  23 |   |                          | Windows 1                |   |
175
+  |  24 |   |                          | Windows 1                |   |
176
+  |  25 |   |                          | Windows 1                |   |
177
+  |  26 |   |                          | Windows 1                |   |
178
+  |  27 |   |                          | Windows 1                |   |
179
+  |  28 |   |                          | Windows 1                |   |
180
+  |  29 |   |                          | Windows 1                |   |
181
+  |  30 |   |                          | Windows 1                |   |
182
+  |  31 |   |                          | Windows 1                |   |
183
+  |  32 |   |                          | Windows 1                |   |
184
+  ---------------------------------------------------------------------
185
+
186
+Monitoring outputs
187
+  -----------------------------------------------------------------
188
+  | ### | x | Monitoring output name   | Connected video input    |
189
+  -----------------------------------------------------------------
190
+  |   1 |   | Monitor 1                | Windows 1                |
191
+  |   2 | O | Monitor 2                | Windows 2                |
192
+  |   3 | L | Monitor 3                | Windows 3                |
193
+  |   4 |   | Monitor 4                | Windows 4 HD             |
194
+  |   5 |   |                          | Windows 1                |
195
+  |   6 |   |                          | Windows 1                |
196
+  |   7 |   |                          | Windows 1                |
197
+  |   8 |   |                          | Windows 1                |
198
+  -----------------------------------------------------------------
199
+
200
+Serial ports
201
+  ----------------------------------------------------------------
202
+  | ### | x | Dir  | Serial port        | Connected serial   | s |
203
+  ----------------------------------------------------------------
204
+  |   1 | O |   in | Serial Ctrl 1      | Deck 3             | 4 |
205
+  |   2 |   | auto | Serial Ctrl 2      | Deck 4             | 4 |
206
+  |   3 | L |  out | Deck 3             |                    | 4 |
207
+  |   4 |   | auto | Deck 4             |                    | 4 |
208
+  |   5 |   | auto | Serial 5           |                    |   |
209
+  |   6 |   | auto | Serial 6           |                    |   |
210
+  |   7 |   |   in | Serial 7           |                    | x |
211
+  |   8 |   |  out | Serial 8           |                    | x |
212
+  ----------------------------------------------------------------
213
+

Loading…
Cancel
Save