Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 12

Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide: Chapter 3 BAR Reference, pages 63 to 72

Pages 63 to 72 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 63

BAR Reference

The data length header field (bytes 2 and 3) specifies a length of 20 (0x14), the actual length of the three ASCII, NULL-terminated strings returned for the date, time and day. The date is returned in the first string, the time is returned in the second string and the day is returned in the third, all as ASCII, NULL-terminated strings with the following formats: mm-dd-yy mm– represents month (01-12) dd – represents day (01-31) yy – represents year (80-79) (19802079)

hh:mm:ss hh – represents hour (00-23) mm – represents minutes (00-59) ss – represents seconds (00-59)

d d – represents day (0-6) (0 is Sunday) Table 3-29. Get Host Date and Time Return Codes

Value 0x00 0x01 0x05 0x06

Name BAR_RTN_OK BARERR_BADPAK BARERR_OPERATIO N BARERR_UNKNOWN

Description good return invalid packet host operation error occurred unimplemented BAR error

3-21

Page 64

SAB II - Programmer’s Reference Guide

Administrative BARs The SAB and Spectrum One network require certain administrative functions be performed. The administrative BARs fulfill the SAB remote operational requirements. The administrative BARs exist on both the host and the SAB and provide the following functions: • standardized interface between the host and the SAB • network command and control: • examine/change radio channels • examine/remove terminals • examine/remove transceivers • restart • get topology • get/clear statistics • get SAB version. The SAB processes all administrative commands in the server mode. The host issues command packets to the SAB. The SAB issues response packets when command processing completes. When a command is processed a response to the host is always returned.

3-22

Page 65

BAR Reference

Get Units Requests unit numbers as bit-field information for assigned terminals and transceivers. Table 3-30. Get Units Command Packet

Byte Value 0 VAR

Description flags

1 2 3 4 5 6 7 command code data length data length function code subfunction code message length message length

0x40 0x00 0x00 0x00 0x20 0x00 0x00

Details bit 0= 1 command packet bit 1-7 reserved BAR_ADMIN

FUNC_GETINFO SFUNC_UNITS LSB MSB

No data field is sent with this packet. Table 3-31. Get Units Response Packet

Byte Value 0 VAR 1 2 3 4 5 6 7

VAR VAR VAR 0x00 0x20 VAR VAR

Description flags

Details bit 0 = 0 response packet bit 1-7 reserved return code Refer to Table 3-32 data length LSB data length MSB function code FUNC_GETINFO subfunction code SFUNC_UNITS message length LSB message length MSB

The data field returned with this packet is a bit-field form containing information on currently assigned remote unit numbers. The data is formatted into 512 bits (64 bytes) with each bit representing a transceiver or remote.

3-23

Page 66

SAB II - Programmer’s Reference Guide

Transceivers are assigned numbers (and corresponding bits) in the 1 to 63 range. Remotes are in the 65 to 511 range. A unit number of 0 is assigned to uninitialized transceivers and a unit number is 64 is assigned to uninitialized remotes. Table 3-32. Get Units Return Codes

Value 0x00 0x01

3-24

Name BAR_RTN_OK BARERR_BADPAK

Description good return invalid packet

Page 67

BAR Reference

Delete Specific Remote Units Requests SAB remove assigned remote units specified in the command packet data field. Table 3-33. Delete Specific Remote Units Command Packet

Byte Value 0 VAR 1 2 3 4 5 6 7

0x40 VAR VAR 0x01 0x21 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_DELUNITS message length LSB message length MSB

The data field contains the all remotes unit numbers selected for removal from the current configuration. The data is formatted as a unsigned-integer variable number (2 bytes each) that represent the unit numbers to delete. The entire packet is rejected if the numbers do not range from 65 to 511. Table 3-34. Delete Specific Remote Units Response Packet

Byte Value 0 VAR 1 2 3 4 5 6 7

VAR 0x00 0x00 0x01 0x21 0x00 0x00

Description flags bit 1-7 return code data length data length function code subfunction code message length message length

Details bit 0 = 0 response packet reserved Refer to Table 3-35

FUNC_SETINFO SFUNC_DELUNITS

3-25

Page 68

SAB II - Programmer’s Reference Guide

No data field returns with this response. Table 3-35. Delete Specific Remote Units Return Codes

Value 0x00 0x01 0x02

3-26

Name BAR_RTN_OK BARERR_BADPAK BAREER_BADDATA

Description good return invalid packet invalid unit number

Page 69

BAR Reference

Get Radio Frequencies Requests SAB return the currently defined radio channels and associated signal strengths. The channels are previously selected by default or using the SSP.INI file to define them. Table 3-36. Get Radio Frequencies 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_RADIO message length message length

0x40 0x00 0x00 0x00 0x02 0x00 0x00

Details bit 0 = 1 command packet bit 1-7 reserved BAR_ADMIN

No data field is sent with this packet. Table 3-37. Get Radio Frequencies Response Packet

Byte Value 0 VAR 1 2 3 4 5 6 7

VAR VAR VAR 0x00 0x02 VAR VAR

Description flags

Details bit 0 = 0 response packet bit 1-7 reserved return code Refer to Table 3-38 data length LSB data length MSB function code FUNC_GETINFO subfunction code SFUNC_RADIO message length LSB message length MSB

The data within this packet returns in an ordered fashion, the 12 defined frequencies used for the remote-to-transceiver and transceiver-to-transceiver radio channels. The 2 primary data structures are defined below.

3-27

Page 70

SAB II - Programmer’s Reference Guide

The CHANNEL data structure contains, in Byte 0, the channel number currently in use along with its signal quality index in bytes 1-2. The higher the signal quality value, the quieter the channel. The SETRADIO data structure contains the 12 defined frequencies in a CHANNEL type array. The first six defined channels are for remote-to-transceiver radio, and the latter six channels are for transceiver-to-transceiver. The user selection frequencies are contained in the following two bytes, transceiver-to-remote and transceiver-to-transceiver respectively. Table 3-38. Get Radio Frequencies Return Codes

Value 0x00 0x01

3-28

Name BAR_RTN_OK BARERR_BADPAK

Description good return invalid packet

Page 71

BAR Reference

Select New Remote Frequency Requests SAB assign the specified radio channel as the "in-use" channel for remote-totransceiver and transceiver-to-transceiver radio communication. The specified frequency is one of the currently defined 6 frequencies allowed for use. Use the Get Radio Frequency to obtain the set of 6 available frequencies. Table 3-39. Select New Remote Frequency Command Packet

Byte Value 0 VAR 1 2 3 4 5 6 7

0x40 VAR VAR 0x01 0x02 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_RADIO message length LSB message length MSB

The data field contains two bytes for the selected frequency. An error is generated if the frequency selected is not one of the currently defined frequency sets. Five minutes before a frequency change, the system notifies all transceivers and listening terminals. If only one frequency field is changed, others can be set to zero. Byte 0 is the transceiver-to-remote channel and byte 1 is the transceiver-to-transceiver channel.

3-29

Page 72

SAB II - Programmer’s Reference Guide Table 3-40. Select New Remote Frequency 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_RADIO message length message length

VAR 0x00 0x00 0x01 0x02 0x00 0x00

Details bit 0 = 0 response packet bit 1-7 reserved Refer to Table 3-41

No data field returns with this response. Table 3-41. Select New Remote Frequency Return Codes

Value 0x00 0x01 0x02

3-30

Name BAR_RTN_OK BARERR_BADPAK BAREER_BADDATA

Description good return invalid packet invalid channel specified