The text of a manual · part 28 of 37
TCL Terminal Control Language Programmer's Manual, pages 271 to 280
Pages 271 to 280 of 362
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 VeriFone Tranz 330
Page 271
Appendix A. Memory Locations
Memory Character Field Location Type* Length Description 0708 X 16 Transaction Type Prompt 0709 9 4 Floor Limit 0710 X 120 Resp. Analysis Control String 0711 X 120 Auxiliary Control String 0712 9 1 Multi-Transaction Group Code 0713 to 0799 X 120 General Records 0800 X 32 Primary Phone Number 0801 xX 32 Secondary Phone Number 0802 X 32 Call Center Phone Number 0803 X 32 Referral Phone Number 0804 xX 46 Merchant/Terminal ID 0805 9 3 Message Format Flag 0806 9 3 Fraud Control Flag 0807 X 120 Transaction Control String 0808 X 16 Transaction Type Prompt 0809 9 4 Floor Limit 0810 X 120 Resp. Analysis Control String 0811 X 120 Auxiliary Control String 0812 9 1 Multi-Transaction Group Code 0813 to 0899 X 120 General Records 0900 X 32 Primary Phone Number 0901 X 32 Secondary Phone Number 0902 X 32 Call Center Phone Number 0903 X 32 Referral Phone Number 0904 X 46 Merchant/Terminal ID 0905 9 3 Message Format Flag 0906 9 3 Fraud Control Flag 0907 X 120 Transaction Control String 0908 X 16 Transaction Type Prompt 0909 9 4 Floor Limit 0910 X 120 Resp. Analysis Control String 0911 X 120 Auxiliary Control String 0912 9 1 Multi-Transaction Group Code 0913 to 0949 X 120 General Records 0950 X 60 Printer Type Flag 0951 xX 60 No. Line Feeds for Printer 250 0952 Xx 60 Baud for Generic Roll Printer 0953 Xx 60 Data Format for Generic
Roll Printer 0954 xX 60 Handshake for Generic
Roll Printer 0955 to 0957 X 120 Reserved 0958 X 60 Bell/CCITT Mode 0959 xX 60 Reserved 0960 xX 60 Dial-up Line Upload/
* X = alphanumeric; 9 = numeric
Download Speed
Page 272
TCL Programmer’s Manual
Memory Character Field
Location Type* Length Description
0961 to 0964 X 120 Reserved
0965 xX 60 Auto Answer Speed
0966 9 1 Auto Answer Processing
0967 9 1 Auto Answer Packet Inactivity Timeout
0968 to 0969 X 120 Reserved
0970 X 60 DIN 6 Peripheral
0971 to 0974 X 120 Reserved
0975 X 60 Line Recovery Time
0976 X 60 Reserved
0977 9 1 Free Memory Reclamation
0978 xX 60 Reserved
0979 X 60 Abort Control String
0980 xX 120 Delay Executing Idle Loop Control String
0981 Xx 120 Idle Loop Control String
0982 x 60 idle Loop Phone Number
0983 xX 120 Idle Loop Response Analysis Control String
0984 X 60 Idle Loop Inactivity Timeout
0985 9 1 Host No. for Card Initiated Transaction
0986 9 1 Host Number for Bar Code Initiated Transaction
0987 to 0989 X 120 Reserved
0990 X 120 Comm. Error Control String
0991 to 0996 X 120 Reserved
0997 X 120 VeriFone Control String
0998 X 120 Reserved
0999 X 60 Programming Error Recovery Log
1000 xX 120 Date and Time Transfer
1001 to 1049 X 120 Reserved
1050 to 1999 X 120 General Records
* X = alphanumeric; 9 = numeric
Page 273
Dial Strings
Dial Parameters
Characters to Dial Once Phone is Off Hook
Appendix B. Communications
One of the subprocesses of communications is dialing. The terminal requires a dial string to specify the phone number to dial and how to dial out. There are a variety of instructions that can be used in the dial string and a variety of ways in which the dial string can be constructed, dependent on the terminal type, the environment in which the terminal is placed, the telephone line, the network and the host. A dial string may be as long as 20 characters. Characters which are not commands will be dialed even though they may not be needed to access a particular modem.
Usually TCL terminals attempt to dial the primary phone number stored in memory location X00 (X = key pressed 1 through 9). In some custom applications however, the terminal may be instructed to dial a phone number in a different location by using the S.m command (note that the "m” parameter is specified). In both cases, the specified phone number is only a portion of the dial string. Other parts of the dial string are modem commands and protocol commands.
Following is a list of categorized dial string parameters. P = fast connect
Note: Currently the P "fast connect" parameter is only available in TRANZ 330 3.60 and above. Fast connect does not follow the Bell standard.
The P parameter causes the terminal to perform fast connect as soon as a transaction is initiated (key press or card swipe). The P must be in the first position of the dial string to perform forced pre-dial and fast connect. For fast connect only, the P can be located elsewhere in the dial string, dependent on specified requirements. Only 1200 baud fast connections can be supported. An "N" for 1200 baud must be included in the dial string to ensure the terminal is operating at 1200 baud.
$1 and S2 are supported, however the terminal will not pre-dial more than once (i.e. it will not redial the predial).
As soon as the terminal has dialed the last digit of the dial string, it transmits a tone and starts looking for a carrier from the answering modem. Carrier validation is slightly faster than that of a normal modem connection. Once the carrier has been detected and validated, the terminal waits for an <ENQ>.
R = Pre-dial The terminal begins dialing as soon as a key is pressed or a card is swiped.
R must be the first character of the dial string. Normal Bell standard connect protocol is followed.
Digits or characters (two characters maximum) which the terminal will dial once the phone is off hook (xx).
Page 274
Pauses and Delays
Phone Number
Login Type
Memory Location Specifier
Check for Busy Tone
Baud Rate
Samples of Dial Strings
TCL Programmer’s Manual
D = Delay
Wait for dial tone, then dial next digit or character. Hang up if dial tone is not available or if the timeout period has elapsed. (Default timeout period is 30 seconds).
- = Pause
One or two second delay prior to the terminal continuing with dialing any additional digits.
W = Delay until Dial Tone
Wait for a dial tone or "blind dial" if a dial tone has not been detected within two seconds.
Phone number to dial.
X = soft login requested
Attempts to log in to a network where the login protocol is written in software. Refer to Appendix | "Writing Soft Logins” for further detail.
L = hard login requested Attempts to login in to the network specified. Note: Hard logins are not supported in TRANZ 330 3.60.
This points to the rightmost digit of the memory location (020 through 029) containing network login data. This follows the login request type in the dial string.
B instructs the terminal to check for a busy tone. If a busy tone is detected, the terminal will display BUSY, hang up and redial the phone number. There is a 5 second line recovery time from the time the terminal hangs up before it will dial again. Memory location 013 (Number of Retries) controls how many times the terminal will redial.
If there is no "B" in the dial string, the terminal waits the entire carrier detect timeout (30 second default) before hanging up. Memory location 013 (Number of Retries) controls how many times the terminal will redial.
M = 300 baud N = 1200 baud
1. Fast Connect, Forced Predial at 1200 baud:
Dial string = P9D5555555N
P = Dial parameter - Forced predial and Fast connect 9 = Digit or character to dial to exit PBX
D = Wait for dial tone
5555555 = Phone Number
N = Baud Rate, 1200 baud
2. Fast Connect at 1200 baud: Dial string = 9D5555555NP
Page 275
Protocols
Character Definitions
Appendix B. Communications
9 = Digit or character to dial to exit PBX D = Wait for dial tone
5555555 = phone number
N = Baud Rate, 1200 baud
P = Dial parameter - Fast connect
3. Forced Predial at 1200 baud
Dial string = R9-5555555N
R = Dial parameter - Forced predial
9 = Digit or character to dial to exit PBX - = pause
5555555 = phone number
N = Baud Rate, 1200 baud
4. Softcoded Login at 300 baud
Dial string = 9W5555555X0M
9 = Digit or character to dial to exit PBX
W = wait for dial tone or two seconds
5555555 = phone number
X = Login type. Initiate softcoded login
0 = location 020 is where softcoded login data is stored M = Baud rate, 300 baud
TCL terminals use two default communication protocols which are commonly referred to by the financial industry as VISA first generation and VISA second generation protocol. Although the communication dialogue for both protocols is identical, the transmit and receive packet formats are very different. This appendix outlines the communication dialogue common to both protocols, and shows the transmit and receive packet formats for the first generation protocol.
Note: Because the transmit and receive packet formats used by the VISA second generation protocol are proprietary to VISA, they are not included in this appendix. Information about the second generation protocol is available from VISA upon request.
As you review the diagrams of the communication dialogues and the packet formats, you will see various abbreviations and special characters. Following is a list of these abbreviations and their meanings.
Abbrev. Hex Value Description
STX 02 Start of Text
ETX 03 End of Text
EOT 04 End of Transmission
ENQ 05 Enquiry
ACK 06 Acknowledge
NAK 15h Negative Acknowledge
FS 1Ch Field Separator wcc Write Control Character (see text)
LRC Longitudinal Redundancy Check (see text)
Page 276
Write Control Character
Longitudinal Redundancy Check
Communication Dialogue Without Error
TCL Programmer’s Manual
WCC is the write control character which may have the following values:
@ single transaction; account data entered via keypad
A single transaction; account data entered via cardreader B multiple transaction; account data entered via keypad
Cc multiple transaction; account data entered via cardreader
LRC is the EXCLUSIVE -OR of each byte starting after the STX and ending with ETX.
STX (information) ETX LRC
|
Byte wide XOR of this information is the LRC
Following is an outline of an error-free communication dialogue. This dialogue is used by both the first and second generation protocols.
Terminal Host
1. Calls Host
2., Answers Phone, Sends ENQ
3. Send Transmit Packet, ,
4., Send ACK (optional)
5, Send Response Packet 6. Send ACK
7. Send EOT
8. Hangup Hangup
Page 277
Terminal Does Not Send the Transmit Packet
Dialogue Where the Host NAKS the Transmit Packet
Appendix B. Communications
Following is an outline of a communication dialogue where the host answers the phone, but the terminal does not send the transmit packet. This dialogue represents an error situation and is used by both first and second generation protocols.
Terminal Host 1. Calls Host > 2. Answers Phone
Sends ENQ, wait 3 - 5 seconds
3. Sends ENQ, wait 3 - 5 seconds 4, Sends ENQ, wait 3 - 5 seconds 5. Hangup
This dialogue represents an error situation where the host NAKS the transmit packet. It is used by both first and second generation protocols.
Terminal Host
1. Calls Host
2. Answers Phone, Sends ENQ
3. Send Transmit Packet, WW_ssss=s
4. _ Send NAK
5. Send Transmit Packet if the host does not find anything wrong with the packet, the host continues as in the error-free communications dialogue.
If the host finds something wrong, it sends a NAK again.
The terminal will send the transmit packet a maximum of three times and then hangup.
Page 278
Dialogue Where the Terminal NAKS the Response Packet
First Generation Credit Authorization Packet Formats
Receive Packet Format
Network Logins
Communication Messages
TCL Programmer’s Manual
The following dialogue represents an error situation where the terminal NAKS the response packet received from the host.
Terminal Host, _
Calls Host, 2. Answers Phone, Sends ENQ
3. Send Transmit Packet, 4,, Send Response Packet 5. Send NAK 6. Send Response Packet
If nothing is wrong with the packet, the terminal continues as In the error-tree dialogue. If the terminal finds something wrong, it will send up to three NAKs before hanging up.
Following is the standard transmit packet format for a first generation credit authorization. The bold face identifies data automatically added by the terminal.
Format:
STX <merchant ID> FS WCC <account number> FS <expiration date> FS <amount> ETX LRC
Following Is the standard receive packet format for a first generation credit authorization.
Format: STX <response message>ETX LRC
The process of communication between the terminal and the desired host may include the use of a Network Login Dialogue. The advantage of communicating through a network is to reduce costs of long distance telephone charges; however, transaction processing time will increase because the terminal must go through the network login procedure before the network makes the connection between the terminal and host.
The communication process consists of three sub-processes: Dialing, Network Login, and Host/Terminal Communication. Messages displayed on your terminal during each of these stages follow.
Page 279
Dialing Messages
Network Login Messages
Appendix B. Communications
Note: TRANZ 380 corresponding memory locations have 4-digits
(020=0020, 029=0029, etc.).
Message
Explanation
NO TEL NUM
WAITING FOR LINE
DIALING
NO LOGIN SPEC
BAD LOGIN SPEC
BAD LOGIN STRING
WAITING FOR ANSR
NO ANSWER
DIALING 2ND NUM
CONNECTED
Message
No data has been stored in the primary phone number location (x00) for this host transaction.
The terminal's line sense circuitry has determined that the telephone line is currently in use.
The terminal is dialing the primary host telephone number for this transaction.
The host phone number contains an "L" with no login string number after it.
The login specifier stored in the terminal's login string (XL/TRANZ locations 020-029) is invalid ('0’ <= specifier <= ’8’).
The login string stored in the terminal (XL/TRANZ locations 020-029) is invalid (no network specifier, username, password, or not enough separators).
The terminal dialed the host telephone num- ber and is waiting for the host carrier tone.
The terminal did not detect the host carrier tone within the Carrier Detect Timeout Period. This may be the result of the call not being answered by the host, a busy signal, or the host answering but hanging up before raising its carrier tone.
The terminal did not receive the carrier tone from the primary host and is attempting to call the secondary host telephone number.
The host has answered the call and raised its carrier; the terminal has responded by raising its carrier tone.
Explanation
LOGGING IN
The terminal has completed dialing the network's telephone number and is begin- ning the login protocol specific to the net- work being used.
Page 280
Host/Terminal Communications Messages
TCL Programmer’s Manual
Message
Explanation
NO @ FROM HOST
NO (CR) FRM HOST
NO (=) FROM HOST
NO USER NAME
NO PASSWORD
Message
Telenet. The terminal has not received the required "@" character within the time specified for this network.
Tymnet. The terminal has not received the required carriage retum character within the time specified for this network.
GEISCO. The terminal has not received the required "=" character within the time specified for this network.NO LOGIN MSG
The terminal did not receive the network’s identification message within the time specified for the selected network.
The selected network requires a user name from the terminal but none has been stored in the unit's login string (location 020-029).
The selected network requires a password from the terminal but none has been stored in the unit's login string (location 020-029).
Explanation
NO ENQ FROM HOST
TRANSMITTING
RECEIVING
NO RESP FRM HOST
BAD TX COMMUN
BAD RX COMMUN
The terminal has received the host carrier tone, but it did not receive the required ENQ within the specified ENQ timeout period.
The host has sent the required ENQ and the terminal is sending its transmit packet.
The terminal has completed sending the transmit packet and is now waiting for the response packet from the host.
The terminal has not received any response from the host within the specified timeout period. The host neither ACKed or NAKed the transmit packet.
The host has sent multiple NAKs indicating that it has not correctly received the terminal's transmit packet and has reached the limit on the number of times it can resend the transmit packet.
The terminal incorrectly received the host response packet multiple times and has reached the limit on the number of NAKS it can send.