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 5 of 12

Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide: Chapter 2 Serial Packet Protocol Transactions, pages 25 to 34

Pages 25 to 34 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 25

Serial Packet Protocol Transactions

Positive Acknowledgment Indication (05) ucntr:

05

The SAB sends a Positive Acknowledgment Indication to the host when it receives one of the following: • unsolicited host transaction in datagram mode. • host transaction in session mode. • Call Sign Request. • Hang Up Request • Reset Request. The acknowledgment does not indicate that the terminal received the data. It only indicates the correct data was received and passed on to the Spectrum One network. The Positive Acknowledgment Indication packet does not contain any optional packet information. uadr ustrt

S

T

X

0

0

1 ucntr

0

5 uend

CR to Host Positive Acknowledgment Indication

2-11

Page 26

SAB II - Programmer’s Reference Guide

Negative Acknowledgment Indication (06) ucntr: 06 The SAB sends a Negative Acknowledgment Indication to notify the host that the terminal failed to receive one of the following: • unsolicited host transaction in datagram mode. • host transaction in session mode. • Hang Up Request • Reset Request. It is not a Spectrum One network trouble indicator. There is no direct indication of delivery problems on the Spectrum One network side. The Negative Acknowledgment Indication packet does not contain any optional packet information. uadr ustrt

S

T

X

0

0

1 ucntr

0

6 uend

CR to Host Negative Acknowledgment Indication

2-12

Page 27

Serial Packet Protocol Transactions

Application Data Greater Than 512-Bytes from Terminal (60, 61, 62) ucntr: 60 - First packet from terminal to host. 61 - Intermediate packet from terminal to host. 62 - Last packet from terminal to host. This transaction transmits application data from the terminal to the host when the data exceeds 512 bytes. Up to four packets can be transmitted in one transaction (1024 bytes total). These packets are only allowed in asynchronous mode since datagrams are limited to a maximum of 512 bytes.

2-13

Page 28

SAB II - Programmer’s Reference Guide

Administrative BAR Response Indication (70, 71, 72) uadr:

126 ucntr:

70 - First packet of Administrative Bar Response 71 - Intermediate packet of Administrative Bar Response 72 - Last packet of Administrative Bar Response

The Administrative BAR Response Indication transfers BAR data between the SAB and host. These packets use uadr 126 (BAR Administrative Service) and uadr 127 (BAR File Service). Both operate in session mode. BAR packets contain binary data and should only be used if the link is set to 8 data bits and no parity.

2-14

Page 29

Serial Packet Protocol Transactions

File Service BAR Command Indication (70, 71, 72) uadr:

127 ucntr:

70 - First packet of File Service BAR command. 71 - Intermediate packet of File Service BAR command. 72 - Last packet of File Service BAR command.

2-15

Page 30

SAB II - Programmer’s Reference Guide

Packet Field Definitions From Host to SAB Information is transferred between the SAB and host through the serial packet protocol. A packet is a series of pre-defined data fields containing codes recognized by the SAB and host.

Table 2-4. Packet Description From Host to SAB

Field ustrt uadr ucntr

2-16

Description User start contains ASCII characters STX to indicate the start of the packet. User address. A 3-byte field containing the terminal address. The SAB assigns an incremental, modulo 64, lowest-available number. This field can specify up to 64 terminals. Addresses 000, 126 and 127 are reserved for system transactions. The host saves this address for future communication with the terminal assigned to a particular terminal ID. The address is received by the host when the SAB sends a Connect Indication. During terminal log off sequence, the host must send a Disconnect Request (in response to a Disconnect Indication) to allow another terminal to use that particular address. User control. A 2-byte ASCII character field that defines the transaction type. For transactions for the SAB to the host, the values in the ucntr field are as shown below:

Page 31

Serial Packet Protocol Transactions Table 2-4. Packet Description From Host to SAB

Field ucntr

