Keyboard Emulation outputs completed transaction data as USB HID keyboard keystrokes using host-configurable formats, rather than formats hardcoded in firmware. When a transaction completes, the Keyboard Emulation Task identifies the producer, applies that producer’s Output Profile, and builds the final output string for HID. Keyboard Emulation works on its own: it types the data from any transaction, whether the host starts it with Command 0x1001, the cardholder starts it from the touchscreen (DynaFlex PED), or Automatic Transaction Start (ATS) starts it. ATS is the recommended way to start transactions when no host application is present, and is described later in this guide.
Already familiar with Keyboard Emulation? Setup Checklists at the end of this guide summarizes every setting: what is required, what is optional, and the differences between DynaFlex II Go and DynaFlex PED.
An Output Profile is a group of OIDs under Keyboard Emulation Settings:
Supported producers include:
EMV Contact
EMV Contactless
EMV MSR
EMV Manual Entry
MSR (Non-Financial)
Each producer has its own Output Profile. See Components 1–5 for the OID definitions.
The tables below list the Output Profile for each data producer. Each profile identifies the Select Data, Select TLV or Select Field, and Format Output OIDs that apply to that producer. Each OID is described in Components 1–5 below. NOTE: EMV producers also use OID 1.2.8.1.2.2 (EMV Subtype Enable) to select ARQC and/or Batch output.
The matrix below summarizes which Output Profile roles apply to each producer. A check mark means that producer uses the corresponding OID role; a dash means it does not. EMV financial producers use and do not use . Non-financial producers use Select Field and do not use Select TLV. All listed producers use and a OID.
The diagram shows the high-level transaction flow through the system. The Transaction Task begins by determining the Reader Path based on the type of input received. Depending on the selected path, the transaction is processed through EMV/Contact/Contactless, MSR, BCR, or NFC/MIFARE handling logic. Once the selected reader path finishes processing and the transaction data is available, the system signals Data Ready. The Keyboard Emulation Task then reads the data, formats it, and outputs it over USB according to the configured TLV-based format.
Instead of hardcoding USB keyboard output formats, the new design stores formatting rules as TLVs. For readability, the logical output structure can be represented as:
The TLV structure defines which fields are included and how they appear in the final output. If a TLV is present, it is included in the output. If a TLV is not present, it is ignored. This allows a single transaction type to support many different keyboard output formats without requiring firmware changes. In the example below, ‘Prefix’ is omitted
EMV | ARQC | - | Delimiter | Data | Suffix
Each output field is controlled by a corresponding TLV. The TLV determines both whether the field is included in the final output and what data is used for that field. Some fields are binary enable/disable fields. These TLV typically contain a one-byte value such as 0x00 or 0x01.
0x00 = Do not include the field in the output
0x01 = Include the field in the output
For example, the Type field uses a binary TLV value. If the Type tag is set to enabled, the firmware inserts the ASCII name of the transaction type into the output string, like “emv”, “non-financial”, or “pei”. If the tag is not present, or if its value is disabled, the field is omitted.
Some fields are ASCII string based. These tags contain the exact text that should be inserted into the output string. If the tag is present and contains data, the field is automatically included. Examples include Prefix, Suffix, Delimiter etc.
This approach provides flexibility because binary tags control whether dynamic transaction data fields are included, while ASCII tags allow fixed text to be inserted directly into the output.
This section contains settings that control the behavior of the emulated USB keyboard. These settings define how the keyboard interface operates at the hardware and firmware level, including items such as keyboard emulation rate, HID configuration, and other parameters that affect how quickly and reliably data is transmitted to the host system.
– Required. Turns USB keyboard emulation on. When on, eligible transaction data is typed as USB HID keystrokes; when off, data follows the standard MMS path. Default Off. Takes effect after a power cycle.
– Optional. Sets how long each key is held, 1–40 ms. Lower values type faster (1 ms is about 195 characters per second); raise it if the host drops characters. Default 7 ms.
– Optional. When an iPhone or iPad sees a USB keyboard, it hides its on-screen keyboard. iOS Keyboard Toggle brings the on-screen keyboard back after each keyboard emulation output, so the user can keep typing. Default Off. Takes effect after a power cycle.
control which producers may emit keyboard output.
Select Data is separate from . Both and a matching KBEMU Enable Profile bit must be set for a producer to send keyboard output.
– Required. Selects which data producers are allowed to send keyboard output.
– Optional. Selects whether EMV producers type ARQC data, Batch data, or both.
define which EMV TLV tags are extracted from financial payloads for keyboard output.
Non-financial producers do not use Select TLV. MSR (Non-Financial), Barcode, MIFARE, and Personal Info use Select Field instead.
– Optional. Lists the EMV tags to type from the ARQC payload.
– Optional. Lists the EMV tags to type from the Batch payload.
define which byte ranges are extracted from non-financial payloads for keyboard output.
These producers are not structured as EMV TLV data, so Select Field is used instead of Select TLV. EMV financial producers do not use Select Field.
– Optional. Selects the byte ranges to type from the MSR (Non-Financial) payload.
– Optional. Selects the byte ranges to type from the Barcode payload.
– Optional. Selects the byte ranges to type from the MIFARE payload.
- KBEMU Personal Info Field List – Optional. Selects the byte ranges to type from the Personal Info payload.
define how selected transaction data is turned into the final USB keyboard string. Each Format OID stores formatting rules as TLVs inside an /A6 container. Binary TLVs enable or disable dynamic fields such as Type, Subtype, and Data. ASCII TLVs define fixed text such as prefixes, suffixes, and delimiters.
There is one EMV Format OID for all EMV financial producers. Non-financial producers each have their own Format OID. Tags are applied in the order they appear in the TLV stream, except Auto Delimiter (tag C7), which is inserted between fields. See Format TLVs and Supported Transaction Types above for the shared tag set and type/subtype strings.
– Optional. Defines how EMV data is formatted for keyboard output.
– Optional. Defines how MSR (Non-Financial) data is formatted for keyboard output.
– Optional. Defines how Barcode data is formatted for keyboard output.
– Optional. Defines how MIFARE data is formatted for keyboard output.
Follow the steps in order. Each step sets one property. Required steps must be done or checked; optional steps can stay at their defaults.
turns on USB keyboard output. Required. Default Off. Power cycle after the SET so the device enumerates the keyboard interface.
selects which producers may type. Required. The default 0x00FF (all producers) works. For EMV, selects ARQC, Batch, or both. Optional. Default ARQC only.
and list the ARQC and Batch tags to type. Optional. Default 0x00 types the whole payload.
select byte ranges from MSR (Non-Financial), Barcode, MIFARE, and Personal Info payloads. Optional. Default all zeros types the whole payload. Fields are joined by tag CA, or ‘|’ if CA is not set.
set the type, subtype, prefix, suffix, and delimiters around the data. Optional. Default types the data only.
sets the key delay, 1–40 ms. Optional. Default 7 ms. Raise it if the host drops or changes characters.
restores the iOS on-screen keyboard after each output. Optional. Default Off. Requires Step 1. Power cycle after the SET.
Keyboard output works with any start method: host Command 0x1001, the touchscreen, or Automatic Transaction Start. To start without a host, configure .
The device is a USB composite device. Each USB interface appears as its own HID device, numbered MI_00, MI_01, MI_02. The interfaces present depend on Steps 1 and 7.
USB\VID_0801&PID_2020&MI_00\9&2B98BCF8&1&0000
USB\VID_0801&PID_2020&MI_01\9&2B98BCF8&1&0001
USB\VID_0801&PID_2020&MI_02\9&2B98BCF8&1&0002
MagTek MMS is the command and notification interface. MagTek Keyboard types the output. MagTek Keyboard Ctrl sends the key that restores the iOS on-screen keyboard. On Windows, use a USB viewer such as to check the interface list. On Linux and macOS, use the equivalent system USB tool, such as lsusb -v on Linux.
Automatic Transaction Start (ATS) lets the reader begin a transaction on its own when a customer presents a card, phone, or barcode, without needing from the host. The device already holds transaction configuration, listens while idle, and when allowed media appears it starts the same transaction that the host would have started.
ATS changes what starts the session, not how the transaction is processed. Once started, the session runs through the existing EMV Contact, EMV Contactless, MSR, BCR, and NFC / MIFARE handling. ATS is an alternate trigger, not a second payment stack.
When ATS is enabled, the device owns the session. A start command from the host is rejected and the host is notified. Only one party owns the session at a time. The host receives status and .
Keyboard Emulation does not require ATS. ATS is an additional, recommended way to start transactions when no host application sends , so card, phone or barcode data is typed as soon as it is presented. This section explains the architecture and the data producers that use it.
The table below lists every payment data producer on the device and how a session starts for that path. There are two groups.
Automatic Transaction Start Group:
EMV Contactless
EMV Contact
EMV MSR
MSR (Non-Financial)
Barcode
While idle, the device listens for these media types. When one is presented and the matching reader option is on, ATS starts the transaction from the stored configuration.
Touchscreen UI Group: EMV Manual Entry and Personal Info. These paths start from the touchscreen on DynaFlex PED.
While the device is idle and ATS is on, event detection keeps the allowed readers awake. Supported media events include contactless presented, card seated, card swiped, MIFARE presented or barcode read. After media is presented, ATS decides whether to start a transaction. After the transaction is completed, the devices returns to the media event detection state.
The host can receive status updates through . This notification is how the host learns that ATS started or skipped a Transaction.
Each notification is identified by a four-byte code (Category / Reason / Detail / Extra) and carries no payload.
Automatic Transaction Start configuration settings are groups of Property OIDs the device reads when it initiates the headless transaction. The table below lists every property ATS uses. If Timeout, Reader Options, Tax Rate, Transaction Options or Other TLV can’t be read, or Other TLV is empty, the device sends 06 01 00 00 and does not start the transaction. The factory defaults of all five are valid.
is the master switch and the only unique property. Timeout, Reader Options, Transaction Options, Other TLV, and Tax Rate are the same Start Sale settings used when the cardholder starts a sale from the touchscreen. ATS applies them the same way, with these exceptions:
If Other TLV has no 9F02 amount, or the amount is 0, the sale amount is $1.00.
That $1.00 is the preliminary amount placed in the cryptogram for EMV contact, EMV contactless, and financial MSR when Quick Chip is on. The reader does not change it after the card or swipe is finished. A later sale amount is applied by the payment application and the processor.
Tip is never offered.
Reader Options tag 86 (PIN Block Format) is used on DynaFlex PED only.
Two supporting properties sit outside the Start Sale group. is the idle-listen mask ATS uses. The listen bits are required so auto-start can enable media event detection. is ignored while ATS is on (see ).
This section is the ordered list of settings that configure Automatic Transaction Start on a DynaFlex product. Follow the steps in order. Each step sets one property and says what that property controls.
is the master switch for ATS. When it is enabled, the device starts a transaction from stored configuration when enabled media is presented to the device. When ATS is disabled, only the host or the touchscreen starts a transaction. Required. Default Off. Takes effect immediately with no power cycle; the device sends 06 02 00 00 (Listening) when ATS is turned on.
is applied to every ATS transaction. ATS has no tax screen, so set the rate the solution needs. 0x000000 disables tax, so the total equals the sale amount. Optional. The default 0x000000 (no tax) works.
is the time in seconds for the transaction to timeout/stop. Optional. The default of 120 seconds works.
decides which payment-method interfaces the transaction session enables. ATS reads Reader Options each time it starts a transaction. For example, when a MIFARE card is presented, tag 83 must have the NFC bit set (0x02 or 0x03), or the start is blocked with 06 04 04 00. Reader Options controls the session. The readers that listen while idle are set by , so keep the two consistent. Required. The default enables MSR, EMV Contact and EMV Contactless, which already works for cards. Set the NFC bit in tag 83 for MIFARE, and enable tag 85 for barcode (units with a scanner only).
sets device behaviors that change the transaction flow or the way the device reports results, such as Quick Chip. Transaction Options must contain tag 84 (for example, 84 02 …); otherwise the transaction does not start. Required. The default (Quick Chip) already contains tag 84 and works.
is the self-contained TLV list that defines the basic parameters of the transaction, including transaction type, amount, and currency. If 9F02 is missing or zero, ATS uses $1.00. Maximum 100 bytes. Required. The default (goods sale, $1.00, USD) works. The list must not be empty.
Note: $1.00 is the preliminary amount placed in the cryptogram for EMV contact, EMV contactless, and financial MSR when Quick Chip is on. The reader does not change it after the card or swipe is finished. A later sale amount is applied by the payment application and the processor
When is enabled, is treated as disabled 0x00 so MSR auto-start can complete as a single swipe. No SET is needed. This OID can stay 0x01 for host-started transactions. Informational.
is required for Automatic Transaction Start to listen for transaction events. Contactless presented, card seated, card swiped, and barcode read each need their listen bit set in this property. While ATS is on, the device does not send Category 0x01 User Event notifications (card presented, removed, seated, unseated, swiped, barcode read). While ATS is enabled, the device does not send Category 0x01 User Event notifications (card presented, removed, seated, unseated, swiped, barcode read). Instead, Property 1.2.7.1.2.1 bits only enable event detection for ATS use. Touch events are not reported the host. Required. The default is all bits off, so ATS hears nothing until the listen bits for the media the solution accepts are set. DynaFlex II PED rejects bit 7.
Transaction events consume power while idle. For example, enabling contactless reasons requires the device to radiate RF to detect a card. Only enable the reasons the solution requires.
Use these lists to bring up Keyboard Emulation. Each property is described in Components 1–5 and in above. “Default works” means no SET is needed unless the solution needs a different value.
Required Settings are the properties that must be in place before keyboard output works. Some of them already have a factory value that is valid, so they do not need a SET unless the solution needs a different value. They still have to be checked. A required property that is left unread, empty, or set to a value that disables the path will stop keyboard output even when every other setting is correct. The list below separates the properties that must be changed from the properties whose default already works.
Keyboard Emulation (any start method)
– SET On, then power cycle.
– Default works (0x00FF, all producers).
Automatic Transaction Start (in addition, when ATS starts the transaction)
– SET On. Takes effect immediately.
– SET the listen bits: 0x01 contactless, 0x04 card seated, 0x10 card swiped, 0x80 barcode (units with a scanner only).
– Default works for MSR, EMV Contact and EMV Contactless. SET tag 83 NFC bit for MIFARE; SET tag 85 for barcode.
– Default works. Must contain tag 84.
Optional Settings change how the keyboard output looks, how fast it is typed, or which part of the payload is included. None of them have to be changed for keyboard emulation to work. Each one already has a factory value that produces output: the whole payload, data only, ARQC only, and the default typing rate. Set an optional property only when the solution needs a different speed, a shorter payload, a different output wrap, or the iOS on-screen keyboard restored after typing. Leaving an optional property at its default does not block the feature.
Keyboard Emulation
– typing speed, default 1 ms.
– restores the iOS on-screen keyboard, default Off.
– ARQC and/or Batch, default ARQC only.
– default empty = whole payload.
Automatic Transaction Start
– default 120 seconds.
– default 0x000000, no tax.
Related Properties (not required)
– ignored while ATS is on; still applies to host Command 0x1001.
– not read by ATS.
– not used by ATS; tip is never offered.
– not used by ATS.
One guide covers both products. These are the only differences:
Touchscreen: EMV Manual Entry and Personal Info start from the touchscreen on DynaFlex II PED only.
Barcode: User Event bit 7 (0x80) and Reader Options tag 85 apply only to units with a barcode scanner. DynaFlex II PED rejects bit 7. The lab setups use User Event 0x9F000000 on DynaFlex II Go and 0x1F000000 on DynaFlex II PED.
PIN Block Format: Reader Options tag 86 is used on DynaFlex II PED only and is ignored on DynaFlex II Go.
Barcode
MIFARE
Personal Info Entry.
Enable Profile
Select TLV
ARQC Tag List Batch Tag List
Select TLV
ARQC Tag List Batch Tag List
Select Field
-
Not Used
Select Field
-
Not Used
Select Format
All EMV
Select Format
All EMV
Enable Profile
Select TLV
ARQC Tag List Batch Tag List
Select TLV
ARQC Tag List Batch Tag List
Select Field
-
Not Used
Select Field
-
Not Used
Select Format
All EMV
Select Format
All EMV
Enable Profile
Select TLV
-
Not Used
Select TLV
-
Not Used
Select Field
MSR Fields
Select Field
Barcode Fields
Select Format
MSR Format
Select Format
Barcode Format
Enable Profile
Select TLV
-
Not Used
Select TLV
-
Not Used
Select Field
Personal Info Fields
Select Field
MIFARE Fields
Select Format
Personal Info Format
Select Format
MIFARE Format
EMV MSR
✓
✓
—
✓
EMV Manual Entry
✓
✓
—
✓
MSR (Non-Financial)
✓
—
✓
✓
Barcode
✓
—
✓
✓
Personal Info
✓
—
✓
✓
MIFARE
✓
—
✓
✓
[Subtype]
//C2
1
bool
(optional) Include ‘Subtype’ string
[Prefix]
//C3
16
string
(optional)
[Data]
//C4
1
bool
Required The value field is ignored
[Suffix]
//C6
16
string
(optional)
[Auto Delimiter]
//C7
1
char
(optional) Inserts delimiter char between every field. Only use one instance of this tag.
[Manual Delimiter]
//C8
1
char
(optional) Delimiter char prints anywhere this tag is present. It also overwrites the Auto Delimiter in that position. Multiple instances are allowed.
[Security]
//C9
1
bool
(optional) Print encrypted status. Print status “encrypted” or “clear”
[Field List Delimiter]
//CA
1
char
(optional) Inserts delimiter char between every field in the Field List of Properties , , , .
[Tag List]
//CF
1
bool
(optional) Appends ordered list of tags from this table used for output The A6 container, Field List Delimiter (CA) and Auto Delimiter (C7) are not listed.
phone_number, social, zipcode, employee_id, birthdate, email, general
Property 1.2.8.1.5.5: Output Format - KBEMU Personal Info Entry Format – Optional. Defines how Personal Info data is formatted for keyboard output.
MIFARE.
Automatic Transaction Start
MIFARE
Automatic Transaction Start
Personal Info
Touchscreen UI
Other TLV
Device-Driven Fallback Behavior
User Event Notifications Enable
Property 1.1.1.1.3.4 Other TLV – Default works ($1.00). Must not be empty.
Property 1.2.8.1.4.1 KBEMU MSR (Non-Financial) Field List – default zeros = whole payload.
Property 1.2.8.1.4.2 KBEMU Barcode Field List – default zeros = whole payload.
Property 1.2.8.1.4.3 KBEMU MIFARE Field List – default zeros = whole payload.
Property 1.2.8.1.4.4 KBEMU Personal Info Field List – default zeros = whole payload.
Property 1.2.8.1.5.1 KBEMU EMV Format – default Data only.
Property 1.2.8.1.5.2 KBEMU MSR (Non-Financial) Format – default Data only.
Property 1.2.8.1.5.3 KBEMU Barcode Reader Format – default Data only.
Property 1.2.8.1.5.4 KBEMU MIFARE Format – default Data only.
Property 1.2.8.1.5.5 KBEMU Personal Info Entry Format – default Data only.
Property 1.1.1.1.2.1 Start Transaction On Touchscreen Enable – touchscreen Start Sale (DynaFlex II PED).
Personal Info Entry formats (DynaFlex II PED) set the screen format of each Personal Info button:
Profile | EMV Contact
Profile | EMV Contactless
Role
OID
Description
Role
OID
Description
Select Data
Enable Profile
Profile | EMV MSR
Profile | EMV Manual Entry
Role
OID
Description
Role
OID
Description
Select Data
Enable Profile
Profile | MSR (Non-Financial)
Profile | Barcode
Role
OID
Description
Role
OID
Description
Select Data
Enable Profile
Profile | Personal Info
Profile | MIFARE
Role
OID
Description
Role
OID
Description
Select Data
Enable Profile
Producer
Data Enable
TLV Selection
Field Selection
Output Format
EMV Contact
✓
✓
—
✓
EMV Contactless
✓
✓
—
✓
Type
Subtype
Prefix
Delimiter
Data
Suffix
TLV
TLV
TLV
TLV
TLV
TLV
Field
Tag
Len
Value
Description
Container
/A6
var
[Type]
//C1
1
bool
(optional) Include ‘Type’ string
Type
Subtypes
emv
arqc_ct_qchip, arqc_cl_qchip, arqc_msr, arqc_mce, batch_ct, batch_cl, batch_msr, batch_mce
non-financial
magstripe
mifare_card
classic, desfire
mifare_mobile
apple, android
barcode
encrypted, clear
Keyboard Emulation
iOS Keyboard Toggle
Interfaces
Off
Off or On
One HID device, MagTek MMS. No MI_ number, because the device is not composite.
On
Off
MI_00 MagTek MMS
MI_01 MagTek Keyboard
On
On
MI_00 MagTek MMS
MI_01 MagTek Keyboard
MI_02 MagTek Keyboard Ctrl
Data Producers
Starting Point
EMV Contactless
Automatic Transaction Start
EMV Contact
Automatic Transaction Start
EMV MSR
Automatic Transaction Start
EMV Manual Entry
Touchscreen UI
MSR (Non-Financial)
Automatic Transaction Start
Property OID
Name
Auto Transaction Start enable
Tax Rate
Timeout
Reader Options
Transaction Options
Bit
Mask
Event
0
0x01
Contactless presented (EMV and MIFARE)
2
0x04
Card seated
4
0x10
Card swiped
7
0x80




Select Data
Select Data
Select Data
Select Data
pei
Barcode
Barcode read (only on units with a scanner; PED rejects it)