Card emulation is initiated by receiving a 0x1840 command from the host. The device will prepare card emulation with the parameters provided in the command and start card emulation.
The sequence of events is as follows:
1
Host ensures device is idle
The host ensures the device is not currently running another command, for example, that it is not running a transaction or PIN entry.
2
Host composes and sends command
The host composes a command request in the format described below and sends it to the device.
3
The device receives the command and verifies that the parameters are valid and the device is in a state that allows the execution of card emulation.
4
If the device has a display, a prompt will be displayed asking the customer to tap their phone to the device.
5
If the timeout parameter is not included or set to 0x00, then there is no timeout.
If the timeout parameter is set to a specific number of seconds, the device returns a command response message with its Operation Status Summary byte set to 0x01 (OK, Started / Running).
6
The host may issue a 0x1840 command with Tag 0x81 set to 0x00 to cancel the execution of card emulation.
7
After the timeout expires, host cancel or the card is read, the device sends a 0x1805 notification to inform the host.
Tag
Len
Value / Description
Req
Default
/82
01
Timeout in seconds
0x00 = No timeout
0x01 to 0xFF = 1 to 255 seconds
O
0x00
/83
<= 254
URL
URL to use as card data. Required when starting card emulation. Optional and ignored if canceling emulation. Example: https://www.magtek.com/
O/R
/81
01
Start/Cancel
0x00 = Cancel (See the example of 0x1840 cancel command below)