Save_custom_keymap command (kb) – MagTek USB MagnePrint Swipe Reader with Encryption User Manual

Page 53

Advertising
background image

Section 4. USB Communications

45

Offset Field

Name

Description

2

Key Modifier Byte The value of the USB key modifier byte

that is to be mapped to the given ASCII
value. For example, for the United States
keyboard map, modifier byte 0x02 (left
shift key) is mapped to ASCII character ‘?’.
To change this to the ASCII character ‘>‘
use modifier byte 0x02 (left shift key).

Response Data: None

Result codes:

0 (success)


The following example maps the card ASCII data end sentinel character ‘?’ to the ‘>‘ keyboard
key.

Example Request (Hex):

Cmd Num

Data Len

Data

04

03

3F 37 02

Example Response (Hex):

Result Code Data Len

Data

00 00


SAVE_CUSTOM_KEYMAP COMMAND (KB)

Command number:

5

Description:

This command is used to save the active key map as the custom key map
in non volatile memory. The active key map is determined by the active
key map property. Once a key map item is modified, the changes take
affect immediately. However, the changes will be lost if the device is
reset or power cycled. To make the changes permanent, the save custom
key map command must be issued. To use the new custom key map after
a reset or power cycle, the active key map property must be set to custom.

Data structure:

Request Data: None
Response Data: None

Result codes:

0 (success)


Example Request (Hex):

Cmd Num

Data Len

Data

05 00

Example Response (Hex):

Result Code Data Len

Data

00 00


Advertising