MagTek MagneSafe V5 User Manual

Page 115

Advertising
background image

Appendix D. Command Examples

107

; MAC is first four bytes: D1538615
01 09 2C 31303030 D1538615 ; Set to "1000"
Request : CMND=01, LEN=09, DATA=2C 31 30 30 30 D1538615
Response : RC= 00, LEN=00, DATA=

02 00 ; Reset so changes take effect
Request : CMND=02, LEN=00, DATA=
Response : RC= 00, LEN=00, DATA=

Delay : (waited 5 seconds)
00 01 02 ; Get current Polling Interval (should return 01)
Request : CMND=00, LEN=01, DATA=02
Response : RC= 00, LEN=01, DATA=01

00 01 1E ; Get current Pre Card String (should return "")
Request : CMND=00, LEN=01, DATA=1E
Response : RC= 00, LEN=00, DATA=

00 01 1F ; Get current Post Card String (should return "")
Request : CMND=00, LEN=01, DATA=1F
Response : RC= 00, LEN=00, DATA=

00 01 20 ; Get current Pre Track String (should return "")
Request : CMND=00, LEN=01, DATA=20
Response : RC= 00, LEN=00, DATA=

00 01 21 ; Get current Post Track String (should return "")
Request : CMND=00, LEN=01, DATA=21
Response : RC= 00, LEN=00, DATA=

00 01 22 ; Get current Termination String (should return "<ENTER>")
Request : CMND=00, LEN=01, DATA=22
Response : RC= 00, LEN=01, DATA=0D

00 01 2C ; Get current Format Code
Request : CMND=00, LEN=01, DATA=2C
Response : RC= 00, LEN=04, DATA=31 30 30 30


Example 10: Authentication. A reader already in Security Level 3 or 4 is put into the Authenticated
Mode, allowed to stay in that mode for a time, then Deactivated.

; This example demonstrates the Authentication Sequence.
; It is not scripted, some of the data is deliberately randomized. This
; makes it impossible for a simple script to produce the correct results.
; As an example it shows all the steps in authentication and deactivation.

; It assumes the reader is at Security Level 4, with the DUKPT KSN
; counter set to 2.

09 00 ; Get current KSN (should be FFFF9876543210E00002)

; Send the Activate Authenticated Mode command (4 minutes)
10 02 00F0
Request : CMND=10, LEN=02, DATA=00 F0
Response : RC= 00, LEN=1A, DATA=FF FF 98 76 54 32 10 E0 00 03 AA AA AA AA AA AA AA
AA DD DD DD DD DD DD DD DD

Advertising