The text of a manual · part 22 of 46
DCS 300 User's Manual, pages 211 to 220
Pages 211 to 220 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 211
Using Peer-to-Peer Applications
9
Now that you have configured the DCS 300 to communicate with your LAN and you have configured your server to communicate with your Intermec network, you are ready to tie the entire data collection network together using an application. This chapter explains how to configure your server for using peer-to-peer applications and it provides guidelines on how to write TCP/IP or APPC applications so that they can communicate with the server. This chapter also provides guidelines on how to write applications that communicate using a direct TCP/IP socket interface.
Chapter Checklist Done?
‰ ‰ ‰ ‰ ‰
Task
Page
Configure the host for peer-to-peer applications.
9-5
Identify the peer-to-peer links.
9-6
Identify any transaction IDs that are routed to the peer-to-peer links.
9-10
Save and activate the configuration.
9-11
Understand how TCP/IP applications communicate with the server.
9-12
Or, Understand how to use the direct TCP/IP socket interface.
9-18
Understand how APPC applications communicate with the server.
9-23
When you understand these sections and perform these tasks, you can start using the server.
9-3
Page 212
DCS 300 User’s Manual
About Peer-to-Peer Applications The DCS 300 runs an applications programming interface (API) that makes communicating with remote applications easier. Applications communicate with the server through network communications processes called NetComms. NetComms are responsible for safely routing data from remote applications across a network to the server and back. After you configure the server, you need to create or modify your TCP/IP and APPC applications so that they communicate with the server. If you need more information, see the DCS 300 Technical Reference Manual. UNIX Host
IBM Host
Ethernet Token ring IBM Host
Token ring Twinaxial SDLC
DCS 300
Data Collection Network 0300U.027
9-4
Page 213
Using Peer-to-Peer Applications
9
Configuring the Host for Peer-to-Peer Applications For peer-to-peer applications, your network administrator needs to set up certain parameters on the host for TCP/IP or APPC applications.
TCP/IP Applications IP address The IP address is the address that is assigned to the Ethernet card or token ring card in the DCS 300. The IP address has the format xxx.xxx.xxx.xxx where xxx is a number from 0 to 255. TCP/IP NetComm send port (4400) This number identifies the port number through which the host makes send connections to the DCS 300. TCP/IP NetComm receive port (4401) This number identifies the port number through which the host makes receive connections to the DCS 300.
APPC Applications LU name The DCS 300’s logical unit name is the partner LU name that your application references when allocating an APPC conversation. The default is ACCNET. Network ID The network ID is the SNA network ID that was specified when you configured the DCS 300. The default is APPN. MAC address The Ethernet or token ring address. You can verify the default value using the View Runtime Configuration feature. For help, see “Viewing the Run-Time Configuration” in Appendix A. Send transaction program This program is the DCS 300’s transaction program name for the send connection. The default is RECEIVE. Receive transaction program This program is the application’s transaction program name for its receive connection to the DCS 300. The default is SEND. Mode name The mode name describes the class of service and other session characteristics that you may want to alter or create to suit your network design. The default is #INTER. For help on setting up #ACCNET mode on your host, see the DCS 300 Technical Reference Manual.
9-5
Page 214
DCS 300 User’s Manual
Setting Up Peer-to-Peer Links To run TCP/IP or APPC applications in your data collection network, you must identify all the application names in the DCS 300. The server puts these names in a peer-to-peer destination list. Every time an application connects to the server, it informs the server of its name. The server dynamically associates the application as one of the destinations in its peer-to-peer destination list and forwards the appropriate transactions to it. The server routes transactions to applications or other peer-to-peer destinations by one of two ways: •
The server recognizes the transaction ID and routes the transaction to all destinations in the peer-to-peer destination list that are associated with this transaction ID.
•
The application is the destination in the transaction header.
This section describes how to set up the peer-to-peer destination list for your host applications and your devices. Before you proceed, make sure you have already performed these tasks: •
Installed the DCS 300.
•
Installed and configured the connection points and downline devices.
•
Configured the network adapter cards.
To set up peer-to-peer destination list 1. From the main menu, choose Peer-to-Peer and then choose Host Connection. The Peer-to-Peer Destination List dialog box appears.
2. Choose Add, Edit, or Delete destinations. If you choose Add, the Peer-to-Peer Destination Parameters dialog box appears.
9-6
Page 215
Using Peer-to-Peer Applications
Peer-to-Peer Destination Parameters Dialog Box
S Peer-to-Peer Destination Parameters
Configure this peer-to-peer destination and its transactions.
Destination name: Hot Standby timeout: [20 seconds [1-9999]
Transactions held in volatile memory: © None @ Unlimited @ Maximum: (50 (1-9999) (International text pass- through
- Transactions Selected Available
4 |Kisetectxy| TE +
> Remave >
-Delivery Responses [if any)
Interactive response:
Hot Standby:
OK Cancel | Help
Page 216
DCS 300 User’s Manual
Field
Description
Value
Default
Destination name
The meaningful name that identifies the destination (application).
1 to 16 alphanumeric characters
None
Hot Standby timeout
The number of seconds the server waits for a response from this destination before it places transactions going to this destination in a Hot Standby file.
1 to 9999
20
Transactions held in volatile memory
The number of transactions the server keeps in RAM before it writes the transactions to a Hot Standby file.
None, Unlimited, Maximum
50
Check, Clear
Clear
Choose None if you want the transaction always written to the file. This setting is the safest setting and it is also the slowest. Choose Unlimited if you do not want the transaction written to the file unless the time you set for the Hot Standby timeout expires. This setting is the fastest. Choose Maximum and enter the maximum number of transactions the server stores in RAM before it writes them to a file. International text pass-through
This check box determines how much of the transaction is converted. If you check this check box, the server converts only the transaction header. If you clear this check box to use limited EBCDIC mapping, the server converts the entire transaction. For help, see “Using International Text PassThrough” in the next section.
Selected
This list box contains the transactions that are routed to this destination.
Predefined
None
Available
This list box contains the transactions that are available to add to the Selected list box.
Predefined
None
Interactive response (optional)
This message is sent to the source of the transaction when the transaction for this destination is delivered successfully in Interactive mode.
1 to 39 characters
None
Hot standby (optional)
This message is sent to the source of the transaction when the transaction for this destination is written to a Hot Standby file.
1 to 39 characters
None
9-8
Page 217
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 without conversion between various hosts and devices through the DCS 300. 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: •
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 characters in the transaction header and the transaction ID are limited by what you can type on the DCS 300. The characters 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 still 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-to-peer destination list, the DCS 300 assumes that 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 applications 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.
9-9
Page 218
DCS 300 User’s Manual
Adding a Transaction You need to define all transaction IDs that you want the DCS 300 to route to the destinations. To add a transaction •
From the Peer-to-Peer Destination Parameters dialog box, choose Add. The Transaction Parameters dialog box appears.
Field
Description
Value
Default
Transaction ID
The unique ID of the transaction.
1 to 20 alphanumeric characters
None
Hot Standby message (Optional)
The message that is sent to the source of the transaction when the server places the transaction in a Hot Standby file.
1 to 40 characters
None
Delimiter
The character that separates the fields in the transaction. The delimiter must be the same throughout the network.
1 alphanumeric or special character
, (comma)
9-10
Page 219
Using Peer-to-Peer Applications
9
Adding a Transaction Field You need to add transaction fields if you are using these transactions for screen mapping. To add a transaction field •
From the Transaction Parameters dialog box, choose Add. The Transaction Field Parameters dialog box appears.
Field
Description
Value
Default
Field name
The unique name for the transaction field.
1 to 16 alphanumeric characters
None
Number
The order or position of the field in the transaction. Fields start at 1.
1 to 999
None
Saving and Activating Your Run-Time Configuration When you finish configuring peer-to-peer applications, you should save your changes. If you are done configuring the DCS 300, save and activate your run-time configuration. When the save and activate are complete, a message box appears if you need to reboot the server. To save and activate your run-time configuration 1. From the main menu sidebar buttons, choose Save and Activate. The Activate Configuration message box appears. 2. Choose Activate. The server saves your run-time configuration to disk and it becomes your active configuration. If you are ready to start data collection, from the main menu sidebar buttons, choose Start Data Collection.
9-11
Page 220
DCS 300 User’s Manual
Communicating With TCP/IP Applications The DCS 300 communicates with remote applications using TCP/IP sockets. TCP provides a method for creating connection-oriented, error-free, full-duplex, byte-stream communications between two processes. IP provides a method for transmitting blocks of data, called IP datagrams, between hosts. Together, TCP and IP offer reliable, easy-touse communications. The server NetComms use the TCP/IP socket API to provide a standard interface to TCP/IP Transport and Internet layers. The API supports the “streams” socket-type interface, which is a reliable, connection-oriented service. When data is sent, the transmission of the data packet is guaranteed and it is received in the same order as it was sent. Built-in flow control avoids data overruns. No boundaries are imposed on the data; it is considered to be a byte stream. The NetComms are server applications that issue passive open commands to accept connections from remote applications. The server mode send and receive NetComms are each started as a single process that receives requests from remote applications for both send and receive server connections respectively. Each NetComm can handle a maximum number of connections before spawning off an identical process to handle any new connections. You set the maximum number of connections in the Max connections field in the System Parameters dialog box. This figure shows a typical client/server configuration using sockets. Server 1 runs on Host 1 and Client 1 runs on Host 2. Server 1 listens on a socket that uses IP. Each socket is identified by a socket address, which is a data structure that specifies the address family, network address, and port number.
Host 1
UDP
Host 2 APP 1
APP 2
Socket
Socket
TCP Port 4400
Address Family: IP Network Address: 192.5.7.9
UDP
TCP Port 4401
Address Family: IP Network Address: 192.5.7.10 0300U.029
9-12