![Magtek MagneSafe V5 Скачать руководство пользователя страница 82](http://html1.mh-extra.com/html/magtek/magnesafe-v5/magnesafe-v5_reference-manual_3690792082.webp)
MagneSafe V5
74
Get Battery Status Command (Wireless USB Reader Only)
Command number:
0x29
Description:
This command is used to get the status of the battery.
Data structure:
Request Data: None
Response Data:
Offset
Field Name
Description
0
Battery Status
Value of 0x00 indicates battery charge is low;
battery should be charged before further use. Value
of 0x01 indicates battery charge is sufficient for
normal use.
Result codes:
0x00 Success
Example
Get Battery Status
Request (Hex):
Cmd Num
Data Len
Data
29
00
Example
Get Battery Status
Response (Hex) (Charge is low):
Result Code Data Len
Data
00
01
00
Encrypt Bulk Data Command
Command number:
0x30
Description:
This command will encrypt up to a maximum of 120 bytes. The Data-
Response variant of the DUKPT key will be used to encrypt data. It will
also compute a MAC for the S/N, Num Bytes Encrypted, KSN and
Cryptogram. Data to be encrypted that are not a multiple of 8 bytes will be
padded with NULLs to be a multiple of 8.
The DUKPT key counter/pointer will be incremented before processing
this command.
Example Request (
Encrypt Bulk Data
) (Hex):
Cmd Num
Data Len
Data
30
05
01 02 03 04 05
Example
Encrypt Bulk Data
Response (Hex):
Result
Code
Data
Len
DSN (16 bytes)
Num Bytes
Encrypted
(1 byte)
KSN
(10 bytes)
Cryptogram
(8 bytes)
MAC
(4 bytes)
00
0x27
32 31 30 34 32 38
31 32
44 30 31 31 31 31
31 00
05
31 32 33
34 35 31
32 33 34
35
01 02 03 04
05 06 07 08
01 02 03
04
Содержание MagneSafe V5
Страница 8: ...viii...
Страница 84: ...MagneSafe V5 76...
Страница 96: ...MagneSafe V5 88...
Страница 98: ...MagneSafe V5 90...
Страница 132: ...MagneSafe V5 124...