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 23 of 46

DCS 300 User's Manual, pages 221 to 230

Pages 221 to 230 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 221

Using Peer-to-Peer Applications

9

Address family Also called the protocol family. The address family determines the communications protocol used to deliver the transaction and the structure of the addresses used to represent the end point of the communication. Network address Along with the communications protocol, the network address value uniquely identifies a host on one or more interconnected networks. Port number This value specifies a communication end point within the host. The port numbers are 4400 for the send connection and 4401 for the receive connection. For an application to become interactive with the server, it must have a send and a receive connection. •

The send connection sends data to the server.

•

The receive connection receives data from the server.

The server supports only requester (client) connections. The remote application initiates both sockets. For help, see the DCS 300 Technical Reference Manual.

How the DCS 300 Communicates With Applications To use the NetComms, you must first configure the DCS 300 for TCP/IP communications. For help, see “Configuring the Network Adapter Card for TCP/IP” in Chapter 3. Applications acknowledge the server directly by placing data in an ACK transaction and by using the Inter system transaction to control their interactivity with the server. •

The server send NetComm is responsible for creating the application IPC channel and forwarding any data in that channel to the application.

•

The server receive NetComm is responsible for opening the Receive (input) channels of the message handler and for sending data that is received from the application through the network connection to the message handler.

When the server is turned on, it detects when TCP/IP is being used and it starts the appropriate NetComms. If you use the wrong syntax or do not supply all the required startup arguments, an error message appears in the error log. The following figure shows the NetComms communicating directly with applications. NetComms use IPC channels to exchange data with other server components and they use sockets to exchange data with a TCP/IP application.

9-13

Page 222

DCS 300 User’s Manual

Server NetComms Communicating With Applications

APP1

APP2 Network ACK/NAK

Remote machine Local machine

Network ACK/NAK tcprecvl tcpsendl

APP1

Network

APP2

Receive

ACK

DCS 300 0300U.030

9-14

Page 223

Using Peer-to-Peer Applications

9

Understanding Transaction Routing in a TCP/IP Network The applications you create to interact with the DCS 300 function as remote applications. When your application receives a message from the server, your application must perform these steps: 1. The application acknowledges the send NetComm with the NetACK. 2. The application acknowledges the message handler, as follows: •

The application creates the ACK transaction by swapping the message’s source and destination. The transaction can contain data.

•

The application sets the fNetACK flag to A.

•

The application writes the ACK transaction to the receive NetComm. Because the fNetACK flag is set to A, the receive NetComm routes the transaction to the ACK channel, which sends the transaction to the message handler.

When your application sends unsolicited data to the server, your application must perform these steps: 1. The application builds the transaction and provides either a destination or a transaction ID. 2. The application clears the fNetACK flag. 3. The application sends the transaction to the receive NetComm. Because the fNetACK flag is clear, the receive NetComm routes the transaction to the Receive channel, which sends the transaction to the message handler.

9-15

Page 224

DCS 300 User’s Manual

Programming Interface for Applications to the Server

Message Handler

Receive

ACK

Recv NetComm

Send NetComm

LAN_APP

Hot Standby File

AUX_Q

DCS 300

Network Connection

Network Connection

Local Area Network

0300U.033

Remote Application LAN_APP

9-16

Page 225

Using Peer-to-Peer Applications

9

Your applications will use TCP sockets to communicate with the server across a TCP/IP network. The server sets up two channels: Receive channel The low priority Receive channel handles unsolicited transactions from devices and applications, and handles system transactions from applications. ACK channel The high priority ACK channel handles acknowledgment (ACK) transactions from applications and devices. The server 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 server, you must pick a realistic value for the Hot Standby timeout so that the server 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 server. When an application is inactive, the last transaction sent to the server 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-17

Page 226

DCS 300 User’s Manual

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 DCS 300. 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 server 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 server 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-18

Page 227

Using Peer-to-Peer Applications

9

Direct TCP/IP Socket Interface 9181 Base Radio Unit 1

Readers (TCP/IP clients)

DCS 300 Message Handler/ ISM 4 1 3 DCD

IPD

2 DevComm

TCP/IP Network

Network Connection 0300U.035

Remote LAN Application

9-19

Page 228

DCS 300 User’s Manual

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 DCS 300. You write your client application to communicate with an existing TCP/IP server application. The server application does not even know the DCS 300 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 NetComm API. The 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 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 one-to-one relationship between the session and the socket to the host. Each session has a unique identifier that the server TCP ISM (IP Session Manager) uses to manage these connections.

9-20

Page 229

Using Peer-to-Peer Applications

9

About the $IPT Transaction ID $IPT is a special transaction ID that contains the protocol that allows JANUS RF devices and TRAKKER Antares terminals to communicate with the DCS 300 using the direct TCP/IP socket interface. Every transaction from a device needs $IPT as the transaction ID, which allows the server DevComm to route the data to the proper queue. When a device receives a transaction from the server, 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 server.

•

Client receives a packet from the server that acknowledges the request. –

Client receives an OPEN_NAK (negative acknowledgment) packet from the server, which indicates the request to open a socket has failed.

–

Client receives an OPEN_ACK (acknowledgment) packet from the server, which indicates the request to open a socket has succeeded.

•

Client sends and receives data to and from the host through the server. 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 server indicating that the connection is closed.

About the Host Application Requirements The DCS 300 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-21

Page 230

DCS 300 User’s Manual

Using International Text Pass-Through International text pass-through allows data streams representing characters encoded in various encoding schemes to pass through the DCS 300 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 server 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:

9-22

•

The DCS 300 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 text for the transaction header and the transaction ID are limited to what you can enter on the DCS 300. 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 DCS 300 and devices must use the ASCII character set.

•

The DCS 300 supports limited mapping from EBCDIC code page 037 to PC code page 437. If the DCS 300 cannot look up the source of the transaction in the peer-topeer destination list, the DCS 300 acts as if EBCDIC mapping is enabled and international text pass-through is disabled. However, if you check 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 DCS 300 does not support sort order, date, item, and currency.