Magtek MICRSAFE Technical Reference Manual page 47

Table of Contents

Advertisement

Data structure:
Offset
0
1
2
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
04
Example Response (Hex):
Result Code
00
When both the key usage ID and the key modifier byte are set to 0xFF for
a given ASCII value, the ALT ASCII code is sent instead of the key map
values. The ALT ASCII code is a key press combination consisting of the
decimal value of the ASCII character combined with the ALT key
modifier. 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, and finally keypad '3' is
sent combined with the left ALT key modifier.
Request Data:
Field Name
Description
ASCII value
Value of the ASCII character to be set in
the key map. This can be any value
between 0 and 127 (0x7F). For example,
to set the key map item for ASCII character
'?' (card data end sentinel) use the ASCII
value of '?' which is 63 (0x3F).
Key Usage ID
The value of the USB key usage ID that is
to be mapped to the given ASCII value.
For example, for the United States
keyboard map, usage ID 56 (0x38)
(keyboard / and ?) is mapped to ASCII
character '?'. To change this to the ASCII
character '>' use usage ID 55 (0x37)
(keyboard . and >).
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).
Data Len
03
Data Len
00
Section 5. USB Communications
Data
3F 37 02
Data
39

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MICRSAFE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents