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 8 of 11

MX Series Reference Manual: Chapter 5

Pages 53 to 62 of 74, from MX Series Reference Manual

The original document is the PDF (642 KB). 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 VeriFone MX850, VeriFone MX860 and VeriFone MX870

Page 53

CHAPTER 5 Performing Downloads This chapter contains information and procedures for performing the various types of data transfers required to:

•

Develop applications for the MX Series terminal.

•

Prepare MX Series terminals for deployment.

•

Maintain MX Series terminal installations in the field.

•

Transfer data to/from terminals.

Information pertaining to file authentication is only discussed in the context of procedures while performing file downloads. See Chapter 3 for further FA discussion. The MX Series terminal can perform a download via the following connectivity options:

Requirements

•

Using FTP via an Ethernet network

•

Using the IBM Download Protocol via an IBM ECR

•

Using the ZonTalk Protocol via a PC

•

Using the Network Download utility via an Ethernet Network

Downloads require moving the application and/or application data files from a remote computer to the terminal. In the MX Series application development, application files are downloaded from a development PC directly to the terminal. In the field, application files must be transferred from the terminal’s controlling device (ECR, LAN controller, and so on) to the terminal. The Linux operating system supports a hierarchical file system with complex file attributes and permissions. For this reason all files downloaded should first be contained in a .tar file. Tar files can have the following formats:

Direct Downloads

•

.tar - Uncompressed file that may contain multiple files.

•

.tgz - Compressed file that may contain multiple files.

The usual download utility program is Direct Download (DDL) utility. It is normally available with the VeriFone MX 800 Series Developer’s Toolkit (DTK), and can be obtained through VeriFone. DDL is a subset program of the VeriFone VeriTalk download application. It is designed specifically for a direct (RS-232) download from a PC to a terminal (versus the VeriTalk modem-based functionality).

MX SERIES REFERENCE MANUAL

47

Page 54

As the DDL utility sends files from the PC, the MX Series display shows the progression of the download. The file name is shown on Line 1 of the display with nnn showing the number of blocks downloaded. Line 2 indicates the percent complete of the download where each asterisk represents 10%.

DDL Command Line Syntax

The format of the DDL program is: DDL [options] file1 [file2 … ] [config-data]

Flag

Description

-b<baud>

Specifies the baud rate, for example, • • • • • •

-b300 -b1200 -b2400 -b4800 -b9600 -b19200 (default)

• -b38400 • -b115200

-p<port>

Specifies the PC serial port: • 1 (COM1). The default is -p1 (COM1). • 2 (COM2)

-i<filename>

Specifies the name of a binary file to include in the download, for example: -IBINARY.DAT.

-c<delta time>

Sets the date and time on the terminal to the host PC's date and time. Also, specifies a delta value to add or subtract from the hour, for example, -c+1 specifies the PC's time plus one hour. Note:

The maximum hour value that can be set is ±23 hours.

-x<password>

Sets the terminal's password.

-F<filename>

Processes the contents of the specified file as command line data.

file1 [file2 …]

Specifies one or more files to download. Files with the .OUT extension are treated as binary data; all others are assumed text files.

[config-data]

Specifies terminal or application environment variables. If the specified variable exists, it is replaced by the new value; otherwise, a new entry is created. For example, the string *ZT=TERMID sets the value of the terminal identifier variable to "TERMID". Note:

48

MX SERIES REFERENCE MANUAL

To remove an existing entry, use an empty string. For example, *ZT="" removes the *ZT variable.

Page 55

DDL Command Line File

If you need to specify more variables than the DOS command line allows, you can use a simple configuration file (-F option) to extend the length of the command line. A command line file is an ASCII text file that allows you to supply as many variables as required.

DDL Example

Download the file app.tgz using the PC’s COM port 2 (app.tgz is a binary file). DDL -p2 -iapp.tgz

Each line in the command line file should consist of one variable: -p2 app.tgz

The command line would be: DDL -F<filename>.

Download Procedures

Use the following procedures to perform downloads to an MX Series terminal.

Downloading without an Onboard Application

Use the following procedure to perform a download from a host PC to an MX Series terminal with no application installed. The terminal must be powered on to begin the procedure.

