The text of a manual · part 30 of 59
Trakker Antares 24XX Terminal User's Manual Addendum: Chapter 5 - Using Custom Applications, pages 230 to 238
Pages 230 to 238 of 501, from Trakker Antares 24XX Terminal User's Manual Addendum
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 2455
Page 230
5 Using Custom Applications
Page 231
Page 232
nugget CODE39 Using Custom Applications
5
This chapter introduces the TRAKKER Antares 2455 programmable terminal and explains how to download and run applications on the terminal.
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 2455 terminal. 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 T2455 1. Create your applications using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder™. For help, see page 5-5. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-7. Or, use the EZBuilder option to convert each application to a binary file. 3. Connect the T2455 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 T2455. For help, see page 5-8. 5. Use the System Menu in the TRAKKER Antares 2400 Menu System to load and run an application. For help, see page 5-16. Use the DCS 300 to download applications and files to the T2455 1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-5. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-7. Or, use the EZBuilder option to convert each application to a binary file. 3. Copy the applications and files to the DCS 300. For help, see page 5-11. 4. Use the Download Server feature on the DCS 300 to download applications and files to the T2455. For help, see page 5-12. 5. Use the System Menu in the TRAKKER Antares 2400 Menu System to load and run an application. For help, see page 5-16. Use a host application to download applications and files to the T2455 1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-5.
5-3
Page 233
TRAKKER Antares 2455 Vehicle-Mount Terminal User’s Manual nugget CODE39
2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-7. 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 T2455 directly via an access point. Use the host application to download applications and files to the T2455. 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-16. Or, use the host application to send the Run Program command.
About the T2455 Programmable Terminals The TRAKKER Antares 2455 terminal ships loaded with a terminal emulation application or a sample application. You can develop your own data collection application for the T2455 and then download the application to the terminal. You download applications and files to one or more terminals from the DCS 300 (UDP Plus protocol) or host (TCP/IP protocol) using the 2.4 GHz RF network. You can also download applications and files to one terminal using a serial port. The next table lists specifications and technical information you need to know to develop applications for the T2455.
T2455 Programming Specifications Serial Communications
RS-232 serial communications via COM1 and COM4
RF Communications
2.4 GHz (to 2.4835 GHz ) radio
Network protocol
There are two options:
5-4
•
UDP Plus protocol provides host connectivity through the DCS 300.
•
TCP/IP protocol provides host connectivity through an access point.
Page 234
nugget CODE39 Using Custom Applications
5
T2455 Programming Specifications (continued) Application
Programmed in Microsoft C, 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 serial communications from the PC or host computer. Via RF to the terminal flash drive from the DCS 300. Via RF and TFTP to the terminal 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 (of the total 4MB) 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, optional 2MB or 4MB extended SRAM drive, up to 32 files.
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. The terminal runs applications that are programmed in Microsoft C. 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 T2455.
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).
5-5
Page 235
TRAKKER Antares 2455 Vehicle-Mount Terminal User’s Manual nugget CODE39
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 a quick and easy way to create applications for the TRAKKER Antares terminal. EZBuilder contains: •
EZBuilder software
•
Microsoft Visual C++ version 1.5X
•
Application Simulator
•
PSK libraries
•
FileCopy utility
•
Sample EZBuilder programs
•
EZBuilder Getting Started Guide
•
EZBuilder Tutorial
Using EZBuilder, you enter simple commands to create menus, screens, and transactions and to define menu items, labels, and data fields. You can also set attributes, define function keys, and specify other processing, such as calculations, for the application. Once you have defined the application, EZBuilder generates the application program code. The Application Simulator mimics a TRAKKER Antares terminal and lets you test the application on your computer.
5-6
Page 236
nugget CODE39 Using Custom Applications
5
Converting Applications Between JANUS and TRAKKER Antares You can develop applications that run on both the JANUS® devices and the TRAKKER Antares terminals. However, there are some differences that you need to plan for in your applications. The TRAKKER Antares is an intelligent terminal. A JANUS device is a DOS-compatible computer. Because of these differences, there are some features and functions that are different between the JANUS PSK and the TRAKKER Antares PSK. In general, a C/C++ application written for TRAKKER Antares terminals requires minor changes to run on a JANUS device. However, an application written for a JANUS device may require more changes to work properly on a TRAKKER Antares terminal. JANUS applications developed with the JANUS PSK and compiler libraries are relatively easy to convert to an application for the TRAKKER Antares terminals. There are several methods you can use to convert applications to and from JANUS devices and TRAKKER Antares terminals. For help on converting applications, see the TRAKKER Antares Programmer’s Software Kit Reference Manual.
Converting IRL Programs for the TRAKKER Antares The TRAKKER Antares terminals support IRL® by using IRL to C conversion programs. You can convert IRL programs to Microsoft C/C++ applications that use the TRAKKER Antares PSK functions. For information about converting IRL programs, contact your local Intermec service representative. You can also convert your IRL program by developing a new C/C++ application using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder and Microsoft C/C++ functions.
Converting the Application to a Binary File For your application to run on the T2455 it must be stored as an executable binary file (*.BIN) instead of an executable file (*.EXE). Use the EXE2ABS.EXE program that comes with the TRAKKER Antares PSK or EZBuilder to convert the file. Note: The FileCopy utility or the EZBuilder “download” tool will automatically convert an executable file (*.EXE) to an executable binary file (*.BIN) when you download the file. If you download the applications using another method, you need to convert the application to a binary file. To convert an executable file to a binary file 1. Use the TRAKKER Antares PSK or EZBuilder to develop the application. 2. Convert the application from an executable file to a binary file by typing this command on your development PC: drive:\intermec\imt24\lib\exe2abs filename.exe
5-7
Page 237
TRAKKER Antares 2455 Vehicle-Mount Terminal User’s Manual nugget CODE39
The conversion application (EXE2ABS.EXE) creates an executable binary file named FILENAME.BIN. For example, if your application is named SHIPPING.EXE and the Intermec directory is on drive C, type this command on your PC: c:\intermec\imt24\lib\exe2abs shipping.exe
The conversion application creates the SHIPPING.BIN file. 3. If you plan to download applications and files from the DCS 300 or host via the 2.4 GHz RF network, copy all the binary application files and any data files to a 3.5-inch disk. Continue with the instructions for “Using the DCS 300 to Download Applications” later in this chapter.
Using the Serial Port to Transfer Applications and Files You can download or upload applications and files between a PC or host computer and the T2455 using serial communications. You connect the terminal to the host through the COM1 or COM4 serial port. For help, see “Connecting to Serial Devices” in Chapter 2. Once the terminal is connected, you can transfer files to or from a terminal. There are two ways to transfer files: •
Use the FileCopy utility that ships with the TRAKKER Antares Programmer’s Software Kit (PSK) and EZBuilder. Note: The FileCopy utility is also available on our web site at www.intermec.com.
•
Use the Receive File or Transmit File reader commands. For help, see Chapter 8, “Reader Command Reference.”
The instructions in this section explain how to use the FileCopy utility to download or upload applications and files to or from the terminal. To run an application on the terminal, it must be stored as an executable binary file (*.BIN). The FileCopy utility will automatically convert any *.EXE file to a binary file (*.BIN) before downloading the file. With the FileCopy utility, you can download either *.EXE or *.BIN application files. Note: You can download or upload files to or from the terminal using either the serial port or RF communications through the DCS 300 or host. To download or upload applications and files to or from the terminal 1. Connect the TRAKKER Antares terminal to your PC. 2. Start Microsoft Windows on your PC
5-8
Page 238
nugget CODE39 Using Custom Applications
5
3. From Program Manager, start FileCopy. The TRAKKER Antares FileCopy utility screen appears. FileCopy includes detailed online help. You click the Help button or press F1 anytime to get more information.
4. Check the serial port and serial communications parameters to verify that the settings for your PC match the values that are set for the terminal serial port. a. Select the COM Port Setup tab to select and configure the following: •
PC COM port
•
TRAKKER Antares COM port
•
Communications Protocol
•
File Transfer protocol
•
Baud rate, parity, data bits, and stop bits b. Select the Serial Communications Setup tab to verify and configure the PC serial communications parameters. c. Use the TRAKKER Antares 2400 Menu System to configure the COM1 or COM4 serial port parameters on the terminal. For help, see “Configuring the Serial Port Parameters” in Chapter 2. 5. Make sure the terminal is running an application that will not be updated during the file transfer. If you are in the TRAKKER Antares 2400 Menu System, exit the menu system. You can run the APPTSK.BIN application while transferring files. For help, see “Running the Application on the Terminal” later in this chapter.
5-9