Georgi Chorbadzhiyski
f40b692f00
Add support for ALARM STATUS command
4 years ago
Georgi Chorbadzhiyski
8308faadb3
Add support for configurations that have leading white space
6 years ago
Georgi Chorbadzhiyski
e954cfe15a
Add support for parsing responses that contain \r symbols in them
Thanks to alex # dyaconov.com for the test data
6 years ago
Georgi Chorbadzhiyski
c9ac382c5e
Ignore END PRELUDE command
It doesn't seem to do anything and just spams that logs. Thanks to
Jean-Francois Panisset for the report.
7 years ago
Georgi Chorbadzhiyski
1ffab2e688
Add support for CONFIGURATION command
I have no idea what it does unfortunately.
Thanks to Yannick BARBEAUX for the report.
7 years ago
Georgi Chorbadzhiyski
5ca51d520f
Prevent possible NULL pointer dereference.
9 years ago
Georgi Chorbadzhiyski
42a6e7e3ac
Rename configuration parameters.
--list-vinputs -> --list-inputs
--list-voutputs -> --list-outputs
--list-moutputs -> --list-monitor
--vi-X -> --in-X
--vo-X -> --out-X
--mo-X -> --mon-X
--se-X -> --ser-X
10 years ago
Georgi Chorbadzhiyski
e8bfb2bf00
Add support for --vi-output and --vi-monitor parameters.
10 years ago
Georgi Chorbadzhiyski
a42e405e05
Introduce struct vcmd_param to cleanup struct vcmd_entry.
10 years ago
Georgi Chorbadzhiyski
dd92e76c94
Add support for setting device friendly name using --set-name
My Videohub Micro doesn't support this extra but I suppose the
bigger models do (at least the official software v6 reads this
value and shows it instead of the device model).
10 years ago
Georgi Chorbadzhiyski
d6f8eeeebe
Add support for frames (names, routing and locks)
It is not tested on a real hardware. The number of frame buffers
is assumed to be the same as number of serial ports (as good guess
as any).
10 years ago
Georgi Chorbadzhiyski
54b685d478
Add support for processing units (routing and locks).
It is not tested on a real hardware.
10 years ago
Georgi Chorbadzhiyski
afdb845e60
Make handling of port disconnection generic.
10 years ago
Georgi Chorbadzhiyski
c87a7538b9
Display the undocumented "Friendly name" device setting.
10 years ago
Georgi Chorbadzhiyski
c4d62cb179
Report invalid port statuses.
10 years ago
Georgi Chorbadzhiyski
55a391f6e8
Add support for undocumented "Thunderbolt" port status/type.
10 years ago
Georgi Chorbadzhiyski
6176fb9bfe
Add support for clearing serial port connections.
10 years ago
Georgi Chorbadzhiyski
6004840714
Allow port routing to be canceled. It is needed for serial ports.
10 years ago
Georgi Chorbadzhiyski
45b59a4683
Report unknown settings in VIDEOHUB DEVICE command.
10 years ago
Georgi Chorbadzhiyski
ec2454ac5a
Add enum for input/output/monitoring/serial ports statuses.
10 years ago
Georgi Chorbadzhiyski
39bc206641
Small fix for serial directions.
10 years ago
Georgi Chorbadzhiyski
30a6246f79
Add support for serial ports (names, routing, locks and directions).
10 years ago
Georgi Chorbadzhiyski
a331d546b5
Preparation for serial commands support.
10 years ago
Georgi Chorbadzhiyski
74952e542a
Add full support for monitoring video outputs.
10 years ago
Georgi Chorbadzhiyski
bdf1c28b6f
Make --backup function use generic command types.
10 years ago
Georgi Chorbadzhiyski
822ef3bb37
Fix detection of monitoring outputs.
10 years ago
Georgi Chorbadzhiyski
40bb54c2a3
Parse commands based on their type.
This allows adding of new commands without any changes to command
parsing and generation code.
10 years ago
Georgi Chorbadzhiyski
cf4141cf4d
Refactor code into get_port_by_name().
10 years ago
Georgi Chorbadzhiyski
ebdf864c80
Create struct port_set which contains a set of ports.
10 years ago
Georgi Chorbadzhiyski
9e99f9d7d2
Start to move to data driven command parser.
10 years ago
Georgi Chorbadzhiyski
6f3c4c27cf
Simplify port lock handling.
10 years ago
Georgi Chorbadzhiyski
e16243a5d8
Add q() macro that checks quiet flag.
10 years ago
Georgi Chorbadzhiyski
f300e5c449
Add support for port statuses (types) reported by Univeral Videohub.
10 years ago
Georgi Chorbadzhiyski
e7d8e15880
Add support for reading commands from text file using -T / --test-input.
10 years ago
Georgi Chorbadzhiyski
97988a6a9f
Rename internal variable.
Some very old and broken compilers complain about shadowing bcopy().
10 years ago
Georgi Chorbadzhiyski
8e1aefbec6
Show executed commands in human readable commands format.
10 years ago
Georgi Chorbadzhiyski
81e1974c4d
cmd: Format CMD_INPUT_LABELS command separate from others.
10 years ago
Georgi Chorbadzhiyski
925385a527
cmd: outputs and inputs arrays are always big enough to holds num_video_{inputs,outputs}.
10 years ago
Georgi Chorbadzhiyski
290382b178
cmd: Check valid slot against outputs.
10 years ago
Georgi Chorbadzhiyski
0612aeceec
cmd: Change file description.
10 years ago
Georgi Chorbadzhiyski
20b533f5a8
Add configuration commands.
Add support for setting video input/output names, video output locking
and video output routing.
10 years ago
Georgi Chorbadzhiyski
55959179ea
Improve and simplify command parsing.
10 years ago
Georgi Chorbadzhiyski
8e881d6d11
Rename -v / --verbose parameter to -d / --debug.
10 years ago
Georgi Chorbadzhiyski
5a008c530a
Move commands enum into cmd.h
10 years ago
Georgi Chorbadzhiyski
6ef51a7374
Move some checks out of parse_cmd().
It is not a good idea parse_cmd() to just die().
10 years ago
Georgi Chorbadzhiyski
bcab8b796b
Improve some range checks.
10 years ago
Georgi Chorbadzhiyski
3adee6c91b
Use proper locks terminology.
10 years ago
Georgi Chorbadzhiyski
a6d9bdbbf6
Add support for 'needs_update' device status.
10 years ago
Georgi Chorbadzhiyski
37992c486a
Add proper protocol version checks.
10 years ago
Georgi Chorbadzhiyski
d4079fb1f6
Include cmd.h where needed and fix the errors.
10 years ago