For additional information about downloading files to the MX Series terminals, see File Transfer in Chapter 4.

1

Make all cable connections.

2

Launch the DDL application on the host PC.

3

Enter System Mode using a secure user password.

4

Tap FILE TRANSFER on the System Mode menu.

MX SERIES REFERENCE MANUAL

49

Page 56

5

Tap the DOWNLOAD icon to perform direct download to the terminal.

6

Set the port, baud rate, and download type (FULL or PARTIAL download).

Note: A full download removes all files and directories and also removes nonpermanent entries. A partial download does not automatically delete files or configuration entries.

7

Tap the GO button to perform the download. Asterisks (*) display onscreen to indicate the state of the download. Each asterisk denotes approximately 10% completion. On download completion, the terminal returns to the main screen.

Downloading with an Onboard Application

Use the following procedure to perform a download from a host PC to an MX Series terminal with an application(s) installed. The terminal must be in System Mode to begin the procedure.

1 50

MX SERIES REFERENCE MANUAL

The terminal displays the main System Mode screen.

Page 57

2

Launch the DDL application on the host PC.

3

Tap FILE TRANSFER on the System Mode menu.

4

Tap the DOWNLOAD icon to perform direct download to the terminal.

5

Set the port, baud rate, and download type (FULL or PARTIAL download). MX SERIES REFERENCE MANUAL

51

Page 58

Note: A full download removes all files and directories and also removes nonpermanent entries. A partial download does not automatically delete files or configuration entries.

6

Tap the GO button to perform the download. Asterisks (*) display onscreen to indicate the state of the download. Each asterisk denotes approximately 10% completion. On download completion, the terminal returns to the main screen.

IBM ECR Downloads

The IBM ECR supports the download of a single file that is composed of one or more compressed or uncompressed files. The download file may contain operating system file(s), application code and data files, as well as configuration parameters. The IBM ECR download file is generated off-line on a PC using the VeriFone utility PCLANCNV, discussed in the PCLANCNV Utility section. After creating an IBM ECR download file, it must be copied to the ECR and downloaded via the ECR protocol driver. The MX Series terminal receives the IBM ECR download file and processes its contents appropriately. If the download file includes operating system components, the terminal will automatically reboot.

Network Download Utility

Network Download tranfers files from a PC to the MX Series terminal. A network download client, included with the DTK, must be installed onto a PC. Before the file transfer can begin, the network settings must be configured and then the transfer starts by tapping the “Net Download” under File Transfer.

PCLANCNV Utility

On the MX Series terminal, the PCLANCNV utility is used to create a download file that is compatible with the IBM ECR. On legacy retail platforms, the PCLANCNV utility was used to create compressed files. On the MX Series, the standard Linux tar utility is used to create compressed files. The compression used by the PCLANCNV utility is no longer supported. A file that has been created using the Linux tar utility can become the input file to PCLANCNV for conversion to IBM ECR format. PCLANCNV is a command line utility that runs under DOS. PCLANCNV has been run successfully under the Command Prompt on Windows® XP. The MX Series does not support the –p Pinstripe LAN or the –t compressed ZonTalk formats (these formats are used by legacy terminals). The –r IBM ECR format is supported and is in fact the only reason to use PCLANCNV. It is strongly recommended that the Linux tar utility be used to combine/compress files prior to running PCLANCNV. The IBM ECR does not understand or support the complex directory structure and file permissions of the MX Series. Using a tar file as input to PCLANCNV will preserve the file structure information.

52

MX SERIES REFERENCE MANUAL

Page 59

For testing, PCLANCNV supports the –d command line option. The –d option causes PCLANCNV to expand the specified file into the original input files in a TEMP subdirectory on the PC. The TEMP subdirectory must exist prior to running the –d option. Once a download file has been completely received, the MX will expand and install the contents of the file. If operating system components were included in the download file, the terminal will reboot.

•

If the environment variable ends with an asterisk (“*”), add an additional asterisk to clear that variable.

•

If the <value> for an environment variable includes a space, <value> must be enclosed in quotation marks.

Table 7

PCLANCNV Command Line Input Options

Input File Options filename

Input application code file (no control parameter before filename).

