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 16 of 26

TRAKKER Antares 248X Stationary Terminal User's Manual, pages 151 to 160

Pages 151 to 160 of 255

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 2480, Intermec 2481 and Intermec 2485

Page 151

nugget

39 Operating the Terminal in a Network

4

Configuring the T248X Over the Network You can remotely configure a T2480/1 with an Ethernet card or a T2485/6 terminal by using one of these methods: •

Send a command from the Model 200 Controller (UDP Plus network only).

•

Send a command from an application on the host computer (UDP Plus and TCP/IP networks).

You cannot configure any of the RF or Ethernet network parameters, such as terminal IP address, over the network. Once the terminal is communicating, you can configure bar code symbologies and send operating commands. Note: You can configure the terminal locally by using the TRAKKER Antares 2400 Menu System or by scanning a command from a Code 39 or Code 93 bar code label. For help, see Chapter 3, “Configuring the Terminal.”

Configuring the T248X From the Controller You can use the Model 200 Controller to configure one or more T248X terminals in your 2.4 GHz RF network or your Ethernet network. You can also send reader commands such as Delete File to one or more terminals. Your terminal must be configured with UDP Plus in order to communicate with the Model 200 Controller. This method is very fast and efficient if you need to change the same configuration parameters for several terminals in one area. For example, you may want to set the Beep Volume to very loud and turn on Keypad Caps Lock for all the terminals in one area. Note: You can configure a T248X from the Model 200 Controller, but you cannot get configuration data from the terminal. To send commands from the controller 1. Using the Download Server feature on the controller, select the terminal or group to which you want to download the configuration commands. For help on configuring a group of terminals, see the Model 200 Controller System Manual. Note: You can continue running an application on the T248X while configuring the terminal from the controller. 2. Choose the Command option button. 3. Enter the reader or configuration command and choose Add. The command appears in the Files and Data box.

4-23

Page 152

TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 For example, enter this command to set the Beep Volume to very loud: $+BV4

For a list of reader commands, see Chapter 6, “Reader Command Reference.” Note: You can set the Postamble or Preamble command to use characters from the extended ASCII character set such as the Field Exit code for 5250 TE. For help, see “Auto-Advancing Through Fields on 5250 TE Screens” in the TRAKKER Antares Terminal Emulation User’s Guide. 4. Repeat Step 3 to add another reader or configuration command, or choose OK. 5. To save the configuration changes in flash memory on the T248X, enter this reader command as the last command and choose Add: .+1

Otherwise, the commands only change the runtime configuration. You can also use the TRAKKER Antares 2400 Menu System to save configuration changes in flash memory on the T248X. For help, see “Saving Configuration Changes in Flash Memory” in Chapter 3. 6. Choose Download to download the commands and change the configuration of the terminals selected.

Configuring the T248X From the Host You can use an application on the host computer to configure one T2480/1 with an Ethernet card or one T2485/6. For example, you may want to change the Beep Volume command or the Keypad Caps Lock. To send and receive configuration data or files, you need to write an application for the host that can communicate with the Model 200 Controller in a UDP Plus network or directly through the access point in a TCP/IP direct connect network. You use the Terminal Message Format (TMF) protocol in the 2.4 GHz RF network to send and receive transactions between the host application and the terminal. UDP Plus is an Intermec value-added protocol. TCP/IP is an industry standard protocol. For help, see “About Network Connectivity and Protocols” later in this chapter.

Configuring the T248X in a UDP Plus Network You can use the host computer to configure one TRAKKER Antares 248X terminal in your 2.4 GHz RF network or your Ethernet network. For example, you may want to change the Beep Volume command and the Keypad Caps Lock command.

4-24

Page 153

nugget

39 Operating the Terminal in a Network

4

To send and receive configuration data, you need to write an application for the host that can communicate with the Model 200 Controller. For help, see the Model 200 Controller Technical Reference Manual. You use the Terminal Message Format (TMF) protocol to send and receive transactions between the host application and the terminal. Note: You can continue running an application on the T248X while configuring the terminal. To set up the Model 200 Controller •

