The text of a manual · part 3 of 10
TCLOAD Reference Manual, pages 21 to 30
Pages 21 to 30 of 96
The original document is the PDF (2.2 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 VeriFone Tranz 330
Page 21
Causes
Operating System
Communication Errors
Terminal-to- Terminal Download with Batch Data
Operational Procedures
3. Executing TCLOAD
There are basically four main categories that cause memory corruption to occur and PROGRAMMING ERR or DC MEMORY ERROR messages to be displayed:
e The operating system e Operational procedures e Hardware failures e Environmental causes
On rare occasions, the operating system may be responsible for memory corruption. In such cases, memory corruption has most often been due to electrostatic discharge (ESD), brownouts, blackouts, or environmental conditions.
There are some conditions during which you should expect a memory corruption error to occur. For example, for performance considerations, the program area checksum is calculated only at the end of a ZONTALK download. Ifa communication error occurs, or the terminal is powered down once the download has begun, you can expect to see a PROGRAMMING ERR message.
Performing a unit-to-unit download from a terminal which already contains data capture information will result in a DC MEMORY ERROR display on the unit that received the download, since this type of download includes the DC or batch data but not the DC RAM checksum. Downloading a TRANZ UDL terminal that has data capture information clears the DC memory. No message is displayed.
Another common cause of memory corruption is the operational procedures employed by the end user, based on the specific application being run on the terminal. Since the process of storing to memory is a 2-step procedure (store new data, recalculate, then store the updated checksum), removal of power at any time during memory storage is likely to cause memory corruption. If the application displays a host approval prior to completing all memory updates, and a customer removes power from the unit prior to the completion of these memory updates, memory corruption may occur.
Page 22
Power Outages
Hardware Failure
Environ- mental Conditions
Corrective Actions to
Take
TCLOAD Reference Manual
Power outages (blackouts or brownouts) can also cause memory corruption while the TCL application is executing. Keep this in mind for applications that utilize idle loop control strings.
Another general category of memory corruption causes is hardware failures. Bad RAM chips, dead batteries, etc., though uncommon, can cause memory corruption problems.
The final cause of memory corruption is due to environmental conditions. Power problems such as brownouts or excessively noisey power or telco lines may result in memory corruption. The most commonly observed environmental cause for memory corruption, however, is electrostatic discharge (ESD) in or near the unit. Each winter, calls regarding PROGRAMMING ERR and DC MEMORY ERROR messages on terminals increase because cold, dry weather increases the presence of ESD to levels that can affect the operation of VeriFone terminals.
VeriFone has specifications for ESD immunity and XL/TRANZ products currently meet or exceed these specifications.
What can be done once a PROGRAMMING ERR or DC MEMORY ERROR occurs? Once the memory corruption has been detected and the error message is displayed, the terminal waits for input from the keyboard to continue operation. In current firmware, there are two options if a PROGRAMMING ERR has occurred:
e Press the [5] and [3] keys simultaneously. e Press the [1] and [ENTER] keys simultaneously.
Pressing the [5] and [3] keys simultaneously will cause the terminal to recalculate and store the program area of checksum, and attempt to continue operation. If the corruption of RAM has been slight, you may be able to continue operating on the corrupted terminal. VeriFone suggests that the only operation you should attempt is to close out any batch files in process and re-download the terminal. If the corruption is severe, or if vital areas of system memory have been corrupted, the terminal may immediately go back into another PROGRAMMING ERR or it may progress to a DC MEMORY ERROR.
Page 23
3. Executing TCLOAD
The PROGRAMMING ERR condition can always be cleared by pressing [1] and [ENTER] simultaneously to reinitialize all RAM and clear the terminal of its application. You must then redownload the application to continue terminal operation.
When a DC MEMORY ERROR occurs, the only way to proceed beyond the error condition is by pressing the [1] and {ENTER] key sequence. The terminal then resets its data capture memory pointers, effectively deleting any batch information that was in the terminal. Note that the application program area of RAM is not affected by this error condition.
Warning: The TRANZ UDL terminal allows the [5] and [3] keypress to recover from DC MEMORY ERROR. The data will be corrupted but accessible, therefore the only operations recommended are closing, reconciling and uploading, after which you should redownload the terminal.
Page 24
TCLOAD Reference Manual
Page 25
4. TRANZ UDL Terminal Packet Formats
This section describes packet formats for uploading and downloading ASCII data to and from a TRANZ UDL terminal. It also includes sample dialogs between terminal and host.
Note: Packet formats for the XL, TRANZ 330 and TRANZ 420 terminals are precompressed and not user readable.
Use these packet formats and dialogs only when the terminal and host are directly connected or connected via telephone lines.
Communication Parameters
Control Characters
Format:
Settings for all packets are as follows:
Bits 8 Parity None Stop Bits 1 Time out 10 seconds Retry count 3 tries
STX = $02;
ETX = $03;
EOT = $04;
ACK = $06;
NAK = $15;
FS =$1C;
ETX’ = $83; (Note: This is an ETX with high order bit on)
<STX> packet data <ETX’><CRC1><CRC2> The 2 byte CRC is computed as follows: G(x) = xA16 + x415 + x42 + 1
CRC1 = hi(CRC), CRC2 = lo(CRC)
Note: The maximum length of any packet from <STX> to final <CRC2> must not exceed 250 bytes.
Page 26
Download Request
Terminal to
Host
Format
Example
Packet Types
TCLOAD Reference Manual
The TRANZ UDL terminal uses the standard VeriFone request packet format, beginning with VFI and using commas as field separators.
Data No. Bytes or Type
<STX> 1
VFI 3
, 1
Platform name variable
, 1
Request type variable
, 1
Download type 1
' 1
Application ID variable (7 max) , 1
Terminal ID variable (10 max) 1 1
<ETX> 1
<CRC1> 1
<CRC2> 1
<STX>VFI, TRANZ-380,XT380,F,MX0105,1,9EADU3.6E,<ETX><CRC1><CRC2>
| EPROM ID Terminal iD Application ID
Download type
Request type (see note) Platform name
Standard VeriFone identifier
Note: The "request type" field begins with "X" to eXecute the service request. The remainder of the field specifies the service type, in this example "T380". It determines the appropriate routine to call or program to execute.
The TRANZ UDL terminal uses different packet types for up and download requests. Following is a list of packet types, a description of each, plus format details and some examples.
Page 27
4. TRANZ UDL Terminal Packet Formats
Table 4-1. TRANZ UDL Terminal Packet Types
Type Type Function L Memory location record M Display message F Data capture header P Set password D Data capture record T Set date and time 1S] S Successful session U Specific location U Cancel session A All non-empty locations B _{All data capture data (batches) Memory Use this packet type to transfer data consisting of a location Location and an associated data component. The termina! stores the Record _ data in the location file using the given location. The location
(Packet Type L)
Format
Example
Data Capture Header (Packet Type F)
Format may range in value from 0 to 1999 and is used as a logical location by the terminal to access the location file.
Data No. Bytes or Type
<STX> 1
L Location record Location variable (numeric ONLY) <FS> 1
Data variable
<ETX’> 1
<CRC1> 1
<CRC2> 1
<STX>L51<FS>EXPIRATION DATE<ETX’><CRC1><CRC2> Note: Compete packet length must not exeed 250 bytes.
Use this packet type to create a new file or select an existing file using the name provided. Subsequent data capture information is stored in this file.
Data No. Bytes or Type <STX> 1
F File Select File name variable <ETX’> 1
<CRC1> 1
<CRC2> 1
Page 28
Example
Data Capture
Record
(PacketType D)
Format
Host to Terminal Upload Formats
Specific Location
(Packet Type
U)
Format
Example
TCLOAD Reference Manual
<STX>FABC1219<ETX’><CRC1><CRC2>
Use this packet type to transfer data into the file selected with the "F" type packet. The terminal always appends the data to the end of the file. The TRANZ UDL terminal always stores the data sequentially and ignores the offset field.
Data No. Bytes or Type
<STX> 1
D Data capture record offset variable
<FS> 1
Data variable
<ETX’> 1
<CRC1> 1
<CRC2> 1
The TRANZ UDL terminal is capable of performing three types of uploads:
e Specific memory locations e All non-empty memory locations e All data capture files
Requests may be done in any order and more than one type of request may be issued.
This format is used by a host to request the uploading of a specific location.
Data No. Bytes or Type
<STX> 1
U Upload specific request Location variable
<ETX’> 1
<CRC1> 1
<CRC2> 1
<STX>U151<ETX’><CRC1><CRC2>
The terminal responds to this request with an "L" type packet for the requested location.
Page 29
All Non-empty Locations (Packet Type A)
Format
All Data Capture Data (Packet Type
B)
Format
Host to Terminal Download Formats
Display Message (Packet Type M)
4. TRANZ UDL Terminal Packet Formats
This format is used by the host to request that the terminal upload all non-empty locations. The terminal replies with a stream of "L" type packets. After the final "L" packet, the terminal sends an "S" packet to terminate the upload.
Data No. Bytes or Type
<STX> 1
A Upload All Locations <ETX’> 1
<CRC1> 1
<CRC2> 1
Note: Locations 2 and 3 used by the terminal as transmit and receive buffers will be uploaded. These typically contain meaningless data and should be ignored.
This format is used by the host to request that the terminal upload all data capture data (batches). For each data capture file, the terminal sends an "F" type packet followed by zero or more "D" type packets. After the final "D" packet, the terminal sends an "S" packet to terminate the upload.
Data No. Bytes or Type
<STX> 1
B Upload all batches <ETX’/> 1
<CRC1> 1
<CRC2> 1
The TRANZ UDL terminal supports the following services:
e Immediately displays a message e Set the system password e Set the data and time e Successfully completes a session e Cancels a session
This packet is used by the host to cause the terminal to immediately display a message. This packet type is typically used to display such status message as: "DOWNLOADING", "DOWNLOAD DONE", "UPLOADING", and "UPLOAD DONE". The length of the message text should not exceed the physical
4-5
Page 30
Format
Example
Set the Password
(Packet Type P)
Format
Example
Set the Date and Time
(Packet Type T)
Format
TCLOAD Reference Manual length of the TRANZ UDL terminal display (16 characters).
This packet type may be sent at any time while communicating with the terminal.
Data No. Bytes or Type <STX> 1
M Display message message variable
<ETX’> 1
<CRC1> 1
<CRC2> 1
<STX>MDOWNLOAD DONE<ETX’><CRC1><CRC2>
This packet is used typically during deployment to set the system password.
Data No. Bytes or Type
<STX> 1
P Set the password password variable, 10 characters max <ETX’> 1
<CRC1> 1
<CRC2> 1
<STX>P1234<ETX’><CRC1><CRC2>
This packet type is used typically during deployment to set the terminal date and time. The terminal automatically computes the day of the week based on the date. All data is numeric and requires leading zeros if necessary.
Data No. Bytes or Type <STX> 1
T Set the time YYYY 4,year
MM 2,month
DD 2, day hh 2,hour 24 hour format mm 2, minute ss 2,second <ETX’> 1
<CRC1> 1
<CRC2> 1