The text of a manual · part 4 of 12
Spectrum One Serial Access Bridge (SAB) II Programmer's Reference Guide: Chapter 2 Serial Packet Protocol Transactions, pages 15 to 24
Pages 15 to 24 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 15
Chapter 2
Serial Packet Protocol Transactions The serial packet protocol performs all serial I/O routines and all receive and transmit data buffering. NetBIOS internally routes data between the packet protocol and the SAB interface. The SAB usually initiates transactions, but the protocol defines the host as sending a request and the SAB as sending an indication. The transaction types and the field functions depend on the transaction directions. The transaction types and packet field definitions are organized: • Packet Field Definitions from SAB to host • Transactions from SAB to host • Packet Field Definitions from host to SAB • Transactions from host to SAB. Note: Each packet description includes the ucntr number in parenthesis. A uadr is a number from 001 to 064 indicating the terminal address. Administrative BARs have a uadr of 126. File Access BARs have a uadr of 127. In the table, 0nn indicates the terminal address.
2-1
Page 16
SAB II - Programmer’s Reference Guide Table 2-1. SAB to Host Packets uadr ucntr Packet 0nn 00 Application data from terminal to host. First packet of 2-packet transaction. 0nn 01 Application data form terminal to host. Last packet of 1 or 2-packet transaction. 0nn 02 Connect Indication. 0nn 03 Disconnect Indication. 0nn 04 Set Parameters Indication. 0nn 05 Positive Acknowledgment Indication. 0nn 06 Negative Acknowledgment Indication. 0nn 60 Application data from terminal to host. First packet in a multi-packet transaction. 0nn 61 Application data from terminal to host. Intermediate packet in a multipacket transaction. 0nn 62 Application data from terminal to host. Last packet in a multi-packet transaction. 126 70 Administrative BAR Indication. First packet in a multi-packet transaction. 126 71 Administrative BAR Indication. Intermediate packet in a multi-packet transaction. 126 72 Administrative BAR Indication. Last packet in a multi-packet transaction. 127 70 File Access BAR Indication. First packet in a multi-packet transaction. 127 71 File Access BAR Indication. Intermediate packet in a multi-packet transaction. 127 72 File Access BAR Indication. Last packet in a multi-packet transaction.
2-2
Page 17
Serial Packet Protocol Transactions Table 2-2. Host to SAB Packets uadr ucntr Packet 0nn 00 Application data from host to terminal. First packet of 2-packet transaction. 0nn 01 Application data from host to terminal. Last packet of 1 or 2-packet transaction. 0nn 02 Connect Request. 0nn 03 Disconnect Request. 0nn 04 Set Parameters Request. 0nn 07 Unsolicited Application data From host. First packet of a 2-packet transaction. 0nn 08 Unsolicited Application data From host. Last packet of a 1 or 2-packet transaction. 000 20 Reset Request. 000 21 Hang Up Request. 0nn 60 Application data from host to terminal. First packet in a multi-packet transaction. 0nn 61 Application data from host to terminal. Intermediate packet in a multipacket transaction. 0nn 62 Application data from host to terminal. Last packet in a multi-packet transaction. 126 70 Administrative BAR Request. First packet in a multi-packet transaction. 126 71 Administrative BAR Request. Intermediate packet in a multi-packet transaction. 126 72 Administrative BAR Request. Last packet in a multi-packet transaction. 127 70 File Access BAR Request. First packet in a multi-packet transaction. 127 71 File Access BAR Request. Intermediate packet in a multi-packet transaction. 127 72 File Access BAR Request. Last packet in a multi-packet transaction.
2-3
Page 18
SAB II - Programmer’s Reference Guide
Packet Field Definitions From SAB To Host 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-3. Packet Description From SAB to Host
Field ustrt uadr ucntr
2-4
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 follows:
Page 19
Serial Packet Protocol Transactions Table 2-3. Packet Description From SAB to Host
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 contains ASCII value 022 indicating 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. 05 No packet information. Positive Acknowledgment Indication. 06 No packet information. Negative Acknowledgment Indication. 60 data field contains terminal application data. First packet in a multi-packet transaction. The ucnt field contains the number of data field characters. 61 data field contains terminal 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 terminal application data. It is the last packet in a multi-packet transaction. The ucnt field contains the number of data field characters.
2-5
Page 20
SAB II - Programmer’s Reference Guide Table 2-3. Packet Description From SAB to Host
Field ucntr
Packet Information ucnt data uend
2-6
Description 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 71-packets in a transaction. The ucnt contains the number of characters in data field. 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 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. This optional application data can be any ASCII characters. Binary data can also be the data field 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 21
Serial Packet Protocol Transactions
Transactions From SAB to Host This section covers the transactions that the terminal can send to the host through the SAB. Some transactions listed are only exchanged between the host and the SAB and may not be seen by the terminal.
Application Data From Terminal to Host (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-7
Page 22
SAB II - Programmer’s Reference Guide
Connect Indication (02) ucntr:
02
Connect Indication allows the SAB to log a terminal to the host. It indicates to the host that a logical connection has been made with the terminal identified in the packet information field. Terminal ID and host ID log-on information is sent in the packet information field to the host. Terminals that log on to the network make a connection with the host using a Connect Indication Packet. The Connect Indication starts the datagram or session mode. The ucnt field is always 022, the total character count of 6-character terminal ID and 16character Host ID.
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-8
Page 23
Serial Packet Protocol Transactions
Disconnect Indication (03) ucntr: 03 The Disconnect Indication allows the SAB to log off a terminal from the host. It indicates to the host that the logical connection has been terminated with the terminal. The host cannot initiate a disconnect sequence by sending a Disconnect Request packet. The SAB ignores all Disconnect Request packets that are not in response to a Disconnect Indication. However, the host can request that the SAB start a disconnect sequence by sending a Hang Up Request to the SAB. There is no packet information included in a Disconnect Indication packet. The Disconnect Indication is in datagram or session mode.
2-9
Page 24
SAB II - Programmer’s Reference Guide
Set Parameters Indication (04) ucntr:
04
The Set Parameters Indication notifies the host the transmission mode set by the terminal application. Only the terminal can set the transmission mode. The SAB automatically sends the Set Parameters Indication after receiving the Connect Request from the host. The terminal does not send the Set Parameter Indication over the radio link. The Set Parameters Indication packet contains a data field value of 0 for datagram mode and 1 for session mode. For this packet, the ucnt field always contains 001. uadr ustrt
S
T
X
0
0
1 ucntr
0
4
0 ucnt
0
1 data uend
CR
0 to Host Set Parameters Indication in Datagram Mode uadr ustrt
S
T
X
0
0
1 ucntr
0
4
0 ucnt
0
1 data
1 to Host Set Parameters Indication in Session Mode
2-10 uend
CR