The text of a manual · part 11 of 12
Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide: Chapter 3 BAR Reference, pages 83 to 88
Pages 83 to 88 of 94, from Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide
The original document is the PDF (1.8 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Symbol SAB-Lite
Page 83
BAR Reference
Get Statistics Requests SAB return Spectrum One network statistics. System statistics provides the packet count and DCR errors detected within sampling time frame. Table 3-54. Get Statistics Command Packet
Byte Value 0 VAR
Description flags
1 2 3 4 5 6 7 command code data length data length function code FUNC_GETINFO subfunction code SFUNC_STATS message length message length
0x40 0x00 0x00 0x00 0x0A 0x00 0x00
Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN
No data field is sent with this packet. Table 3-55. Get Statistics Response Packet
Byte Value 0 VAR 1 2 3 4 5 6 7
VAR VAR VAR 0x00 0xA0 VAR VAR
Description flags
Details bit 0 = 0 response packet bit 1-7 reserved return code Refer to Table 3-56 data length LSB data length MSB function code FUNC_GETINFO subfunction code SFUNC_STATS message length LSB message length MSB
3-41
Page 84
SAB II - Programmer’s Reference Guide
The data returned is a set of long integers (4 bytes each) detailing the statistics. The following is a mnemonic description of each field. Bytes 00-03
ErrInternal
Internal errors
Bytes 04-07
CtrlRcvd
Control packets received
Bytes 08-11
CtrlSent
Control packets sent
Bytes 12-15
PaksToNet
Packets sent to network
Bytes 16-19
PaksFromNet Packets received from network
Bytes 20-23
DcrErrs
DCR errors reported
Table 3-56. Get Statistics Return Codes
Value 0x00 0x01
3-42
Name BAR_RTN_OK BARERR_BADPAK
Description good return invalid packet
Page 85
BAR Reference
Clear Statistics Requests SAB clear Spectrum One network statistics and zero all statistics structure fields. Table 3-57. Clear Statistics Command Packet
Byte Value 0 VAR
Description flags
1 2 3 4 5 6 7 command code data length data length function code FUNC_SETINFO subfunction code SFUNC_STATS message length message length
0x04 0x00 0x00 0x01 0xA0 0x00 0x00
Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN
No data field is sent with this packet. Table 3-58. Clear Statistics Response Packet
Byte Value 0 VAR
Description flags
1 2 3 4 5 6 7 return code data length data length function code FUNC_SETINFO subfunction code SFUNC_STATS message length message length
VAR 0x00 0x00 0x01 0xA0 0x00 0x00
Details bit 0 = 0 response packet bit 1-7 reserved Refer to Table 3-59
3-43
Page 86
SAB II - Programmer’s Reference Guide
No data field returns with this response. Table 3-59. Clear Statistics Return Codes
Value 0x00 0x01
3-44
Name BAR_RTN_OK BARERR_BADPAK
Description good return invalid packet
Page 87
BAR Reference
Command Code Values Command, function, sub-function and return code values are as follows: Table 3-60. Command Codes
Value Name 0x40 BAR_ADMIN
Description Administrative Request Table 3-61. Function Codes
Value Name 0x00 FUNC_GETINFO 0x01 FUNC_SETINFO
Description Get Administrative Information Set Administrative Information
Table 3-62. Sub-Function Codes
Value 0x02 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x90 0xA0
Name SFUNC_RADIO SFUNC_UNITS SFUNC_DELUNITS SFUNC_DELBASES SFUNC_RESTART SFUNC_UPDBR SFUNC_LOGLVL SFUNC_VERSIONS SFUNC_TOPOLOGY SFUNC_STATS
Description Radio Frequencies Remote and Transceiver Unit Numbers Remove Remote Terminals Clear Transceiver NVM Memory Restart SAB SAB Software Logging Level SAB Version SAB Topology SAB Statistics
3-45
Page 88
SAB II - Programmer’s Reference Guide Table 3-63. Administrative BAR Command Summary
Command Get Radio Frequencies Select New Remote Frequency Get Units Delete Specific Remote Units Delete Specific Transceiver Unit Restart SAB Select SAB Software Update Get SAB Software Update Information Get Debug Logging Levels Set Debug Logging Levels Get Current SAB Version Get Topology Get Statistics Clear Statistics
3-46
Command Code 0x40 0x40 0x40 0x40 0x40 0x40 0x40 0x40
Function Code 0x00 0x01 0x00 0x01 0x01 0x01 0x01 0x00
Sub-Function Code 0x02 0x02 0x20 0x21 0x22 0x23 0x24 0x24
0x40 0x40 0x40 0x40 0x40 0x40
0x00 0x01 0x00 0x00 0x00 0x01
0x25 0x25 0x26 0x90 0xA0 0xA0