![Magtek MagneSafe V5 Скачать руководство пользователя страница 99](http://html1.mh-extra.com/html/magtek/magnesafe-v5/magnesafe-v5_reference-manual_3690792099.webp)
91
APPENDIX D. COMMAND EXAMPLES
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= 00, LEN=01, DATA=01
01 02 10 00 ; Set Interface to HID
Request : CMND=01, LEN=02, DATA=10 00
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 10 ; Get current interface (should return 0)
Request : CMND=00, LEN=01, DATA=10
Response : RC= 00, LEN=01, DATA=00
00 01 01 ; Get current USB SN
Request : CMND=00, LEN=01, DATA=01
Response : RC= 00, LEN=00, DATA=
01 05 01 31323334 ; Set USB SN to "1234"
Request : CMND=01, LEN=05, DATA=01 31 32 33 34
Response : RC= 00, LEN=00, DATA=
00 01 02 ; Get current Polling Interval
Request : CMND=00, LEN=01, DATA=02
Response : RC= 00, LEN=01, DATA=01
01 02 02 02 ; Set Polling Interval to 2 ms
Request : CMND=01, LEN=02, DATA=02 02
Response : RC= 00, LEN=00, DATA=
00 01 03 ; Get current Device Serial Number
Request : CMND=00, LEN=01, DATA=03
Response : RC= 00, LEN=00, DATA=
01 08 03 42303030373935 ; Set DSN to "B000795"
Request : CMND=01, LEN=08, DATA=03 42 30 30 30 37 39 35
Response : RC= 00, LEN=00, DATA=
00 01 05 ; Get current Track ID Enable
Request : CMND=00, LEN=01, DATA=05
Response : RC= 00, LEN=01, DATA=95
Содержание MagneSafe V5
Страница 8: ...viii...
Страница 84: ...MagneSafe V5 76...
Страница 96: ...MagneSafe V5 88...
Страница 98: ...MagneSafe V5 90...
Страница 132: ...MagneSafe V5 124...