The text of a manual · part 7 of 10
CN2G Handheld Computer User's Manual: Chapter 3 - Developing and Installing Applications
Pages 59 to 72 of 96, from CN2G Handheld Computer User's 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.
Filed in the catalog under the Intermec AD7, Intermec AD8 and Intermec CN2
Page 59
3
Developing and Installing Applications
In this chapter you will find guidelines for developing applications using the Developer’s Toolkits for AIT-III. You will also find information on installing applications and automatically launching them. You will find these sections: • Developing Applications for the CN2G • Installing Applications on the CN2G • Launching Your Application Automatically • Upgrading Your CN2G
CN2G Handheld Computer User’s Manual
49
Page 60
Chapter 3, Developing and Installing Applications
Developing Applications for the CN2G The CN2G Handheld Computers run applications programmed in Microsoft Embedded Visual C++. The CN2G can also run applications developed for the .NET Compact Framework using Microsoft C# and Visual Basic .NET. Use this section to understand what you need to: • Develop a new application for the CN2G. • Develop a web-based application for the CN2G.
Developing a New Application Use the Intermec Developer’s Toolkits for AIT-III CD to help develop your C++ and .NET applications. The CD contains two toolkits, the Intermec AIT-III Developer’s Toolkit and the Intermec AIT-III .NET Developer’s Toolkit. The toolkits include hardware and software requirements, all of the functions that are supported by the CN2G, and instructions on how to use these functions. The Developer’s Toolkits for AIT-III is available on CD (P/N 074925) or as a download from the Intermec web site at www.intermec.com/AIT. You need these hardware and software components to use the Intermec toolkits: • 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 • 128MB RAM (196MB recommended) • 360MB hard drive space for minimum installation (720MB for complete)
50
CN2G Handheld Computer User’s Manual
Page 61
Chapter 3, Developing and Installing Applications
• CD-ROM drive compatible with multimedia PC specification • 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 CN2G. For help, see any HTML source book. The CN2G contains Internet Explorer (IE) 6.0 for Windows CE 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. To open Microsoft Internet Explorer • Double-tap Internet Explorer from the desktop. The Internet Explorer default window appears.
Installing Applications on the CN2G There are several ways you can install applications on the CN2G: • 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 CN2G uses standard Windows CE CAB files and will install third-party CAB files. After the CN2G executes a CAB file, it deletes the file. To keep your CAB files so that they can be installed when you perform a cold boot, you need to save them to the \DiskOnChip\Persistent Copy\CABFiles directory. On a cold boot, the CAB files are copied to the \CABFiles directory in the object store where they are executed and deleted. The original copy remains in the \DiskOnChip\Persistent Copy\CABFiles directory to be installed on the next cold boot.
CN2G Handheld Computer User’s Manual
51
Page 62
Chapter 3, Developing and Installing Applications
Intermec recommends that you store your applications in a folder specific to your application underneath the \PROGRAM FILES folder. Intermec recommends that you store your application data in one of these locations on the CN2G: • The SDMMC Disk folder • The DiskOnChip folder If you have an SD card inserted in your CN2G, it appears as the SDMMC Disk folder. This folder is the recommended location for placing your application install files. The DiskOnChip folder is an area of storage that is part of the CN2G flash memory. This storage area is not deleted during a cold boot. There are several ways you can install files and applications on the CN2G: • ActiveSync • SD Card • Wavelink Avalanche The following sections explain how to use each one of these processes to install your application on the CN2G.
Installing Applications Using ActiveSync You can use ActiveSync to establish a connection between your PC and the CN2G. 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 CN2G, you need: • a USB cable. • a CN2 communications dock (P/N 074248). • ActiveSync version 3.7.1 or later.
Installing ActiveSync and Establishing a Partnership You can use a USB cable to establish your initial partnership between the CN2G and your PC. 52
CN2G Handheld Computer User’s Manual
Page 63
Chapter 3, Developing and Installing Applications
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.
2 Connect the CN2G to your PC with the CN2 communications dock and a USB cable. 3 Click Next in the Get Connected dialog box. ActiveSync detects a device on the USB port and prompts you to set up a new partnership. 4 In the Set Up a Partnership dialog box, click Next. 5 In the Select Number of Partnerships dialog box, select Yes, I want to synchronize with only this computer, and then click Next. 6 In the Select Synchronization Settings dialog box, check the items you want to synchronize and click Next. 7 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 CN2G and the Connected status.
CN2G Handheld Computer User’s Manual
53
Page 64
Chapter 3, Developing and Installing Applications
The Microsoft ActiveSync Screen
An ActiveSync icon ( ) also appears on the CN2G 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 need to remove the CN2G from the communications dock, and then insert it back into the communications dock to establish a partnership. After the partnership is established, ActiveSync initiates all future connections. To connect to your PC using ActiveSync in the future, simply place a CN2G in the communications dock and turn on the CN2G.
Using ActiveSync to Copy Files and Install Applications You can use ActiveSync to copy files to the CN2G and to install applications. Use the following procedures to learn how to copy files and install applications on the CN2G using ActiveSync.
54
CN2G Handheld Computer User’s Manual
Page 65
Chapter 3, Developing and Installing Applications
To install an application on the CN2G using ActiveSync 1 Connect the CN2G to your PC using ActiveSync. For help, see the previous section, “Installing ActiveSync and Establishing a Partnership.” 2 On the Microsoft ActiveSync screen, click Explore. Windows Explorer opens the Mobile Device window of your CN2G.
3 In Windows Explorer on your PC, browse to the file that you want to copy to your CN2G. 4 Right-click the file and click Copy. 5 Place the cursor in the SDMMC Disk or DiskOnChip folder of your CN2G, right-click, and click Paste. The file is copied to the CN2G and you can see it using My Computer on the CN2G. 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.
CN2G Handheld Computer User’s Manual
55
Page 66
Chapter 3, Developing and Installing Applications
Installing Applications Using Your SD Card Using your SD card is the best method for you to install applications. To install applications using the SD card 1 If you are using an SD card reader, remove the SD card from the CN2G and place it in the reader. For help, see “Using the SD Card” on page 16. 2 Copy your application file to the SD card. If you are using ActiveSync or Wavelink Avalanche to copy the files to the SD card, place the application in the SDMMC Disk folder located in My Computer. 3 If you are using an SD card reader, insert the SD card back into the CN2G. 4 Navigate to the SDMMC Disk folder and run your application. After your application is installed, you can run it from the Program files folder from My Computer.
Installing Applications Using Wavelink Avalanche You can use the Wavelink Avalanche device management system to install applications on all of your wireless CN2Gs. The CN2G ships with the Avalanche Enabler already loaded on it. Each time the Avalanche Enabler is activated (typically on a warm boot), the CN2G attempts to connect to the Avalanche Agent. When the CN2G connects to the agent, the Agent determines whether an update is available and immediately starts the software upgrade, file transfer, or configuration update. To use Avalanche to remotely manage the CN2G 1 Install software packages and updates for the CN2G using the Avalanche Administrative Console. 2 Schedule the CN2G updates or manually initiate an update using the Avalanche Administrative Console.
56
CN2G Handheld Computer User’s Manual
Page 67
Chapter 3, Developing and Installing Applications
For more information on using Wavelink Avalanche, contact your local Intermec representative or visit the Wavelink web site at www.wavelink.com.
Launching Your Application Automatically To launch your application automatically on the CN2G every time you perform a warm or cold boot, make sure your CAB file places a shortcut to your application in the \Windows\StartUp folder.
Upgrading Your CN2G When you upgrade your CN2G, you are updating these two components: • Operating system (OS) • Persistent Storage Manager (PSM) files
Upgrading the Operating System When you upgrade the operating system, you erase the current configuration and replace it with the new default configuration. You will need to set the network communications parameters on the CN2G to reestablish communications with the other devices in the wireless network. There are two ways to upgrade the OS: • You can upgrade your computer using an SD card. • You can remotely upgrade your computer using Intermec Settings.
Upgrading the Operating System Using an SD Card To upgrade the OS, you need: • an SD card formatted as FAT16. • an SD card reader. • the latest upgrade ZIP file. This file is available from the Intermec web site at www.intermec.com. Go to Service & Support > Downloads. Make sure the file you select is for your language and that it has an SD at the end of the file name. CN2G Handheld Computer User’s Manual
57
Page 68
Chapter 3, Developing and Installing Applications
For information on how to remove the SD card, see “Using the SD Card” on page 16. To upgrade the operating system 1 Download the latest upgrade ZIP file from the Intermec web site to your desktop PC. 2 Unzip the files on your desktop PC. 3 Place the SD card in the SD card reader. 4 Copy the nk.bin and eboot.bin files to your SD card. Place the files in the SDMMC Disk folder. 5 Insert the SD card into the CN2G. 6 Open the battery door and remove the battery. 7 Using the end of the stylus, press the Reset button on the inside of the battery compartment.
Reset button
Do not use force or a sharp object when pressing the Reset button. You may damage the Reset button. 8 While holding the D key, install the battery. Keep holding the D key until the CN2 Bootloader Menu appears. 9 Install the battery door and place the CN2G in a communications dock. 10 Use the arrow keys to select Update OS + Bootloader, and press Enter. Messages about the download status appear at the bottom of the screen.
58
CN2G Handheld Computer User’s Manual
Page 69
Chapter 3, Developing and Installing Applications
The “Need Reboot” message appears and Cold Boot is selected. 11 Press Enter. The CN2G cold boots and the Refreshing File System status box appears. 12 If the Confirm File Replace dialog box appears, tap Yes To All. The CN2G finished rebooting, and your operating system is updated.
Upgrading the Operating System Remotely Using Intermec Settings You can use Intermec Settings to upgrade the operating system on your Intermec CN2G through an ActiveSync connection. For information on installing ActiveSync and establishing a partnership, see “Installing Applications Using ActiveSync” on page 52. When you remotely upgrade your computer, you are updating the operating system and the Persistent Storage Memory (PSM) files. Before you can upgrade your computer, you need: • The Intermec Settings application. This file is available from the Intermec web site as part of the Intermec Developer’s Library (IDL) download or from the IDL CD. • The device upgrade ZIP file. This file is available from the Intermec web site at www.intermec.com. Go to Service & Support > Downloads. Make sure the file you select is for your language and that it has Intermec Settings at the end of the file name. To remotely upgrade a CN2G using Intermec Settings 1 Install the Intermec Settings application on your PC. 2 Create a device upgrade folder and unzip the device upgrade files to it. 3 On your PC, go to Start > Programs > Intermec > Intermec Settings > Upgrade Device. 4 In the Select upgrade folder dialog box, browse to the folder containing your upgrade files and click OK.
CN2G Handheld Computer User’s Manual
59
Page 70
Chapter 3, Developing and Installing Applications
Intermec Settings begins the upgrade process. When the next message box appears on the PC screen, you can remove the CN2G and place it in a powered dock.
The CN2G updates the system and then cold boots. 5 If you need to upgrade more CN2Gs, place another CN2G in the communications dock and the remote device upgrade starts automatically. 6 When you are done upgrading CN2Gs, choose File > Exit from the Main Menu.
Upgrading the Persistent Storage Manager Files To upgrade the Persistent Storage Manager (PSM) files for your CN2G, you need: • the device upgrade ZIP file containing the PSM files. This file is available from the Intermec web site at www.intermec.com. Go to Service & Support > Downloads. • an SD card reader. To upgrade the PSM files 1 Copy the device upgrade ZIP file to your PC, and unzip the PSM files. You should see these folders: • 2577 • DOCImage 2 Remove the SD card from the CN2G and place it in the SD card reader. For help, see “Using the SD Card” on page 16. 3 Copy the 2577 and DOCImage folders to the SD card. 4 Install the SD card in your CN2G.
60
CN2G Handheld Computer User’s Manual
Page 71
Chapter 3, Developing and Installing Applications
5 Cold boot your CN2G. For help, see “Cold Booting the CN2G” on page 71. A dialog box appears telling you that it is updating the PSM. When this process is complete, the CN2G cold boots again and installs the files. After the CN2G cold boots, the Refreshing the File System dialog box appears. Your CN2G is loaded with the new PSM files. 6 Remove the SD card.
CN2G Handheld Computer User’s Manual
61
Page 72
Chapter 3, Developing and Installing Applications
62
CN2G Handheld Computer User’s Manual