The text of a manual · part 10 of 12
Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide: Chapter 3 BAR Reference, pages 73 to 82
Pages 73 to 82 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 73
BAR Reference
Delete Specific Transceiver Unit Requests SAB clear the NVM on specified transceiver. Use this command before removing a transceiver from the Spectrum One network. The transceiver non-volatile memory (NVM) contains frequencies, chipping sequences, and transceiver numbers that are invalid in another network. Transceivers operate with old unit numbers until physically removed from the network or reset. Table 3-42. Delete Specific Transceiver Unit Command Packet
Byte Value 0 VAR 1 2 3 4 5 6 7
0x40 VAR VAR 0x01 0x22 VAR VAR
Description flags
Details bit 0 = 1 command packet bit 1-7 reserved command code BAR_ADMIN data length LSB data length MSB function code FUNC_SETINFO subfunction code SFUNC_DELBASES message length LSB message length MSB
The data field contains the transceiver unit number selected for removal from the configuration. The data is formatted as an unsigned-integer (2 bytes) from 3 to 63.
3-31
Page 74
SAB II - Programmer’s Reference Guide Table 3-43. Delete Specific Transceiver Unit 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_DELBASES message length message length
VAR 0x00 0x00 0x01 0x22 0x00 0x00
Details bit 0 = 0 response packet bit 1-7 reserved Refer to Table 3-44
No data field returns with this response. Table 3-44. Delete Specific Transceiver Unit Return Codes
Value 0x00 0x01 0x02
3-32
Name BAR_RTN_OK BARERR_BADPAK BAREER_BADDATA
Description good return invalid packet invalid transceiver number
Page 75
BAR Reference
Restart SAB Requests SAB restart with warm boot. The host is unaffected except losing session connection to SAB. The SAB responds before executing the warm boot. A message indicating time and SAB version is sent to the host when the SAB is active again. Table 3-45. Restart SAB 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_RESTART message length message length
0x40 0x00 0x00 0x01 0x23 0x00 0x00
Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN
No data field is sent with this packet. Table 3-46. Restart SAB 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_RESTART message length message length
VAR 0x00 0x00 0x01 0x23 0x00 0x00
Details bit 0 = 0 response packet bit 1-7 reserved Refer to Table 3-47
3-33
Page 76
SAB II - Programmer’s Reference Guide
No data field returns with this response. Table 3-47. Restart SAB Return Codes
Value 0x00 0x01
3-34
Name BAR_RTN_OK BARERR_BADPAK
Description good return invalid packet
Page 77
BAR Reference
Get Current SAB Version Requests SAB return SAB software version as an ASCII NULL-terminated string. Table 3-48. Get Current SAB Version 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_VERSION message length message length
0x40 0x00 0x00 0x00 0x26 0x00 0x00
Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN
No data field is sent with this packet. Table 3-49. Get Current SAB Version Response Packet
Byte Value 0 VAR 1 2 3 4 5 6 7
VAR VAR VAR 0x00 0x26 VAR VAR
Description flags
Details bit 0 = 0 response packet bit 1-7 reserved return code Refer to Table 3-50 data length LSB data length MSB function code FUNC_GETINFO subfunction code SFUNC_VERSION message length LSB message length MSB
3-35
Page 78
SAB II - Programmer’s Reference Guide Table 3-50. Get Current SAB Version Return Codes
Value 0x00 0x01
3-36
Name BAR_RTN_OK BARERR_BADPAK
Description good return invalid packet
Page 79
BAR Reference
Get Topology Requests system topology from SAB. System topology gives information for displaying, in graphical format, all transceivers and remote assignments within the Spectrum One network. If the data returned is more than one packet, successive packets are sent until all data is sent. The response packet identifies whether response is complete or if more data is being sent. Table 3-51. Get Topology 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_TOPOLOGY message length message length
0x40 0x00 0x00 0x00 0x90 0x00 0x00
Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN
No data field is sent with this packet.
3-37
Page 80
SAB II - Programmer’s Reference Guide Table 3-52. Get Topology Response Packet
Byte Value 0 VAR
1 2 3 4 5 6 7
VAR VAR VAR 0x00 0x90 VAR VAR
Description flags
Details bit 0 = 0 response packet bit 1 not used bit 2 = 0 EOT (no more packets) = 1 More data to send bit 3-7 not used return code Refer to Table 3-53 data length LSB data length MSB function code FUNC_GETINFO subfunction code SFUNC_TOPOLOGY message length LSB message length MSB
The Get Topology command often returns more than a single packet. Bit 2 in the flags field indicates that more data exists in successive packets. This bit is set for all packets except the last. Data returned from a Get Topology command contains a linear list of 2 or more topology table structures. It contains one topology table structure for each unit (pseudo transceiver, hardware transceiver, terminal) in the topology. There are always two pseudo transceivers and two or more topology table structures returned. Each 41-byte table represents a node.
3-38
Page 81
BAR Reference
The topology table structure is defined as: typedef struct// Topology table { BYTE bLevel; // Display Level UNITTYPE utType; // Unit type USHORT usUnit; // Unit number USHORT cusChildren; // Number of children USHORT ausLevel[16]; // Unused MEDIA media; // Media type } TOPTABLE;
bLevel an integer between 0 and 3 indicating the display level of the network element. Corresponds to screen column that the element description string is typically printed in. 0 pseudo-transceivers 1 primary-transceiver or remotes-in-cradle 2 coax-transceivers or remotes-attached-to-primary-transceiver 3 remotes-attached-to-coax-transceiver utType unit type defined as: typedef enum// { UT_UB, // UT_PB, // UT_HB, // UT_UR, // UT_RA, // UT_RC, // UT_NUM //
Unit types Uninitialized transceiver Pseudo-transceiver Hardware transceiver Uninitialized remote Remote on Air Remote in Cradle Number of enums
} UNITTYPE;
usUnit network element unit number.
cusChildren number of downstream units that a particular unit, such as a transceiver, has allocated to it.
ausLevel[] unused empty array.
3-39
Page 82
SAB II - Programmer’s Reference Guide media indicates the media type associated with the unit defined as: typedef enum // { MED_UNINIT, // MED_PSEUDO, // MED_PLUGIN, // MED_SERIAL, // MED_COAX, // MED_RF, // MED_NUM //
Connection media Uninitialized transceiver Pseudo-transceiver Plug-in transceiver Serial (RS-232/422) Coaxial cable Radio Number of MEDIA types
} MEDIA;
The topology table structure order within the data returned from the Get Topology command is important. The order is the same as the line-by-line unit listing as on a topology listing. The pseudo-code for generating the topology data might be: Recurse( unit ) { output_top_structure( unit ); for( loop = 1 to unit -> cusChildren ) { Recurse( child[ loop ] ); } } main() { Recurse( pseudo_transceiver_1 ); Recurse( pseudo_transceiver_2 ); }
Table 3-53. Get Topology Return Codes
Value 0x00 0x01 0x05
3-40
Name BAR_RTN_OK BARERR_BADPAK BARERR_OPERATIO N
Description good return invalid packet not enough resources to process command