Configure a peer-to-peer destination name for the host application. Create a transaction ID, $NGCFGRSP, that will be routed to this destination name. The controller uses the transaction ID to route responses from the T248X back to the host application. $NGCFGRSP is a special transaction ID that the controller uses to forward configuration response data from a terminal. All configuration responses will be routed with the $NGCFGRSP transaction ID. The controller cannot keep track of multiple applications sending reader or configuration commands. If you have two host applications sending reader or configuration commands, they must both be configured to receive the $NGCFGRSP transactions, and therefore both will receive all responses from all T248X terminals.

To set up the host computer •

Verify that you can communicate with the Model 200 Controller.

To set up the application •

Prepare and write a host application that can communicate with the controller and send transactions to and receive transactions from the T248X in this format: transaction header

TMF field configuration command where: transaction header is a 96-byte field containing the message number, date and time, source application ID, destinations application ID, transaction ID, and other information. You must set the system message (SYS$MSG) flag to E in the transaction header. For help, see the Model 200 Controller Technical Reference Manual.

4-25

Page 154

TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 TMF field configuration command is a 2-byte field containing one of these values: CG

Configuration Get request sent from the host application.

Cg

Configuration Get response sent from the T248X to the host.

CS

Configuration Set request sent from the host application.

Cs

Configuration Set response sent from the T248X to the host.

is the reader or configuration command or commands you want to set on the terminal, or the current value you want to retrieve from the terminal. To save configuration changes in flash memory, send the reader command .+1 as the last command. For a list of commands, see Chapter 6, “Reader Command Reference.”

To see examples of the host application transactions, see “Example 1” and “Example 2” later in this section.

Configuring the T248X in a TCP/IP Direct Connect Network You can use the host computer to configure one TRAKKER Antares 248X terminal in your 2.4 GHz RF network. For example, you may want to change the Beep Volume command and the Keypad Caps Lock command. To send and receive configuration data, you need to write an application for the host that can communicate with a T2485 or T2486 directly via an access point or through the Ethernet network. You use the Terminal Message Format (TMF) protocol to send and receive transactions between the host application and the terminal. For more about developing an application, see “Transferring Files in a TCP/IP Direct Connect Network” later in this chapter. Note: You can continue running an application on the T248X while configuring the terminal from the host. To set up the host computer •

4-26

Verify that you can communicate with the TRAKKER Antares 248X terminal.

Page 155

nugget

39 Operating the Terminal in a Network

4

To set up the application •

Prepare and write a host application that can communicate with the T248X. Configuration commands must be sent to network port 6000 on the terminal. Message transactions to and receive transactions from the T248X on network port 6000 must conform to the following format: TMF field configuration command where: TMF field configuration command is a 2-byte field containing one of these values: CG

Configuration Get request sent from the host application.

Cg

Configuration Get response sent from the T248X to the host.

CS

Configuration Set request sent from the host application.

Cs

Configuration Set response sent from the T248X to the host.

is the reader or configuration command or commands you want to set on the terminal, or the current value you want to retrieve from the terminal. To save configuration changes in flash memory, send the reader command .+1 as the last command. For a list of commands, see Chapter 6, “Reader Command Reference.”

Example 1 In the host application, you want to get the current values of two configuration commands from the T248X. Send this transaction from the host application: CG$+NABV

Note: The transaction header is not shown in this example. You do not need a transaction header for a host application in a TCP/IP network. where: CG is a TMF Configuration Get request.

$+ is the Change Configuration reader command.

NA is the Network Activate configuration command.

BV is the Beep Volume configuration command.

4-27

Page 156

TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 The T248X returns this transaction to the host application. Cg$+NA1BV4 where: Cg is a TMF Configuration Get response.

$+ is the Change Configuration reader command.

