Appendix c.2. driver stats – FieldServer FS-8700-66 User Manual
Page 23

FS-8700-66 GE-SNP Driver Manual
Page 23 of 28
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 C.2. Driver Stats
The GE-SNP Serial Driver records statistics differently from the way that FieldServer driver normally records
statistics. This difference arises from the fact that this driver is not a simple poll response driver - a single poll can
generate a large number of response fragments.
Fragment Ack/Nack messages are NOT counted as messages but the Bytes sent/received are counted. Connection
messages are counted as messages and the Bytes sent/rcvd are counted.
This driver can expose these and additional statistics by writing data to a Data Array.
A special Map Descriptor is required. The driver recognizes the Map Descriptor by its name which must be "SNP-
stats”.
Example: Configuration of this special Map Descriptor
Nodes
Node_Name,
Protocol
Null_Node,
SNP
Data_Arrays
Data_Array_Name
, Data Format
, Data_Array_Length
SNP_STATS
, UINT32
, 660
Map_Descriptors
Map_Descriptor_Name
, Data_Array_Name
, Node_Name
, Length
snp-stats
, SNP_STATS
, Null_Node
, 660
The Driver uses the Data Array SNP_STATS (in this example) to store driver specific statistics. Only one of these
Map Descriptors may be specified (per tier) per FieldServer.
The driver stores the following stats for each port. The offset into the Data Array can be found by multiplying the
port number by 60
No Message
Description
0 GE_STAT_CPU_ID
This is 10 Bytes long. The numbers placed here correspond to the ASCII
characters of the responding Node's name.
11 GE_STAT_T1_TIMER
The current value of the T1 timer is reported here. The driver uses the
larger of its own or the slave T1 Timer.
12 GE_STAT_MBOX_NAK_MAJOR
Most recent Mailbox Nak error code. See additional table below
13 GE_STAT_MBOX_NAK_MINOR
14 GE_STAT_MBOX_NAK_CNT
Mailbox Nak error Count
15 GE_STAT_MBOX_PROG_NUM
Most recent Piggyback info
16 GE_STAT_MBOX_SWEEP
17 GE_STAT_MBOX_PLC_STAT
18 GE_STAT_MBOX_PRIV_LVL
19 GE_STAT_NO_NODES
If a poll for a SNP Node is received and there are no Nodes defined or
there is no matching Node.
20 GE_STAT_CONNECT_ATTEMPT Counts the number of time a connection attempt is made