The text of a manual · part 17 of 26
TRAKKER Antares 248X Stationary Terminal User's Manual, pages 161 to 170
Pages 161 to 170 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 161
nugget
39 Operating the Terminal in a Network
4
CLIENT.CPP Sample Application for a TCP/IP Direct Connect Network (continued) Rcount++; printf("receive failed %d\n", Rcount); ErrorMessage("receive", WSAGetLastError()); bConnectionAlive = FALSE; } // printf the converted string printf("response:%s\n",rz); printf("\n> "); Sleep(1000); } else bConnectionAlive = FALSE; } // release the resources held by the socket error = closesocket(connection); if (error != 0) ErrorMessage("closesocket", WSAGetLastError()); // release the resources held by the socket library error = WSACleanup(); if (error != 0) ErrorMessage("WSACleanup", WSAGetLastError()); return 0; }
UTILS.H Utility (Used by CLIENT.CPP) #include <windows.h> inline void ErrorMessage(LPCTSTR szFn, DWORD dwError = GetLastError()) { TCHAR szTitle[1024]; TCHAR szPrompt[1024]; BOOL bRet = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, dwError, 0, szPrompt, sizeof(szPrompt), 0); if (!bRet) lstrcpy(szPrompt, __TEXT("Unknown Error")); wsprintf(szTitle, __TEXT("%s failed with error code (0x%x)!"), szFn, dwError); int id = MessageBox(HWND_DESKTOP, szPrompt, szTitle, MB_ABORTRETRYIGNORE|MB_SETFOREGROUND); if (id != IDIGNORE) ExitProcess(0); }
4-33
Page 162
TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39
About Network Connectivity and Protocols The TRAKKER Antares terminals are data collection terminals with network support. The T2480, T2481, T2485, and T2486 communicate with a host computer or other serial device through the terminal’s serial ports. The T2480 and T2481 with an Ethernet card installed communicate with a host directly through the Ethernet network. The T2485 and T2486 also communicate with a host in the 2.4 GHz RF network either through the Model 200 Controller or directly through the access points. The access point acts as a bridge between the Ethernet or token ring network and the wireless 2.4 GHz RF network. In a UDP Plus network, the terminal communicates through the Model 200 Controller to a host on an Ethernet, token ring, twinaxial, coaxial, or SDLC network. In a TCP/IP network, the terminal communicates to the host on an Ethernet or token ring network. The communications protocol stack for the TRAKKER Antares terminal is developed using the Open Systems Interconnection (OSI) seven layer model. The illustration on the next page shows how the 2.4 GHz RF network, the Ethernet network, and the serial ports map into the OSI model. The terminal applications including terminal emulation and screen mapping are on top of the protocol stack. Intermec provides a terminal communications API (application program interface) to interface to the protocol stack. The API provides a common interface to these Intermec value-added protocols: •
Terminal Message Format (TMF) is an Intermec proprietary protocol that is used to route data and network management messages between applications on the terminal and peer tasks on the controller or host.
•
UDP Plus is an Intermec protocol built on top of the User Datagram Protocol (UDP). It maximizes the performance of wireless (RF) and Ethernet networks and provides robust data communications.
•
Trivial File Transfer Protocol (TFTP) allows efficient file exchange between the terminal and the Model 200 Controller or host.
•
Configurable Serial Port (CSP) protocol allows efficient file exchange between the T248X and the host through RS-232 and RS-232/422/485 serial communications. The terminal uses either the XMODEM or YMODEM protocol to transfer files via reader commands.
•
Network management provides network access to the terminal configuration, status, and statistics. Network management uses the Terminal Message Format to receive and send messages.
The remaining layers in the protocol stack are a series of standard protocols that interface with the drivers and hardware needed to support the 2.4 GHz RF network, the Ethernet network, and serial communications.
4-34
Page 163
4
39 Operating the Terminal in a Network nugget
TRAKKER Antares Terminal Protocol Stack and the OSI Model ayers
OSI L ns licatio ares app 248X
R Ant
KE TRAK ation ns additio I and P A s on unicati Comm ssage al Me Termin at (TMF) Form lus
UDP P l File Trivia rotocol P r fe Trans FTP) (T rk Netwo nt e m urable anage Configl port m seria col proto
Applic n ntatio
Prese n
Sessio port
Trans rk
Netwo
UDP TCP ink
P, and
IP, AR
Hz RF 2.4 G ol driver c to pro
Data L
ICMP et Ethern river d l o protoc adio
Hz r 2.4 G d et car
Ethern net
Ether rk Netwo
Serial port driver Serial port al
Physic
0
U.09
248X
Wiredk r Netwo k etwor
RF N
4-35
Page 164
TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 The TRAKKER Antares 248X terminals use these protocols: Layer
Protocol
Description
Physical
2.4 GHz radio
Provides spread spectrum radio signal control.
Ethernet card
Provides Ethernet communications.
Serial Port
Provides RS-232 serial communications.
2.4 GHz RF or Ethernet protocol driver
Provides RF or Ethernet media access control. The default hardwired media access control (MAC) protocol used with TCP/IP supports the Ethernet II standard.
Serial port driver
Provides RS-232 (COM1 and COM4) or RS-232/422/485 (COM2) serial communications control that uses CSP and the standard XMODEM or YMODEM protocol for data transfer.
IP, ARP, and ICMP
The Internet Protocol (IP) complies with the standard outlined in RFC 791.
Data Link
Network
The Address Resolution Protocol (ARP) complies with the standard outlined in RFC 826. The Internet Control Message Protocol (ICMP) complies with the standard outlined in RFC 826. Transport
Session and Presentation
UDP
The User Datagram Protocol (UDP) complies with the standard outlined in RFC 768.
TCP
Transmission Control Protocol (TCP) complies with the standard outlined in RFC 793.
UDP Plus
UDP Plus is an Intermec proprietary session layer protocol built on UDP. The UDP Plus session layer provides these services: • • • • • •
Presentation and Application
4-36 guaranteed delivery duplicated message removal link connection and status management network error recovery congestion control device error detection
TFTP
Trivial File Transfer Protocol (TFTP) allows efficient file exchange between the terminal and the Model 200 Controller or host. TFTP complies with the standard outlined in RFC 1350.
TMF
Terminal Message Format is an Intermec proprietary protocol that is used to route data, configuration, and network management messages between applications on the terminal and peer tasks on the controller or host.
Page 165
5 Using Custom Applications and Screen Mapping
Page 166
Page 167
nugget
39 Using Custom Applications and Screen Mapping
5
This chapter introduces the TRAKKER Antares 248X programmable terminals and explains how to download and run applications on the terminals. You will also find instructions on how to use the screen mapping application.
How to Download and Run Applications Here’s a brief summary of the steps you follow to download applications and files to the programmable TRAKKER Antares terminals. To learn more about the programmable features, start with the next section, “About the TRAKKER Antares Programmable Terminals.” Use a serial port to download applications and files to the T248X 1. Create your applications using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder. For help, see page 5-6. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-8. Or, use the EZBuilder option to convert each application to a binary file. 3. Connect the T248X to the development PC or host computer using a serial port. For help, see Chapter 2, “Installing the Terminal.” 4. Use the FileCopy utility to download applications and files to the T248X. For help, see page 5-9. 5. Use the System Menu in the TRAKKER Antares 2400 Menu System to load and run an application. For help, see page 5-17. Use the Model 200 Controller to download applications and files to the T248X 1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-6. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-8. Or, use the EZBuilder option to convert each application to a binary file. 3. Copy the applications and files to the Model 200 Controller. For help, see page 5-12. 4. Use the Download Server feature on the Model 200 Controller to download applications and files to the T248X. For help, see page 5-14. 5. Use the System Menu in the TRAKKER Antares 2400 Menu System to load and run an application. For help, see page 5-17.
5-3
Page 168
TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39 Use a host application to download applications and files to the T248X 1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-6. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-8. Or, use the EZBuilder option to convert each application to a binary file. 3. Copy the applications and files to the host. 4. Write an application for the host that can communicate with the T248X directly via an access point or through the Ethernet network. Use the host application to download applications and files to the T248X. For help, see “Transferring Files in a TCP/IP Direct Connect Network” in Chapter 4. Note: The host must be running a TFTP server. 5. Use the System Menu in the TRAKKER Antares 2400 Menu System to load and run an application. For help, see page 5-17. Or, use the host application to send the Run Program command.
About the TRAKKER Antares Programmable Terminals The TRAKKER Antares terminals ship loaded with a terminal emulation application, a screen mapping application, or a sample application. You can develop your own data collection application for the T248X and then download the application to the terminal. You download files to the T2480, T2481, T2485, or T2486 using these methods: T2480 and T2481 Without Ethernet You can download applications and files from a host computer to one terminal that is directly connected through one of the serial ports. T2480 and T2481 With Ethernet You can download applications and files from the Model 200 Controller (UDP Plus protocol) or host (TCP/IP protocol) to one or more terminals. You can also download applications and files to one T2480 or T2481 using a serial port. T2485 and T2486 You can download applications and files from the Model 200 Controller (UDP Plus protocol) or host (TCP/IP protocol) to one or more terminals using the 2.4 GHz RF network. You can also download applications and files to one T2485 or T2486 using a serial port. The next table lists specifications and technical information you need to know to develop applications for the T248X terminals.
5-4
Page 169
nugget
39 Using Custom Applications and Screen Mapping
5
TRAKKER Antares Programmable Terminal Specifications Products:
TRAKKER Antares 2480, 2481, 2485, and 2486 terminals
Serial Communications:
RS-232 serial communications via COM1 (all T248X terminals) RS-232/422/485 serial communications via COM2 (T248X terminals with the enhanced input/output board option) RS-232 serial communications via COM4 with an adapter cable accessory (Part No. 067185) (T248X terminals with the enhanced input/output board option)
RF Communications:
2.4 GHz (to 2.4835 GHz ) radio
Network protocol:
There are two options for the T2480/1 with Ethernet and the T2485/6: •
UDP Plus protocol provides host connectivity through the Model 200 Controller
•
TCP/IP protocol provides host connectivity through the Ethernet network (T2480/1) or an access point (T2485/6)
Application:
Customer defined, stored on drive C. Maximum size of a single application is 512K (less the size of the RAM drive, if configured).
Application name:
Customer defined, eight characters with three-character extension
Storing applications:
Multiple (maximum depends on the drive space)
Developing applications:
Using TRAKKER Antares Programmer’s Software Kit or EZBuilder
Downloading applications:
Via RS-232/422/485 serial communications from the PC or host computer Via RF or Ethernet to the terminal’s flash drive from the Model 200 Controller Via RF or Ethernet and TFTP to the terminal’s flash drive from a host application
Drives and File system:
Drive C, approximately 750K flash for user, up to 32 files Drive D, optional 2MB configurable flash memory storage, up to 32 files (configurable as a storage drive or a storage space for double-byte fonts) Drive E, configurable (up to 256K) RAM disk, up to 32 files Drive G, T248X optional 2MB or 4MB extended SRAM drive, up to 32 files (T2480/1 terminals with Ethernet connectivity or T2485/6 terminals)
5-5
Page 170
TRAKKER Antares 248X Stationary Terminal User’s Manual nugget 39
Creating Applications for the Terminal You create applications for the terminal using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder and Microsoft C/C++ functions. To start creating applications 1. Use the PSK or EZBuilder to develop your application. 2. Convert the application to a binary file. Each step is described in the next sections. Once you have completed these steps, you can download the application to the T248X terminals.
Using the PSK or EZBuilder to Develop Applications Intermec has two development tools, PSK and EZBuilder, that you can use to create applications for the TRAKKER Antares terminals. The TRAKKER Antares Programmer’s Software Kit (Part No. 065332) has a full set of programming tools to help you create applications for the terminal. In addition to the PSK, you also need Microsoft Visual C/C++ version 1.5X (Part No. 590224). The PSK kit contains: •
Programmer’s software libraries
•
Application Simulator
•
FileCopy utility
•
Sample programs and Make files
•
TRAKKER Antares Application Development Tools System Manual
The PSK is a library of C functions that control the TRAKKER Antares programmable terminals. You can program the terminal to display prompts and error messages, to collect and display data, and to transmit data to an upline controller or host computer. The PSK functions work with most standard Microsoft C functions. You can create complex applications that collect, store, manipulate, and transmit data to meet your system needs. The Application Simulator is a terminate-and-stay resident (TSR) program that lets you debug and run TRAKKER Antares applications on a DOS or Windows PC. The Simulator captures the PSK and C functions and makes the PC mimic a TRAKKER Antares terminal. EZBuilder (Part No. 066381) is a software code generator product that provides programmers and technically-oriented non-programmers with a quick and easy way to create applications for the TRAKKER Antares terminal.
5-6