The text of a manual · part 12 of 33
502X Data Collection PC System Manual: Chapter 5: Developing and Installing Applications, pages 93 to 102
Pages 93 to 102 of 310, from 502X Data Collection PC System Manual
The original document is the PDF (2.7 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 5020
Page 93
5 Developing and Installing Applications
Page 94
lkjljlkjl
Page 95
Developing and Installing Applications
5
This chapter describes the hardware and software you need to develop applications for your 502X Data Collection PC and provides guidelines for developing applications using the Intermec Software Development Kit (SDK). This chapter also explains how to install and remove applications from your 502X, and how to use ActiveSync for remote device management activities.
Hardware and Software You Need to Develop Applications You need the following hardware and software components to develop applications for the 502X Data Collection PC: •
Intel based system - Pentium 266 MHz or faster
•
64MB RAM or more recommended
•
Hard disk with 400MB available if Microsoft eMbedded Visual Tools 3.0 is not already installed
•
800 x 600 Super VGA monitor - 1280 x 1024 recommended
•
CD-ROM drive, 16X or faster
•
Microsoft Mouse or compatible pointing device
•
Microsoft Windows NT Version 4.0 or newer
•
Microsoft eMbedded Visual Tools 3.0
•
ActiveSync 3.1 (available from the Microsoft Web site), which allows you to establish a connection between the 502X and your development PC
To develop applications that utilize any of the unique 502X SDK interfaces, you also need to install the Intermec 502X SDK, which is available on the Windows CE/Pocket PC Developer’s Kit CD-ROM (Part No. 069511). The SDK library helps you take advantage of the unique functionality available on the 502X device and facilitates software development for that environment. The SDK library is compatible with the Windows CE Win32 programming environment. Applications developed for the 502X can use combinations of functions available in the Windows CE Win32 programming environment and the Intermec SDK library. Intermec recommends that you install the software components in the following order: 1. ActiveSync 2. eMbedded Visual Tools 3.0 3. Intermec 502X SDK
5-3
Page 96
502X Data Collection PC System Manual
Using the Intermec SDK to Develop Applications The Intermec SDK provides a functional subset of JANUS and Trakker Antares PSK functions. Functionality available with Windows CE development tools is not duplicated with the 502X SDK. The 502X SDK provides • the necessary development targets for Microsoft eMbedded Visual Tools.
• the library and header files required to use the SDK functionality.
• a bar code scanning emulation environment.
Note: The Intermec SDK online help (provided with the SDK software) provides additional information about using the Intermec SDK, SDK functions, and components (FileCopy, FileServer, and ADC Simulator). Key features of the 502X SDK include
5-4
•
SDK functions, which are available as DLL interfaces and as ActiveX Controls. The DLL interface is used when developing Visual C++ applications. The ActiveX Controls can be used when developing Visual C++, Visual Basic, and JScript applications.
•
Automatic Data Collection (ADC) simulator. The ADC simulator simulates the operation of the 502X bar code scan engine in a Windows NT environment. You can use the ADC simulator to send bar code data to an application that you are developing to run on the 502X.
• the FileServer utility. Use the FileServer utility on a host PC to receive messages from 502X devices through the serial port (RS-232 connection) or a TCP/IP port.
• the FileCopy utility. Use the FileCopy utility to download or upload files or applications between a desktop computer and a 502X using a serial link.
•
Custom Edit ActiveX control that integrates 502X input devices into a Windows control.
•
QuickWin, a simplified Windows interface to ease the migration of JANUS or Trakker Antares applications.
Page 97
Developing and Installing Applications
5
SDK Development Environment eMbedded Visual Basic
Win 32 API eMbedded Visual C++
Intermec SDK ActiveX Controls
Intermec SDK Libraries
Development Environment
Win 32 API/MFC Development Libraries
Applications
FileCopy (Download Application to 502X)
ActiveSync & 502X Unit Manager
FileServer (Receive messages from 502X) SDK Tool Set
502X Data Collection PCs 502XS003.eps
The following types of functions are provided in the Intermec SDK: •
Reader Command Functions
•
Message Functions
•
System Information Function
•
Communications Functions
•
File Transfer Functions
•
Virtual Wedge Functions
•
UDP Plus Functions
•
Automatic Data Collection Functions
•
QuickWin Functions
These functions are described in the following sections.
5-5
Page 98
502X Data Collection PC System Manual
Reader Command Functions Reader Command functions are used to modify and retrieve configuration information from the 502X using the reader command interface.
Message Functions The SDK Library Message functions are used to simplify retrieval and display of 502X messages and Windows CE system messages. You can use Win 32 API FormatMessage to retrieve and display messages, but the SDK Message functions can simplify the calls. The SDK Message functions support messages for Intermec subsystems only; third party subsystems can use the Microsoft message system directly to store and retrieve messages. These functions also provide macros for testing HRESULT values for success, warnings, errors, and other functions.
System Information Function The System Information function retrieves system information about battery power status.
Communications Functions Communications functions are used to transmit or receive messages. The following communications protocols are supported: •
Serial communications over COM ports
•
Serial communications over IrDA transceivers
•
Communications over TCP/IP and UDP Plus networks
•
ADC input
The communications functions are wrapper functions for
5-6
•
Win32 serial communications API functions.
•
IrSock API functions.
•
WinSock API functions.
•
Intermec-emulated WinSock 1.1 UDP Plus API functions.
•
Automatic Data Collection functions.
Page 99
Developing and Installing Applications
5
File Transfer Functions File Transfer functions are used to transmit and receive files using the Trivial File Transfer Protocol (TFTP). The TFTP client, ITCTftpClient.DLL, is provided as a Windows DLL on the 502X. ITCTftpClient exposes a COM interface to 502X programs and supports file transfers to and from any TFTP server. ITCTftpClient executes in the process of the caller.
Virtual Wedge Functions The Virtual Wedge functions are used to access the virtual wedge configuration on the 502X. The virtual wedge retrieves ADC data from the 502X and sends it to the keyboard driver so that the device can receive and interpret the data as keyboard input.
UDP Plus Functions UDP Plus allows 502X applications to send data to and receive data from a DCS 30X. UDP Plus is designed to work in adverse networking conditions, such as wireless devices moving in and out of range, and battery-powered devices that power down during periods of inactivity. UDP Plus offers the guaranteed delivery and permanent connection of TCP but uses the lower overhead of UDP. UDP Plus functions expose a minimal emulated Winsock 1.1 API as its applicationlevel interface on the 502X. This API provides a sockets-based method to support UDP Plus transactions. •
Only one socket is allowed since UDP Plus does not allow more than one connection.
•
The UDP Plus system supports a second communication mode, the Reader Command gateway. The Reader Command gateway allows configuration messages (TMF Reader Commands) to be sent to the 502X via the DCS 30X. The TMF Reader Commands are compatible with other Intermec products, such as Trakker Antares terminals and JANUS devices.
Automatic Data Collection Functions The ADC functions are accessed through custom COM interfaces. These COM interfaces allow the application to receive bar code data, configure the bar code reader engine, and control the bar code reader engine. In addition, the COM interfaces allow applications to specify the data it will receive. The COM interfaces are:
5-7
Page 100
502X Data Collection PC System Manual
Provides ADC data independent of an input device. On a 502X, there may be multiple reader engines to decode different types of ADC data. For example, a bar code reader engine decodes raw bar code data and passes it to a bar code reader COM object. An RFID reader engine decodes raw RFID tag data and passes it to an RFID tag reader COM object. IADC
Allows the application to directly configure the bar code reader engine and get statistics. IBarCodeReaderConfig
Allows the application to trigger the bar code laser scanner, disable the scanner, and receive bar codes with data details such as symbology scanned, data type (Unicode, ASCII, or other), and the time the data was received. This interface also allows the application to specify a data grid to filter ADC data. IBarCodeReaderControl
QuickWin Functions QuickWin functions allow you to create a simple Windows CE data collection application. You can create a VT-like terminal screen that occupies the entire display on a 502X. You can create label prompts and edit fields on the display and receive input from the edit fields.
Developing Applications Without the Intermec SDK You can develop data collection applications by using Visual C++, Visual Basic, the standard Win32 API, or Microsoft Foundation Classes (MFC). If you develop applications without the Intermec SDK, you can use • standard virtual wedge functions to scan input through the keyboard interfaces to any 502X application. This includes any application using a standard input control.
• standard Win32 serial and Winsock communication layer support.
Without the Intermec SDK, you cannot use the following features of the 502X in your application:
5-8
•
Advanced scanning (No data routing, scanner control, or symbology information)
•
TFTP file transfer capabilities
•
UDP Plus communication support
•
System information functions
Page 101
Developing and Installing Applications
5
Developing Applications With HTML You can develop HTML-based data collection applications for use with the 502X. For help, see any HTML source book. The 502X ships with the Internet Explorer (IE) Web browser installed for use with HTML-based applications.
Using Internet Explorer The 502X includes the IE browser for use with HTML-based data collection applications. This version of the browser includes several features specially designed for use on the 502X. To access the 502X IE browser
1. Open the Start menu and select Programs. 2. Choose IE Browser and press Enter. The IE home page appears.
%
3. Press ( on standard keypad) to display the menu and URL bars. The bars can be hidden to maximize screen area. Press to hide the menu and URL bars.
5-9
Page 102
502X Data Collection PC System Manual
The menu bar offers four choices: This menu incudes options to find a file, print a file (if printer drivers have been loaded), work offline, or close the IE browser. File
This menu includes copy, cut, and paste options.
Edit
This menu includes displayed text size and encoding options, the Stop and Refresh commands, and Internet Options. Choose Internet Options to change the IE default parameters. For help, see “Configuring the IE Browser” later in this chapter. View
This menu includes the Back, Forward, Home, and Help commands. Selecting the Help command shows a list of the IE browser keypad shortcuts. For help, see “IE Browser Keypad Shortcuts” later in this chapter. Go
"""
To access a menu, press followed by the key for that menu. For example, to access the File menu, press on standard keypad). F(
Configuring the IE Browser You can configure several IE parameters from your host PC using the Configuration application or the Configuration Management application in Unit Manager. You can also configure IE parameters from within the browser itself using Internet Options in the View menu. To configure IE with the Configuration application
&
1. On the 502X, open the Start menu and select Programs. 2. Choose Configuration and press . The Configuration main screen appears.
&
3. Open the Configure menu and select IE Browser. 4. Press . The IE Browser configuration options screen appears.
3
Use the and arrow keys to navigate in the configuration screen. Make changes as needed. For help, see “Navigating in the Parameter Screens” in Chapter 2 of your user’s manual.
5-10