5127 902 E.3 Omnikey 5x27ck Keyboard Wedge User Guide
5127 902 E.3 Omnikey 5x27ck Keyboard Wedge User Guide
hidglobal.com
Copyright
© 2011 - 2019 HID Global Corporation/ASSA ABLOY AB. All rights reserved.
This document may not be reproduced, disseminated or republished in any form without the prior
written permission of HID Global Corporation.
Trademarks
HID Global, HID, the HID Brick logo, the Chain Design, HID Mobile Access, Indala, iCLASS, iCLASS SE,
Seos and OMNIKEY are the trademarks or registered trademarks of HID Global, ASSA ABLOY AB, or
its affiliate(s) in the US and other countries and may not be used without permission. All other
trademarks, service marks, and product or service names are trademarks or registered trademarks of
their respective owners.
MIFARE, MIFARE Classic, MIFARE DESFire, MIFARE DESFire EV1/EV2, and MIFARE Ultralight are
registered trademarks of NXP B.V. and are used under license.
Revision History
Date Description Version
November 2019 Added OK5127CK Reader Core information. Added note at end of E.3
section 2.2.5. Added extra configuration examples in section 6.
January 2019 Added information to support Service Pack 2 (FW 01.02.00f7) E.2
January 2018 Added information on OK5425 Gen2 and OK5127 Mini SP1 E.1
March 2016 Added information on OK5127CK-Mini. E.0
December 2014 Extra detail added to tech order setting. D.3
Contacts
For additional offices around the world, see www.hidglobal.com/contact/corporate-offices
2 November 2019
Contents
Chapter 1: Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2 Abbreviations and definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Firmware version information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Supported RFID technologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.1 LF technologies (125 kHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.2 HF technologies (13.56 MHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.3 Bluetooth support (OK5127CK-Mini, OK5427 Gen 2, and
OK5127 Reader Core) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5 Modes of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5.1 Ethernet Emulation Mode (EEM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5.2 CCID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.5.3 Keyboard Wedge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.5.4 Custom Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Chapter 2: Reader web-based management tool interface . . . . . . . . . . . . . . . . . . . . . . . . .13
2.1 Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.1.1 Ethernet Emulation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.1.2 Web browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2 Navigating the Reader Management Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.1 Accessing the web interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.2 Navigating the tabs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.3 Changing settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.2.4 Downloading and uploading configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2.5 Setting a web server password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.3 Card type processing priority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.4 Polling configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Chapter 3: Keyboard wedge mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.1 Card In event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.1.1 Card Out event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.2 Navigating the Keyboard Wedge configuration tabs . . . . . . . . . . . . . . . . . . . . . . . . 25
3.3 General Config tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3.1 KBW Enable options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.3.2 Global keystroke events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.3.3 Keyboard options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.3.4 Keyboard wedge encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.4 Card Data Selection tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
November 2019 3
5127-902, Rev E.3
4 November 2019
5127-902, Rev E.3
November 2019 5
5127-902, Rev E.3
A.10.1 Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.10.2 Key Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.10.3 Sector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.10.4 Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.10.5 Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.10.6 Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.11 MIFARE Ultralight Custom Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
A.11.1 Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
A.11.2 Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
A.11.3 Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
A.11.4 Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
A.12 MIFARE DESFire and MIFARE DESFire EV1 Custom Fields . . . . . . . . . . . . . . . . . . . .90
A.12.1 App ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.2 File Num. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.3 Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.4 Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.5 Card Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.6 Rdr Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.7 Auth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.8 File Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
A.12.9 File Comms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.13 MIFARE DESFire EV1 and MIFARE DESFire EV2 Custom Fields . . . . . . . . . . . . . . . 91
A.13.1 Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.13.2 Len . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.13.3 Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.13.4 AV1 Diversify (MIFARE DESFire EV1 only) . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.13.5 CT value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
A.14 PIV Specific Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.1 FASC-N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.2 GUID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.3 75-Bit GSA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.4 FASC-N Custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.5 FASC-N Custom Remove Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.14.6 FASC-N Reverse BCN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.15 CEPAS Custom Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
A.15.1 CAN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
6 November 2019
Chapter 1
Overview
HID Global's OMNIKEY® 5x27CK readers open new market opportunities for system integrators
seeking simple integration and development of readers using the standard Circuit Card Interface
Device (CCID).
With the keyboard wedge functionality, users of OMNIKEY 5x27 CK readers can retrieve data from a
card that is presented to the reader and directly input the card data into an application using
keystroke emulation. This eliminates the need for customers to manually enter the card data into an
application.
This guide explains how to setup the reader to use different card types in the Keyboard Wedge mode
using the web browser interface.
To use the reader browser interface, the EEM-USB driver must be installed. For installation
instructions, see the OMNIKEY 5x27CK Quick Start Guide (5127-901).
Note: HID provides various Service Packs for the OMNIKEY 5x27CK. Some functions have been
introduced with later Service Packs only. These exceptions are noted in this user guide. For
downloading the latest Service Pack for your OMNIKEY 5x27CK reader, access the Developer Center:
www.hidglobal.com/developer-center/omnikey-5x27ck.
Service Packs are available in the Downloads section, which requires a user account. Check the
firmware version of the OMNIKEY 5x27CK Reader from the General Overview tab in the built-in web
interface. See Section 2: Reader web-based management tool interface.
1.1 References
Document Number Description
5127-901 Quick Start Guide
5127-903 Software Developer Guide
AN0407 Firmware Upgrade
November 2019 7
Overview 5127-902, Rev E.3
In this document, to ease the ability to recognize the firmware version, numbering for Gen2 readers is
denoted with dots (e.g. 01.00.0019, where for Gen1 it would be 01000019).
8 November 2019
5127-902, Rev E.3 Overview
November 2019 9
Overview 5127-902, Rev E.3
1.4.3 Bluetooth support (OK5127CK-Mini, OK5427 Gen 2, and OK5127 Reader Core)
HID Seos credentials can be read from any phone which satisfies the following requirements:
Either Android version 4.3 or later or iOS 7 or later
Bluetooth 4.0
HID Mobile Access® app installed and running
This feature is available only on the OK5127CK-Mini, OK5127 Reader Core, and OMNIKEY 5427CK
Gen2 readers. It is not available on the original OK5127CK or OK5427CK.
10 November 2019
5127-902, Rev E.3 Overview
1.5.2 CCID
CCID is mainly used for read/write applications or with hosts that cannot support a keyboard input.
CCID required an intelligent host and operates as a transparent PC/SC - CCID reader where the host
controls every aspect of the card communication.
CCID mode must be active in order to create an OMNIKEY 5x27 configuration card as this requires
read/write capability.
CCID mode cannot be operational when Keyboard Wedge mode is operational.
Enumeration
In CCID mode, the OMNIKEY 5427 enumerates with the OS as a Smart Card Reader.
November 2019 11
Overview 5127-902, Rev E.3
12 November 2019
Chapter 2
Reader web-based management tool interface
The OMNIKEY® 5x27CK Reader has a built in, web based management tool that can be used to
configure many aspects of the reader performance and behavior. This section provides a brief
explanation of all the tabs, and the basic functions found under each tab for easy navigation and use.
Note: Due to how the Windows OS manages instances of devices, HID recommends that a single
5427CK device is used to build configurations. The configurations should be applied via configuration
cards on a different host OS device. If this cannot be done, care must be taken to manage the device
instances in Windows to prevent computer issues.
2.1 Setup
The web based management tool is intended to allow users to configure device operating parameters
manually with an intuitive UI that is easy to understand.
The Web Based UI is simply a user friendly interface which sends commands over to the reader over
the EEM HTTP channel. The commands it uses are all documented in the OMNIKEY 5X27CK Software
Developer Guide (5127-903).
HID suggests all integrators implement configuration/firmware upgrade capability.
When using CCID, it us strongly suggested that you investigate the Abstraction layer command
ProcessKeyboardWedge, documented in the OMNIKEY 5X27CK Software Developer Guide (5127-
903). This will often greatly simplify your application, as it transfers much of the sequential process of
reading specific data from cards to the reader. It also makes testing and debugging easier.
November 2019 13
Reader web-based management tool interface 5127-902, Rev E.3
14 November 2019
5127-902, Rev E.3 Reader web-based management tool interface
Intended User
Tab Description
Level
General Overview A quick overview of reader information to include Main Novice
Firmware Version, MAC Address, UID of the reader, No. of
CCID slots and the Contactless Card ATR.
Keyboard Wedge Keyboard Wedge Setup Parameters. Novice
Reader Information Full view of the reader firmware and hardware state. Novice
Contactless Config RF, BLE and LED/Buzzer register settings. Novice
Host Interfaces Host interface configuration items for USB and Ethernet Advanced
Emulation Mode.
System Config Reader configuration and firmware management to include: Firmware and
Apply, Reset and Store configuration changes Configuration
Reset all configuration to factory default
Parameters: Novice
Load and download complete configuration files
Manage firmware
Change of access
levels: Advanced
Change access levels with passwords
November 2019 15
Reader web-based management tool interface 5127-902, Rev E.3
2. Press Enter to finalize text field changes including special characters such as [ENTER].
3. Navigate to the System Config tab and click Apply Changes. The changed configuration
parameters revert to black
Note: The Reboot System button is only necessary when changing operational modes (CCID,
Keyboard Wedge, Custom Report) so the reader can re-enumerate with the host system as the
proper device, and when changing configuration parameters under the Host Interface tab (Changing
Ethernet Settings, Enabling UART, etc.). Click Reboot System only after clicking Apply Changes.
16 November 2019
5127-902, Rev E.3 Reader web-based management tool interface
4. Rename the file to be specific to the configuration for future reference (the file will always be
named ok5x27ck.cfg upon download).
November 2019 17
Reader web-based management tool interface 5127-902, Rev E.3
2. Search for the configuration file in Windows Explorer, select the file and click Open.
Note: Please bear in mind that a MIFARE DESFire Configuration card will update only the
parameters available in the web server UI, and does not load keys, change Indala® format, etc.
Please contact a HID Sales, Presales Engineer or Field Applications Engineer for more details.
18 November 2019
5127-902, Rev E.3 Reader web-based management tool interface
If you prefer, this can also be done by sending the following APDU to the reader:
November 2019 19
Reader web-based management tool interface 5127-902, Rev E.3
Login screen
Once a password is set, you will be automatically be presented with a log in screen on accessing the
webserver. To login, enter the password created previously. If the password is entered incorrectly
there will be a delay of several seconds before the password can be entered again.
Note: If Other ISOxxx is configured as the highest priority, the only output reported will be the CSN of
the smartcard.
Note: It is best practice to place at the top of the priority list the card type that is the primary card at
the installation. This will reduce the processing time for the card type and associated data.
20 November 2019
5127-902, Rev E.3 Reader web-based management tool interface
November 2019 21
Reader web-based management tool interface 5127-902, Rev E.3
1. Clear unused RF
protocols.
2. Change priority table.
3. Change polling
frequency to optimize
speed and response of
reader.
2
1
Speak to an HID Sales, Presales Engineer or Field Application Engineer for further information.
Note: Take account of the Polling Config settings in the Contactless Config menu. Disabling a card
type in the Card Type drop-down of the Card Data Selection tab will not prevent the reader from
polling for that card type. Deselecting the card type means only that the card data will not be
processed through the keyboard wedge interface.
Note: It is suggested to experiment with lower RF Tx/Rx rates to better stabilize the RFID interface.
Most applications will not exhibit a major difference between 106 kbps and 424 kbps. This is because
the error rate becomes greater at higher Tx/Rx rates. It is recommended to change ISO14443A/B and
FeliCa to lower rates.
For multi-technology cards, the card type detected is dependent on where the reader is in its polling
cycle when the card is presented. Therefore, for card populations involving multi-technology cards,
ensure the unwanted card type is switched off in both the Polling Config and Card Data Selection
tabs.
22 November 2019
Chapter 3
Keyboard wedge mode
This section describes the embedded web-based OMNIKEY® 5x27CK Reader Management tool for
Keyboard Wedge. The default configuration for the OMNIKEY 5x27CK is CCID mode. Before using the
Keyboard Wedge Mode, enable Keyboard Wedge in the Keyboard Wedge tab.
Keyboard wedge operation is a highly configurable read-only application of the reader. Care should be
taken to configure the product correctly, and to enable only the card technologies and data that are
needed at each installation, to lower the likelihood and/or prevent rogue credentials from being
introduced to the application.
The ProcessKeyboardWedge command detailed in the OMNIKEY 5X27CK Software Developer Guide
(5127-903) is the HID recommended implementation.
November 2019 23
Keyboard wedge mode 5127-902, Rev E.3
Separate data fields from each other by using pre- and post-strokes (Out2 Data Manipulation tab).
24 November 2019
5127-902, Rev E.3 Keyboard wedge mode
Tab Description
General Config Use this tab to enable and setup general keyboard wedge operational parameters.
Card Data Selection Use this tab to enable and disable card technologies and select the data to be read
from the card and reported across the keyboard interface automatically.
Input Data Manipulation Use this tab to configure how the data selected in the Card Data Selection tab is
output across the keyboard interface (Input -> input data from card to reader)
(bit padding, binary/byte reverse, logic operations)
Out 1 Data Manipulation Use these tabs to configure string operations performed on data received from the
card, which is output across the keyboard interface. This includes the format of the
Out 2 Data Manipulation
output string, filtering, truncating, padding, pre- and post-strokes.
Note: The Card Data Selection, Input Data Manipulation, Out 1 Data Manipulation and Out 2 Data
Manipulation tabs work together for the specified card technology. When changing the settings for
the data output in any of the Manipulation tabs, you are changing the output configuration for the
active card technology in the Card Data Selection tab.
November 2019 25
Keyboard wedge mode 5127-902, Rev E.3
KBW
Enable Keyboard
Options
Global
Keystroke
Events
26 November 2019
5127-902, Rev E.3 Keyboard wedge mode
In cases where the data length, version, and byte length combine to less than the USB packet
size (40 bytes), additional zeros are added for the remaining length.
HID suggests the use of this mode of operation, or using the ProcessKeyboardWedge command in
PC/SC-CCID mode when connected to a computer or other device. See OMNIKEY 5X27CK Software
Developer Guide (5127-903).
Many people view this as a higher security option over keyboard wedge, since nobody can remove
the reader and attach it to a computer to see the data being output by the reader. However, most
people use only the “Card Number” from HID PACS Data for non-PACS applications throughout the
enterprise (e.g. cafeteria, payment, library, secure print, etc.) so security is dependent upon the
application and risk model.
Boot Interface
The Boot Interface option allows the device to advertise support for the keyboard boot interface in
its HID device descriptor when it enumerates as a keyboard device. If enabled, the device is
operational on host systems that only have minimal USB device handling, without support for full
USB descriptor parsing.
November 2019 27
Keyboard wedge mode 5127-902, Rev E.3
28 November 2019
5127-902, Rev E.3 Keyboard wedge mode
7. For the Load Key Layout setting, click Browse and select the layout file provided by technical
support.
8. Click Load Key Layout.
November 2019 29
Keyboard wedge mode 5127-902, Rev E.3
30 November 2019
5127-902, Rev E.3 Keyboard wedge mode
November 2019 31
Keyboard wedge mode 5127-902, Rev E.3
32 November 2019
5127-902, Rev E.3 Keyboard wedge mode
Note: PACS Leading Byte was added to the OMNIKEY 5x27 to support the HEX data output, only to
enable the OEM application to easily determine the actual PACS data programmed on the card.
Note: The PACS Leading byte will affect all data output formats.
November 2019 33
Keyboard wedge mode 5127-902, Rev E.3
34 November 2019
5127-902, Rev E.3 Keyboard wedge mode
November 2019 35
Keyboard wedge mode 5127-902, Rev E.3
36 November 2019
5127-902, Rev E.3 Keyboard wedge mode
November 2019 37
Keyboard wedge mode 5127-902, Rev E.3
38 November 2019
5127-902, Rev E.3 Keyboard wedge mode
November 2019 39
Keyboard wedge mode 5127-902, Rev E.3
40 November 2019
5127-902, Rev E.3 Keyboard wedge mode
In normal keyboard wedge mode over USB, [CTRL] preceding another character will generate the
corresponding keypress. However, when using the serial UART output, the corresponding ASCII
control character will be sent according to the following table.
Pre / Post ASCII Dec Hex Pre / Post ASCII Dec Hex
Stroke Control Stroke Control
Characters Character Characters Character
[CTRL]@ NUL 0 00 [CTRL]P DLE 16 10
[CTRL]A SOH 1 01 [CTRL]Q DC1 17 11
[CTRL]B STX 2 02 [CTRL]R DC2 18 12
[CTRL]C ETX 3 03 [CTRL]S DC3 19+ 13
[CTRL]D EOT 4 04 [CTRL]T DC4 20 14
[CTRL]E ENQ 5 05 [CTRL]U NAK 21 15
[CTRL]F ACK 6 06 [CTRL]V SYN 22 16
[CTRL]G BEL 7 07 [CTRL]W ETB 23 17
[CTRL]H BS 8 08 [CTRL]X CAN 24 18
[CTRL]I TAB 9 09 [CTRL]Y EM 25 19
[CTRL]J LF 10 0A [CTRL]Z SUB 26 1A
[CTRL]K VT 11 0B [CTRL][ ESC 27 1B
[CTRL]L FF 12 0C [CTRL]\ FS 28 1C
[CTRL]M CR 13 0D [CTRL]] GS 29 1D
[CTRL]N SO 14 0E [CTRL]^ RS 30 1E
[CTRL]O SI 15 0F [CTRL]_ US 31 1F
For example, to generate a CR and LF in the serial output, place [CTRL]M[CTRL]J in the pre or post
stroke string.
November 2019 41
Keyboard wedge mode 5127-902, Rev E.3
42 November 2019
5127-902, Rev E.3 Keyboard wedge mode
3.7.4.2 [LED_BUZZ]
The LED_BUZZ character provides the capability to control the LED and Buzzer sequence timing to
provide a customized user experience. Each instance of an LED_BUZZ character is placed in the pre
or post strokes field. The Card Access LED and Buzzer sequence will initiate as configured in the
LEDs & Buzzer tab in the Contactless Config tab.
To enable this feature, the Legacy keyboard wedge LED & Buzzer behavior option must be cleared.
November 2019 43
Keyboard wedge mode 5127-902, Rev E.3
44 November 2019
Chapter 4
Custom Report mode
Custom Report mode requires that KBW is enabled within the reader. It outputs the configured data
as raw HEX (ASCII) over the basic USB Human Interface Device class interface.
Custom Report is considered to be a higher security interface option, as somebody must have
additional knowledge to interact with a HID Class device.
Custom Report is not mirrored across the UART.
Custom Report is a simplistic interface that does not completely mirror Keyboard Wedge. Specifically,
the output exposes the operation of the reader. Card In Event Keystrokes, Prestrokes, Data,
Poststrokes and Card Out Events are all separate executions by the reader.
November 2019 45
Custom Report mode 5127-902, Rev E.3
46 November 2019
5127-902, Rev E.3 Custom Report mode
Notes:
Wait approximately 10 seconds before removing the card. The packet timing between packet 7
and 9 (Poststroke and Card Out Events) is dependent on this timing.
Notice that the even packets are not shown; these packets are the host issuing the HID Get
Report Command.
In Custom Report mode, the [ENTER] special character is ASCII “Start of Text”, while in
Keyboard Wedge mode/UART, the ASCII representation for the special character is 0x0A,
which is “NL line feed, new line”. This highlights to software developers that differences exist.
Card In, Prestroked, Data output, Poststroked and Card Out events are all treated as separate
interrupt transfers.
The reader firmware is designed to read, process, and buffer the data, then output Prestroked
(Event 1), Data (Event 2), and Poststrokes (Event 3). Notice that this event execution is separate
from Card In and Out Events, which are directly tied to inserting and removing the card from
the reader’s magnetic field.
November 2019 47
Custom Report mode 5127-902, Rev E.3
48 November 2019
Chapter 5
Additional settings
Step 6 Step 2
Step 1
Step 4
Step 5
Step 3
November 2019 49
Additional settings 5127-902, Rev E.3
Note: Always ensure that you end the card access sequence with the beginning state of the
USB Ready Sequence, to ensure a smooth transaction, and that the colors are reset to the USB
Ready state as shown above. This will prevent an unwanted buzzer/LED state remaining after
the sequence has completed. See Section 5.1.3.1: Incorrect LED/buzzer sequence.
3. Select Run Sequence to test the sequence.
Observe the LED and buzzer behavior to make sure everything is set up correctly. Repeat step 2
and this step as needed.
4. Once the sequence and timing is correct, select Save Sequence to save the sequence to
memory.
5. In the Sequence Repeat field, enter the number of times, from 0 to 255, that the LED and
buzzer sequence will repeat.
Note: 255 means that this is a permanent change. Thus the value of 255 should only be used for
static events such as USB Ready and No USB.
6. Clear Manual LED & buzzer control to allow the sequence to run automatically on every event.
50 November 2019
5127-902, Rev E.3 Additional settings
To stop the buzzing, present a card to the reader and then remove it.
Presenting a card will cause constant buzzing while the card is in the field. Buzzing will stop when
the card is removed from the field.
November 2019 51
Additional settings 5127-902, Rev E.3
TFTP Enable
When TFTP is disabled, the TFTP capabilities of the reader are no longer allowed. For additional
information on TFTP, see the OMNIKEY 5x27CK Software Developer Guide (5127-903).
IP Host Name
52 November 2019
5127-902, Rev E.3 Additional settings
The IP hostname is configurable using the IP Host Name text box. The IP Hostname is limited to 15
characters in length.
EEM Enable
When the EEM Enable option is selected, the OMNIKEY 5x27 will enumerate as a network adapter
and the host/user may access the Web Based Management tool. When not selected (disabled), the
Web Based management tool is not accessible.
November 2019 53
Additional settings 5127-902, Rev E.3
54 November 2019
Chapter 6
OMNIKEY® 5x27 configuration examples
8. Open a text editor and place the iCLASS Sample card into the RFID field over the antenna of
the reader.
9. The Keyboard Wedge enters into the editor the word Start followed by the PACS data in
hexadecimal format, for example: Start07FFE00002
November 2019 55
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
8. Open a text editor and place the MIFARE 1k Sample card into the RFID field over the antenna of
the reader.
9. The Keyboard wedge enters into the editor the word Start followed by the CSN data in
hexadecimal format and the word End, for example: Start7D1BF3AEEnd
56 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
11. Open a text editor and place the iCLASS Sample card into the RFID field over the antenna of
the reader.
November 2019 57
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
12. The Keyboard Wedge enters into the editor the text <pacs> followed by the filtered PACS data
in hexadecimal format followed by the text </pacs>. For example:
58 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
12. Open a text editor and place an HID Prox card into the RFID field over the antenna of the
reader:
If the data on the card is: 10000000100000000001001111
The output in the editor will be: PROXffffffffffff0202004fEND
November 2019 59
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
60 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
6. Open a text editor and place an HID iCLASS card into the RFID field over the antenna of the
reader. The data must be written similarly to the example below:
FC = 10__CN = 5723__
November 2019 61
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
62 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
6.7 HID PROX 26-bit format H10301 facility code and user ID
(decimal output).
In this example, the number on the card is 99 (decimal).
November 2019 63
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
3. Select the Out 1 Data Manipulation tab and make the following settings:
Bit positions: 0 1 8 9 24 25
PACS: 1 00000001 0000000001100011 1
64 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
November 2019 65
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
4. Select the Out 2 Data Manipulation tab and make the following settings:
Bit positions: 0 1 8 9 24 25
PACS: 1 00000001 0000000000001001 1
66 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
6.9 iCLASS H10304 format facility code and user ID (decimal output)
In this example, the number on the card is 1.
1. Select the Keyboard Wedge tab.
2. Select the Card Data Selection tab and make the following settings:
November 2019 67
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
3. Select the Out 1 Data Manipulation tab and make the following settings:
68 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
Bit positions: 1 2 17 18 36 37
PACS: 1 0000000000000001 0000000000000000001 0
Note: The same formatting can be used with HID Prox or other cards using the H10301 format.
November 2019 69
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
6.10 MIFARE Classic 26-bit format facility code and user ID (decimal
output)
In this example, the number on the card is 90 (decimal).
70 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
3. Select the Out 1 Data Manipulation tab and make the following settings:
Bit positions: 0 1 8 9 24 25
PACS: 1 00000001 0000000001011010 1
November 2019 71
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
Note: CSN is set to show only for demonstration purposes, and is not necessary for reading
custom data.
72 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
3. Select the Out 1 Data Manipulation tab and make the following settings:
4. Select the Out 2 Data Manipulation tab and make the following settings:
November 2019 73
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
74 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
3. Select the Out 1 Data Manipulation tab and make the following settings:
November 2019 75
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
The binary PACS can be interpreted as shown below, to obtain the facility data 43 (decimal), where
parity bits are purple, facility code is not required, and card number is red:
Bit positions: 1 2 36 37
PACS: 0 00000000000000000000000000000101011 1
76 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
Note: Although Ultralight pages are only 4 bytes long, you can specify any length, as the
reader will read subsequent pages until it has enough bytes.
3. Select the Out 1 Data Manipulation tab and make the following settings:
November 2019 77
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
3. Select the Out 1 Data Manipulation tab. To see the FeliCa IDm (CSN), select HEX/DEC/ASCII
depending on the required output:
78 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
Since the data on the card is in hex, the other settings in the Card Data Manipulation tab can remain
at their defaults. On this sample card this produces the output:
0123456780
November 2019 79
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
6.16 Seos credentials, corporate 1000 format, facility code and user ID
(decimal output)
In this example, the Seos card data is:
Corporate 1000 format
Facility Code: 0x000FFF (4095 decimal)
User ID/Card Number: 0x000001 (1 decimal)
To read the facility code and card number, it is necessary to configure Keyboard Wedge as follows.
1. Select the Keyboard Wedge tab.
2. Select the Card Data Selection tab and make the following settings:
3. Select the Out 1 Data Manipulation tab and make the following settings:
80 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
4. Select the Out 2 Data Manipulation tab and make the following settings:
November 2019 81
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
82 November 2019
5127-902, Rev E.3 OMNIKEY® 5x27 configuration examples
3. Select the Out 2 Data Manipulation tab and make the following settings:
This allows all data from block 3 to be read from the card, and produces the following output:
Custom Data: 00000000000fff078069ffffffffffff
November 2019 83
OMNIKEY® 5x27 configuration examples 5127-902, Rev E.3
84 November 2019
Appendix A
Description of fields
Note: All numerical data fields (e.g. Length, Offset, File Num etc.) can be entered either in decimal or
in hex. Hex value needs to be prefixed with “0x”.
A.3 Pre-strokes
Note: From firmware version 01.02.00f7, this field has moved from Card Data Selection to the Out 2
Data Manipulation tab.
There is a pre-strokes setting for every keyboard wedge data field (e.g. CSN, PACS, custom data, etc.).
These keystrokes are sent before outputting the data for each field. By default, pre-strokes will not be
output if an error occurs reading a field. However, this is not the case if the Tech Order option is
disabled and the Allow Pre-strokes and Post-strokes for Errors option is enabled.
A.4 Post-strokes
Note: From firmware version 01.02.00f7, this field has moved from Card Data Selection to the Out 2
Data Manipulation tab.
These behave the same as pre-strokes, except that they are output after the data for the relevant field
rather than before.
November 2019 85
Description of fields 5127-902, Rev E.3
A.5 CSN
This option enables the outputting of the serial number obtained during anti-collision.
A.6.1 Reverse
This option allows reversing of CSN data. There are two different reverse options: byte and binary.
Each is described in Section 3.6: Input Data Manipulation tab.
A.6.2 Offset
The offset specifies the position, in bits, within the CSN data from which to start outputting data.
Any value between zero and the length of the CSN data is allowed.
A.6.3 Length
The length option specifies the number of bits of CSN data, starting from the offset value, to output.
A.7 PACS
This option is enabled only for card types which may contain HID PACS data (MIFARE Classic,
iCLASS®, Seos®, BLE Seos, MIFARE DESFire EV1) and LF card types. The option enables the output of
the whole of the PACS contained on the card.
A.8.1 Offset
The offset specifies the position in the PACS data, in bits, from which to start outputting data. Any
value between zero and the length of the PACS data is allowed.
A.8.2 Length
The length option specifies the number of bits of PACS data, starting from the offset value, to
output.
86 November 2019
5127-902, Rev E.3 Description of fields
A.9.1 Key
This is the number of the key slot that the key was loaded to in order to authenticate to the card.
Although any value in the range 0-255 will be accepted, the reader normally expects iCLASS keys to
be loaded to slots in the range 33-52.
A.9.3 Book
This is the book address of the iCLASS card to read. The only valid value for 2KS and 16KS cards is
zero. For 32KS cards, the value can be zero or one.
A.9.4 Page
This is the page address of the chosen iCLASS book from which to start reading:
For 2KS cards, or books of 16KS or 32KS cards configured with a single page per book, the only
valid value is zero.
If the book is configured with multiple pages per book, then the valid values are zero to seven.
A.9.5 Block
The block option specifies the block of the page to start reading data from. For 2K pages the valid
values are 0 to 31 and for 16K pages the valid values are 0 to 255.
A.9.6 Offset
The offset specifies the position within the block, in bytes, at which to start reading the data.
Although the size of an iCLASS block is eight bytes, values in the range 0 to 255 bytes are accepted.
If the offset is greater than the size of the block, then the keyboard wedge will move into the
following blocks until the offset has been reached.
A.9.7 Length
The length specifies the number of bytes to read from the card. The maximum allowed length is 255
bytes. If the number of bytes is greater than the block size (8 bytes), then the keyboard wedge will
continue to read the following blocks until the correct number of bytes have been read. However,
the keyboard wedge will not be able to continue if the end of the application is reached, as a
different key will be needed to authenticate.
November 2019 87
Description of fields 5127-902, Rev E.3
A.10.3 Sector
This is the sector address of the MIFARE Classic card to read:
For MIFARE Classic 1K, the sector value can be between 0 and 15, inclusive.
For MIFARE Plus 2K, cards can have sector values from 0 up to and including 31.
For MIFARE 4K, the value can be anything up to and including 39.
A.10.4 Block
The block option specifies the block of the sector to start reading data from:
For sector values up to and including fifteen, the block can be anything from zero up to and
including three.
For sectors greater than fifteen, the blocks can be anything from 0 up to and including fifteen.
The block value range is card dependent; please refer to MIFARE card specifications.
A.10.5 Offset
The offset specifies the position within the block, in bytes, at which to start reading the data.
Although the size of a MIFARE block is sixteen bytes, values in the range 0 to 255 bytes are
accepted. If the offset is greater than the size of the block then the keyboard wedge will move into
the following blocks until the offset has been reached.
A.10.6 Length
The length specifies the number of bytes to read from the card. The maximum allowed length is 255
bytes. If the number of bytes is greater than the block size (16 bytes), then the keyboard wedge will
continue to read the following blocks until the correct number of bytes have been read. However,
the keyboard wedge will not be able to continue if the end of the sector is reached, as a different
key will be needed to authenticate.
88 November 2019
5127-902, Rev E.3 Description of fields
A.11.2 Page
The page option specifies the page to start reading data from:
For standard Ultralight, the page can be in the range 0 to 15.
For Ultralight C, the page value can be up to and including 39.
Note: Although Ultralight C memory continues up to page 47, the remaining pages are not
readable.
The value can be entered either in decimal or in hex (by placing "0x" before the hex value).
A.11.3 Offset
The offset specifies the position within the page, in bytes, at which to start reading the data.
Although the size of an Ultralight page is four bytes, values in the range 0 to 255 bytes are
accepted. If the offset is greater than the size of the page, the keyboard wedge will move into the
following pages until the offset has been reached.
A.11.4 Length
The length specifies the number of bytes to read from the card. The maximum allowed length is 255
bytes. If the number of bytes is greater than the page size (4 bytes), then the keyboard wedge will
continue to read the following pages until the correct number of bytes have been read. However,
the keyboard wedge will not produce any output if an attempt to read beyond the end of the card
memory is made.
November 2019 89
Description of fields 5127-902, Rev E.3
A.12.3 Offset
This is treated the same as the offset parameter used by the MIFARE DESFire read commands. For
reading standard data or backup data files, it specifies the position within the file, in bytes, from
which the read will start. For value files, the value should be less than or equal to four bytes. For
record files, it specifies the first record to start reading from.
A.12.4 Length
This is treated the same as the length parameter used by the MIFARE DESFire read commands. For
reading standard data or backup data files, it specifies the number of bytes to read in bytes. For
value files, it must be in the range 0 to 4 bytes inclusive. For record files it specifies the number of
records to read.
A.12.7 Auth
This should be enabled if the file requires authentication to be read, for example if the access
conditions for the file do not specify free access.
90 November 2019
5127-902, Rev E.3 Description of fields
A.13 MIFARE DESFire EV1 and MIFARE DESFire EV2 Custom Fields
A.13.1 Start
This is treated the same as the offset parameter used by the MIFARE DESFire read commands. For
reading standard data or backup data files it specifies the position within the file, in bytes, from
which the read will start. For value files, the value should be less than or equal to four bytes. For
record files, it specifies the first record to start reading from.
A.13.2 Len
This is treated the same as the length parameter used by the MIFARE DESFire read commands. For
reading standard data or backup data files, it specifies the number of bytes to read in bytes. For
value files, it must be in the range 0 to 4 bytes inclusive. For record files, it specifies the number of
records to read.
A.13.3 Encryption
The encryption option specifies the algorithm to use for encryption during authentication, message
signing (MACing) and message encryption.
The option DES/3DES should be used for both two key triple DES and single key triple DES.
For three key triple DES, the option 3K3DES should be chosen.
AES encryption is also supported via the AES option.
A.13.5 CT value
The CT value (cascade tag) is the value (combined with card’s UID) used for the key diversification
algorithm. This parameter works in collaboration with the AV1 Diversity field. Depending on the
chosen algorithm, the key number (KN) or cascade tag (CT) is used. By default, the CT value is
equal to 0x88. It is possible for you to specify a different value used for diversification, in the CT
value field.
November 2019 91
Description of fields 5127-902, Rev E.3
A.14.2 GUID
If enabled, this outputs the entire Global Unique Identifier (GUID). The GUID is part of the CHUID.
Refer to the document, Technical Implementation Guidance: Smart Card Enabled Physical Access
Control Systems from the US Government Smart Card Interagency Advisory Board for further
details.
92 November 2019
Appendix B
Extended ASCII character set
The following character set is used for extended ASCII character codes from 128 to 254.
ASCII Unicode Char ASCII Unicode Char ASCII Unicode Char ASCII Unicode Char
(dec) (dec) (dec) (dec)
128 00C7 Ç 160 00E1 á 192 2514 └ 224 03B1 α
129 00FC ü 161 00ED í 193 2534 ┴ 225 00DF ß
130 00E9 é 162 00F3 ó 194 252C ┬ 226 0393 Γ
131 00E2 â 163 00FA ú 195 251C ├ 227 03C0 π
132 00E4 ä 164 00F1 ñ 196 2500 ─ 228 03A3 Σ
133 00E0 à 165 00D1 Ñ 197 253C ┼ 229 03C3 σ
134 00E5 å 166 00AA ª 198 255E ╞ 230 00B5 µ
135 00E7 ç 167 00BA º 199 255F ╟ 231 03C4 τ
136 00EA ê 168 00BF ¿ 200 255A ╚ 232 03A6 Φ
137 00EB ë 169 2310 ⌐ 201 2554 ╔ 233 0398 Θ
138 00E8 è 170 00AC ¬ 202 2569 ╩ 234 03A9 Ω
139 00EF ï 171 00BD ½ 203 2566 ╦ 235 03B4 δ
140 00EE î 172 00BC ¼ 204 2560 ╠ 236 221E ∞
141 00EC ì 173 00A1 ¡ 205 2550 ═ 237 03C6 φ
142 00C4 Ä 174 00AB « 206 256C ╬ 238 03B5 ε
143 00C5 Å 175 00BB » 207 2567 ╧ 239 2229 ∩
144 00C9 É 176 2591 ░ 208 2568 ╨ 240 2261 ≡
145 00E6 æ 177 2592 ▒ 209 2564 ╤ 241 00B1 ±
146 00C6 Æ 178 2593 ▓ 210 2565 ╥ 242 2265 ≥
147 00F4 ô 179 2502 │ 211 2559 ╙ 243 2264 ≤
148 00F6 ö 180 2524 ┤ 212 2558 ╘ 244 2320 ⌠
149 00F2 ò 181 2561 ╡ 213 2552 ╒ 245 2321 ⌡
150 00FB û 182 2562 ╢ 214 2553 ╓ 246 00F7 ÷
151 00F9 ù 183 2556 ╖ 215 256B ╫ 247 2248 ≈
152 00FF ÿ 184 2555 ╕ 216 256A ╪ 248 00B0 °
153 00D6 Ö 185 2563 ╣ 217 2518 ┘ 249 2219 ∙
154 00DC Ü 186 2551 ║ 218 250C ┌ 250 00B7 ·
155 00A2 ¢ 187 2557 ╗ 219 2588 █ 251 221A √
156 00A3 £ 188 255D ╝ 220 2584 ▄ 252 207F ⁿ
157 00A5 ¥ 189 255C ╜ 221 258C ▌ 253 00B2 ²
158 20A7 ₧ 190 255B ╛ 222 2590 ▐ 254 25A0 ■
159 0192 ƒ 191 2510 ┐ 223 2580 ▀
November 2019 93
hidglobal.com