The text of a manual · part 33 of 70
Model 200 Controller System Manual, pages 321 to 330
Pages 321 to 330 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 321
Using Peer-to-Peer Applications
9
9. (Optional) In the Delivery Responses box, enter the messages you want to send to the source of the transaction. • In the Interactive response field, enter the message that you want to send to the source of the transaction when the delivery of the transaction to this destination is successful in Interactive mode. • In the Hot standby field, enter the message that you want to send to the source of the transaction when the delivery of the transaction for this destination is not immediately successful and is written to a Hot Standby file. 10. Choose OK to save your changes and return to the main menu.
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 Model 200 Controller. 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
9-11
Page 322
Model 200 Controller User’s Manual
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 to what you can enter 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. • The controller still 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 assumes that 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 applications 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.
9-12
Page 323
Using Peer-to-Peer Applications
9
Adding a Transaction You need to define all transaction IDs that you want the Model 200 Controller to route to the destinations.
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 controller 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-13
Page 324
Model 200 Controller User’s Manual
To add a transaction 1. From the Peer-to-Peer Destination Parameters dialog box, choose Add. The Transaction Parameters dialog box appears. 2. In the Transaction ID field, enter the unique ID for the transaction. 3. (Optional) In the Hot Standby message field, enter the message that the controller sends to the source of the transaction when it places the transaction in a Hot Standby file. 4. Choose the delimiter for the transaction by clicking the down arrow on the right side of the field. The list of delimiter characters appears. Choose one. 5. Add, edit, or delete transaction fields from the list box. For help, see “Adding a Transaction Field” later in this section. 6. Choose OK to save your changes and return to the Peer-to-Peer Destination Parameters dialog box.
Adding a Transaction Field You need to add transaction fields if you are using these transactions for screen mapping.
Field
Description
Value
Default
Field name
The unique name for the transaction field.
1 to 16 alphanumeric characters
None
Number
The position of the field in the transaction.
1 to 9999
None
9-14
Page 325
Using Peer-to-Peer Applications
9
To add a transaction field 1. From the Transaction Parameters dialog box, choose Add. The Transaction Field Parameters dialog box appears. 2. In the Field name field, enter a name for the transaction field. 3. In the Number field, enter the order or position (for example, 1, 2, or 3) of the field in the transaction. Fields start at 1. 4. Choose OK to save your changes and return to the Transaction Parameters dialog box.
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 your controller, save and activate your run-time configuration. When the save and activate are complete, a message box appears if you need to reboot the controller. 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 controller 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-15
Page 326
Model 200 Controller User’s Manual
Communicating With TCP/IP Applications The Model 200 Controller 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-to-use communications. The controller 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 controller 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.
9-16
Page 327
Using Peer-to-Peer Applications
Host 1
UDP
9
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 200.078
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 controller, it must have a send and a receive connection. • The send connection sends data to the controller. • The receive connection receives data from the controller. The controller supports only requester (client) connections. The remote application initiates both sockets. For help, see the DCS 300 Technical Reference Manual.
9-17
Page 328
Model 200 Controller User’s Manual
How the Controller Communicates With Applications To use the controller NetComms, you must first configure the controller for TCP/IP communications. For help, see “Configuring the TCP/IP Protocol” in Chapters 5 and 6. Applications acknowledge the controller directly by placing data in an ACK transaction and by using the Inter system transaction to control their interactivity with the controller. • The controller send NetComm is responsible for creating the application IPC channel and forwarding any data in that channel to the application. • The controller 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 controller 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 controller’s NetComms communicating directly with applications. NetComms use IPC channels to exchange data with other controller components and they use sockets to exchange data with a TCP/IP application.
9-18
Page 329
Using Peer-to-Peer Applications
9
Controller NetComms Communicating With Applications
APP1
APP2 Network ACK/NAK
Remote machine Local machine
Network ACK/NAK tcprecvl tcpsendl
APP1
Network
APP2
Model 200 Controller Message Handler
Receive
ACK
200-040
9-19
Page 330
Model 200 Controller User’s Manual
Understanding Transaction Routing in a TCP/IP Network The applications you create to interact with the Model 200 Controller function as remote applications. When your application receives a message from the controller, 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 controller, 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-20