Ascii to keypress conversion type property (kb) – MagTek MagneSafe V5 User Manual

Page 50

Advertising
background image

MagneSafe V5

42


Example Get Active Keymap property Response (Hex):

Result Code Data Len

Prp Value

00

01

00


ASCII to Keypress Conversion Type Property (KB)

Property ID:

0x17

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

0x00 (keymap)

Description:

The value is a byte that represents the reader’s ASCII-to-keypress conversion
type. The value can be set to 0 for keymap (the active keymap is set with the
ACTIVE KEYMAP property) or to 1 for ALT ASCII code (international
keyboard emulation). When the value is set to 0 (keymap), data will be
transmitted to the host according to the active keymap which defaults to the
United States keyboard keymap. For example, to transmit the ASCII
character ‘?’ (063 decimal), the character is looked up in a keymap. For a
United States keyboard keymap, the ‘/’ (forward slash) key combined with the
left shift key modifier are stored in the keymap to represent the key press
combination that is used to represent the ASCII character ‘?’ (063 decimal).

When the value is set to 1 (ALT ASCII code), instead of using the key map, a
international keyboard key press combination consisting of the decimal value
of the ASCII character combined with the ALT key modifier is used. For
example, to transmit the ASCII character ‘?’ (063 decimal), keypad ‘0’ is sent
combined with left ALT key modifier, next keypad ‘6’ is sent combined with
the left ALT key modifier, last keypad ‘3’ is sent combined with the left ALT
key modifier. In general, if this reader only needs to emulate United States
keyboards then this property should be set to 0 (keymap). If this reader needs
to be able to emulate all country’s keyboards then this property should be set
to 1 (ALT ASCII code). The tradeoff is that the ALT ASCII code mode is
slightly slower than keymap mode because more key presses need to be
transmitted. Some applications are not compatible with ALT ASCII code
mode.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled. When this property is changed, the unit must be reset (see
Command Number 2) or power cycled to have these changes take effect.


Example Set ASCII To Keypress Conversion Type property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

02

17

00

Advertising