-i<filename>

Input application data file or signature file.

-k<C|D>

FileToBeSigned.nam, CertFile.crt, KeyFile.key, KeyPassword | where, C=AppCode and D=AppCode.

Input Options (not files) location= <value>

Sets an environment variable to <value>, for example, *ZA="TEST" and *ZT="TERMID" location*

Clears an environment variable (delete the environment variable).

-x<password>

Set terminal password.

Table 8

PCLANCNV Command Line Input Options

Input File Options filename

Input application code file (no control parameter before filename).

-i<filename>

Input application data file or signature file.

-k<C|D>

FileToBeSigned.nam, CertFile.crt, KeyFile.key, KeyPassword | where, C=AppCode and D=AppCode.

Input Options (not files) location= <value>

Sets an environment variable to <value>, for example, *ZA="TEST" and *ZT="TERMID" MX SERIES REFERENCE MANUAL

53

Page 60

Table 8

PCLANCNV Command Line Input Options

Input File Options

PCLANCNV Command Line Options location*

Clears an environment variable (delete the environment variable).

-x<password>

Set terminal password.

The format of the PCLANCNV command is: pclancnv-i<filename> -k<C|D> location= <value> {-n -p<blocksize> -r<blocksize> -t} -v -o<filename> -d<filename> -f<filename>

-x<password>

The command line options for PCLANCNV are as listed in Table 9 and Table 10. Command Line Example shows a sample compressed IBM ECR download file preparation. Command Line Rules PCLANCNV command line options must conform to several rules:

•

Each application code file is specified without a control parameter.

•

Each application data file and signature filename must be preceded with an -i.

•

Files must be specified in the order:

a Application code file b Application code signature file c Application data file d Application data signature file •

No spaces are allowed between the control parameter and its item.

•

Control parameters may be upper- or lowercase.

•

Other than the required order of files (a – d above), the order of items in the command line is not significant.

•

If the environment variable ends with an asterisk (“*”), add an additional asterisk to clear that variable.

•

If the <value> for an environment variable includes a space, <value> must be enclosed in quotation marks.

Table 9

PCLANCNV Command Line Input Options

Input File Options

54 filename

Input application code file (no control parameter before filename).

-i<filename>

Input application data file or signature file.

MX SERIES REFERENCE MANUAL

Page 61

Table 9

PCLANCNV Command Line Input Options

Input File Options FileToBeSigned.nam, CertFile.crt, KeyFile.key, KeyPassword |

-k<C|D> where, C=AppCode and D=AppCode.

Input Options (not files) location= <value>

Sets an environment variable to <value>, for example, *ZA="TEST" and *ZT="TERMID" location*

Clears an environment variable (delete the environment variable).

-x<password>

Set terminal password.

Table 10

PCLANCNV Command Line Output Options

Output Format Definition -n

Uncompressed format with no blocking.

-p

MX Series compressed PinStripe format with no blocking.

p<blocksize>

MX Series compressed PinStripe format in blocks of <blocksize> bytes.

-r

MX Series compressed IBM ECR format in blocks of 128 bytes.

r<blocksize>

MX Series compressed IBM ECR format in blocks of <blocksize> bytes.

-t

Compressed VeriTalk format with no blocking.

-v

Override error checking of output file content, count, and order.

Output File Name

-o<filename>

Output filename is <filename>.

Other Controls

Command Line Example Example

-d<filename>

Decode a previously-created output file to existing TEMP subdirectory.

-f<filename>

Use <filename> as ASCII source file for above options.

The following is an example of command line code:

pclancnv -r -iapp.tgz -oappIBMecr.out

This example creates an IBM ECR download file named appIBM.ecr.out that includes the files contained in app.tgz (a Linux tar file that was created using gnu zip).

MX SERIES REFERENCE MANUAL

55

Page 62

File Signing and Signature Files

File signing is required. File signing is performed with the VeriShield File Signing tool. The result of signing a file is a new signature file also called a .P7S file. The .P7S file must be included as part of the download. The -k option is not used by the MX Series.

Signature files are also supported as input files. These are specified just like application data files, with a -i option.

56

MX SERIES REFERENCE MANUAL