The text of a manual · part 10 of 14
CK61 Mobile Computer With Windows Mobile User's Manual: Chapter 3 - Developing and Installing Applications
Pages 77 to 90 of 128, from CK61 Mobile Computer With Windows Mobile User's Manual
The original document is the PDF (2.9 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 CK60 / CK61
Page 77
and Installing 3 Developing Applications
Use this chapter to understand the guidelines for developing applications for use on the CK61. This chapter contains these sections: •
Developing Applications for the Computer
•
Installing Applications on the Computer
•
Freeing Up Virtual Memory for Applications
•
Launching an Application Automatically
•
Upgrading the System Software
65
Page 78
Chapter 3, Developing and Installing Applications
Developing Applications for the Computer The CK61 runs applications that are programmed in Microsoft eMbedded Visual C++ 4.0 to program applications. Use this section to understand the hardware and software you need to develop a new application for the computer. Use the Intermec resource kits to develop new applications to run on the CK61. The Intermec resource kits are a library of C++ and .NET components grouped by functionality that you can use to create applications for the computer. The resource kits are part of the Intermec Developer Library (IDL), and can be downloaded from the Intermec web site at www.intermec.com/idl. You need the following hardware and software components to use the resource kits: •
Pentium desktop, 400 MHz or higher
•
Windows 2000 (Service Pack 2 or later) or Windows XP (Home, Professional, or Server)
•
For native and managed development, Microsoft Visual Studio 2005
•
128 MB RAM (196 MB recommended)
•
360 MB hard drive space for minimum installation (720 MB for complete)
•
CD-ROM drive compatible with multimedia desktop specification
•
VGA or higher-resolution monitor (Super VGA recommended)
•
Microsoft Mouse or compatible pointing device
Installing Applications on the Computer There are several ways you can install applications on your mobile computer:
66
•
You can package your application as a cabinet (.cab) file.
•
If you have a simple application, you may only need to deliver the .exe file.
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 79
Chapter 3, Developing and Installing Applications
•
You can copy a directory structure that contains the application, supporting files, DLLs, images, and data files.
Intermec recommends using .cab files to install your applications. The CK61 uses standard Windows .cab files and will install thirdparty .cab files. You can have your .cab files place your application in any of these memory locations on the CK61: •
The Object Store or the Flash File Store. The Object Store is a DiskOnChip® flash that looks like a disk. The Flash File Store is an area of storage which is embedded in a section of the system flash memory. This storage is not erased during a reset, although it might be erased during the reflashing process. In addition to storing applications and data files, you have the option to store persistent registry information to the Flash File Store region.
•
The optional SD card. If you are using a SD card, this should be the primary location to place application installation files. The SD card creates the Storage Card folder on the CK61.
•
The non-volatile Flash File Store region of the storage. Use the small non-volatile Flash File Store region to hold .cab files that rebuild the system at clean boot or install applications from a .cab file into the Flash File Store so that they are “ready-to-run” when you perform clean boot. Since the flash in the system has a limited number of write cycles, do not use the Flash File Store for excessive writing.
Files copied to any of these locations are safe when you cold boot the computer as long as the Outrun system is installed in the appropriate location. You can find information about this system in the Intermec Developer’s Library (IDL) Resource Kit Developer’s Guide which is available from www.intermec.com/idl. When you copy a .cab file to the \CabFiles folder, the folder automatically extracts that .cab file on every cold boot. There are several ways you can install files and applications on the computer: •
SmartSystems Foundation
•
ActiveSync
•
SD card
•
FTP Server
CK61 Mobile Computer User’s Manual With Windows Mobile
67
Page 80
Chapter 3, Developing and Installing Applications
•
Wavelink Avalanche
The following sections explain how to use each one of these processes to install your application on the computer.
Installing Applications Using SmartSystems Foundation You can use the SmartSystems console to drag-and-drop Intermec applications onto your mobile computers. The computer ships with the SmartSystems client, which means it is SmartSystems-enabled. The console is part of SmartSystems Foundation, which you can download from www.intermec.com/SmartSystems. For help using the console, see the online help. To use SmartSystems console to install an application 1 Download your application file from the Intermec web site and unzip it on your desktop PC. 2 Double-click the application file to install it. The application file should appear in the Software Vault. 3 From the SmartSystems console in the Software Vault, drag-anddrop the application onto each mobile computer in your network.
Installing Applications Using Microsoft ActiveSync You can use Microsoft ActiveSync to establish a connection between your PC and the computer. ActiveSync transfers files, synchronizes files, performs remote debugging, and other device management activities. You can have a serial or USB ActiveSync connection to the mobile computer. When you only have a few computers to update, you can copy files using Windows Explorer on a PC. This procedure assumes that Microsoft ActiveSync is installed on your PC and is up and running. To install an application on the computer using ActiveSync 1 Connect the CK61 to a PC using a USB cable. You may have to disconnect and then connect the cable to “wake” the connection. 2 Wait for a “Connected” message to appear in the Microsoft ActiveSync application to signal a connection to the mobile
68
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 81
Chapter 3, Developing and Installing Applications computer. If necessary, select File > Get Connected to initiate a connection.
3 Click Explore to open the Mobile Device window that shows the files and folders on the CK61. 4 On your desktop PC, locate the .cab file you want to download to the mobile computer and copy it. 5 From the Mobile Device window, open the CabFiles folder and navigate to the folder where you want to paste the .cab file. 6 Paste the .cab file into the desired folder. 7 When you are done copying files, clean boot the mobile computer. 8 After the mobile computer is done booting, tap on the My Device icon in the Windows Desktop screen and locate your program. 9 Tap the .cab files to install them.
Installing Applications Using a Storage Card If you have an SD card for your CK61, it is the best place for you to install applications. To install applications using the storage card 1 Suspend the CK61 and remove the SD card.
CK61 Mobile Computer User’s Manual With Windows Mobile
69
Page 82
Chapter 3, Developing and Installing Applications
2 Insert the SD card into an SD card adapter and then place it in the storage card reader connected to your PC. 3 Copy your application file to the SD card. 4 Remove the SD card from the adapter and insert it into the CK61. 5 On your CK61, navigate to the storage card folder and run your application.
Installing Applications Using the FTP Server The CK61 has a built-in FTP Server that connects to a network through Ethernet, 802.11ab/g, or Bluetooth communications. You can use the server to transfer your application file to the computer. Another benefit of using the FTP server is that you can create FTP scripts to automate the process of copying your files to the computer. This option is useful when you need to send files to a large number of computers. The easiest way to manage the FTP server is to enable the FTP menu within iConnect. To enable the FTP menu •
Create this DWORD registry key and set it to a value of 1:
HKEY_CURRENT_USER\Software\iConnect2\IConnect\Settings\ShowFTPMenu
The iFTP menuy is available the next time you start iConnect. To manage the state of the FTP server •
Modify these existing registry keys:
HKEY_CURRENT_USER\Software\iConnect2\IConnect\Settings\FtpAutoStart HKEY_CURRENT_USER\Software\iConnect2\IConnect\Settings\FtpHeartbeat
Where 1 = enable and 0 = disable.
Installing Applications Using Wavelink Avalanche You can use the Wavelink Avalanche device management system to install applications on all of your wireless CK61 computers. To use Wavelink Avalanche, you need to install the Avalanche Enabler on your CK61. To install the Avalanche Enabler on your CK61 1 Tap Start > File Explorer > Windows > InstallSelect. The InstallSelect utility starts. 70
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 83
Chapter 3, Developing and Installing Applications
2 Make sure that Avalanche Enabler is selected. 3 Tap Apply. You CK61 clean boots and Avalanche Enabler is installed. Each time the Avalanche Enabler is activated (typically on a reset), the CK61 attempts to connect to the Avalanche Agent. When the CK61 connects to the agent, the agent determines whether an update is available and immediately starts the software upgrade, file transfer, or configuration update. Note: If you manually activate the Avalanche Enabler on the CK61, you may be prompted for a password when you exit the Avalanche Enabler. The default password is leave. To remotely manage the CK61 with Avalanche 1 Install software packages and updates for the CK61 using the Avalanche Administrative console. 2 Schedule the CK61 updates or manually initiate an update using the Avalanche Administrative console. For more information on using Wavelink Avalanche, contact your local Intermec representative or visit the Wavelink web site at www.wavelink.com.
Freeing Up Virtual Memory for Applications You can use the InstallSelect application to reduce the amount of virtual memory used by portions of the SmartSystems Platform Bundle (SSPB). Freeing up virtual memory provides you with more space to laod and run custom applications. In technical terms, virtual memory allows software to run in a memory address space whose size and addressing are not necessarily tied to the physical memory of the CK61. InstallSelect manages the installation of value-added software features of the CK61. Removing software features may result in loss of CK61 functionality or the ability to manage device settings. See page 73 or contact your Intermec service representative for information about each software feature before making changes.
CK61 Mobile Computer User’s Manual With Windows Mobile
71
Page 84
Chapter 3, Developing and Installing Applications
To free up virtual memory, you select items from the InstallSelect list that you do not want to install. When you perform a clean boot, the items you selected are not installed. However, you can reinstall any of these SSPB components at any time with InstallSelect. Be sure to back up any releated files that you want before you use the InstallSelect application. The InstallSelect application is part of the SSPB and is installed at the factory. For more information on SSPB, see “Upgrading the System Software” on page 74. To free up virtual memory 1 Go to Start > Programs > Windows Explorer. The Windows Explorer screen appears. 2 Double-tap the Windows folder. 3 Scroll down to the InstallSelect application and double-tap the icon. The InstallSelect application appears on the display with a Caution dialog box. 4 Click OK to close the Caution dialog box. 5 Clear the check box of any components you do not want installed after a clean boot. By default, components already installed on the CK61 are automatically checked to be installed again after you perform a clean boot. 6 Click Apply to initiate the clean boot and install only the files that are selected. 7 Click Yes to continue with the clean boot. The CK61 performs a clean boot and restarts with all of the checked components installed.
72
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 85
Chapter 3, Developing and Installing Applications
Understanding the InstallSelect Software Components Component Name
Deescription
Data Collection & Intermec Settings
Data collection and Intermec Settings. Also includes on-unit SDK libraries. If you disable this CAB file, you cannot scan or collect data on the device and you cannot use Intermec Settings.
Funk Wireless Security
Intermec security supplicant that provides a wireless security solution with several features that are not supported by Microsoft.
Printer Support
Proivdes Intermec print driver support.
SmartSystems Client & Intermec Settings
Enables the SmartSystems Server and the use of Intermec Settings on the local computer. If you disable this CAB file, you cannot use SmartSystems or Intermec Settings locally on the device.
Intermec DHCP Client
Provides the Intermec DHCP client application.
Bluetooth
Provides the Intermec bluetooth application support.
Avalanche Enabler
Enables the client to the Wavelink Device Management solution.
Launching an Application Automatically There are two ways to automatically launch your application when you perform a reset on the computer: •
Make sure your .cab file places a shortcut to your application in the \Windows\StartUp folder.
•
Configure the AutoRun program to launch your application.
The computer contains a program called AutoRun.exe which automates operations such as launching other processes. You can configure AutoRun.exe through the Autorun data file, AutoRun.dat. For compatibility with other Intermec computers, you can place a copy of AutoRun.exe in the same folder as your AutoRun.dat file but it is not required. CK61 Mobile Computer User’s Manual With Windows Mobile
73
Page 86
Chapter 3, Developing and Installing Applications
To create and install the AutoRun.dat file on your computer 1 Create a folder called System on your CK61. 2 Open the Notepad application on your PC. 3 Write commands for AutoRun.dat using the supported AutoRun script commands. 4 Save the Notepad file as AutoRun.dat. 5 Copy the AutoRun.dat file to the System folder on the CK61. During every boot, the system scans for AutoRun.dat in the System folder. AutoRun supports the following script commands in AutoRun.dat: AutoRun Script Commands Command
Description
EXEC
Launches a specified program and waits for it to finish (up to 10 minutes).
CALL
Processes a specified file of commands and returns.
CHAIN
Processes a specified file of commands and does not return.
RUN
Loads a specified program and executes it.
LOAD
Loads a specified program and executes it.
Upgrading the System Software When you upgrade your computer, you are updating the operating system (OS) and the SmartSystems Platform Bundle (SSPB) files. The SSPB files are stored on the DiskOnChip and deliver Intermec Value Add (IVA) functionality such as data collection, configuration, the Intermec wireless security suite, and the SmartSystems™ Foundation. As new features are added to these components, you can upgrade your SSPB files without needing to upgrade the operating system. Alternately, you can choose to upgrade only the operating system if you need new functionality. There are two ways to upgrade your computer:
74
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 87
Chapter 3, Developing and Installing Applications
•
You can upgrade your computer using an storage card. For help, see the next section, “Upgrading the CK61 Using an SD Card” on page 75
•
You can upgrade your computer using the SmartSystems Console. For help, see “Upgrading the CK61 Using SmartSystems Foundation” on page 76.
You need to download the latest upgrade files from the Intermec web site to your desktop PC. To download the upgrade files 1 Start your web browser and go to the Intermec web site at www.intermec.com. 2 Go to Support > Downloads. 3 Click the link to search the product downloads. 4 Select your computer from the Downloads list. The Downloads page displays all of the downloads available for your computer. 5 Download the upgrade file you need. If you want to upgrade both the OS and the SSPB, you will need to download both files.
Upgrading the CK61 Using an SD Card To use an SD card to upgrade the computer, you need an SD card reader and an SD adapter card formatted as FAT16. To upgrade the operating system using an SD card 1 Insert an SD card into a SD adapter card and then place it in the storage card reader connected to your PC. 2 Copy all required OS upgrade files to the SD card. 3 Remove the SD card from the adapter card and insert it into the CK61. 4 Place the CK61 in a dock connected to external power and press the Reset button (using a stylus) located in the battery cavity on the back of the CK61. 5 Remove the SD card when the Installation Complete menu appears. 6 Remove the CK61 from the dock and replace the battery. CK61 Mobile Computer User’s Manual With Windows Mobile
75
Page 88
Chapter 3, Developing and Installing Applications
To upgrade the SSPB using an SD card 1 Insert an SD card into a SD adapter card and then place it in the storage card reader connected to your PC. 2 Copy all required SSPB upgrade files to the SD card. 3 Remove the SD card from the adapter card and insert it into the CK61. 4 Press and hold the Power button as you insert the battery back into the CK61. 5 Continue to hold the Power button until a Warning message appears on the display. 6 Release the Power button, read the message, and press the Enter key. When the progress is complete, the CK61 warm boots to reset the configuration. 7 Set the date, time, and network communication parameters to reestablish communications with the other devices in the wireless network.
Upgrading the CK61 Using SmartSystems Foundation You can use the SmartSystems console to upgrade the operating system on your computer. The console is part of SmartSystems Foundation and is available from the Intermec web site via the Intermec Developer Library (IDL). Before you can upgrade your computer, you need: • the SmartSystems Foundation. To download SmartSystems Foundation, go to www.intermec.com/idl and open the Device Management page.
• the device upgrade .exe file. This file is available from the Intermec web site at www.intermec.com. Go to Support > Downloads. Make sure the file you select is for your language.
To upgrade the computer using SmartSystems console 1 Install SmartSystems Foundation on your PC and open the SmartSystems console.
76
CK61 Mobile Computer User’s Manual With Windows Mobile
Page 89
Chapter 3, Developing and Installing Applications
2 Make sure the SmartSystems console and the computers are on the same subnet. 3 Make sure your computers are either in a communications dock or charging dock or that power management is disabled. 4 Download the device upgrade .exe file to your desktop PC. 5 Double-click the .exe file on your desktop PC. An InstallShield application starts and walks you through the process of extracting the upgrade files in the default location. Note: Do not change the default location where InstallShield extracts the files. The SmartSystems console requires that the files be in this location. 6 From the SmartSystems console, locate the device upgrade to install. 7 Drag-and-drop the device upgrade onto each computer you want to upgrade. The SmartSystems console will tell you that it is installing the upgrade on your computer. Once the upgrade is done downloading to your computer, your computer replaces the operating system and then automatically performs a cold boot. Progress messages appear on the computer screen. Note: The SmartSystems console will show your computer as offline (note the red stop sign) until the computer reboots and reconnects to the system.
CK61 Mobile Computer User’s Manual With Windows Mobile
77
Page 90
Chapter 3, Developing and Installing Applications
78
CK61 Mobile Computer User’s Manual With Windows Mobile