Usage:
Arguments:
-p portno | Set server port on hostname (default=7000) |
-erl x | Set error-reporting level to x (meaning is card specific) |
-speed x | Set channel to preset speed index x. |
-term on|off | Set channel termination (if supported by channel type) |
-init | Soft-initialize channel |
-hinit | Hard-initialize channel |
-blm x -win y | Set bus load monitor mode to x with period/window of y> blm mode 0 = bus load monitor off blm mode 1 = avg over time; y = seconds blm mode 2 = avg over #messages; y = window |
gchanctl is a command-line utility that allows channel control and status reporting.
When invoked with control arguments listed above, gchanctl allows the setting of those arguments for a channel.
Example:
bash# gchanctl localhost -c 3 -blm 1 -win 1 Channel 3: Bus load monitor mode set. bash#The above example sets bus load monitoring on channel 3 to time average with a 1-second averaging time.
When invoked with only the hostname, gchanctl displays status information about all installed channels. When invoked with a hostname and the -c channel argument, gchanctl displays status information about a selected channel.
Example:
bash# gchanctl localhost -c 3 Channel 3: Server at localhost: , ver. 2.0, serial 00:90:5A:00:00:22 Server configuration: 4 channels Ch. 3 Type 02/01. DG-CAN-82527 ver.2.0 ====================================================== Error reporting level: 1 Speed: 1 Bus load monitor mode: 1 (avg. over time) period: 100 Bus Load: 3.40% avg, 3.40% current, 3.40% peak, 3.40% hist. peak Rx Count: 64272 Rx Dropped: 0 Rx Err: 0 Tx Count: 64270 Tx Dropped: 0 Tx Err: 0In this example, statistics and configuration for channel 3 are requested and displayed.