The text of a manual · part 8 of 38
Trakker Antares 2400 Family System Manual: Chapter 3 - Developing and Using Applications, pages 65 to 72
Pages 65 to 72 of 362, from Trakker Antares 2400 Family System Manual
The original document is the PDF (2.1 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 2410, Intermec 2415, Intermec 2435 and Intermec 2475
Page 65
3
Developing and Using Applications
This chapter explains how to create, download, and run applications on the programmable terminals and covers these topics: • About the Trakker Antares programmable terminals • Creating applications for the terminal • How to download applications • Using the serial port to transfer applications and files • Using the DCS 300 to download applications and files • Running applications on the terminal
Trakker Antares 2400 Family System Manual
45
Page 66
Chapter 3 - Developing and Using Applications
About the Trakker Antares Programmable Terminals The Trakker Antares® terminals ship loaded with a terminal emulation application or a sample application. If you ordered the DOS option, the terminal also ships with the necessary DOS files you need to run DOS applications. You can also develop your own data collection applications for the terminal and download the applications to the terminal. After you download an application to the terminal, you are ready to run the application and use it. This chapter describes how to: • develop applications for the terminals. For help, see “Creating Applications for the Terminal” on page 48. • download applications and files to the programmable terminals. For help, see “How to Download Applications” on page 53. • run applications on the terminals. For help, see “Running Applications on the Terminal” on page 65. Note: This chapter describes how to create, download, and run DOS applications. To use DOS on the Trakker Antares terminal, you must order the DOS option. For help, contact your local Intermec representative. The next table lists specifications and technical information you need to know to develop applications for the Trakker Antares terminals. Trakker Antares Programmable Terminal Specifications Specification Serial Communications
Description RS-232 serial communications through COM1
Terminals
• 241X through the serial port or communications dock • 242X through the serial interface module, communications dock, or optical link adapter
RS-232 serial communications through COM4
• 243X, 2455, 246X, 2475, 248X • 2455 • 248X with the enhanced input/output board option and adapter cable accessory
RF Communications
46
RS-232/422/485 serial communications through COM2
• 2460 • 248X with the enhanced input/output board option
802.11b radio OpenAir radio
All RF terminals
Trakker Antares 2400 Family System Manual
Page 67
Chapter 3 - Developing and Using Applications
Trakker Antares Programmable Terminal Specifications (continued) Specification Network protocol
Description UDP Plus provides host connectivity through the Intermec Gateway or DCS 30X
Terminals
• 2415, 2425, 2435, 2455, 2475, 2485/6 in the RF network through an access point
• 2461, 2480/1 (with the optional Ethernet card) in the Ethernet network
TCP/IP provides host connectivity through the RF or Ethernet network
• 2415, 2425, 2435, 2455, 2475, 2485/6 in the RF network through an access point
• 2461, 2480/1 (with the optional Ethernet card) in the Ethernet network
WTP provides host connectivity through the Intermec Gateway or DCS 30X
• 2415, 2425, 2435, 2455, 2475, 2485/6 in the RF network through an access point
• 2461, 2480/1 (with the optional Ethernet card) in the Ethernet network
Drives and File system
Drive C, approximately 750K flash for user, up to 128 files
All terminals
Drive D, optional 2MB configurable flash memory storage, up to 128 files (configurable as a storage drive or a storage space for double-byte fonts)
All terminals
Drive E, configurable (up to 256K) RAM disk, up to 128 files
All terminals
Drive G, optional 2MB or 4MB extended SRAM drive, up to 128 files
2410, 2420, 2430, 2475, 2485/6, 2480/1 with Ethernet connectivity
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).
All terminals
Application name
Customer defined, eight characters with threecharacter extension
All terminals
Storing applications
Multiple (maximum depends on the drive space)
All terminals
Developing applications
Using Trakker Antares Programmer’s Software Kit (PSK) or EZBuilder
All terminals
Trakker Antares 2400 Family System Manual
47
Page 68
Chapter 3 - Developing and Using Applications
Trakker Antares Programmable Terminal Specifications (continued) Specification Downloading applications
Description RS-232/422/485 serial communications from the PC or host computer
Terminals 241X, 242X (also through the modem), 243X, 2455, 2475 through RS-232 only
RF or Ethernet communications from the DCS 300 to the terminal’s flash drive
2415, 2425, 2435, 2455, 2475, 2485/6 through RF
RF or Ethernet communications and TFTP from a host application to the terminal’s flash drive
2415, 2425, 2435, 2455, 2475, 2485/6 through RF
2460, 248X (with the enhanced input/output board option) through RS-232/422/485 2461, 2480/1 (with the optional Ethernet card) through Ethernet
2461, 2480/1 (with the optional Ethernet card) through Ethernet
Creating Applications for the Terminal The Trakker Antares terminals run applications programmed in Microsoft C. You can use the Trakker Antares Programmer’s Software Kit (PSK) or EZBuilder and Microsoft C/C++ functions to create two types of applications for the terminal: • Native Trakker Antares applications (.BIN executable binary format) • DOS applications (.EXE executable format) (only available with the DOS option) You can download the latest versions of the PSK and EZBuilder from the Intermec web site at www.intermec.com. DOS applications and native Trakker Antares applications are mutually exclusive. You can either run a DOS .EXE application or a native Trakker Antares .BIN application. For help running DOS .EXE applications, see “Using DOS on the Terminal” on page 313. To use DOS applications, you must have the DOS option, and the terminal must be running firmware version 6.12 or later. If you are using an earlier version of firmware, you must upgrade the firmware. For help, contact you local Intermec service representative. To create applications 1 Use the PSK or EZBuilder to develop your application. Convert a JANUS® application or IRL program to use on the terminal. 2 (.BIN applications) Convert the application to a binary file. Each step is described in the next sections.
48
Trakker Antares 2400 Family System Manual
Page 69
Chapter 3 - Developing and Using Applications
Note: You build your applications differently for terminals running .BIN applications and terminals running DOS .EXE applications. For help, see the Trakker Antares Application Development Tools System Manual (P/N 064433).
Using the PSK or EZBuilder to Develop Applications Intermec has two development tools, the Trakker Antares PSK and EZBuilder, which you can use to create applications for the terminals.
Developing Applications Using the PSK You can download the latest version of the PSK at no charge from the Intermec web site at www.intermec.com. This kit has a full set of programming tools to help you create applications for the terminal: • Programmer’s Software Kit (PSK) • Application Simulator • FileCopy utility • Sample programs and Make files In addition to the PSK, you also need an Intermec-certified 16-bit C/C++ compiler, such as Microsoft Visual C/C++. For help, see your Intermec sales representative. Note: You must use the Trakker Antares PSK version 4.2 or later to create DOS applications. To support DOS .EXE applications, some PSK library functions were moved from the IM24LIB library to the LLIBCA library. The IM24LIB library contains Intermec-specific functions. 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 Intermec Gateway, DCS 30X, 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.
Developing Applications Using EZBuilder EZBuilder (P/N 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.
Trakker Antares 2400 Family System Manual
49
Page 70
Chapter 3 - Developing and Using Applications
EZBuilder contains these items: • EZBuilder software • Intermec certified 16-bit C/C++ compiler • Application Simulator • PSK libraries • FileCopy utility • Sample EZBuilder programs • EZBuilder Getting Started Guide (P/N 066450) • EZBuilder Tutorial (P/N 066449) 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. After you define the application, EZBuilder generates the program code for the application. The Application Simulator mimics a Trakker Antares terminal and lets you test the application on your computer.
Converting JANUS Applications and IRL Programs You can modify a JANUS application or an IRL program to run on your Trakker Antares terminal.
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 with converting applications, see the Trakker Antares Application Development Tools System Manual.
50
Trakker Antares 2400 Family System Manual
Page 71
Chapter 3 - Developing and Using Applications
Converting IRL Programs Between the 95XX and Trakker Antares The Trakker Antares terminals and the 95XX terminals run different types of applications. The Trakker Antares terminals can run Microsoft C/C++ applications while the 95XX terminals run IRL (Intermec Reader Language) programs. 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 or EZBuilder and Microsoft C/C++ functions. If you are using a 2460 or a 248X with the enhanced input/output board option in a CrossBar network, the application needs to send and receive data through COM2. After your application is converted, you can download the application to the terminal and begin using it in your network.
Converting the Application to a Binary File If you ordered the DOS option, you can download the executable (.EXE) file to your terminal and run the DOS .EXE application. However, if you want to run a native Trakker Antares application, you must store it as a binary file (.BIN). You can convert a native Trakker Antares application from an .EXE file to a .BIN file using one of the following methods: • If you use EZBuilder to create the application, specify a file format (.EXE or .BIN) in the Build Options dialog box before you build the application. • Use the FileCopy utility to convert the .EXE file to a .BIN file when you download the file. For help, see “Using the Serial Port to Transfer Applications and Files” on page 55. • Use the EXE2ABS.EXE program that comes with the Trakker Antares PSK or EZBuilder to convert the file. This section explains how to use the EXE2ABS.EXE program to convert an executable file (.EXE) to an executable binary file (.BIN). To convert an executable file to a binary file using EXE2ABS.EXE 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\im24\lib\exe2abs filename.exe
Trakker Antares 2400 Family System Manual
51
Page 72
Chapter 3 - Developing and Using Applications
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\im24\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 through the RF network or the Ethernet 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 and Files” on page 60.
Creating a Custom Logo You can create a custom logo that appears on the terminal screen each time the terminal boots.
VERSION 7.XX COPYRIGHT 1996-2002
Custom logo replaces this graphic
24XXS004.eps
Creating a custom logo: This custom logo replaces the “initializing” graphic on the Trakker Antares splash screen.
To create a custom logo 1 On your PC, create a custom logo in bitmap format. The bitmap should be 128 x 20 pixels in size. 2 Save the custom logo as USERINIT.BMP. 3 Download USERINIT.BMP from your PC to the terminal flash drive C using the serial port, DCS 300, or a host application. For help, see the next section, “How to Download Applications.”
52
Trakker Antares 2400 Family System Manual