Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 11 of 17

CN4 Mobile Computer User's Manual: Chapter 3 - Developing and Installing Applications, pages 83 to 90

Pages 83 to 90 of 145, from CN4 Mobile Computer User's Manual

The original document is the PDF (7.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 CN4

Page 83

3 Developing and Installing Applications

Use this chapter to understand the guidelines for developing applications and installing them on the CN4. This chapter contains these sections: •

Developing Applications for the CN4

•

Installing Applications on the CN4

•

Launching an Application Automatically

•

Integrating Image Capture

•

Freeing Up Virtual Memory for Applications

•

Upgrading the System Software

71

Page 84

Chapter 3, Developing and Installing Applications

Developing Applications for the CN4 Use the Intermec Resource Kits to develop applications to run on the CN4. The Resource Kits are a library of C++, .NET, Java, and web 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 website at www.intermec.com/idl. For more information, see the Intermec Developer Library Resource Kit Developer’s Guide.

Packaging Your Application For very simple applications, the executable file may be the only file you need to deploy. More typically, you will have a set of files to install. For Windows Mobile applications, Intermec recommends creating a .cab file to install your application. The CN4 uses standard Windows Mobile .cab files and will install third-party .cab files.

Choosing a Target Location for the Application You can have your .cab file place your application in any of these memory locations on the CN4: •

The ObjectStore, which is RAM that looks like a disk.

•

The optional miniSD card. Depending on available disk space, you may want to consider installing your application files on the miniSD card. Using a card creates the Storage Card folder on the CN4.

•

The non-volatile Flash File Store. Applications and data in the Flash File Store will persist through a clean boot. Note: The Flash File Store may be erased if you reflash the image.

72

CN4 Mobile Computer User’s Manual

Page 85

Chapter 3, Developing and Installing Applications

If you need to cold boot the CN4, files copied to any of these locations are safe as long as the AutoRun system is installed in the appropriate location. When AutoRun is installed on the CN4, all .cab files in the CabFiles folder are automatically extracted after a cold boot. For more information about AutoRun, see the Intermec Developer Library Resource Kit Developer’s Guide. When you clean boot the CN4, all applications and data files in the ObjectStore are erased. The CN4 loads only the default files and programs required by the CN4 operating system. If you want to keep your applications (and configurations) during a clean boot, make sure that the _sstransferagent.xml is updated and is in this directory: •

\Flash File Store\UserAutoInstall

During the clean boot, the CN4 runs this .xml file once and the specified files in the Flash File Store are copied to the CabFiles folder, and then they are run.

Installing Applications on the CN4 You can install files and applications on the computer by using: •

SmartSystems Foundation.

•

Microsoft ActiveSync.

• a miniSD card.

• the CN4 FTP server.

For more information on installing applications, see the Intermec Developer Library Resource Kit Developer’s Guide.

Installing Applications Using SmartSystems Foundation Console You can use the SmartSystems console to drag-and-drop Intermec applications onto your CN4. The console is part of SmartSystems Foundation. For more information, see “Managing the CN4 With SmartSystems Foundation” on page 44. To use SmartSystems console to install an application 1 Download your application file from the Intermec website and unzip it on your desktop PC. CN4 Mobile Computer User’s Manual

73

Page 86

Chapter 3, Developing and Installing Applications

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 CN4 in your network, or drop the application on a group of CN4s contained in a folder. You can also use SmartSystems Scan-to-Connect to connect the CN4 to your network and install software. For more information, see the SmartSystems Foundation console online Help.

Installing Applications Using Microsoft ActiveSync When you only have a few computers to update with applications, you can copy files using Microsoft ActiveSync. This procedure assumes that Microsoft ActiveSync is installed on your PC and is up and running. For more information on installing and using ActiveSync, see “Connecting to a PC” on page 45. To install an application on the computer using ActiveSync 1 Connect to the CN4 via ActiveSync. 2 Copy the .cab files from your development PC to the CN4. 3 Warm boot or cold boot the CN4. 4 After the boot process is finished, browse to the .cab files and tap the files to install them.

Installing Applications Using a Storage Card For information on installing the miniSD card in the CN4, see “Installing a miniSD or SIM Card” on page 37. To install applications using the storage card 1 Copy your application file to the miniSD card. 2 Install the miniSD card in the CN4. 3 On your CN4, browse to the Storage Card folder and run your application.

74

CN4 Mobile Computer User’s Manual

Page 87

Chapter 3, Developing and Installing Applications

Installing Applications Using the FTP Server The CN4 has a built-in FTP server that connects to a network through Ethernet, 802.11 b/g, or WAN (Wireless Access Network). You can use the server to transfer your application file to the computer. Because you can create FTP scripts to automate the process of copying 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 menu 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.

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.

CN4 Mobile Computer User’s Manual

75

Page 88

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 CN4. 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 CN4. 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.

AutoRun handles quoted file names for the first parameter, which allows you to specify path names or file names that contain white spaces. AutoRun only supports one set of quotes per command. For more information on AutoRun, see the Intermec Developer Library Resource Kit Developer’s Guide.

Integrating Image Capture The Image Capture application on your CN4 provides a way to capture high-resolution grayscale images. You can integrate Image Capture into your own applications to take advantage of this feature.

Calling Image Capture From Your Application To integrate Image Capture features into your existing mobile application, you need to specify two parameters:

76

CN4 Mobile Computer User’s Manual

Page 89

Chapter 3, Developing and Installing Applications

•

Path to and name of the Image Capture application. Default is “\\Program Files\\Intermec\\ImageCapture\\ImageCapture.exe”.

•

Path to and name of the .xml configuration file that Image Capture should use when called by your application. This way you can use a custom .xml configuration file based on your needs. If no .xml file is specified, Image Capture uses its default settings, or looks for an .xml file in its local directory.

This sample code calls Image Capture from its default location and specifies “ImageCapture_Config.xml” as the custom .xml configuration file to use: try { System.Diagnostics.Process.Start("\\ProgramFiles\\ImageCapture \\ImageCapture.exe","\"\\Program Files\\MyApp\\ImageCapture_ Config.xml\""); } catch (Exception exception) { MessageBox.Show("Failed to execute \\ProgramFiles\\ImageCapture \\ImageCapture.exe” + "\r\n" + exception.ToString()); }

Creating and Editing the Image Capture XML File To further customize Image Capture features for use in your application, you can create or edit the Image Capture .xml file. This section lists Image Capture field names, valid values, and descriptions. Field Definitions for ImageCapture_Config.xml Field Name

Valid Values

Description allowChanges

True or false

Default is true. When set to false, user cannot change any settings.

allowGallery

True or false

Default is true. When set to false, user cannot go to the Gallery screen.

Settings

CN4 Mobile Computer User’s Manual

77

Page 90

Chapter 3, Developing and Installing Applications

Field Definitions for ImageCapture_Config.xml (continued) Field Name

Valid Values

Description

True or false

Default is true. When set to false, user cannot change settings in the Conditioning tab.

allowChanges

True or false

Default is true. When set to false, user cannot change the edge enhancement setting.

edgeEnhancement

None, low, medium, Default is None. If no value is provided, the edge or high enhancement value is unchanged.

Conditioning Settings allowChanges Edge Enhancement

Lighting Correction allowChanges

True or false

Default is true. When set to false, user cannot change the lighting correction setting.

lightingCorrection

True or false

Default is true. If no value is provided, the application cannot change the lighting correction value.

allowChanges

True or false

Default is true. When set to false, user cannot change the noise reduction setting.

noiseReduction

0 to 9

Default is no value. If no value is provided, the application does not change the noise reduction setting.

allowChanges

True or false

Default is true. When set to false, user cannot change the rotation setting.

imageRotation

None, 90, 180, 270

Default is no value. If no value is provided, the application does not change the rotation value.

allowChanges

True or false

Default is true. When set to false, user cannot change the subsampling rate.

subSampling

None, 1:2, 1:3, 1:4, 1:5, 1:6, 1:7, 1:8

Default is no value. If no value is provided, the application does not change the subsampling rate.

True or false

Default is false. If set to true, user can change settings in the Storage tab.

Noise Reduction

Image Rotation

Subsampling

Storage Settings allowChanges

78

CN4 Mobile Computer User’s Manual