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 19 of 20

PM4i Mid-Range Printer User's Manual: Appendix D - Advanced Configuration

Pages 163 to 170 of 180, from PM4i Mid-Range Printer User's Manual

The original document is the PDF (13 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 PM4i

Page 163

D Advanced Configuration

This appendix contains information on the printer file system and how to modify the appearance of the printer web page.

149

Page 164

Appendix D, Advanced Configuration

Printer File System (Fingerprint) As you access the printer for communications, you encounter different parts of the printer file system. The following sections contain a device tree structure and brief descriptions of the different devices and directories of the file system.

Device Tree Structure This illustration shows the device tree structure of the printer. / (root) c ADMIN boot card1 dev pffs rom images secure tmp

Devices and Directories The file system of the printer is case-sensitive, which is important because filenames in Fingerprint commands are translated into capital letters by default. Directories or files with lowercase names are inaccessible for Fingerprint commands and programs.

150

PM4i Mid-Range Printer User’s Manual

Page 165

Appendix D, Advanced Configuration

The commands you use depend on how you navigate the printer file system: •

If you are accessing the printer through an FTP client or a web browser, you can easily navigate through the different devices and directories. Lowercase letters are not an issue for FTP or a web browser.

•

If you are accessing the printer through raw TCP (“net1:”), you use Fingerprint to communicate with the printer. Because Fingerprint commands are translated into uppercase letters, you are restricted from accessing devices and directories with lowercase names. For more information on using Fingerprint, see the Intermec Fingerprint Command Reference Manual.

/(root) The root node is write protected to preserve the device and file structure of the printer.

/c (or c:) /c is the user file system. You can create directories here to store files such as programs, fonts, and images.

/c/ADMIN (or c:ADMIN) This directory is only accessible for the admin user. It contains start order, Fingerprint restrictions, and other configuration parameters only configurable for an administrator.

/c/boot (or c:boot) This directory contains the firmware, password file, and other system information.

/card1 (or card1:) This directory is the CompactFlash (CF) card file system used to store files such as large fonts and images. You can also use the CF card to upgrade printer firmware.

/dev This directory contains devices used for input/output, such as uart1, Flash, net1, parallel IEEE 1284.

PM4i Mid-Range Printer User’s Manual

151

Page 166

Appendix D, Advanced Configuration

/pffs (or pffs:) The power fail file system is used to store files that need to be saved when the printer is turned off. Files stored in this location cannot exceed 256 bytes each. The total size of the “pffs” unit is 32 KB.

/rom (or rom:) This device is used to store a collection of files that are available by default in the printer, for example the default web pages, fonts, and images.

/rom/images (or rom:images) This directory is used to store images used for the default web pages.

/rom/secure (or rom:secure) This directory is used to store the password protected web pages.

/tmp (or tmp:) This is the printer’s temporary read/write memory. Files in this location are not saved when the power is turned off or if there is a power failure. Do not store valuable data in this location. You may want to use “tmp:” instead of “/c” to temporarily store data, because data can be written to SDRAM faster than to the flash memory.

Customizing the Printer Home Page The easiest way to modify the appearance of the printer web page is to create an HTML file called “INDEX.HTM” on the device “/c” with custom designed logo and colors. From this file you can easily link to the printer configuration pages. The web server generates these web pages with dynamic information on the fly. This process makes the real-time generated pages of the printer appear in the Intermec style. The colors and logo of the customer are ignored.

152

PM4i Mid-Range Printer User’s Manual

Page 167

Appendix D, Advanced Configuration

Web Style Guide Files The printer network cards customizes the default web pages by changing the configuration of the engine that generates the pages. While generating the pages, the web server accesses configuration parameters, like the background color, the name of logos to display on the page and generates the HTML code. Default configuration of these parameters makes the printer’s web page appear in the Intermec style, with corporate colors and logos. When changing the parameters, the web pages are permanently customized. Customization of these parameters has to be done in specific files called “Web Style Guide Files”, assigning user-defined values to several support environment variables. Web style guide files contain parameters to set web page content and layout. These files can be stored either on /c or pffs:. In the file system, /c has priority over pffs:, which implies that if there is a web style guide on /c (for example /c/webstyleguide.0), the printer will not look for pffs:webstyleguide.1. Intermec recommends that you store web style guides on pffs to minimize the risk of them being accidentally removed.

Content of a Web Style Guide File A Web Style Guide file has to contain a set of mandatory environment variables and it can also contain optional variables. All variables have to be lowercase, followed by a “=” sign and a consistent value. There is no specific order of the variables.

Required Environment Variables Use the reference table below to understand all of the required environment variables. Understanding Required Environment Variables Variable

Description bgco

Background color, BGCOLOR attribute of BODY tag.

coli

Copyright link, link to html file showing Copyright notes.

cona

Company name.

PM4i Mid-Range Printer User’s Manual

153

Page 168

Appendix D, Advanced Configuration

Understanding Required Environment Variables (continued) Variable

Description loat

Logotype attributes, contains all attributes for the IMG-tag to replace the Intermec logo.

trna

Trade name.

Optional Environment Variables The optional environment variables are used to specify extra parameters; for instance, these variables permit to change the printer’s model name. The web server only recognizes the following model names: •

PF2i

•

PF4i

•

PM4i

•

PX4i

•

PX6i

The web server checks the available hardware and then displays the correct model name in the web page. If the page has to show a different name of the printer, the web style guide file has to contain the optional variable printer=your name. Optional Variables Reference Table Variable Description

154

Comments alco

Active link color, ALINK attribute of BODY tag.

BGLI

Background image link, BACKGROUND attribute of BODY tag.

heon

Help on, enables a help link on the page.

heli

Help link, link associated to the Help tag.

hena

Help link name, the label to be shown on the web page.

If this parameter is in the webstyle guide file, the variables “heli” and “hena” must have a value.

PM4i Mid-Range Printer User’s Manual

Page 169

Appendix D, Advanced Configuration

Optional Variables Reference Table (continued) Variable Description

Comments lico

Link color, LINK attribute of BODY tag.

suon

Support link on, enables a support link on If this parameter is in the page. the webstyle guide file, then the variables “suli” and “suna” must have a value.

suli

Support link, this is the link associated withe the support tag.

suna

Support link name, this is the label to be shown on the web page.

teco

Text color, TEXT attribute of the BODY tag.

vlco

Visited link color.

x-www-url-Encoding Syntax Rules The value given to environment variables has to be specified respecting the x-www-url-encoding syntax rules. According to the syntax rules, characters can be inserted using the notation %<ASCII Hex>. For example, space in the ASCII table has the Hex number 20 so it corresponds to %20. For example, “Intermec Technologies Corporation” corresponds to “Intermec%20Technologies%20Corporation” (it can also be written “Intermec+Technologies+Corporation”). Colors are specified according to the RGB syntax: %23cdcdcd corresponds to #cdcdcd. Any quotation marks (%22) must be preceded by a back slash (\). The file must contain only one line, where the different variables and valuers are separated by ampersand (&) characters.

PM4i Mid-Range Printer User’s Manual

155

Page 170

Appendix D, Advanced Configuration

Memory and Storage Web Style Guide files are designed to be placed on the printer’s pffs, as mentioned. Due to the memory limits of the pffs the environment variables have very short name (4 bytes), which may make them less user friendly to use, but this allows more space to be used for the value of the variable. There is also a size limit per file that is set to 256 bytes. In case the Web Style Guide File you want to create is bigger than 256 bytes, the content has to be split in more than one file. The parser daemon will start looking for the first Web Style Guide File which has to be named “webstyleguide.0”, then it will try to read the next file called “webstyleguide.1” and so on.

Creating a Web Style Guide File You can create Web Style Guide Files with a standard text editor and then transfer them to the printer. Follow these rules when creating a Web Style Guide File: •

The name has to be lowercase.

•

The first file has to have extension “.0”. The following files have to have sequential extension number if one number is missing in the sequence the parser will stop reading the files.

•

The split point between one web style guide and the other cannot be in the middle of a line. The last line of the file has to be consistent in the syntax and the first line of the following web style guide file has to be a new line.

•

If variables are specified more than one time, the last value is the one assumed.

Intermec recommends that you use the FTP server to transfer the files. Example (the default Web Style Guide): bgco=%23ffffff&loat=src%3d\%22/rom/images/ itclogo1.gif\%22+align%3dbottom+alt%3d\%22Intermec_ Technologies_Corporation\ %22+border%3d0 &cona=Intermec+Technologies+Corporation&coli=copyrigh t.htmf&suli=support.htmf&suna=Support&suon=t&trna=Eas yCoder

156

PM4i Mid-Range Printer User’s Manual