Appendix a.3.1, Showresponse attributes driver table, Appendix a.3.2 – FieldServer FS-8700-41 User Manual
Page 20: Show response attribute states driver table

FS-8700-41 Simplex 4100 Driver Manual
Page 20 of 48
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com
Tel: (408) 262 2299 Fax: (408) 262 2269 Toll Free: (888) 509 1970 email: [email protected]
Appendix A.3. Extending the List of Show Attributes
The list of attributes and attribute states that the driver recognizes can be extended by modifying the configuration CSV file.
Appendix A.3.1.
ShowResponse Attributes Driver Table
Column Title
Function
Legal Values
Protocol
Specify protocol used
Sim4100
sim4100_Attr_Name
The SHOW command response consists of a number of
attributes and their current state/values. This parameter
is used to add a new attribute to the table.
The
exact
character
sequence
must
be
specified. May include an
= sign.
sim4100_Attr_Offset
This parameter defines the offset in the Data Array where
the current state/value of the attribute with the name
defined above must be stored. Ensure there is sufficient
space for attributes with multiple values.
May not be zero.
sim4100_Attr_Method
This parameter selects the method for converting the
current state/value for storage in the Data Array.
1,2,3
May not be zero.
Appendix A.3.2.
Show Response Attribute States Driver Table
Column Title
Function
Legal Values
Protocol
Specify protocol used
Sim4100
sim4100_Attr_State_Name
Use this parameter to extend this list of
predefined attribute states.
Define a state word such as ‘Normal’ and associate
a value using the ‘value’ parameter.
sim4100_Attr_State_Value
This parameter is the value to be
associated with the ‘name’
May not be zero.
The following example adds three attributes and 4 attribute states. If a device reports an attribute of ‘LIGHT STATE’ as
‘BRIGHT’ then the driver will load array element 32 with the value 41.
Driver_Table
sim4100_Attr_Name , sim4100_Attr_Offset , sim4100_Attr_Method , Protocol
BROKEN
, 30
, 1
, sim4100
FIXED
, 31
, 1
, sim4100
LIGHT STATE
, 32
, 1
, sim4100
Driver_Table
sim4100_Attr_State_Name , sim4100_Attr_State_value , Protocol
DIM
, 40
, sim4100
BRIGHT
, 41
, sim4100
Attribute States.
Use values that are not allocated to the pre-
defined list of states.
Protocol must
be defined on
every line.
Protocol must
be defined on
every line.
Keyword starts a
new section of the
CSV file.
Attribute Definitions. The
name will be stripped of
all spaces between the
last character and the
comma.
Ensure that unique
offsets are
allocated.
Use a digit. The three
methods are
described above.