Instruction manual

FS-8707-11 Convia XML Manual Page 8 of 16
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: support@fieldserver.com
5.4 Map Descriptor Example.
At least one Client Side Map Descriptor needs to be defined to select the actual XML page containing Attributes and Elements relating to the XML data on the
Remote Gateway device. Multiple Map Descriptors can be configured to fetch different XML pages.
// Client Side Map Descriptors
//
Map_Descriptors
Map_Descriptor_Name
, Data_Array_Name
, Data_Array_Offset
, Function
, Node_Name
, Command
, XML-URL
, Scan_Interval
CMD_DEV_DATA
, DA_HTTP_STR
, 0
, Rdbc
, Gateway_1
, HTTP-GET
, "cgi-bin/tscontrol?Command=GetFieldServerXML&"
, 2s
Selected data from the XML page(s) selected above is extracted and placed into Data Arrays.
// Read from Convia Smart Controllers (Two controllers namely C1 and C2 are specified below)
Map_Descriptors
Map_Descriptor_Name
, Data_Array_Name
, Data_Array_Offset
, Function
, Node_Name
, Attribute
, Search_Attribute
, Search_Value
, Write_Command
C1_ID_Number
, DA_ID
, 0
, Passive_Client
, Gateway_1
, Idnumber
, Name
, Lounge
, -
C1_Volume
, DA_VOLUME
, 0
, Passive_Client
, Gateway_1
, Volume
, Name
, Lounge
, “Value=<local>&dataitem=<DA_ID:0>"
C2_ID_Number
, DA_ID
, 1
, Passive_Client
, Gateway_1
, Idnumber
, Name
, Dining
, -
C2_Volume
, DA_VOLUME
, 1
, Passive_Client
, Gateway_1
, Volume
, Name
, Dining
, “Value=<local>&dataitem=<DA_ID:1>"
The function of the Map Descriptor must
be Rdbc.
The Search Attribute and Search Value define the
Attribute and Attribute Value to be used as the search
criteria for finding the correct Child Element.
The <local> and <Data_Array_Name> values are replaced
by actual values from the Data Arrays before the write is
executed