Page 22 of 29FS-8700-66_GE-SNP Manual

Page 22 of 29

Appendix B.1. Driver Stats

The statistics recorded by the GE-SNP Serial Driver are slightly different 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. Bear in mind that a single poll can generate a large number of response fragments.

Fragment Ack/nack messages are NOT counted as messages but the bytes sent/rcvd 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

When the driver sees this Map Descriptor it 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

 

 

 

 

 

This is 10 bytes long. The numbers placed

0

GE_STAT_CPU_ID

here correspond to the ASCII characters of

 

 

the responding Node's name.

 

 

The current value of the T1 timer is

11

GE_STAT_T1_TIMER

reported here. The driver uses the larger of

 

 

its own and the slave T1 Timer.

12

GE_STAT_MBOX_NAK_MAJOR

Most recent Mailbox Nak error code. See

13

GE_STAT_MBOX_NAK_MINOR

additional table below

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

 

FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com Tel: (408) 262-2299 Fax: (408) 262-2296 Toll_Free: 888-509-1970 email: support@fieldServer.com

Page 22
Image 22
FieldServer FS-8700-66 instruction manual Appendix B.1. Driver Stats