Stargate NetBridge Gateway User’s Manual
The <
XConversionParam
> tag maps the variable in the function to a field name in the actual
parser. This allows users to build generic equations to use over and over and then map the actual
variables differently in each conversion function.
Table 8-5. XConversionParam Attributes
Attribute
Description
Required
variablename
The variable name in the equation which needs to be
mapped to a field
YES
Fieldname
The field name which is mapped to the variable in the
equation
YES
type
The type the field’s raw value needs to be cast to
when in the equation.
Possible values are:
•
byte
•
char
•
short
•
int
•
long
•
uint8
•
uint16
•
uint32
•
uint64
•
raw
•
string
•
float
•
double
YES
<XFilter>
Each Field Definition defines a parser for a particular type of packet. The <
XFilter
> tag
defines a filter which is used by
XServe
to determine whether a particular packet should be
parsed by this Field Definition. The XFilter is a set of logical operations on a set of conditions.
The available logical operations are AND, OR, and NOT. The logical operations can be nested
if required.
The MTS310 sensor board parser should only be used to parse a data packet based on the
following logic:
(AMTYPE == 0x31 OR AMTYPE==0x33) AND BOARDID==0x83
<XFilter>
<XCondAnd>
<XCondOr>
<XCond
name="IsEqual">
<XFilterParam
name="fieldname"
value="amtype"/>
<XFilterParam
name="fieldvalue"
value="0x31"/>
</XCond>
<XCond
name="IsEqual">
<XFilterParam
name="fieldname"
value="amtype"/>
<XFilterParam
name="fieldvalue"
value="0x33"/>
</XCond>
</XCondOr>
Page 46
Doc. # 7430-0449-01 Rev. A
Summary of Contents for Stargate NetBridge
Page 1: ...Stargate NetBridge Gateway User s Manual Revision A October 2007 PN 7430 0449 01 ...
Page 6: ......
Page 60: ......
Page 61: ......