The text of a manual · part 13 of 70
Model 200 Controller System Manual, pages 121 to 130
Pages 121 to 130 of 695
The original document is the PDF (3.9 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.
For the Intermec 0200
Page 121
Model 200 Controller User’s Manual
How the Controller Routes Transactions Transactions have a well-defined structure consisting of a header and data. The header contains a transaction ID, which the Model 200 Controller uses to determine the destination for a transaction. The transaction ID is the primary routing mechanism used by the controller. When the controller receives a transaction, it checks the system message flag. If the transaction is a system transaction, it is executed immediately. If the transaction is a data transaction, the controller routes the transaction by examining the transaction header: • If the destination field in the transaction header contains a name, the controller treats the transaction as if it came from an application. It uses the destination name to forward the transaction to the correct application or device. • If the destination field in the transaction header is blank, the controller uses the transaction ID field of the header to determine where to send the transaction. To ensure data integrity, a handshake is built into the routing system. When the controller delivers a transaction to a destination, it retains a copy of the transaction until the application sends back an ACK transaction. This ACK transaction is received by the controller ACK channel and it tells the controller that the application has responsibility for the transaction. Only then does the controller discard its copy and send another transaction to the application. Hot Standby logic controls how long the controller waits for an ACK transaction and what it does with other transactions while waiting.
Routing Transactions From Applications The Model 200 Controller can route transactions from applications to data collection devices or to other applications. These transactions contain a logical name for the destination. The logical name is either the name of an application or the name given to a device. The controller searches through internal tables that are created from the run-time configuration to find all the correct information about the destination.
1-18
Page 122
Learning About the Controller
1
If the destination is a device, the message handler determines the name of the DevComm that is servicing that device and forwards the transaction to it. The DevComm receives the transaction, translates the logical name into a physical device address, strips the header from the transaction, and transmits the data to the device. If the destination is another application, the routing process is more direct: the message handler only needs to know if the receiving transaction is active or inactive. In this example, the application sends a transaction to a specific destination using the destination name in the transaction header. The numbers on the following paragraphs correspond to the numbers on the illustration on the next page. The remote application (APP3) writes the transaction to the local receive NetComm through the network connection. The receive NetComm reads the transaction from APP3 and processes it. The receive NetComm writes the transaction to the Receive channel. The message handler reads the transaction from the Receive channel. The message handler determines the source of information and sends the transaction to the proper DevComm channel. The DevComm reads the transaction from its DCD channel. The DevComm translates the logical name into a physical address, strips the header information from the transaction packet, and delivers the data to the device. The controller delivers the transaction to the proper device using the ID placed on the transaction by the DevComm.
Note: A destination name is not a requirement. You can create an application that places a transaction ID in the transaction header instead of supplying a destination. This practice forces the message handler to route the transaction as if it came from a data collection device. Note: If a delivery response (success or failure) was configured in Advanced Setup, the DevComm delivers this response to the message handler. The response is then routed to APP3. DevComm responses only apply for interactive remote applications.
1-19
Page 123
Model 200 Controller User’s Manual
Routing Transactions From Applications
Remote Application APP3 1 Local Area Network
Network Connection
Network Connection
2
Receive NetComm
DevComm
6
Send NetComm APP3
3
7
Receive
DCD
5
ACK
APP3
4
Message Handler
Model 200 Controller
200.074
9181 Base Radio Unit
1-20
8
Readers
Page 124
Learning About the Controller
1
Routing Transactions From Devices This example discusses the steps to move data from the data collection device to the application. The numbers on the following paragraphs correspond to the numbers on the illustration on the next page. Data is entered at the bar code reader and transmitted through the BRU to the controller. A DevComm receives the transaction through its hardware link. A header is attached to the transaction and the transaction is placed in the Receive channel. The message handler retrieves the transaction from its Receive channel and completes the following sequence:
Timestamp The message handler gets the current time from the system and places it in the transaction header. Determine source of transaction If the transaction has the system message flag set to D for data and the destination field is blank, the message handler assumes the transaction came from a device. If the destination field is not blank, the message handler assumes the transaction came from an application. Route transaction The message handler routes the transaction to the correct destination based on the transaction ID. Transactions from devices do not have a logical destination. The message handler searches its internal tables to find all the routes defined for the transaction ID. If the transaction ID is valid but has no routes defined for it, or if the transaction ID is invalid or unknown, it is treated as a failed transaction. If the routes are defined, the message handler proceeds to the next step. Assign message number The message handler assigns a message number and places it into the transaction header. The message handler maintains a separate counter for each application it knows about.
1-21
Page 125
Model 200 Controller User’s Manual
Routing Transactions From Devices 9181 Base Radio Unit 1
Readers
Model 200 Controller
Hot Standby APP3
Message Handler
4
DCA
Receive
ACK
APP3
3
Send NetComm
2
DevComm
Local Area Network
Receive NetComm
Network Connection
Network Connection
200.070
Remote LAN Application APP3
1-22
Page 126
Learning About the Controller
1
Note: Steps 5 through 12 occur for each application that receives a transaction sent by the message handler. Steps 9, 10, and 11 are different for TCP/IP and APPC applications. The message handler determines the correct destination for the transaction. It then checks a flag for the destination to see if it is currently an active or an inactive application: •
If the application is active, the message handler attempts to deliver the transaction to the application’s channel.
•
If the application is inactive and the transaction cannot be delivered, the message handler stores the transaction in the application’s Hot Standby file.
The send NetComm reads the transaction from the APP3 channel and processes the transaction. The send NetComm routes the transaction to the remote application (APP3). The remote application (APP3) reads the transaction sent from the send NetComm and processes it.
For TCP/IP Applications T9
T10
T11
The remote application writes the ACK transaction to the receive NetComm. The receive NetComm reads the ACK transaction sent from the remote application.
For APPC Applications A9
A10
The remote application sends the CONFIRMED verb to the send NetComm to acknowledge the transaction. The send NetComm receives the CONFIRMED verb.
The receive NetComm places the A11 The send NetComm writes the ACK transaction in the ACK ACK transaction to the message channel and sends a network ACK handler’s ACK channel. to the application. The message handler reads the ACK transaction from the ACK channel.
Note: The APPC NetComms do not support the transmission of data in an ACK transaction. For the remote application to send acknowledgment data to a device, it must send an unsolicited transaction through the Receive channel.
1-23
Page 127
Model 200 Controller User’s Manual
Routing Transactions From Data Collection Devices (continued)
9181 Base Radio Unit Readers
Model 200 Controller
Hot Standby APP3
Message Handler
5 12
DCA
Receive
ACK
APP3 6
A11 T11
DevComm
Send NetComm
Receive NetComm
7 T10
Local Area Network
A10
Network Connection
Network Connection A9 T9
1-24
Remote LAN Application APP3
8 200.072
Page 128
Learning About the Controller
1
How the Controller Acknowledges Transactions After the controller attempts to deliver a transaction from an application to a data collection device, it can send a delivery response (success or failure) to the originating application. If you configure the controller to send a delivery response, it returns a successful message indicating the transaction was accepted by the device or it returns a failure message if the transaction was not stored in the Hot Standby file. A success delivery response for external controllers only indicates that the transaction was successfully transmitted to the device that is communicating directly with the controller. For example, the response may only have reached the 9180 and not the JR2020. If the application needs confirmation from the device, the system must be configured so there is a complete application-to-device handshake. If the controller fails to deliver a transaction to a device, the transaction is not discarded. The controller saves the transaction in the Hot Standby file and retransmits it when the device comes back online. You can use a failure delivery response to inform the application that the transaction was saved in the Hot Standby file.
How the Controller Ensures Data Integrity The controller ensures data integrity from data collection devices to applications through the protocol handshakes that exist between the various components of the system. The controller guarantees data integrity for all three levels of interactivity (full, partial, and none) that exist in both data integrity modes (Faster and Safer).
Interactivity With Data Collection Devices Generally there is a tradeoff between response time and how interactive the data collection device is with an application. It may not be practical to have a scanning device interact in real-time with an application at a remote location. Instead, the device can complete a handshake with the controller, which then periodically uploads data to the application in a Batch mode.
1-25
Page 129
Model 200 Controller User’s Manual
There are three levels of interactivity which the controller provides to an application when it is communicating with a device in a data collection network: • Fully interactive • Partially interactive • Noninteractive The levels of interactivity refer to an application’s ability to complete a handshake with the device. This handshake consists of an agreed upon protocol for verifying the transfer of data between the application and the device. Typically, the protocol is implemented in both the application and the program that is running on the device (for example, a DOS executable or an IRL program). This protocol is independent of the data link protocol that the controller implements while communicating with a device, such as a JR2020.
Fully Interactive System A fully interactive system provides the safest way to move information from a data collection device to an application because the application always sends an acknowledgment to the device. As long as the device can retransmit the transaction if communication fails, data is not lost. If the application is too slow or does not respond, it cannot complete the required handshake with the device. In this case, the controller can be configured to automatically assume responsibility for the application’s transactions by becoming interactive with the device. When the controller becomes interactive with the device, it invokes the Hot Standby feature. The controller sends the device a response (called the Hot Standby message) that was configured with the GUI. While an application is in Hot Standby mode, the controller saves the transactions bound for that application in a Hot Standby file. The controller maintains a Hot Standby file for each application it knows about. When the controller invokes Hot Standby mode for an application, the application is said to be partially interactive with respect to the device.
1-26
Page 130
Learning About the Controller
1
Partially Interactive System In a partially interactive system, the data collection device is interactive with the controller instead of the application. To guarantee data integrity, the controller sends its acknowledgment to the device only after it has written a transaction to the Hot Standby file. The data in the Hot Standby file is forwarded to the application when the application becomes active with the controller. When the application becomes active and is ready to accept more data from the controller, the controller checks the Hot Standby file and delivers transactions to the application in a first-in-first-out (FIFO) order. The controller continues to accept new transactions from the device, appending them to the end of the Hot Standby file, while it is removing transactions from the beginning of the Hot Standby file. When the application has taken delivery of all transaction in the Hot Standby file, the controller terminates the Hot Standby function and allows the device to once again become fully interactive with the application.
Noninteractive System A noninteractive system offers the fastest method of operation. In this type of system, the data collection device does not require any application response. The data link protocol is the only guarantee that there is data integrity between the device and the controller. Once the controller has received a transaction, features such as Hot Standby mode are still active to ensure data integrity. To configure the controller’s Hot Standby feature for noninteractive systems, you set up the controller so that it sends nothing to the device when Hot Standby mode is invoked. That is, you do not configure a Hot Standby message. As a result, the device is not informed that the application has gone away and that the controller is accepting the data and storing it in the Hot Standby file.
1-27