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 34 of 70

Model 200 Controller System Manual, pages 331 to 340

Pages 331 to 340 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 331

9

Using Peer-to-Peer Applications

Programming Interface for Applications to the Controller

Message Handler

Receive

ACK

Recv NetComm

Send NetComm

LAN_APP

Hot Standby File

AUX_Q

Model 200 Controller

Network Connection

Network Connection

Local Area Network

200.056

Remote Application LAN_APP

9-21

Page 332

Model 200 Controller User’s Manual

Your applications will use TCP sockets to communicate with the controller across a TCP/IP network. The controller sets up two channels: Receive channel The low priority Receive channel handles unsolicited transactions from end devices and applications, and handles system transactions from applications. ACK channel The high priority ACK channel handles acknowledgment (ACK) transactions from applications and end devices. The controller creates one auxiliary channel (AUX_Q) for each known application. Transactions that are held in AUX_Q have not been saved on disk. If you have a lot of unprotected power failures, you can reduce the risk of data loss by using the GUI to set the Transactions held in volatile memory parameter, as follows: • If you set the parameter to a small number, only that many transactions can be lost during a power failure. • If you set the parameter to 0, no transactions are held in volatile memory. Instead, all transactions that would have been written to AUX_Q are instead written to a Hot Standby file. When you configure the controller, you must pick a realistic value for the Hot Standby timeout so that the controller does not hold too many transactions in the auxiliary channels. Once an application goes into Hot Standby mode, performance and throughput decrease because the transactions for the application are stored on disk. It is also important for your application to remain active with respect to the controller. When an application is inactive, the last transaction sent to the controller is stored in a Hot Standby file along with any subsequent transactions. When the application becomes active, the transactions are delivered, first in first out (FIFO), from the Hot Standby file.

9-22

Page 333

Using Peer-to-Peer Applications

9

Communicating Through the Direct TCP/IP Socket Interface The direct TCP/IP socket interface allows non-TCP/IP capable devices, such as JANUS 900 MHz RF devices and TRAKKER Antares terminals, to establish a TCP/IP socket connection to the host through the Model 200 Controller. For more information on using the direct TCP/IP socket interface, see the DCS 300 Technical Reference Manual. Note: The direct TCP/IP socket interface does not support JANUS 2.4 GHz RF devices, since these devices already allow you to load a TCP/IP stack. To use the direct TCP/IP socket interface, the clients must use a special transaction ID ($IPT). The Model 200 Controller recognizes this special transaction ID and starts these steps: 1. A TCP/IP client, such as a JANUS device, sends a transaction with the special transaction ID, $IPT. 2. The controller DevComm recognizes the special transaction ID and routes it directly to a message handler queue (IPD). 3. The queue sends the transaction to the correct message handler IP Session Manager (ISM) thread. The ISM thread routes the transaction data to the socket that the client opened earlier. 4. The ISM thread reads data sent by the host through the socket and forwards the data to the client.

9-23

Page 334

Model 200 Controller User’s Manual

Direct TCP/IP Socket Interface

9181 Base Radio Unit 1

Readers (TCP/IP clients)

Model 200 Controller

Message Handler/ ISM 4 1 3

IPD

DCD

2

DevComm

TCP/IP Network

Network Connection 200A.001

Remote LAN Application

9-24

Page 335

Using Peer-to-Peer Applications

9

Direct TCP/IP API vs. NetComm API By using the direct TCP/IP API, you no longer need to write applications that communicate with the peer-to-peer interface of the controller. You write your client application to communicate with an existing TCP/IP server application. The server application does not even know the controller exists. All TCP/IP server applications that passively wait for connections can use the direct TCP/IP API without modifications. This way of exchanging data is more dynamic than the controller NetComm API. The controller NetComm API requires that the application that is running on the host use the 96-byte header and the application must acknowledge all transactions and messages to the message handler. However, this API still provides a more reliable way of exchanging data. If the host goes offline, your users can continue to work, since the transactions are saved in a Hot Standby file. The transactions in each Hot Standby file are sent to the application (destination) when the host connection is re-established. When a direct TCP/IP API socket connection goes down, there is no data redundancy and the client or server application must re-establish the connection and retransmit the last transaction. With the direct TCP/IP API, only the client can initiate the connection. Your host application must be a server application. Also, your host application must be able to handle connections from many devices at different times. By using the controller NetComm API with a single socket pair connection, the host application can communicate with as many devices as it needs to. The application receives data using transactions from many devices. Also, a device can easily send data to multiple destinations based on the type of transaction it generates. With the direct TCP/IP API, each client can run multiple TCP/IP sessions; therefore, each client can have multiple socket connections. There is a oneto-one relationship between the session and the socket to the host. Each session has a unique identifier that the controller TCP ISM (IP Session Manager) uses to manage these connections.

9-25

Page 336

Model 200 Controller User’s Manual

About the $IPT Transaction ID $IPT is a special transaction ID that contains the protocol that allows JANUS devices and TRAKKER Antares terminals to communicate with the Model 200 Controller using the direct TCP/IP socket interface. Every transaction from a device needs $IPT as the transaction ID, which allows the controller DevComm to route the data to the proper queue. When a device receives a transaction from the controller, the transaction does not contain $IPT, but the protocol is the same. $IPT offers these features: • Client requests permission to open a socket. The client sends a data packet that contains the OPEN command, session ID, port number, host name, and maximum packet size to the controller. • Client receives a packet from the controller that acknowledges the request. – Client receives an OPEN_NAK (negative acknowledgment) packet from the controller, which indicates the request to open a socket has failed. – Client receives an OPEN_ACK (acknowledgment) packet from the controller, which indicates the request to open a socket has succeeded. • Client sends and receives data to and from the host through the controller. The data packet contains the DATA command, the session ID, and the data. • Client requests permission to close the socket or it receives a CLOSE packet from the controller indicating that the connection is closed.

