Linksys SPA9x2 Administration Guide 181
Creating an LED Script
A
Creating an LED Script
LED Script
The LED script describes the color and blinking pattern of a Line Key LED. Each script
contains a number of fields separated by a semicolon(;). White spaces are ignored. Each field
has the syntax <field-name> = <field-value>. The allowed field-name and corresponding
field-values are listed below:
c=o|r|g|a
This field sets the color of the LED. The 4 choices are:
o = off
r = red
g = green
a = amber
p=n[b]|s[b]|f[b]|d[b]|u[d]
This field sets the blinking pattern of the LED. The 4 choices are:
nb = no blink (steady on or off)
sb = slow blink (1s on and 1s off)
fb = fast blink (100ms on and 100ms off)
ud = user-defined (according to the contents of the u field)
u=on/off/on/off/etc.
This is a user-defined blinking pattern used only when p = ud. It consists of up to 4 pairs of
on/off duration in seconds with up to 2 decimal places; each value is separated by a forward
slash (/).
LED Script Examples
Example 1
c=r;p=sb
Color is red and pattern is slow blink
Example 2
c=o
LED is off
Example 3
c=g
Color is green and pattern is steady on (default)
Example 4
c=a;p=ud;u=.1/.1/.1/.1/.1/.9
Color is amber and the blink pattern is: 100ms on, 100ms off, 100ms on, 100ms
off, 100ms on, 900ms off