The text of a manual · part 12 of 25
CK31 Handheld Computer User's Manual: Chapter 3 - Developing and Installing Applications, pages 96 to 103
Pages 96 to 103 of 208, from CK31 Handheld Computer User's Manual
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 CK31
Page 96
3
Developing and Installing Applications
In this chapter, you will find guidelines for developing applications and converting existing Trakker Antares applications. You will also find information on installing applications and automatically launching them. In this chapter, you will find these sections: • Developing Applications for the CK31 • Installing Applications on the CK31 • Launching Your Application Automatically • Setting or Changing the CK31 Password • Backing Up Your Files • Upgrading Your CK31
CK31 Handheld Computer User’s Manual
79
Page 97
Chapter 3, Developing and Installing Applications
Developing Applications for the CK31 The CK31 Handheld Computers run applications programmed in Microsoft eMbedded Visual C++. The CK31 can also run applications developed for the .NET Compact Framework using Microsoft C# and Visual Basic. Use this section to understand the hardware and software you need to: • develop a new application for the CK31. • develop a web-based application for the CK31. • convert a Trakker Antares application to a CK31 application.
Developing a New Application Use the Intermec resource kits to develop new applications to run on the CK31. The Intermec resource kits are a library of C++ and .NET components grouped by functionality that you can use to create applications for the CK31. The resource kits are part of the Intermec Developer Library (IDL), which is available as a download from the Intermec web site at www.intermec.com/idl. You need these hardware and software components to use the Intermec resource kits: • Pentium PC, 400 MHz or higher • Windows 2000 (Service Pack 2 or later) or Windows XP (Home, Professional, or Server) • For native C++ development, Microsoft eMbedded Visual C++ version 4.0 with eVC++ Service Pack 2 • For .NET Development and Compact Framework (C# and VB.NET), Microsoft Visual Studio .NET 2003 • 128 MB RAM (196 MB recommended) • 360 MB hard drive space for minimum installation (720 MB for complete) • CD-ROM drive compatible with multimedia PC specification
80
CK31 Handheld Computer User’s Manual
Page 98
Chapter 3, Developing and Installing Applications
• VGA or higher-resolution monitor (Super VGA recommended) • Microsoft Mouse or compatible pointing device
Developing a Web-Based Application You can develop web-based data collection applications for use on the CK31. For help, see any HTML source book. The CK31 contains Internet Explorer (IE) 6.0 for Windows CE or iBrowse for you to use. The Microsoft standard IE 6.0 is available from the desktop and provides all of the common elements you expect to find. iBrowse is also available from the desktop and provides a locked-down browser with IE 6.0 compatibility. To open Microsoft Internet Explorer or iBrowse • Double-tap Internet Explorer or iBrowse from the desktop. The Internet Explorer or iBrowse default window appears.
Converting a Trakker Antares Application to a CK31 Application If you have an existing Trakker Antares application that you would like to run on the CK31, you can use the Antares Migration Resource Kit to convert it. The Antares Migration Resource Kit is a set of libraries and tools that you use to convert your existing Trakker Antares C applications into C++ applications for use on the CK31. The CK31 does not support all Trakker Antares functions. You may need to rewrite parts of your application when converting it for use on the CK31. See the resource kit for a list of functions that are not supported. You need these hardware and software components to use the resource kit: • PC with at least 1 MB of free disk space running Microsoft Windows 2000/XP • Microsoft embedded Visual C++ version 4.0 with Service Pack 2 • Antares Migration Resource Kit
CK31 Handheld Computer User’s Manual
81
Page 99
Chapter 3, Developing and Installing Applications
The resource kit is part of the Intermec Developer’s Library (IDL), which is available from the Intermec web site at www.intermec.com/idl.
Installing Applications on the CK31 There are several ways you can install applications on the CK31: • 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. • 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 CK31 uses standard Windows CE CAB files and will install third-party CAB files. Before the CK31 executes a CAB file, it marks the file as read-only so that it will not be deleted after installation. After the CAB file is extracted, the CK31 automatically saves any changes you have made to the registry or file system so that they will persist through a cold boot. This process means that you will not have to reinstall your applications when your battery goes dead or you perform a cold boot. You can have your CAB files place your application in any of these memory locations on the CK31: • The RAM based file store (anywhere in the root \ directory) • The Flash File System (the CK_FFS folder) • On the SD card (SDMMC folder) Intermec recommends that your CAB files place applications in the Flash File System or on the SD card. Files in these nonvolatile storage locations are preserved through a cold boot. You can also place applications in RAM, and they will automatically be backed up to the Flash File System (\CK_FFS\Persistent Copy folder). These files will be preserved through a cold boot, or a complete battery drain and accompanying cold boot.
82
CK31 Handheld Computer User’s Manual
Page 100
Chapter 3, Developing and Installing Applications
If you have an SD card inserted in your CK31, it appears as the SDMMC Disk folder. This folder is the recommended location for placing your application installation files. There are several ways you can install files and applications on the CK31: • ActiveSync • SD Card • FTP Server • Wavelink Avalanche • SmartSystems Console The following sections explain how to use each one of these processes to install your application on the CK31.
Installing Applications Using ActiveSync You can use ActiveSync to establish a connection between your PC and the CK31. ActiveSync allows you to transfer files, synchronize files, perform remote debugging, and other device management activities. ActiveSync is a free application available from the Microsoft web site. To establish a partnership between your PC and the CK31, you will need: • a USB cable or a female-to-female null modem serial cable. • an AD1 communications dock. • ActiveSync version 3.7.1 or later.
Installing ActiveSync and Establishing a Partnership You can use either a USB cable or a serial cable to establish your initial partnership between the CK31 and your PC. To install ActiveSync and establish a partnership 1 Download ActiveSync from the Microsoft web site and follow the onscreen instructions for installing it on your PC. When the installation process is complete, the Get Connected dialog box appears.
CK31 Handheld Computer User’s Manual
83
Page 101
Chapter 3, Developing and Installing Applications
2 Connect the AD1 to your PC with the USB or serial cable. 3 If you are using a serial cable, from the CK31 Start Screen tap My Computer and then choose Program Files > ActiveSync Serial. The default setting for ActiveSync on the CK31 is USB. 4 Click Next in the Get Connected dialog box. ActiveSync detects a device on the USB or serial port and prompts you to set up a new partnership. 5 In the Set Up a Partnership dialog box, click Next. 6 In the Select Number of Partnerships dialog box, select Yes, I want to synchronize with only this computer and then click Next. 7 In the Select Synchronization Settings dialog box, check the items you want to synchronize and click Next. 8 In the Setup Complete dialog box, click Finish. When the partnership has been established, the following screen appears on your PC showing the device name of your CK31 and the Connected status.
84
CK31 Handheld Computer User’s Manual
Page 102
Chapter 3, Developing and Installing Applications
The Microsoft ActiveSync Screen
An ActiveSync icon ( ) also appears on the CK31 status bar indicating that it has established an ActiveSync partnership with your PC. Note: If ActiveSync does not establish a partnership on the first try, the Get Connected dialog box appears on your PC with the message “Your device was not detected.” Make sure all of your cables are securely connected and click Next on the Get Connected dialog box until your device is detected. You may have to try removing the CK31 from the AD1 and then inserting it back into the communications dock to establish a partnership. Now that the partnership has been established, ActiveSync initiates all future connections. To connect to your PC using ActiveSync in the future, simply place a CK31 in the AD1 communications dock, connect the CK31 serially to your PC, or turn on the CK31.
Using ActiveSync to Copy Files and Install Applications You can use ActiveSync to copy files to the CK31 and to install applications. Use the following procedures to learn how to copy files and install applications on the CK31 using ActiveSync.
CK31 Handheld Computer User’s Manual
85
Page 103
Chapter 3, Developing and Installing Applications
To install an application on the CK31 using ActiveSync 1 Connect the CK31 to your PC using ActiveSync. For help, see “Installing ActiveSync and Establishing a Partnership” on page 83. 2 In the Microsoft ActiveSync screen, click Explore. Windows Explorer opens the Mobile Device window of your CK31.
3 In Windows Explorer on your PC, browse to the file that you want to copy to your CK31. 4 Right-click the file and click Copy. 5 Place the cursor in the SDMMC Disk or CK_FFS folder of your CK31, right-click, and click Paste. The file has now been copied to the CK31 and you can see it using My Computer on the CK31. 6 Navigate to your application file and run it. After your application is installed, you can run it from the Program files folder from My Computer.
86
CK31 Handheld Computer User’s Manual