Description 00 data field contains terminal application data. It is the first packet in a 2-packet transaction. The ucnt field contains the number of data field characters. 01 data field contains terminal application data. It is the only packet in a 1-packet transaction or the second packet in a 2-packet transaction. The ucnt field contains the number of data field characters. 02 data field contains terminal ID and host ID as part of the Connect Indication Packet. The ucnt field contains the ASCII value 022 indicating the data field character count. 03 No packet information. This is a Disconnect Indication transaction. 04 data field contains an ASCII value of 0 or 1 as part of the Set Parameters Indication packet. A value of 0 indicates datagram mode specified by the terminal. A value of 1 indicates session mode. The ucnt field contains the ASCII value of 001. 07 data field contains unsolicited application data from the host. It is the first packet in a 2-packet transaction. The unct field contains the number of bytes in the data field. 08 data field contains unsolicited application data from the host. It is the last packet in a 2-packet transaction. The unct field contains the number of bytes in the data field. 20 No packet information. Reset Request. 21 data field contains 3-character terminal uadr required for hang up request. 50 data field contains 3-character call sign identification message. 60 data field contains host application data. First packet in a multipacket transaction. The ucnt field contains the number of data field characters.

2-17

Page 32

SAB II - Programmer’s Reference Guide Table 2-4. Packet Description From Host to SAB

Field ucntr

Packet Information ucnt data uend

2-18

Description 61 data field contains host application data. It is an intermediate packet in a multi-packet transaction. There can be more than one 61-packets in a transaction. The ucnt field contains the number of data field characters. 62 data field contains host application data. It is the last packet in a multi-packet transaction. The ucnt field contains the number of data field characters. 70 data field contains the SAB BAR data. It is the first packet in a multi-packet transaction. Only one 70-packet is allowed in a transaction. The ucnt field contains the number of data field characters. The BAR packets contain binary data and should only be used if the serial link is set to 8-bit data and no parity. 71 data field contains the SAB BAR data. It is an intermediate packet in a multi-packet transaction. There can be more than one 71packets in a transaction. The ucnt field contains the number of data field characters. 72 data field contains the SAB BAR data. It is the last packet in a multi-packet transaction. Only one 72-packet is allowed in a transaction. The ucnt field contains the number of data field characters. The two-field packet information (ucnt and data) contains the actual application data transferred between the terminal and host. A 3-byte field that contains the data field character count. Optional data can be any ASCII characters. Binary data is possible but the application must use the value in the ucnt field to locate the end of the packet instead of searching the Return character in the uend field. The data type in the packet information depends on ucntr. User end contains the ASCII Return character (0x0D) to indicate end of packet.

Page 33

Serial Packet Protocol Transactions

Transactions From Host To SAB This section covers the transaction types that the host can send to the terminal through the SAB. Some transactions listed are only exchanged between the host and the SAB. The terminal never sees certain link administration transactions.

Application Data From Host to Terminal (00, 01) ucntr:

00 - First packet from terminal to host. 01 - Last packet from terminal to host.

This transaction transmits application data from the terminal to the host via the SAB. The transaction transmits up to two packets. Each packet contains up to 256 bytes of application data in its packet information field. The packets are used in datagram or session mode.

2-19

Page 34

SAB II - Programmer’s Reference Guide

Connect Request (02) ucntr: 02 The Connect Request indicates that it has accepted the log-on information from the SAB. It indicates to the SAB that a logical connection with the terminal identified by the data in the packet information field has been confirmed. Terminal ID and host ID log-on information is sent in the packet information field to the SAB. The terminal ID and host ID values must be identical to those received by the host from the SAB in the Connect Indication packet. The response is handled by the SAB. It is not sent to the terminal. The ucnt field is always 022, the total character count of 6-character Terminal ID and 16character Host ID. The Connect Indication starts the datagram or session mode.

Example: The log-on information is: Terminal ID is 000064 Host ID is HOST000001. The host must save the allocated value of 001 for future communication with this terminal. The host must associate the uadr of 001 with the terminal ID of 064. If more than one process is running on this host, the request process name must be saved for future data routing from the terminal.

2-20