The text of a manual · part 5 of 46
DCS 300 User's Manual, pages 41 to 50
Pages 41 to 50 of 460
The original document is the PDF (2.2 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 DCS-300
Page 41
Learning About the DCS 300
1
Routing Transactions From Devices This example discusses the steps to move data from the 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 server. 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-19
Page 42
DCS 300 User’s Manual
Routing Transactions From Devices 9181 Base Radio Unit 1
Readers
DCS 300
Hot Standby APP3
Message Handler
4 DCA
Receive
ACK
APP3
3 Send NetComm
2 DevComm
Local Area Network
Receive NetComm
Network Connection
Network Connection
0300U.006
Remote LAN Application APP3
1-20
Page 43
Learning About the DCS 300
1
Note: Steps 5 through 8 and 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 network ACK transaction to the send NetComm. The remote application writes an ACK transaction to the receive NetComm. The receive NetComm reads the ACK transaction sent from the remote application. The receive NetComm writes the ACK transaction to the ACK channel and it writes a network ACK to the remote application.
For APPC Applications A9
A10
A11
The remote application sends the CONFIRMED verb to the send NetComm to acknowledge the transaction. The send NetComm receives the CONFIRMED verb.
The send NetComm writes the ACK transaction to the message handler’s ACK channel.
The remote application reads the network ACK from the receive NetComm. 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-21
Page 44
DCS 300 User’s Manual
Routing Transactions From Devices (continued)
9181 Base Radio Unit Readers
DCS 300
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-22
Remote LAN Application APP3
8 0300U.007
Page 45
Learning About the DCS 300
1
How the DCS 300 Acknowledges Transactions After the DCS 300 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 server 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 server. 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 server fails to deliver a transaction to a device, the transaction is not discarded. The server 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.
1-23
Page 46
DCS 300 User’s Manual
How the DCS 300 Ensures Data Integrity The DCS 300 ensures data integrity from data collection devices to applications through the protocol handshakes that exist between the various components of the system. The server 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 Devices Generally there is a tradeoff between response time and how interactive the 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 server, which then periodically uploads data to the application in a Batch mode. There are three levels of interactivity which the server 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 server 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 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 server can be configured to automatically assume responsibility for the application’s transactions by becoming interactive with the device. When the server becomes interactive with the device, it invokes the Hot Standby feature. The server 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 server saves the transactions bound for that application in a Hot Standby file. The server maintains a Hot Standby file for each application it knows about. When the server invokes Hot Standby mode for an application, the application is said to be partially interactive with respect to the device.
1-24
Page 47
Learning About the DCS 300
1
Partially Interactive System In a partially interactive system, the device is interactive with the server instead of the application. To guarantee data integrity, the server 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 server. When the application becomes active and is ready to accept more data from the server, the server checks the Hot Standby file and delivers transactions to the application in a first-in-first-out (FIFO) order. The server 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 server 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 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 server. Once the server has received a transaction, features such as Hot Standby mode are still active to ensure data integrity. To configure the server’s Hot Standby feature for noninteractive systems, you set up the server 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 server is accepting the data and storing it in the Hot Standby file.
1-25
Page 48
DCS 300 User’s Manual
Data Integrity Modes The DCS 300 operates in one of two data integrity modes for external Intermec controllers: Faster and Safer. You define the data integrity mode for each external controller that the server uses to communicate with devices (such as terminals, readers, and printers). For more information, see the DCS 300 Technical Reference Manual. Note: These data integrity modes are provided in addition to the normal data integrity measures that are built into the server.
Faster Mode Faster mode is the default integrity mode. The advantage of Faster mode is speed: the external controller can forward data to the server faster than in Safer mode. The disadvantage is a small risk that transactions will be lost if the server loses power.
Safer Mode Safer mode provides extra data integrity for both interactive and noninteractive devices. The advantage of Safer mode is extra security: the external controller retains its copy of the transaction until the transaction reaches either the application or the Hot Standby file. The disadvantage is that the external controller cannot forward another transaction from any device until the current transaction has been acknowledged. Note: The out-of-box protocol for the external Intermec controllers contains a 60-second transmission timeout. This means that when the controller delivers data to the DevComm, it waits 60 seconds for an acknowledgment. If the acknowledgment is not received within this time, the data is sent again to the DevComm, creating duplicate data. One solution to this is to set the controller timeout to zero, which disables the timeout.
1-26
Page 49
Learning About the DCS 300
1
Retaining Transactions in Memory AUX_Q is an auxiliary queue in volatile memory. By default, the DCS 300 uses this queue as a temporary holding place for transactions that are waiting to be sent to a destination while the server is waiting for an ACK from that destination. AUX_Q is used only in this situation: •
The server sends a transaction to a destination, the Hot Standby timeout begins counting down, and the server waits for an ACK.
•
While waiting, the server receives another transaction for the destination. The server cannot send the transaction until it receives an ACK for the last transaction, so the server writes both transactions to AUX_Q.
•
All other transactions that subsequently arrive for the destination are written to AUX_Q.
•
If the server receives the ACK before the Hot Standby timeout expires, the server sends the transactions in FIFO order from AUX_Q to the destination.
•
If the server does not receive the ACK before the Hot Standby timeout expires, the server writes the contents of AUX_Q to the Hot Standby file.
You can specify the number of transactions the server can hold in AUX_Q for each application and DevComm before it writes the transactions to a Hot Standby file. To do this, use the GUI to set the Transactions held in volatile memory parameter on the Peerto-Peer Destination Parameters dialog box to one of these values: None Transactions in AUX_Q are not entirely safe because they are held in volatile memory. You can keep the server from using AUX_Q by setting the parameter to None, which forces the server to write every transaction for a destination to that destination’s Hot Standby file. Unlimited An unlimited number of transactions can be written to AUX_Q until either the Hot Standby timeout expires or the server sends all the transactions to the destination. Maximum (1 to 9999) When AUX_Q reaches its limit, the contents are written to the Hot Standby file. The default for this parameter is 50.
1-27
Page 50
DCS 300 User’s Manual
How the DCS 300 Sets Application Status When the DCS 300 is initialized or first starts up, all application channels listed in the configuration file are assumed to be nonactive or batch destinations. This means that until otherwise notified, the message handler automatically routes transactions for these applications to Hot Standby files. Applications control their active and nonactive status by sending one of these system transactions: Inter This system transaction places the application in an active state. NoInter This system transaction places the application in a nonactive, Hot Standby state. When an application is active, the server waits for an ACK transaction for the duration of the Hot Standby timeout. If an ACK is not received within the timeout period, the server automatically places the application in a nonactive, Hot Standby state. During a server shutdown, the message handler saves the status (active or nonactive) and the last message number of each application with which it was communicating. Applications that acknowledged all transactions before shutdown are considered active by the server. The next time the server starts, active applications are immediately sent a DcmRsmTran system transaction while nonactive applications are sent nothing. If the status file does not exist when the message handler starts, it assumes that all configured applications are nonactive. Note: The term “nonactive” with respect to an application is not the same as “noninteractive” with respect to a device.
Active Applications An active application completes a handshake with the DCS 300 for each transaction it receives. The message handler ensures that data is secure by requiring an ACK transaction from the application receiving the data. The server can deliver only one transaction at a time to each application. Before the server delivers a second transaction to a destination, the remote application must take responsibility for the current transaction by sending an ACK transaction. The server waits for the ACK transaction for the length of time specified in the Hot Standby timeout. While waiting, the message handler keeps a copy of the original transaction. During this waiting period, the message handler continues to read and process new transactions from the Receive channel. If any of the new transactions are for the application that has not acknowledged the last transaction, these new transactions are saved locally in AUX_Q. As soon as the ACK transaction is received, the stored copy of the delivered transaction is deleted and a new transaction is sent to the application. The message handler creates one AUX_Q for each application.
1-28