User Guide
DDOC0099-000-AH
DTS1 CSfC
12 - 24
Command Line Interface
© 2020 Curtiss-Wright Defense Solutions
Revision 5.0
12.3.14
ledctrl
Description
The ledctrl command allows the user to set the duty cycle (brightness) of the DTS LEDs. When the
duty cycle option is not provided, current duty cycle and on/off state of LEDs is reported. LED 0 is
the POWER LED, other LEDs are reserved.
Syntax
ledctrl
[
-h
|
--help
|
--versio
n]
ledctrl
[
-l
ledNum] [
-d
dutyCycle]
Options
-h
,
--help
............................Print help message.
--version
............................Print program version.
-d
,
--duty
<num>................Set LED duty cycle (0 - 100%). Duty cycle of 0 will prevent the LED
from lighting.
-l
,
--led
<str>....................LED number ('A' for all LEDS: 0,1,2,3,4,5,6,7)
Example:
Status display
NOTE
Line wrap above simulated for viewability
Line Identifier
LED ........................................LED status line
Fields
s#=<s>
..................................State of LED number #
d#=<d>
..................................Duty cycle setting of LED number #
status=<sts>
.....................Summary status for the line
Enumerated types
(See above examples in fields)
<s> .........................................State of LED. Integer: 0 for off, 1 for on.
<d>.........................................Duty cycle. Integer: 0 to 100
<sts> ......................................Status message (OK, ERR <str>)
<str> .......................................Text string
<summary> ............................Command status summary (OK, ERR)
Example:
Set duty cycle of all LEDs to 75%
cw_dts>
ledctrl
[ledctrl]
LED: s0=<s> d0=<d> s1=<s> d1=<d> s2=<s> d2=<d> s3=<s> d3=<d> s4=<s> d4=<d> s5=<s>
d5=<d> status=<sts>
[!ledctrl] <summary>
cw_dts>
ledctrl -l A -d 75
[ledctrl]
LED: status=<sts>
[!ledctrl] <summary>