The text of a manual · part 13 of 24
CK30 Handheld Computer User's Manual: Chapter 3: Developing and Installing Applications, pages 99 to 106
Pages 99 to 106 of 215, from CK30 Handheld Computer User's Manual
The original document is the PDF (3.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 CK30
Page 99
Chapter 3, Developing and Installing Applications
Unless your application and additional data files are very large, you can place them in the RAM of the unit. 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. However, Intermec recommends that you place your applications files in the CK_FFS or SDMMC Disk folder. If you have an SD card inserted in your CK30, it appears as the SDMMC Disk folder. This folder is the recommended location for placing your application install files. There are several ways you can install files and applications on the CK30: • 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 CK30.
Installing Applications Using ActiveSync You can use ActiveSync to establish a connection between your PC and the CK30. 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 CK30, you need: • a USB cable or a female-to-female null modem serial cable. • an AD1 communications dock. • ActiveSync version 3.7.1 or later.
CK30 Handheld Computer User’s Manual
85
Page 100
Chapter 3, Developing and Installing Applications
Installing ActiveSync and Establishing a Partnership You can use either a USB cable or a serial cable to establish your initial partnership between the CK30 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.
2 Connect the AD1 to your PC with the USB or serial cable. 3 If you are using a serial cable, from the CK30 System Main Menu, select Programs > ActiveSync Serial. The default setting for ActiveSync on the CK30 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.
86
CK30 Handheld Computer User’s Manual
Page 101
Chapter 3, Developing and Installing Applications
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 CK30 and the Connected status.
The Microsoft ActiveSync Screen
An ActiveSync icon ( ) also appears on the CK30 taskbar 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. 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 CK30 in the AD1 communications dock, connect the CK30 serially to your PC, or turn on the CK30.
CK30 Handheld Computer User’s Manual
87
Page 102
Chapter 3, Developing and Installing Applications
Using ActiveSync to Copy Files and Install Applications You can use ActiveSync to copy files to the CK30 and to install applications. Use the following procedures to learn how to copy files and install applications on the CK30 using ActiveSync. To install an application on the CK30 using ActiveSync 1 Connect the CK30 to your PC using ActiveSync. For help, see the previous section, “Installing ActiveSync and Establishing a Partnership.” 2 In the Microsoft ActiveSync screen, click Explore. Windows Explorer opens the Mobile Device window of your CK30.
3 In Windows Explorer on your PC, browse to the file that you want to copy to your CK30. 4 Right-click the file and click Copy. 5 Place the cursor in the SDMMC Disk or CK_FFS\Factory Defaults (recommended) folder of your CK30, right-click, and click Paste.
88
CK30 Handheld Computer User’s Manual
Page 103
Chapter 3, Developing and Installing Applications
The file has now been copied to the CK30 and you can see it using the CK30 File Manager. 6 Navigate to your application file and run it. After your application is installed, you can run it from the Programs menu in the System Main Menu.
Installing Applications Using Your SD Card If you have an SD card for your CK30, this is the best place 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 CK30 and place it in the reader. For help, see “Installing an SD Card” on page 8. 2 Copy your application file to the SD card. If you are using ActiveSync, an FTP server, or Wavelink Avalanche to copy the files to the SD card, place the application in the SDMMC Disk folder on the CK30. 3 If you are using an SD card reader, insert the SD card back into the CK30. 4 Navigate to the SDMMC Disk folder and run your application. After your application is installed, you can run it from the Programs menu in the System Main Menu.
Installing Applications Using the FTP Server The CK30 has a built-in FTP server that connects to a network through the 802.11b/g radio or Ethernet. You can use the server to transfer your application file to the CK30. Another benefit of using the FTP server is that you can create FTP scripts to automate the process of copying your files to the CK30. This option is useful when you need to send files to a large number of CK30s.
CK30 Handheld Computer User’s Manual
89
Page 104
Chapter 3, Developing and Installing Applications
If you want to disable the FTP server, use a CAB file or another method to modify the registry key HKEY_LOCAL_MACHINE\COMM\FTPD. You need to set the value IsEnabled (a REG_DWORD) to zero (0). If you set the value to zero, the Web server will not accept connections from the network, even from the local host.
Installing Applications Using Wavelink Avalanche You can use the Wavelink Avalanche™ device management system to install applications on all of your wireless CK30s. The CK30 ships with the Avalanche Enabler already loaded on it. Each time the Avalanche Enabler is activated (typically on a warm boot), the CK30 attempts to connect to the Avalanche Agent. When the CK30 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 CK30 1 Install software packages and updates for the CK30 using the Avalanche Administrative Console. 2 Schedule the CK30 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.
Installing Applications Using the SmartSystems Console You can use the SmartSystems Console to drag-and-drop Intermec applications onto your CK30s. The CK30 ships with the SmartSystems client loaded on it. The console is part of SmartSystems Foundation, which is available from the Intermec web site for free. To download SmartSystems Foundation, go to www.intermec.com/SmartSystems.
90
CK30 Handheld Computer User’s Manual
Page 105
Chapter 3, Developing and Installing Applications
To use SmartSystems Console to install an application 1 Download your application file from the Intermec web site and unzip it on your desktop. 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, dragand-drop the application onto each CK30 discovered in your network. For more information on using the SmartSystems Console, see the online help.
Launching Your Application Automatically To launch your application automatically on the CK30 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.
Customizing How Applications Load on the CK30 If you have several processes that you need to have run in a specific order as the CK30 turns on, you can use the AutoRun system to customize the way applications load. 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. To create and install the AutoRun.dat file on your CK30 1 On the CK30, create a subfolder called 2577 on the SDMMC Disk or the CK_FFS folder. 2 On your PC, open Notepad. 3 Write commands for AutoRun.dat using these supported script commands:
CK30 Handheld Computer User’s Manual
91
Page 106
Chapter 3, Developing and Installing Applications
Script Command EXEC
Description Launches a specified program and waits (up to 10 minutes) for it to complete.
CALL
Processes a specified file of commands and returns. When you use the CALL command, the execution of the current file pauses while a new file that follows the same set of commands executes. Once the new file completes executing, AutoRun.exe continues processing the current file.
CHAIN
Processes a specified file of commands and does not return. This command allows you to call another file that follows the same set of commands and stop processing the current file.
RUN
Loads a specified program and executes it. Specifies the show window attribute so the user interface is visible when the application launches.
LOAD
Loads a specified program and executes it. Specifies the hide window attribute so the user interface is hidden initially.
4 Save this Notepad file as AutoRun.dat. 5 Copy the AutoRun.dat file to the \2577 folder on your CK30. During every boot, the system scans for AutoRun.dat in the \2577 folder on first the SDMMC Disk and then the CK_FFS folder. The CK30 executes the first AutoRun.dat file that it finds. Here is a sample AutoRun.dat file that runs a dialer application, connects to a VPN, and establishes a TE 2000 session: EXEC “\Program Files\My Dialer\Dialer.exe” 348-2600 EXEC “\Program Files\My VPN\Connect.exe” MyDomain RUN “\Program Files\TE2000\TE2000.exe” MyServer
92
CK30 Handheld Computer User’s Manual