NA1 means the Network Activate configuration command is currently set to a value of 1, which means that the 2.4 GHz RF network is enabled.

BV4 means the Beep Volume configuration command is currently set to a value of 4, which is a very loud beep volume.

Example 2 In the host application, you want to set the value for two configuration commands on the T248X. Send this transaction from the host application: CS$+BV3KA1

Note: The transaction header is not shown in this example. You do not need a transaction header for a host application in a TCP/IP network. where: CS is a TMF Configuration Set request.

$+ is the Change Configuration reader command.

BV3 sets the Beep Volume configuration command to a value of 3, which is a very loud beep volume.

KA1 sets the Keypad Caps Lock configuration command to a value of 1, which enables the Keypad Caps Lock.

The T248X returns this transaction to the host application. Cs$+BV3KA1 where:

4-28

Cs is a TMF Configuration Set response.

$+ is the Change Configuration reader command.

BV3 means the Beep Volume configuration command has been changed to a value of 3, which is a loud beep volume.

KA1 means the Keypad Caps Lock configuration command has been changed to a value of 1, which enables the Keypad Caps Lock.

Page 157

nugget

39 Operating the Terminal in a Network

4

Transferring Files in a TCP/IP Direct Connect Network You can use an application on the host computer to transfer files and send data between the terminal and host in a TCP/IP direct connect network. To initiate file transfers from the host, you need to write a host application that can communicate directly with a T2480/1 that has an Ethernet card or the T2485/6. You use the file management reader commands such as Receive File and Transmit File to transfer files between the T248X and the host. For help, see Chapter 6, “Reader Command Reference.” To initiate file transfers from the terminal, you do not need to develop a host application as described in this section. You can use the Receive File and Transmit File within a terminal application or by scanning bar code labels. For help, see Chapter 6, “Reader Command Reference.” Note: You can continue running an application on the T248X while configuring the terminal or transferring files from the host. To use the built-in TFTP client on the T248X, you need the following: •

TFTP (Trivial File Transfer Protocol) server must be running on the host.

•

TFTP server must be running on at least a Pentium processor or equivalent.

•

T248X must be communicating with the host that is running the TFTP server.

•

The TFTP server or some other application on the host must be able to send the reader command on the network.

To transfer files or send configuration data from the host 1. Make sure the TFTP server is running on the host and the T248X is communicating with the host. 2. Start the host application that can send reader commands to the terminal. 3. Send the two-character TMF code, CS (Configuration Set request) followed by the reader or configuration command. For help on TMF, see “Configuring the T248X in a TCP/IP Direct Connect Network” earlier in this chapter. For example, to send the application INVENTRY.BIN from drive C on the host to drive C on the T248X, enter this command: CS.%R,c:inventry.bin,c:inventry.bin

For command information, see Chapter 6, “Reader Command Reference.” CLIENT.CPP is the source for a sample application you can run on the host. You can use CLIENT.CPP to send reader commands to the T248X and receive the resulting messages.

4-29

Page 158

TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 The source code for the sample utilities CLIENT.CPP and the include file UTILS.H is shown on the next pages. You can build the application using Microsoft Visual C++ version 4.0 or higher, or develop your own application to meet the needs of your host environment. You run the resulting application (CLIENT.EXE) from the DOS command line. The application expects NCM to be defined as the TRAKKER Antares terminal IP address in the hosts file. Once running, the application prompts you to enter a reader command, which it then sends to the T248X. The application also displays any return messages. Reader commands are handled by the TRAKKER Antares operating system, so you can continue running an application while you use the CLIENT.EXE application to send commands. To use the sample utility CLIENT.CPP 1. Make sure the TFTP server is running on the host and the T248X is communicating with the host. 2. In the hosts file on the host, add the terminal IP addresses and the target name, NCM. For example, to send files or data to the T248X with an IP address of 192.9.200.130, add this line to the hosts file: 192.9.200.130 ncm

