Georgi Chorbadzhiyski
f40b692f00
Add support for ALARM STATUS command
3 years ago
Georgi Chorbadzhiyski
46b46e9011
Fix wrong timeout (it should be in ms when passed to fdread_ex)
Bug reported by: https://github.com/jfpanisset
4 years ago
Jean-Francois Panisset
87db62ffeb
A Universal Videohub 288 will send a much larger response than can
fit in a 8KB buffer, since parsing expects a complete response
from the router, increase the maximum buffer / response size
to handle 3,200+ line response.
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com >
4 years ago
Georgi Chorbadzhiyski
d8974177cb
Add -t / --timeout option
4 years ago
Toon Toetenel
077d2ff820
Fixed reading data getting truncated using a 40x40 video hub
7 years ago
Georgi Chorbadzhiyski
0e2d4160b9
Prevent warning when videohubctrl is compiled on 32-bit host.
9 years ago
Georgi Chorbadzhiyski
93eab41708
Fix comments.
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
9 years ago
Georgi Chorbadzhiyski
e8bfb2bf00
Add support for --vi-output and --vi-monitor parameters.
9 years ago
Georgi Chorbadzhiyski
a42e405e05
Introduce struct vcmd_param to cleanup struct vcmd_entry.
9 years ago
Georgi Chorbadzhiyski
32927ee8de
Only warn when the protocol version is not 2.x do not die.
This makes the program compatible with future protocol updates.
Before it was just dying so even if the new protocol was compatible
the program needed to be recompiled.
9 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).
9 years ago
Georgi Chorbadzhiyski
e035d99753
Add support for --list-proc-units and --list-frames options.
--list-proc-units was documented in 1.0 release but it was never
wired up to work. --list-frames was not documented in 1.0 and it
wasn't working either.
9 years ago
Georgi Chorbadzhiyski
57dde60884
Initialize all routes to NO_PORT by default.
9 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).
9 years ago
Georgi Chorbadzhiyski
54b685d478
Add support for processing units (routing and locks).
It is not tested on a real hardware.
9 years ago
Georgi Chorbadzhiyski
e00b706d8e
Keep lines shorter than 72 chars.
9 years ago
Georgi Chorbadzhiyski
6176fb9bfe
Add support for clearing serial port connections.
9 years ago
Georgi Chorbadzhiyski
6004840714
Allow port routing to be canceled. It is needed for serial ports.
9 years ago
Georgi Chorbadzhiyski
0344f230b9
Fix memory allocation for test data.
Previously it seems to have worked by accident (there was not enough
space for the end NULL byte).
9 years ago
Georgi Chorbadzhiyski
1d1b23423c
Comment fixes.
9 years ago
Georgi Chorbadzhiyski
dfc473a128
Text fixes.
9 years ago
Georgi Chorbadzhiyski
30a6246f79
Add support for serial ports (names, routing, locks and directions).
9 years ago
Georgi Chorbadzhiyski
a331d546b5
Preparation for serial commands support.
9 years ago
Georgi Chorbadzhiyski
7021812da5
Validate the number of monitoring ports.
9 years ago
Georgi Chorbadzhiyski
74952e542a
Add full support for monitoring video outputs.
9 years ago
Georgi Chorbadzhiyski
96aab1363d
Rename --vo-route parameter to --vo-input.
9 years ago
Georgi Chorbadzhiyski
e7c8cbbd8d
Change internal cmd numbers.
9 years ago
Georgi Chorbadzhiyski
25522dd743
Cleanup configuration options parsing.
9 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.
9 years ago
Georgi Chorbadzhiyski
a4275361ae
In test mode print device info after commands are executed.
9 years ago
Georgi Chorbadzhiyski
ce38b9baac
Allow configuration commands to work in test mode.
9 years ago
Georgi Chorbadzhiyski
ebdf864c80
Create struct port_set which contains a set of ports.
9 years ago
Georgi Chorbadzhiyski
e7d8e15880
Add support for reading commands from text file using -T / --test-input.
9 years ago
Georgi Chorbadzhiyski
4a0ab7f820
Text fixes.
9 years ago
Georgi Chorbadzhiyski
e65ffebd59
Text fixes.
9 years ago
Georgi Chorbadzhiyski
8436f9c2ed
Reorder parameters in usage().
9 years ago
Georgi Chorbadzhiyski
094d38a933
Fix sending of multiple commands.
After sending command to videohub the response must read before
another commands is sent.
9 years ago
Georgi Chorbadzhiyski
8e1aefbec6
Show executed commands in human readable commands format.
9 years ago
Georgi Chorbadzhiyski
258dd4f0ea
Add support for -b / --backup parameter.
This prints the device configuration as videohubctrl parameters thus
allowing the configuration to be restored later.
9 years ago
Georgi Chorbadzhiyski
f50aa122ab
README: Add usage examples.
9 years ago
Georgi Chorbadzhiyski
549d4308d0
Improve usage text.
9 years ago
Georgi Chorbadzhiyski
4175b91230
Add support for VIDEOHUB_HOST and VIDEOHUB_PORT env variables.
9 years ago
Georgi Chorbadzhiyski
d664f6372b
Update monitor at least once every 10 seconds and display the time.
9 years ago
Georgi Chorbadzhiyski
97e21b220e
Add --list-{device,vinputs,voutputs} parameters and change output formating.
9 years ago
Georgi Chorbadzhiyski
68716f6cda
Print program name and version only in help screen and when -V is set.
9 years ago
Georgi Chorbadzhiyski
20b533f5a8
Add configuration commands.
Add support for setting video input/output names, video output locking
and video output routing.
9 years ago
Georgi Chorbadzhiyski
79ae59d671
Change output formatting to better show port locks and numbers.
Show port numbers next to inputs and outputs and locks next to
outputs to better reflect the logic for their manipulation.
9 years ago
Georgi Chorbadzhiyski
27b93c7db5
Exit when invalid parameter is given.
9 years ago
Georgi Chorbadzhiyski
851545ad9f
Rename -s parameter (host) to -h.
Now the short parameter is the first letter of the long parameter
which is much more natural.
9 years ago