The text of a manual · part 62 of 84
MC9000-K/S with Windows Mobile 2003 Software for Pocket PCs Product Reference Guide: Configuring the Mobile Computer, pages 546 to 552
Pages 546 to 552 of 750, from MC9000-K/S with Windows Mobile 2003 Software for Pocket PCs Product Reference Guide
The original document is the PDF (10 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 Symbol MC9000, Symbol MC9060, Symbol MC9062 and Symbol MC9063
Page 546
14-28
MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRGe
Creating a Splash Screen The source bitmap files used to create the default splash screens for the mobile computer are supplied with the DCP for MC9000w. These files can be modified using any of the standard windows image editors, allowing customization for particular customers. To create a custom splash screen, perform the following steps: 1. For mobile computers with monochrome screens, open the Splashmono.bmp file supplied with the DCP for MC9000w using an image editor. 2. For mobile computers with color screens, open the Splashcolor.bmp file supplied with the DCP for MC9000w using an image editor. 3. Modify the bitmap file and save. 4. Create a splash partition using the steps shown in the Building the Image on page 14-11.
Splash Screen Format If the default files are not used to create the new splash screens, be sure to preserve the image format. The formats are as follows:
Table 14-5. Splash Screen Format Screen Type
Dimensions
Color Format
Monochrome
240x296
4 bits per pixel
Color
240x296
8 bits per pixel*
* 8 bits per pixel only applies to splash screen images. Once Windows CE is running, the color density is 16 bits per pixel.
See Sending the Hex Image on page 14-12 for information about loading the splash screen using TCM and IPL.
Page 547
Configuring the Mobile Computer
Flash Storage In addition to the RAM-based storage standard on Windows CE mobile computers, the mobile computer is also equipped with a non-volatile Flash-based storage area which can store data (partitions) that can not be corrupted by a cold boot. This Flash area is divided into two categories: Flash File System (FFS) Partitions and Non-FFS Partitions.
FFS Partitions The mobile computer includes two FFS partitions. These partitions appear to the mobile computer as a hard drive that the OS file system can write files to and read files from. Data is retained even if power is removed. The two FFS partitions appear as two separate folders in the Windows CE file system and are as follows: •
•
Platform: The Platform FFS partition contains Symbol-supplied programs and Dynamic Link Libraries (DLLs). This FFS is configured to include DLLs that control system operation. Since these drivers are required for basic mobile computer operation, only experienced users should modify the content of this partition. Application: The Application FFS partition is used to store application programs needed to operate the mobile computer.
Working with FFS Partitions Because the FFS partitions appear as folders under the Windows CE file system, they can be written to and read like any other folder. For example, an application program can write data to a file located in the Application folder just as it would to the Windows folder. However, the file in the Application folder is in non-volatile storage and is not lost on a cold boot (e.g., when power is removed for a long period of time). Standard tools such as ActiveSync can be used to copy files to and from the FFS partitions. They appear as the “Application” and “Platform” folders to the ActiveSync explorer. This is useful when installing applications on the mobile computer. Applications stored in the Application folder are retained even when the mobile computer is cold booted, just as the Demo 9000 program is retained in memory. There are two device drivers included in the Windows CE image to assist developers in configuring the mobile computer following a cold boot: RegMerge and CopyFiles.
14-29
Page 548
14-30
MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRGe
RegMerge.dll RegMerge.dll is a built-in driver that allows registry edits to be made to the Windows CE Registry. Regmerge.dll runs very early in the boot process and looks for registry files (.reg files) in certain Flash File System folders during a cold boot. It then merges the registry changes into the system registry located in RAM. Since the registry is re-created on every cold boot from the default ROM image, the RegMerge driver is necessary to make registry modifications persistent over cold boots. RegMerge is configured to look in the root of two specific folders for .reg files in the following order: \Platform \Application Regmerge continues to look for .reg files in these folders until all folders are checked. This allows folders later in the list to override folders earlier in the list. This way, it is possible to override Registry changes made by the Platforms partitions folders. Take care when using Regmerge to make Registry changes. The DCP for MC9000w contains examples of .reg files. Regmerge only merges the .reg files on cold boots. The merge process is skipped during a warm boot.
Typically, do not make modifications to registry values for drivers loaded before RegMerge. However, these values may require modification during software development. Since these early loading drivers read these keys before RegMerge gets a chance to change them, the mobile computer must be cold booted. The warm boot does not re-initialize the registry and the early loading driver reads the new registry values. Do not use Regmerge to modify built-in driver registry values, or merge the same Registry value to two files in the same folder, as the results are undefined.
Page 549
Configuring the Mobile Computer
CopyFiles Windows CE expects certain files to be in the Windows folder, residing in volatile storage. Windows CE maintains the System Registry in volatile storage. CopyFiles copies files from one folder to another on a cold boot. Files can be copied from a non-volatile partition (Application or Platform) to the Windows or other volatile partition during a cold boot. During a cold boot CopyFiles looks for files with a .CPY extension in the root of the Platform and Application FFS partitions (Platform first and then Application). These files are text files containing the source and destination for the desired files to be copied separated by “>”. The following example from the file application.cpy is contained on the demo application partition included in the DCP for MC9000w. It can also be obtained from the Symbol web site at http://devzone.symbol.com/. Files are copied to the Windows folder from the Flash File System using copy files (*.cpy) in the following order: \Platform \Application Example: \Application\ScanSamp2.exe>\Windows\ScanSamp2.exe This line directs CopyFiles to copy the ScanSamp2.exe application from the \Application folder to the \Windows folder.
Non-FFS Partitions Non-FFS Partitions include additional software and data pre-loaded on the mobile computer that can be upgraded. Unlike FFS Partitions, these partitions are not visible when the operating system is running. They also contain system information. Non-FFS partitions include the following: •
•
Windows CE: The complete Windows CE operating system is stored on Flash devices. If necessary, the entire OS image may be downloaded to the mobile computer using files provided by Symbol. The current OS partition on the mobile computer is included as part of the TCM installation package. Any upgrades must be obtained from Symbol. This partition is mandatory for the mobile computer. Splash Screen: a bitmap smaller than 16 Kb (and limited to 8 bits per pixel) is displayed as the mobile computer cold boots. To download a customized screen to display, see Creating a Splash Screen on page 14-28.
14-31
Page 550
14-32
MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRGe
8 bits per pixel only applies to splash screen images. Once Windows CE is running, the color density is 16 bits per pixel.
•
•
IPL: This program interfaces with the host computer and allows downloading via cradle or serial cable any or all of the partitions listed above, as well as updated versions of IPL. Use caution downloading updated IPL versions; incorrect downloading of an IPL causes permanent damage to the mobile computer. IPL is mandatory for the mobile computer. Partition Table: Identifies where each partition is loaded in the mobile computer.
Downloading Partitions to the Mobile Computer TCM is used to specify a hex destination file for each partition and download each file to the mobile computer. This download requires a program loader stored on the mobile computer. The mobile computer comes with a program loading utility, Initial Program Loader (IPL), stored in the mobile computer's write-protected flash.
IPL IPL allows the user to upgrade the mobile computer with software updates and/or feature enhancements.
Partition Update vs. File Update There are two types of update supported by the mobile computer: partitions and files. The file system used by the mobile computer is the same as the file system used on a desktop computer. A file is a unit of data that can be accessed using a file name and a location in the file system. When a file is replaced, only the contents of the previous file are erased. The operating system must be running for a file to be updated, so the IPL cannot perform individual file updates as it is a stand-alone program that does not require the operating system to be running. A typical partition is a group of files, combined into a single "partition" that represents a specific area of storage. Examples of partitions are the flash file systems such as Platform or Application. (Using the desktop computer comparison, these partitions are roughly equivalent to a C: or D: hard disk drive.) In addition to the "hard disk" partitions, some partitions are used for single items such as the operating system, monitor, or splash screen. (Again using a desktop computer comparison, these partitions are roughly the equivalent of the BIOS or special hidden system files.) When a partition is updated, all data that was previously in its storage region is erased - i.e. it is not a merge but rather
Page 551
Configuring the Mobile Computer a replacement operation. Typically, the operating system is not running when partitions are update, so IPL can perform partition updates. Partition images for selected partitions can be created by TCM. All partition images suitable for use by IPL are in hex file format for transfer by TCM from the development computer to the mobile computer.
Upgrade Requirements Upgrade requirements: • • •
The hex files to be downloaded (on development computer) A connection from the host computer and the mobile computer (either serial or wireless) TCM (on development computer) to download the files.
Once these requirements are satisfied, the mobile computer can be upgraded by invoking IPL and navigating the menus. See Sending the Hex Image on page 14-12 for procedures on downloading a hex file to the mobile computer.
14-33
Page 552
14-34
MC9000-K/S with Windows® Mobile 2003 Software for Pocket PCs PRGe