3. Start the CLIENT.EXE application on the host. 4. When the “Enter Command” prompt appears on the host, enter the two-character TMF code, CS (Configuration Set request) followed by the reader or configuration command. For example, to send the application INVENTRY.BIN from drive C on the host to drive C on the T248X, enter this command: CS.%R,c:inventry.bin,c:inventry.bin

Or, to change the beep volume to very loud, enter this command: CS$+BV4

For command information, see Chapter 6, “Reader Command Reference.”

4-30

Page 159

nugget

39 Operating the Terminal in a Network

4

CLIENT.CPP Sample Application for a TCP/IP Direct Connect Network #include <windows.h> #include <stdio.h> #include "Utils.h" // our application uses a fixed port number const unsigned short SERVER_PORT = 6000; const unsigned short CLIENT_PORT = 6001; // we will default to the local host machine // unless argv[1] has a hostname const char SERVER_HOSTNAME[] = "ncm"; int main(int argc, char *argv[]) { // turn on the socket library for this process WSADATA wsad; int error = WSAStartup(MAKEWORD(1,1), &wsad); if (error != 0) ErrorMessage("WSAStartup", WSAGetLastError()); // create an unitialized connection-oriented socket SOCKET connection; connection = socket(PF_INET, SOCK_DGRAM, 0); if (connection == INVALID_SOCKET) ErrorMessage("socket", WSAGetLastError()); // lookup the IP address of the requested host HOSTENT *phostent = gethostbyname(argc == 2 ? argv[1] : SERVER_HOSTNAME); if (phostent == 0) ErrorMessage("gethostbyname", WSAGetLastError()); // define a SOCKADDR to contain the IP address of the // server and the port number of our application SOCKADDR_IN serverAddress; memset(&serverAddress, 0, sizeof(serverAddress)); serverAddress.sin_family = PF_INET; serverAddress.sin_port = htons(SERVER_PORT); memcpy(&serverAddress.sin_addr, phostent->h_addr_list[0], phostent->h_length); // Bind a well known port of 6000 to the socket SOCKADDR_IN clientAddress; memset(&clientAddress, 0, sizeof(clientAddress)); clientAddress.sin_family = PF_INET; clientAddress.sin_port = htons(CLIENT_PORT); clientAddress.sin_addr.s_addr = htonl(INADDR_ANY); if(!(bind(connection, (LPSOCKADDR)&clientAddress, sizeof(clientAddress)) ==0)) { ErrorMessage("bind", WSAGetLastError()); }

4-31

Page 160

TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39

CLIENT.CPP Sample Application for a TCP/IP Direct Connect Network (continued) // attempt to connect to the server error = connect(connection, (const SOCKADDR *)&serverAddress, sizeof(serverAddress)); if (error != 0) ErrorMessage("connect", WSAGetLastError()); // check the local name for the socket SOCKADDR_IN localName; memset(&localName, 0, sizeof(localName)); int localNameLength = sizeof(localName); error = getsockname(connection, (LPSOCKADDR)&localName, &localNameLength); // run the user-interface char sz[1024]; char rz[1024]; BOOL bConnectionAlive = TRUE; printf("> "); int Scount, Rcount; int cbRecv, cbSend; Scount = Rcount = 0; int cbLen, rcLen; unsigned char *psend = (unsigned char *)sz; // continue while not EOF on the console and the connection is alive while (bConnectionAlive) { // send the string entered by the user printf("Enter Command:\n"); printf("> "); gets(sz); if(sz[0] != 'q') { cbLen = strlen(sz); cbSend = send(connection, (const char *)psend, cbLen, 0); if (cbSend < 0) { Scount++; printf("send failed %d\n", Scount); bConnectionAlive = FALSE; ErrorMessage("send", WSAGetLastError()); } Sleep(2000); // receive the converted string from the server memset(&rz, 0, sizeof(rz)); rcLen = sizeof(rz); cbRecv = recv(connection, rz, rcLen, 0); if (cbRecv < 0) {

4-32