This Appendix gives examples of command sequences and cryptographic operations. The intent is to clarify
any ambiguities the user might find in the body of the document. Each example shows a sequence as it actually
runs, thus the user can check algorithms against the examples to assure they are computing correctly.
Example 1: Configuring a reader before encryption is enabled (Security Level 2). In this example the
reader is set up for HID operation:
; This script demonstrates configuration commands for HID mode.
; It assumes the reader is at Security Level 2 and that the Device
; Serial Number has never been set.
00 01 10
; Get current interface
Request
: CMND=00, LEN=01, DATA=10
Response
: RC=
01 02 10 00
; Set Interface to HID
Request
: CMND=01, LEN=02, DATA=10 00
Response
: RC=
02 00
; Reset so changes take effect
Request
: CMND=02, LEN=00, DATA=
Response
: RC=
Delay
: (waited 5 seconds)
00 01 10
; Get current interface (should return 0)
Request
: CMND=00, LEN=01, DATA=10
Response
: RC=
00 01 01
; Get current USB SN
Request
: CMND=00, LEN=01, DATA=01
Response
: RC=
01 05 01 31323334 ; Set USB SN to "1234"
Request
: CMND=01, LEN=05, DATA=01 31 32 33 34
Response
: RC=
00 01 02
; Get current Polling Interval
Request
: CMND=00, LEN=01, DATA=02
Response
: RC=
01 02 02 02
; Set Polling Interval to 2 ms
Request
: CMND=01, LEN=02, DATA=02 02
Response
: RC=
00 01 03
; Get current Device Serial Number
Request
: CMND=00, LEN=01, DATA=03
Response
: RC=
01 08 03 42303030373935
Request
: CMND=01, LEN=08, DATA=03 42 30 30 30 37 39 35
Response
: RC=
00 01 05
; Get current Track ID Enable
Request
: CMND=00, LEN=01, DATA=05
Response
: RC=
APPENDIX D. COMMAND EXAMPLES
00, LEN=01, DATA=01
00, LEN=00, DATA=
00, LEN=00, DATA=
00, LEN=01, DATA=00
00, LEN=00, DATA=
00, LEN=00, DATA=
00, LEN=01, DATA=01
00, LEN=00, DATA=
00, LEN=00, DATA=
; Set DSN to "B000795"
00, LEN=00, DATA=
00, LEN=01, DATA=95
91
Need help?
Do you have a question about the MagneSafe V5 and is the answer not in the manual?