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 12 of 21

CN30 Mobile Computer User's Manual: Chapter 3 - Configuring the CN30 Computer, pages 107 to 116

Pages 107 to 116 of 196, from CN30 Mobile Computer User's Manual

The original document is the PDF (5.8 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 CN30 Portable Computer

Page 107

3

Configuring the CN30 Computer

Use this chapter to understand how to install applications onto your CN30 Mobile Computer and how to configure the CN30 Computer to communicate in your network. Note: Desktop icons and applet icons are shown to the left. Any place that Start is mentioned, tap the following Windows icon in the top, left corner of your CN30 desktop.

CN30 Mobile Computer User’s Manual

95

Page 108

Chapter 3, Configuring the CN30

Developing Applications for the CN30 Computer CN30 Computers run applications programmed in Microsoft Embedded Visual C++. Use this section to understand what you need to: • Develop a new application for the CN30 Computer. • Convert an application from an older computer to a CN30 application. To develop applications for your CN30 Computer, use the Resource Kits in the Intermec Developer Library (IDL). Download the IDL from the Intermec web site at www.intermec.com. Contact your Intermec representative for more information. You need the following hardware and software components to use the 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 • For Windows CD 5.0, eVC 4.0 SP4 is required • 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 • VGA or higher-resolution monitor (Super VGA recommended) • Microsoft Mouse or compatible pointing device

Converting Older Computer Applications to CN30 Applications If you have an existing application that you would like to run on the CN30 Computer, you can use the Migration Resource Kit to convert that application. This kit has a set of libraries and tools that convert your existing C applications into C++ applications for use on the CN30 Computer. As you migrate from another computer to a CN30 Computer, you need to consider when converting other computer applications to run on the CN30 Computer, most APIs should work without changes, with the exception that arrow and tab keys may be reversed from other computers. Keyboard remapping is available on the CN30 Computer should you need to map these keys like that of the other computer. You need these hardware and software components to use the Migration Resource Kit: • a PC with at least 1MB of free disk space running Microsoft Windows 2000 or Windows XP 96

CN30 Mobile Computer User’s Manual

Page 109

Chapter 3, Configuring the CN30

• Microsoft eMbedded Visual C++ version 4.0 with Service Pack 2 • Intermec Resource Kits and development tools • Migration Resource Kit, which contains these files and utilities: • Functions library • Header files • Example files The Migration Resource Kit is part of the IDL, which is available as a download from the Intermec web site at www.intermec.com. Contact your Intermec representative for more information.

Packaging Applications for the CN30 Computer Use any of these methods to package applications for installation: • You could package an application as a cabinet (CAB) file. Recommended • For simple applications, the application itself may be the file to deliver. • It could be a directory structure that contains the application, supporting files like ActiveX controls, DLLs, images, sound files, and data files. Consider any of the following when choosing a location into which to store your application: • In the basic CN30 Computer, there are two built-in storage options: the Object Store and the Flash File Store. The Object Store is a Disk on Chip (DOC) Flash that looks like a disk. The Flash File Store is an area of storage which is embedded in a section of the system’s FLASH memory. This storage area is not erased during a cold-boot. It may, however, be erased during the reflashing process. In addition to storing applications and data files, you do have the option to store a persistent registry to the Flash File Store region. • If the optional Secure Digital (SD) storage card is in the system, then consider this card the primary location to place applications installation files. The “\Storage Card” folder represents the SD card. • Use the small non-volatile Flash File Store region to hold CAB files that rebuild the system at cold-boot or install applications from a CAB file into the Flash File Store so they are “ready-to-run” when a cold-boot is performed. Since the FLASH in the system has a limited number of write cycles, do not use the Flash File Store for excessive writing purposes; however, reading is okay. CAB files (short form of “cabinet” files) are compressed folders as defined by Microsoft. A “cabinet” file is a single file, usually suffixed with .CAB, that stores compressed files in a file library. A compressed file can be spread over several cabinet files. During installation, the setup application decompresses the files stored in a cabinet and copies them to the user’s system. Intermec recommends using CAB files to install your applications. The CN30 Com-

CN30 Mobile Computer User’s Manual

97

Page 110

Chapter 3, Configuring the CN30 puter uses standard Windows Mobile CAB files and does install third-party CAB files. For the CN30 Computer, CAB files register DLLs, create shortcuts, modify registry entries, and run custom setup programs. Tap a CAB file to extract that file or place the CAB file on one of the approved storage devices in the “\CabFiles” folder, then perform a warm-boot on the CN30 Computer. There are two methods available to extract a CAB file: • Tap a CAB file to extract it. With this method, the CAB file is automatically deleted when the extraction process is successful, unless the CAB file is set with the read-only attribute. • Use the AUTOCAB method to extract all files when a cold-boot is performed on the CN30 Computer. This method is in the Intermec Developer Library via the Intermec web site.

Installing Applications on the CN30 Computer You can use either the Microsoft ActiveSync application or SD storage cards to install applications on the CN30 Computer.

Installing Applications Using Microsoft ActiveSync You can use Microsoft ActiveSync to establish a connection between your PC and the CN30 Computer. Microsoft ActiveSync transfers files, synchronizes files, performs remote debugging, and other device management activities. See Chapter 2, “Windows Mobile” for information about the Microsoft ActiveSync application as provided by Microsoft Corporation. This can be a serial, a USB, or an 802.11b/g Microsoft ActiveSync connection. Files can be copied using Windows Explorer on a PC or a laptop computer. This is usually good when updating a few CN30 Computers. These instructions assume that Microsoft ActiveSync was installed onto your PC and is up and running. If not, go to Chapter 2, “Windows Mobile” for an URL from which to download the latest application. 1 Connect the CN30 Computer to a PC using a USB or serial cable. You may have to detach, then reattach 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 CN30 Computer. If necessary, select File > Get Connected to initiate a connection or detach, then reattach the USB or serial cable.

98

CN30 Mobile Computer User’s Manual

Page 111

Chapter 3, Configuring the CN30

3 Click Explore to access the “Mobile Device” folder on your unit. 4 From your PC, select Start > Windows Explorer, then browse the “C:\Intermec\CN30 Mgmt Tools\CabFiles” path for any CAB files needed for your CN30 Computer. Select the appropriate file, right-click the file for a pop-up menu, then select Copy. 5 Within the “My Windows Mobile-Based Device” folder, go to the folder where you want the files located on the CN30 Computer, do a rightclick for a pop-up menu, then select Paste. 6 When all of the files are pasted, perform a warm-boot on the CN30 Computer. When the computer reboots, wait for the LED on the top left of your keypad to stop blinking. Tap Start > Programs > Windows Explorer to locate the newly copied executable files, then tap these files to activate their utilities.

Installing Applications Using a Secure Digital Card If you have an SD card for your CN30 Computer, this is the best place for you to install applications. 1 If you are using an SD card reader, suspend the CN30 Computer, remove its SD card, and place it in the reader. For help, see “Using the Secure Digital Card” on page 18. 2 Copy your application file to the SD card. If you are using Microsoft ActiveSync to copy the files to the SD card, place the application in the “\Storage Card” folder on the CN30 Computer. 3 If using an SD card reader, insert the SD card back into the CN30. 4 Navigate to the “\Storage Card” folder and run your application. After your application is installed, you can run it from the Programs menu.

CN30 Mobile Computer User’s Manual

99

Page 112

Chapter 3, Configuring the CN30

Launching Your Application Automatically Note: This describes the system component startup for Intermec provided components only. It does not describe the bootstrap loader process. It only describes the component installation process provided by Windows Mobile. It is assumed that you understand the Microsoft Mobile startup procedures and are familiar with how Microsoft components start up. You can configure the various media used in the Windows Mobile system with a folder name and can change the media in the registry of the system. Many of the startup components rely on folder names to locate information files, applications, or other related data. The registry keys used by FolderCopy and other startup components to retrieve the folder names are as follows: Flash File Store [HKLM\Drivers\BuiltIn\FlshDrv] “FolderName”=“Flash File Store” SD Card (Storage Card) [HKLM\System\StorageManager\Profiles\SDMemory] “Folder”=“Storage Card” Disk On Chip [HKLM\System\StorageManager\Profiles\TRUEFFS_DOC] “Folder”=“DiskOnChip” During normal Windows Mobile system startup, there are Intermec-specific and non-Intermec components that require an orderly start to properly function. These non-Intermec components may also need to start themselves so the Windows Mobile device can function properly. Since there are possible configurations that come from using one or more optional built-in peripheral devices, the platform components starting on the next page are required to manage startup.

PreShell PreShell (PRESHELL.EXE) is launched prior to the Microsoft Shell and must execute a SignalStartup call before the Microsoft Shell launches. PreShell searches the “\Flash File Store\SYSTEM” directory for an executable of the same name. If one exists, that application is launched. This application can do what a customer desires prior to launching the Microsoft Shell. This feature allows end customers to make their own application the shell of the system. If desired, do not exit the custom shell nor call SignalStarted.

PostShell PostShell (POSTSHELL.EXE) can launch an application after the Microsoft Shell has launched. There are utility applications that exist that can take advantage of “hooking” the startup for maintenance, for example. 100

CN30 Mobile Computer User’s Manual

Page 113

Chapter 3, Configuring the CN30

PostShell searches the “\Flash File Store\SYSTEM” directory for an executable of the same name. If one exists, that application is launched instead. This application can do what a customer desires and is launched after the Microsoft Shell starts initialization. The Microsoft Shell does not require complete initialization before this application begins and that may cause some application or system issues. These issues are expected and are considered normal for those developing PostShell applications. The application must test if the APIs it requires are available.

RunAutoRun System components are installed and configured during the power up process from a single starting point. RunAutoRun (RUNAUTORUN.EXE), built into the operating system image and located in the “\Windows\Startup” folder, checks for AutoExec (AUTOEXEC.EXE) in a “\SYSTEM” folder on a mounted volume in this order: • Secure Digital (SD) • Object Store - may be non-volatile storage or RAM • Disk on Chip - may map as Object Store • Flash File Store - may map as Object Store. This is the default location for the AutoExec program in Intermec systems. Intermec system applications are started from this folder. The ordering of mounted volumes overrides this feature. The folder names used for the mounted volumes above are retrieved from the registry to maintain coherence with the naming of the mounted volumes on the platform. These folder names are not hard-coded. If AutoExec is present in the “\SYSTEM” folder on any of these media, it executes the program only on the first media it is found on and no other. AutoExec is reserved for Intermec use to configure Intermec-specific applications. It launches the CAB installer, AutoCab (AUTOCAB.EXE), to install platform cab files to the system, such as Intermec Data Collection. When the AUTOEXEC.EXE process completes, Run Autorun then checks for the existence of AutoRun (AUTORUN.EXE) and executes this program from the first media it is found on. This order is the same as what is used by AutoExec.

CN30 Mobile Computer User’s Manual

101

Page 114

Chapter 3, Configuring the CN30

AutoRun is reserved for customer use to configure application launch sequences. It launches the CAB installer, AutoCab, as well as any customer programs that added to the AUTOUSER.DAT file and is described on the next page. The hierarchy of these files is shown below. runautorun autoexec autocopy autoreg autorun foldercopy autocab customer applications autocab

AutoExec AutoExec (AUTOEXEC.EXE) automates operations such as pausing, launching processes, or signaling, and is configured through the AutoExec data file (AUTOEXEC.DAT). This script file must be in the same directory as the program itself. Note: Intermec considers the usage of the AutoExec data file as “Intermec Private.” AutoExec installs Intermec applications such as Data Collection, Security Supplicants, Intermec Management, applets, and shortcuts from components found in the Flash File System. Do not modify the AutoExec data file. Instead, use the AutoRun program to add software components. Usage: AutoExec [-%[W]] [-E=["X"]] [-F=["Y"]] [-LOG=] [-W=[Z]] -%

Passes an ID to use in a call to SignalStarted. This argument is useful only during system startup that relies on a SignalStarted to call. W is an integer value.

-E

Passes a signal event name to use when autoexec completes. X is a string value.

-F

Overrides the data file to use. This must be a fully qualified name. Default is “autoexec.dat” in the same location as the AUTOEXEC.EXE program. Y is a string value.

-LOG

Set to any value logs activity to AUTOEXEC.TXT (in the same location as the AUTOEXEC.EXE program). Default is disabled.

-W

Pauses the autoexec process by calling sleep for the number of seconds specified by Z. Z is an integer value.

The return code from the process uses the standard error codes defined in WINERROR.H.

102

CN30 Mobile Computer User’s Manual

Page 115

Chapter 3, Configuring the CN30

Keywords that AutoExec supports are: QUIET

Enables user notification when an error occurs.

LOGGING

Enables logging to a trace file.

SIGNAL

Enables the specified named event and is immediately signaled. Useful for notifying other components of the current status.

CALL

Opens another .DAT file to process. After the called file is completed, this file is resumed.

RUN

Runs a program with a SW_SHOWNORMAL attribute. Autoexec does not wait for the child process to exit.

LOAD

Runs a program with a SW_HIDE attribute. Autoexec waits for 60 seconds for the child process to exit or EXECWAIT seconds if set.

EXEC

Runs the specified program. AutoExec waits 60 seconds for the child process to exit or EXECWAIT seconds if set.

EXECWAIT

Changes the default EXEC wait time from 60 seconds to the number of seconds specified. There is a maximum 10-minute limit imposed.

WAIT

Forces a sleep for the specified number of seconds to occur.

WAITFOR

Forces a sleep until the named event is signaled.

Examples of keyword usage are as follows: ; Allow message pop up if an error occurs. QUIET 0 ; Log any debug output to a trace file. LOGGING 1 ; Perform a SetEvent on the event name "autoexec_started". SIGNAL "autoexec_started" ; Include this child data file, childexec.dat. CALL "\childexec.dat" ; Use autocopy to copy the audio control panel from flash file store to the windows directory. Wait for up to 60 seconds for it to exit. EXEC "\Flash File Store\SYSTEM\autocopy.exe" -S"\Flash File Store\System\CPLAudio.cpl" -D"\Windows\CPLAudio.cpl" ; Change the default EXEC wait time to 90 seconds. EXECWAIT 90 ; Suspend processing any commands for 10 seconds. WAIT 10 ; Suspend processing any commands until event called MyEventName is signaled. WAITFOR "MyEventName"

CN30 Mobile Computer User’s Manual

103

Page 116

Chapter 3, Configuring the CN30

AutoRun AutoRun (AUTORUN.EXE) automates operations such as launching other processes and is configured through the AutoRun data file (AUTORUN.DAT). This script file must be in the same directory as the program itself. AutoRun supports the following script commands in AUTOUSER.DAT and AUTORUN.DAT. Note: If you need to add steps at boot time, add them to AUTOUSER.DAT, not to AUTORUN.DAT. AUTORUN.DAT is provided by Intermec and is subject to change. AUTOUSER.DAT is the designated place for the end user to add steps to the boot time process. EXEC

Launches a specified program, waits for it to complete (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.

AutoRun handles quoted file names for the first parameter which allows you to specify path names or file names that contain white space. Note that only one set of quotes per command is supported. AUTORUN.DAT entry examples: RUN

“Flash File Store\Apps\some.exe” arg1, arg2, arg3

CALL

“Flash File Store\2577\usercmds.dat”

AutoCopy AutoCopy (AUTOCOPY.EXE) copies or moves files from one location to another. It has no user interface and is configured through command line arguments. It has support for the following parameters, in no particular order: Usage: AutoCopy [-D["W"]] [-L["X"]] [-M[D]] [-Q[Y]] [-S["Z"]] -D

Indicates the destination file name and must be fully qualified. W is a string value.

-L

Indicates a fully qualified file name for logging to enable. Default is disabled. X is a string value.

-M

Moves file to a destination rather than copies the file. Default value is disabled. D is an integer value. D=1 indicates enabled, 0 is disabled.

-Q

Indicates if a message box should appear when an error occurs. Default is disabled. Y is an integer value.

-S

Indicates a source file name and must be fully qualified. Z is a string value.

104

CN30 Mobile Computer User’s Manual