The text of a manual · part 3 of 36
Trakker Antares Application Development Tools System Manual: Part I - Trakker Antares PSK Reference Manual, pages 15 to 24
Pages 15 to 24 of 340, from Trakker Antares Application Development Tools System Manual
The original document is the PDF (1.6 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.
Filed in the catalog under the Intermec 2420, Intermec 2425, Intermec 2435 and Intermec 2481
Page 15
Contents im_udp_open_socket....................................................................................................... 189 im_udp_receive_data....................................................................................................... 190 im_udp_send_data .......................................................................................................... 197 im_viewport_end............................................................................................................. 197 im_viewport_getxy .......................................................................................................... 198 im_viewport_home.......................................................................................................... 199 im_viewport_move .......................................................................................................... 199 im_viewport_page_down................................................................................................. 200 im_viewport_page_left..................................................................................................... 201 im_viewport_page_right .................................................................................................. 201 im_viewport_page_up ..................................................................................................... 202 im_viewport_setxy........................................................................................................... 203 im_viewport_to_cursor.................................................................................................... 207 im_xm_receive_file.......................................................................................................... 208 im_xm_transmit_file ....................................................................................................... 210 im_xm1k_receive_file ...................................................................................................... 211 im_xm1k_transmit_file ................................................................................................... 213 im_ym_receive_file.......................................................................................................... 214 im_ym_transmit_file ....................................................................................................... 216 recv.................................................................................................................................. 217 send ................................................................................................................................. 218 socket............................................................................................................................... 219
A
Status Codes and ASCII Character Set........................................................................... 221 Using the Status Code Return Values .............................................................................. 222 Trakker Antares Status Code Return Values .................................................................... 222 ASCII Character Set ........................................................................................................ 227
Trakker Antares PSK Reference Manual xi
Page 16
Contents
B
Microsoft Visual C/C++ Settings ....................................................................................... 229 Project Options for .BIN Programs.................................................................................. 230 Compiler Options: Code Generation.................................................................. 230 Compiler Options: Memory Model .................................................................... 231 Linker Options ................................................................................................... 232 Directory Settings ............................................................................................... 232 Project Options for DOS .EXE Programs ........................................................................ 233 Compiler Options: Code Generation.................................................................. 233 Compiler Options: Memory Model .................................................................... 234 Linker Options ................................................................................................... 234 Directory Settings ............................................................................................... 235
I Index xii
................................................................................................................................................. 237
Trakker Antares PSK Reference Manual
Page 17
Before You Begin
Before You Begin This section provides you with safety information, technical support information, and sources for additional product information.
Safety Summary Your safety is extremely important. Read and follow all warnings and cautions in this document before handling and operating Intermec equipment. You can be seriously injured, and equipment and data can be damaged if you do not follow the safety warnings and cautions.
Do not repair or adjust alone Do not repair or adjust energized equipment alone under any circumstances. Someone capable of providing first aid must always be present for your safety.
First aid Always obtain first aid or medical attention immediately after an injury. Never neglect an injury, no matter how slight it seems.
Resuscitation Begin resuscitation immediately if someone is injured and stops breathing. Any delay could result in death. To work on or near high voltage, you should be familiar with approved industrial first aid methods.
Energized equipment Never work on energized equipment unless authorized by a responsible authority. Energized electrical equipment is dangerous. Electrical shock from energized equipment can cause death. If you must perform authorized emergency work on energized equipment, be sure that you comply strictly with approved safety regulations.
Trakker Antares PSK Reference Manual xiii
Page 18
Before You Begin
Safety Icons This section explains how to identify and understand warnings, cautions, and notes that are in this document. A warning alerts you of an operating procedure, practice, condition, or statement that must be strictly observed to avoid death or serious injury to the persons working on the equipment. Avertissement: Un avertissement vous avertit d’une procédure de fonctionnement, d’une méthode, d’un état ou d’un rapport qui doit être strictement respecté pour éviter l’occurrence de mort ou de blessures graves aux personnes manupulant l’équipement. A caution alerts you to an operating procedure, practice, condition, or statement that must be strictly observed to prevent equipment damage or destruction, or corruption or loss of data. Attention: Une précaution vous avertit d’une procédure de fonctionnement, d’une méthode, d’un état ou d’un rapport qui doit être strictement respecté pour empêcher l’endommagement ou la destruction de l’équipement, ou l’altération ou la perte de données. Note: Notes either provide extra information about a topic or contain special instructions for handling a particular condition or set of circumstances.
Global Services and Support Warranty Information
To understand the warranty for your Intermec product, visit the Intermec web site at http://www.intermec.com and click Service & Support. The Intermec Global Sales & Service page appears. From the Service & Support menu, move your pointer over Support, and then click Warranty. Disclaimer of warranties: The sample code included in this document is presented for reference only. The code does not necessarily represent complete, tested programs. The code is provided “as is with all faults.” All warranties are expressly disclaimed, including the implied warranties of merchantability and fitness for a particular purpose.
Web Support
Visit the Intermec web site at http://www.intermec.com to download our current documents as PDF files. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor.
xiv
Trakker Antares PSK Reference Manual
Page 19
Before You Begin
Visit the Intermec technical knowledge base (Knowledge Central) at http://intermec.custhelp.com to review technical information or to request technical support for your Intermec product.
Telephone Support
These services are available from Intermec Technologies Corporation. In the U.S.A. and Canada call 1-800-755-5505 and choose this option
Service
Description
Factory Repair and On-site Repair
Request a return authorization number for authorized service center repair, or request an onsite repair technician.
1
Technical Support
Get technical support on your Intermec product.
2
Service Contract Status
Inquire about an existing contract, renew a contract, or ask invoicing questions.
3
Schedule Site Surveys or Installations
Schedule a site survey, or request a product or system installation.
4
Ordering Products
Talk to sales administration, place an order, or check the status of your order.
5
Outside the U.S.A. and Canada, contact your local Intermec representative. To search for your local representative, from the Intermec web site, click Contact.
Who Should Read This Document? This manual describes the special features and methods needed for programming the Trakker Antares® terminals with Microsoft® C. Note: Although this manual specifically references Microsoft C functions, the PSK also supports the equivalent Borland® C functions. This manual is intended for experienced PC programmers who already understand return values, know how to program in C, and know how to use either Microsoft Visual C/C++ or Borland Turbo C++.
Trakker Antares PSK Reference Manual xv
Page 20
Before You Begin
Related Documents The Intermec web site at http://www.intermec.com contains our current documents that you can download as PDF files. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor.
xvi
Trakker Antares PSK Reference Manual
Page 21
1
Getting Started
This chapter introduces the PSK, explains how to install the PSK, and helps you decide what to read next. This chapter covers these topics: • What is the Trakker Antares PSK • What’s new in this revision • Installing the programmer’s software kit
Trakker Antares PSK Reference Manual
1
Page 22
Chapter 1, Getting Started
What Is the Trakker Antares PSK? The Trakker Antares® Programmer’s Software Kit (PSK) is a set of C language functions for programming Intermec’s Trakker Antares programmable terminals. You use the PSK to design and build applications on a PC, and then you download the applications to a Trakker Antares terminal.
What’s New In This Revision Enhancements and changes in this release of the PSK reference manual support software release version 5.0 and include: • adding references to Borland® Turbo C++ 4.5. • adding or modifying these functions: • im_get_rx_status • im_set_no_autosend • an enhanced description of the PSK, more information about BSD sockets, and general programming guidelines for the network communications functions. • references to the Trakker Antares 2475 Vehicle-Mount Terminal. • references to the Intermec Gateway.
Installing the Programmer’s Software Kit To install the PSK, you need these items: • Microsoft® Windows® 95/98/ME/NT v4.0/2000/XP • Microsoft Visual C/C++ Professional Edition, v1.0, v1.5x, or v4.x Or, Borland Turbo C++ 4.5 For more information, see “Trakker Antares PSK Version Requirements” on page 4. • At least 1MB of free disk space • Trakker Antares PSK download (available at no charge from the Intermec web site at www.intermec.com), which installs these files and utilities: • PSK functions library • Header files • Example files • Application Simulator/Simulator Editor 2
Trakker Antares PSK Reference Manual
Page 23
Chapter 1, Getting Started
• FileCopy • EXE2ABS.EXE, which converts .EXE applications to .BIN applications To install the PSK library files, Application Simulator, Simulator Editor, and FileCopy Note: If you are using Microsoft Visual C/C++, install it before you install the PSK library. 1 Download the Trakker Antares PSK version 4.4 to your PC. 2 On your PC, click the Start button and choose Run. 3 In the Open field, type: drive:setup.exe where drive is the appropriate disk drive and location. 4 Choose OK, and then follow the setup instructions on your screen. 5 When Setup prompts you to view the README file, choose Yes. This file may contain information that was not available when this manual was printed. 6 When the installation is complete, shut down your PC and restart it. You are ready to use the PSK, the Application Simulator, Simulator Editor, and FileCopy. The setup program creates a Trakker Antares Sim Editor group. For details, see Part II, Trakker Antares Application Simulator User’s Manual. The setup program also creates and fills the following subdirectories. Trakker Antares PSK Subdirectories Directory INTERMEC\IMT24\LIB
Description Intermec library files, EXE2ABS.EXE
INTERMEC\IMT24\INCLUDE
Include files
INTERMEC\IMT24\EXAMPLES\PSK
Sample programs
INTERMEC\IMT24\SIM
Application Simulator
INTERMEC\TOOLS
FileCopy and Simulator Editor
Copying FileCopy to Another PC You may copy the FileCopy utility and EXE2ABS.EXE to more than one PC. FileCopy lets you transfer files between your PC and your Trakker Antares terminal. EXE2ABS.EXE lets you convert .EXE applications to .BIN applications. You may not copy the PSK library.
Trakker Antares PSK Reference Manual
3
Page 24
Chapter 1, Getting Started
To copy FileCopy to another PC 1 Install the PSK on the first PC. 2 Copy these files to a disk: C:\INTERMEC\IMT24\FILECOPY\FILECOPY.EXE C:\INTERMEC\IMT24\FILECOPY\FILECOPY.HLP C:\INTERMEC\IMT24\LIB\EXE2ABS.EXE 3 Create these directories on the second PC: C:\INTERMEC\IMT24\FILECOPY C:\INTERMEC\IMT24\LIB 4 Copy the files from the disk in Step 2 to the appropriate directories on the PC.
Trakker Antares PSK Version Requirements You can use any version of the Trakker Antares PSK version to develop programs for your terminals. However, newer features will not necessarily work with older firmware. Contact your local Intermec representative for information on upgrading your terminal firmware or visit the Intermec web site at www.intermec.com. The Trakker Antares PSK version 4.4 and earlier requires Microsoft Visual C/C++ Professional Edition v1.0 or v1.5x. The Trakker Antares PSK version 5.0 and later requires Borland Turbo C++ version 4.5. This reference manual mainly describes how to use Microsoft Visual C/C++ with the Trakker Antares PSK. For help using Borland Turbo C++ 4.5, see the documentation that came with Turbo C++.
Microsoft Visual C/C++
Microsoft Visual C/C++ Professional Edition v1.0 or v1.5x can create 16-bit DOS applications. If you are using a different version, you must also install either v1.0 or v1.5x. Note: The Microsoft Visual C/C++ Professional Edition v4.X package includes a disk for v1.5. However, the Microsoft Visual C/C++ Professional Edition v5.0 and later does not contain the 16-bit version of C.
Borland Turbo C++
Borland Turbo C++ version 4.5 can create 16-bit or 32-bit DOS applications. However, the PSK only supports 16-bit applications. Note: Although this manual references Microsoft C functions, the PSK also supports the equivalent Borland C functions.
4
Trakker Antares PSK Reference Manual