The text of a manual · part 3 of 23
PINpad 1000SE Reference and Programmers Guide, pages 21 to 30
Pages 21 to 30 of 229
The original document is the PDF (8.4 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 PINPad 1000SE
Page 21
CHAPTER 4 Programming Considerations Since the PINpad is a peripheral device, its normal operations and diagnostics are determined by the application code that resides in the connected controller. The controller must be programmed with the necessary message packets (or "commands") that the PINpad can interpret. When planning the application program, consider the following decisions:
Data Entry Events
•
What type of key management is required: DUKPT, Master Session, or both?
•
What prompts and commands are used for customer PIN entry?
•
What type of prompts are used? Standard or custom prompts?
•
What languages must be supported?
•
Is the card information entered from the PINpad keypad, the controller cardreader, the controller keypad, or some combination of these?
•
What is the controlling device communication baud rate?
The sequence of events can vary:
•
The card data can be entered before or after the retailer enters the transaction amount.
•
The PIN can be entered before or after the retailer enters the transaction amount.
•
The transaction can be canceled at nearly any time.
•
The controller can solicit single key entries or entire sequences, and what it does can affect consumer use of the CLEAR key, which acts as a backspace key.
The entry sources can also vary:
PIN Requirements
•
The retailer can slide the consumer card through the slot on the controller.
•
The retailer can enter the card data on the controller keypad.
PIN entry may or may not be required. The PIN requirement may be indicated by:
•
Account number falling within the range on the account table
•
Retailer entering a keystroke sequence at the controller, causing the PIN request
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
19
Page 22
P ROGRAMMING C ONSIDERATIONS Display Possibilities
Display Possibilities
The PINpad offers flexible display capabilities:
•
While idle, the display can show the default prompts, or your own custom messages.
•
The messages displayed can rotate.
The controller can direct the PINpad 1000SE device to:
DUKPT and Master/Session Key Management
•
Display a single message
•
Display rotating messages in 3 second intervals
•
Request a single key entry from the customer
•
Request a key entry sequence from the customer and echo the entry on the display
•
Request the PIN entry from the customer, encrypt the PIN, create the PIN block and echo the customer display as asterisks
The PINpad 1000SE device supports both the DUKPT (Derived Unique Key Per Transaction) and Master/Session methods of key management. Though the message packet format requirements for DUKPT and Master/Session are similar, some command types have different formats. In addition, there are several packet types specific to DUKPT that are not supported when the PINpad 1000SE is set as a Master/Session PINpad (and vice versa). To simplify the programming of the PINpad 1000SE unit, the message packet format requirements have been divided into several sections in this manual. The following few sections detail the packet-level messages, divided for discussion into the following groups:
•
Management Packets
•
Master/Session Message Packets
•
MAC Packets
•
DUKPT Message Packets
•
Customizable Command Specification
Many of the definitions, structures, and behaviors are the same across these general groups of packets, and these general attributes are discussed in the following sections.
20
•
Preauthorization packets
•
Key loading device to PINpad packets
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 23
P ROGRAMMING C ONSIDERATIONS Control Character Definitions
Control Character Definitions
In addition to accepting specific messages to manipulate operations, the PINpad message packets include the following abbreviations and special characters: Abbrev.
Hex Value
Description
STX
02h
Start of Text
ETX
03h
End of Text
SI
0Fh
Shift In
SO
0Eh
Shift Out
EOT
04h
End of Transmission
ACK
06h
Acknowledge
NAK
15h
Negative Acknowledge
FS
1Ch
Field Separator
LRC SUB
Packet Structures
Longitudinal Redundancy Check 1Ah
Message Parameter
The PINpad accepts two types of message packets:
• <STX> data <ETX>{LRC} • <SI> data <SO>{LRC} Any other type of packet will be ignored by the PINpad.
NOTE
Receiving a NAK
Full compliance with the packet protocol is described herein, including all ACK/ NAK/EOT dialogue required in order to guarantee proper performance. If during a communication session either the PINpad or controller receives a NAK, it retransmits its last message and increments a NAK counter for the communication session. If more than three NAKs occur while attempting to transmit the same item, the transmitting unit sends an EOT, terminating communication.
Receiving an ACK
When the PINpad receives an ACK, it means the packet was received without error. If the PINpad is receiving an ACK and does not expect it, the ACK is ignored. Likewise, when the PINpad receives a command from the controller without error, it transmits an ACK.
Receiving an EOT
If during a communication session the PINpad receives an EOT, it means to terminate the communication session and returns to the idle state. If the PINpad is receiving and EOT and does not expect it, the EOT is ignored.
Timeout
During a communication session, the PINpad device or the controller times out if it does not receive the expected response within 15 seconds. The unit sends an EOT to terminate the communication session.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
21
Page 24
P ROGRAMMING C ONSIDERATIONS Numerical Listing of Messages
Numerical Listing of Messages
22
The following section provides a detailed numerical listing of the message packets used to control the PINpad device. Each message includes:
• purpose – a brief definition of the message
• category – the functional type of message (e.g., whether its a diagnostic or communication packet)
• comments – any additional information, including the maximum and minimum character length of the message packet and any timing considerations for programming the PINpad
• message packet – a sample of the message packet, showing both the request and response packets when applicable
• elements of the message packet – including the field type, character length and brief description of each packet element
• examples of how the message packet can be used
• protocol – including the transmission sequence and direction of the communication between the controller and the PINpad unit
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 25
CHAPTER 5 Management Packets Some packets and formats work both in Master/Session mode and Master/ Session DUKPT mode; VeriFone refers to these as management packets.
Functional Listing of PINpad Device Messages
The messages sent to and from the PINpad device to manipulate operations or control specific PINpad functions are divided into three functional groups. These groups include packets for interactive diagnostic tests, and standard and custom communication.
Interactive Diagnostic Test
Interactive tests between the PINpad unit and the controller run only upon request. These tests use the VeriFone-defined message Packets 01-15, and can be run during the same session that you load master keys, use the MKI module or on request from the PINpad controller. Message
Description
M01
M01 Set PINpad Mode
M02
M02 Check PINpad Mode
M03
M03 Load Permanent Unit Serial Number
M04
M04 Read Permanent Unit Serial Number
01
01 Run Diagnostic Function Routine
05
05 Transfer Serial Number
06
06 Request Serial Number
07
07 DES Reliability Test
09
09 UART Loopback Test
10
10 Request Unencrypted PIN
11
11 PINpad Device Connection Test
12
12 Select Prompt Language
13
13 Set Baud Rate
15
15 Refresh PINpad Key Management Mode
17
17 Set Key Management Mode
18
18 Check Key Management Options Register Mode
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
23
Page 26
M ANAGEMENT P ACKETS Functional Listing of PINpad Device Messages
Standard Communication
Custom Communication
The standard messages sent between the PINpad device and the controller follow the VISA message packet format and allow the PINpad unit to be programmed with standard VISA prompts and control the PINpad display. There is sufficient variation in Packets 70 and 71 to merit specific discussions in both the Master/ Session Message Packets and DUKPT Message Packets chapters. Message
Description
72
72 Cancel Session Request
These message packets were created to provide the PINpad device with special prompts and data entry requirements for custom applications. The request and response messages pass between the controller and the PINpad, allowing the controller to customize prompts and control PINpad operations. There is sufficient variation in Packets Z60 and Z62 to merit specific discussions in both the Master/ Session Message Packets and DUKPT Message Packets chapters. Message
Description
Q2
Q2 Indicate Host Done
Q5
Q5 Alternate PROCESSING Prompt
Z1
Z1 Return to Idle State
Z2
Z2 Display a String MACed Z2 Display a String
Z3
Z3 Display Rotating Messages MACed Z3 Display Rotating Messages
24
Z7
Z7 Turn on/off CANCEL REQUESTED
Z8
Z8 Reset/Set Idle Prompt
Z10
Z10 Load Prompt Table
Z40
Z40 Request Key Code
Z41
Z41 Return Key Code
Z42
Z42 Request Key Value
Z43
Z43 Return Key Value
Z50
Z50 Request String Input
Z51
Z51 Return String Input
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 27
M ANAGEMENT P ACKETS M01 Set PINpad Mode
M01 Set PINpad Mode Sets or clears a number of control-switches in the PINpad Mode Register.
Support Mode
Comments
PINpad 1000
PINpad 1000SE
D
D
Once PINpad 1000SE mode is set, it CANNOT be changed to another mode. This means that Packet M01 is ignored when the PINpad is in PINpad 1000SE mode. After setting the PINpad mode, use M02 Check PINpad Mode to make sure the PINpad is in the correct mode. VeriFone recommends that the reserved field be set to zero. Any request PINpad mode setting outside the specified option is ignored.
NOTE
Setting the PINpad mode should be carried out in an environment, where the power level can be guaranteed. There is no Power Failure Protection in Packet M01 processing. For PINpad Mode Register values, see the following table: Table 1
PINpad Mode Register Values Bit 7
Packet Format
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PP1000 mode: Default
- - - - - - - - - - - Reserved - - - - - - - - - -
0
0
1
PP1000SE mode
- - - - - - - - - - - Reserved - - - - - - - - - -
0
1
0
<SI> M01 [PM] <SO>{LRC}
Elements Type
Field
Length
Description
<SI> start of packet
1
ASCII Shift In Control Character; Value: `0Fh'
M01 packet
3
Set PINpad Mode
[PM] packet parameter
2
The two ASCII-Hex digits are concatenated, big-endian, to produce a single control byte. See the PINpad Mode Register Values table, above, for values.
<SO> end of packet character
1
ASCII Shift Out Control Character; Value: `0Eh'
{LRC} block code check
1
Error Check Character
Packet Length: maximum 8 characters, minimum 8 characters
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
25
Page 28
M ANAGEMENT P ACKETS M01 Set PINpad Mode
Examples
<SI>M0101<SO>{LRC}
Sets the PINpad to PP1000 mode. <SI>M0102<SO>{LRC}
Sets the PINpad to PINpad 1000SE mode, which meets PED requirement.
Protocol Controller
Transmission Direction
M01 packet
------>
PINpad
ACK = LRC OK NAK = LRC incorrect (EOT after 3 NAKs) <------
M01 packet echo
ACK = LRC OK and key management echo OK NAK = LRC incorrect (EOT after 3 NAKs) EOT = LRC OK and key management echo NOT OK
------> <------
EOT to terminate process (PINpad saves new mode)
PINpad Mode Management Rules
1 1. PP1000 is the Factory Default (PP1000 Tech Spec 06127 functionality plus 3DES)
26
•
Defaults:
•
Working zero key support ON (may be turned OFF with packet 17 - KMM Bit 4)
•
Z66 MAC - Working key optional
•
Allow multiple keyloading sessions. Do not erase keys if PINpad is in new keyloading session.
•
When switching between MS and DUKPT modes – Do Not erase keys.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
Page 29
M ANAGEMENT P ACKETS M01 Set PINpad Mode
2 PP1000SE mode (PP1000 Tech Spec 06127 functionality plus 3DES with the following changes)
•
Once PP1000se Mode is set, it CANNOT be changed
•
Defaults:
•
Working zero key support OFF (CANNOT be turned on with packet 17 - KMM Bit 4)
•
Packet 17 – KMM Bit 5 cannot be set – Zero GISKE session key support
•
Packet 17 – KMM Bit 6 cannot be set – Initialize RAM
•
Z66 MAC - Working key NOT optional
•
When switching between MS and DUKPT modes – Erase Keys
•
Do not allow multiple clear keyloading sessions. If KLK NOT loaded
All Master and DUKPT keys are erased at the start of a keyloading session, when loading Master or DUKPT keys.
KLK loaded
All Master and DUKPT keys are erased at the start of a keyloading session, when loading Master or DUKPT keys. Except, if all keys loaded are Master keys, encrypted with the KLK, no keys will be erased.
When the KLK is loaded in the clear, all Master and DUKPT keys are erased.
•
Supports all of the PP1000 packets except the following (Removed to meet PED Spec):
PED is only applicable to PP1000SE)
•
10 - Request Unencrypted PIN
•
The following packets are supported with limitations (see prompt rule summary in chapter 9) in version 4E3002E and later releases of the firmware.
•
Z40 - Accept a Key, Request Key Code
•
Z41 - Return Key Code
•
Z42 - Accept a Key, Request Key Code
•
Z43 - Return Key Code
•
Z50 - Request String Input
•
Z51 - Return String Input
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE
27
Page 30
M ANAGEMENT P ACKETS M01 Set PINpad Mode
•
Master Session PIN encryptions are limited to 4 within 120 seconds. If a 5th PIN encryption is attempted within the 120 seconds, the PINpad will prompt with a message 'PLS WAIT' until the 120 second timer has expired and then continue with the encryption.
3 If the PINpad mode is changed all keys are erased: •
KLK erased
•
All Master Keys erased
•
All DUKPT Keys erased
•
See defaults in 2a above
•
1 DES mode for MS and all DUKPT engines
•
DUAL Mode (MASTER+DUKPT)
4 Power On Display •
At power on,
•
In PP1000 mode, the unit will display: PP1000 TDES 4E300xx MM/YY
•
In PP1000se mode, the unit will display: PP1000SE TDES PED CERTIFIED 4E300xx MM/YY
5 Display Mode, FW Version and FW Date
28
•
Pressing the cancel key (RED) immediately followed by the ‘1’ key will display the following until the cancel key (RED) is pressed or a packet is received.
•
In PP1000 mode, the unit will display: PP1000 TDES 4E300xx MM/YY
•
In PP1000se mode, the unit will display: PP1000SE TDES PED CERTIFIED 4E300xx MM/YY.
PINPAD 1000SE REFERENCE AND PROGRAMMERS GUIDE