About the Host Application Requirements The controller to host interface does not require any modifications. Host applications must be written using the standard TCP/IP socket interface. Also, host applications must be server applications; that is, they open a socket and wait for a client connection to arrive at the socket.

9-26

Page 337

Using Peer-to-Peer Applications

9

Using International Text Pass-Through International text pass-through allows data streams representing characters encoded in various encoding schemes to pass through the Model 200 Controller without conversion between various hosts and devices. The data streams appear to the server as arbitrary streams of bytes passed between the hosts and devices. The hosts and devices are responsible for any necessary conversion of the characters. The controller is responsible for configuring connections between the hosts and devices, establishing sessions, and routing transactions. International text pass-through provides uniform pass-through support for the character encoding schemes used by the hosts and devices. Host

Character Encoding Scheme

IBM

EBCDIC SBCS, DBCS

Unix

SBCS, DBCS, EUC

Windows NT

Unicode

JANUS devices

SBCS, DBCS

TRAKKER Antares terminals

SBCS, DBCS

Before you use this feature, note the following: • The controller attaches a transaction header to messages that it receives from hosts and it attaches a transaction ID to route messages to and from devices. The characters for the transaction header and the transaction ID are limited by what you can type on the controller. The text for the transaction data can be an arbitrary sequence of bytes representing text in any character encoding scheme. • Configuration text that is passed between the controller and devices must use the ASCII character set.

9-27

Page 338

Model 200 Controller User’s Manual

• The controller supports limited mapping from EBCDIC code page 037 to PC code page 437. If the controller cannot look up the source of the transaction in the peer-to-peer destination list, the controller acts as if EBCDIC mapping is enabled and international text pass-through is disabled. However, if you enable the international text pass-through check box, you disable this EBCDIC mapping. • Mapping from arbitrary EBCDIC code pages to arbitrary PC code pages for the transaction data originating from an APPC peer-to-peer application is not supported. • No conversions are necessary if you enable the time append feature. • The controller does not support sort order, date, item, and currency.

Communicating With APPC Applications You can use APPC applications to communicate between the Model 200 Controller and any other device on an SNA network. Before you write APPC applications, you should have some familiarity with APPC/LU 6.2 because APPC applications use APPC/LU 6.2 verbs to communicate with the controller. APPC applications, acting as remote requester applications, initiate the connection to the controller. The controller acts as a server, which waits for the connection to be initiated. The remote applications can be receive, send, interactive, or batch applications. Receive applications Receive applications only receive data. A receive application must act as a receive requester. It must send the controller a valid application name when it connects. The application name must be identical to the name configured for it in the controller. Send applications Send applications only send data. A send application must act as a send requester. It can send transactions to the controller without being configured in the controller because the controller will never send anything to it. The source application ID field in the transaction header is always blank. Note: The controller’s APPC receive NetComms only receive data in a maximum of 1120 byte chunks (96 bytes transaction header + 1024 bytes data). If more than 1120 bytes are received, an error is reported.

9-28

Page 339

Using Peer-to-Peer Applications

9

Interactive applications A typical interactive application consists of the application, a send connect, and a receive connect. Batch applications Batch applications are requester applications that receive batched data from the controller. This data is collected while the application is not active and is stored in the Hot Standby file. The batch NetComm takes the Hot Standby file and sends the data upline faster than the normal interactive retrieval of data. Batch applications are ideal for applications that collect data only periodically and do not need to remain interactive. Batch applications are never interactive; they merely collect data.

APPC Verbs APPC/LU 6.2 verbs allow the controller to communicate over an SNA network to other devices supporting APPC/LU 6.2. The controller uses APPC to route the data between remote applications and itself. In an SNA network there are two parts to communications: the controller and the host. The controller takes care of communications on its side, but you must make sure you build the APPC verbs into your applications to handle communications on the host side. Intermec recommends that you have some familiarity with the APPC/LU 6.2 protocol. These are the primary verbs that you can use to communicate with the controller. For a description of their functions, see the DCS 300 Technical Reference Manual. MC_ALLOCATE MC_CONFIRM MC_CONFIRMED MC_DEALLOCATE MC_RECEIVE_AND_WAIT MC_REQUEST_TO_SEND MC_SEND_DATA CONFIRM FLUSH DEALLOCATE NONE

9-29

Page 340

Model 200 Controller User’s Manual

MC_SEND_ERROR CONFIRM FLUSH ABEND RECEIVE_ALLOCATE

IMS Applications Older IMS applications, before version 4.0, do not support the MC_CONFIRMED or MC_SEND_ERROR verbs. Since IMS applications do not support these verbs, applications must send an acknowledge transaction back to partner programs by setting the acknowledge flag in the controller’s transaction header to “A.”

NetComm Pairs This table shows how your application links with a controller NetComm. The controller NetComms are created when you configure your remote application on the controller. Controller NetComm

Remote Application

Send Server

Host Receive Requester

Receive Server

Host Send Requester

Batch File Transfer

Host Batch File Transfer

IMS Send Server

IMS Host Receive Requester (before version 4.0)

IMS Receive Server

IMS Host Send Requester (before version 4.0)

To see the verb flow diagrams, see the DCS 300 Technical Reference Manual.

9-30