1. Introduction
Payment applications based on smartphones change peoples’ daily lives and make the world a better place. Two-dimensional barcode payment systems and face recognition payment systems utilize the cameras and powerful resources of smartphones, and they also require an advanced mobile network infrastructure, which is not always available in underdeveloped countries. The standard near-field communication (NFC) system is based on the International Organization for Standardization (ISO) protocol 14443 at 13.56 MHz [
1,
2,
3,
4]. It can be used for both payment and for access control and other applications [
5,
6,
7,
8]. NFC does not require a mobile network and is especially suitable for underdeveloped countries with imperfect mobile network infrastructure [
9]. NFC wireless communication needs a reader tuning coil and a receiver tuning coil. If the coupling tuning coil in phones is too small, then the signal from the phones to the NFC reader will be weak, and communication may fail [
10]. The shielding of the phone’s mainboard and metallic shells make the situation even worse when placing the coil in a subscriber identity module (SIM) card [
11]. The coil is always placed on the back cover of the smartphone [
12,
13], with a 13.56 MHz NFC transceiver chip in the mainboard.
Many people are still using cheap feature phones, especially in underdeveloped countries. These feature phones have neither powerful resources for image recognition nor 13.56 MHz NFC. Fortunately, external component SIM cards can be used to support inserted wireless communication [
14]. SIM cards contain a secure element (SE) chip with the same security level as a bank card and usually meet the Common Criteria evaluation assurance level (EAL) 4+ standard. The SE chip communicates with the mobile phone using the ISO7816 protocol or single wire protocol (SWP). Some works have integrated a high-frequency (HF) radio chip into a SIM card (RF-SIM) to implement specific applications [
15,
16]. The HF chip is usually a 2.45 GHz, 433 MHz or sub-1 GHz wireless chip. Because the HF communication distance is at the meters level, this kind of RF-SIM card is usually used in garage door controls, indoor location tracking, and physical access control applications [
17,
18,
19]. The HF communication distance may be as long as 100 m and is not suitable for payment applications because there may be many people in the range of wireless communication waiting to pay.
Decreasing the transmission power of HF is a way to restrict the HF communication distance. As a result of the different manufacturing materials of phone shells and the SIM card’s location in the phone, each phone needs to calibrate the HF transmission power after inserting an RF-SIM card. This kind of calibration needs professional tools, and the work involved is unfeasible. The Range-controlled communication (RCC) system is proposed to constraint the HF communication distance by adding a short-range low-frequency (LF) wireless chip. HF communication is started only when LF is activated, and the communication distance is constrained under 10 cm. Our previous work [
20] presents a design for an LF receiver chip with a die size of 1850
m by 1650
m and a working current of 330
A; it has a communication distance of 7.8 cm in phones with a non-metallic shell. However, some new mobile phones were produced in recent years that only accept the smallest nano-card. Some phones have a completely metallic shell and have a SIM card site which accepts up to three cards. The inner card of SIM card site has weakened LF signals, and the metal shell makes it even worse. The SIM card’s working distance based on the LF receiver chip in [
20] decreases to less than 0.5 cm in these new mobile phones. The large die size makes it difficult to increase LF coil turn number in nano-SIM cards. Besides, to obtain a better LF communication distance, all amplifiers in [
20] should set to the largest gain, and the working current is much larger than 330
A. Although it has an idle mode with 45
A current consumption, in RCC application, the LF receiver is used to wakeup HF, and so is in working mode all the time.
In this paper, we propose an improved range-controlled communication system withan improved LF transmitter circuit, LF receiver chip, and LF-HF communication protocols. The major contributions of this work are: (1) the proposal of an improved RCC design which is even compatible with mobile phones with completely metallic shells. The die size of the LF receiver chip is decreased to 1.05 mm × 0.9 mm using a new analog frontend circuit, and more space is available for increasing the LF turning coil number in the SIM card. The proposed self-correcting clock recovery differential Manchester decoder and asynchronous serial peripheral interface (SPI) controller allows the LF receiver’s system clock to be as low as 50KHz, and the working current decreases to 41 A; (2) the proposal of a low-frequency (LF) system with a transmitter and receiver chip, which is adapted from 2 kHz to 4 kHz without limiting the precise working frequency channel, makes the implementation cost of LF system much lower.
The remainder of this paper is organized as follows.
Section 2 describes the system blocks of the range controlled communication system and discusses the LF communication model based on electromagnetic induction.
Section 3 describes the LF transmitter circuit.
Section 4 describes the LF receiver chip.
Section 5 describes the communication protocols with HF and LF. The experimental setup and results are discussed in
Section 6.
Section 7 concludes the paper.
2. System Building Blocks
The RCC uses short-range LF communication to restrict the HF communication distance to [0, 10 cm] with proposed LF-HF protocols.
Figure 1 shows the building blocks of the RCC, where communication is occurring between two devices: the master device with a reader circuit board and the slave device with an improved RF-SIM card. The reader circuit board consists of a microcontroller unit (MCU) that is responsible for communication, an HF transceiver, and an LF transmitter. The slave device includes an SE chip, an HF transceiver, and an LF receiver.
The LF circuit operates in the simplex mode, the message is transformed from the LF transmitter in the master device to LF receiver in the slave device, and there is no power transmission in the LF system. Assuming the tuning coil of LF transmitter is circular with a radius
r, turn number
, and changing current
for sending information. The changing current creates a magnetic field. The coupling coil in the SIM card is irregularly shaped, with turn number
and area
S. Assuming that two coils of the transmitter and receiver have an interval of
x. The voltage
induced in the receiver coil is as follows [
20]:
in (
1) is the magnetic permeability of air or vacuum with a value of
. Equation (
1) is applicable for two coils in the air. Actually, the two coils are not totally parallel. There is shell material between the two coils, which also affect the
:
In Equation (
2),
Q is the quality factor of the resonant circuit;
is the magnetic-field attenuation factor [
15];
t denote the thickness;
f denotes the working frequency of LF;
denotes the permeability;
denotes the conductivity of the shielding material; and
is the angle between the transmitter coil and the coupling coil, when the two coils are parallel,
= 0.
LF uses magnetic coupling modulation to transform the differential Manchester code at the cm level. A large
x signifies better implement of RCC reader equipment and user experience. The RCC is proposed to replace the NFC. Because the LF transmitter coil is always put in the place of the NFC reader coil in the reader equipment, so
r and
are constrained. The SIM card size is small, the micro-SIM card is 12 mm × 15 mm, the nano-SIM card has a smaller size of 12 mm × 9 mm. If the die size of the LF receiver chip is small, the LF receiver chip can have a package-in-package (PIP) bonding design with the SE chip, which can save some space to increase the tuning coil number. The die size of the LF receiver in previous work [
20] was too large to perform PIP bonding with the SE chip. One method to obtain a larger
x is to obtain a higher
; another method is to decrease the signal loss in analog frontend circuit of the LF receiver.
3. Low-Frequency Transmitter
The transmitting LF signal is modulated in the MCU as
and sent to the LF transmitter circuits in the master device, as shown in
Figure 1. From Equation (
1), a large changing current is needed to generate a powerful magnetic field so that the LF receiver can function effectively. We use separate components to produce a large changing current, as shown in
Figure 2. Two class-D amplifier chips are used to convert voltage
into current
at the LF coil and deliver wireless messages to the LF receiver.
and
are reference voltages without a precision requirement, and a simple resistance voltage divider circuit is used to generate
and
.
is obtained using the pulse width modulation (PWM) method; the PWM is widely used to produce a sine-wave current for motor driver applications. The transmitting LF signal is a differential Manchester code, and the modulation is in the PWM mode, as shown by
in
Figure 2. A carrier waveform is added to increase the changes in
. The frequency of carrier waveform is usually at the MHz level and determined by the MCU.
4. Low Frequency Receiver
Limited by the size of the SIM card, the LF receiver is designed in a single chip with an LF analog frontend and digital logic. The analog frontend circuit is used to process the induced weak
to the ideal digital signal
in
Figure 1. The SIM card, based on [
20], has a high fail communication rate in phones with a completely metal shell, because the distance of LF communication is lower than 0.5 cm. The induced weak
goes through three programmable gain amplifiers (PGA), a buffer is used to obtain large loading capacities, and six digital-to-analog convertors (DAC) and six comparators are used to convert the analog signal to a digital differential Manchester code and obtain the magnetic field intensity, as shown in
Figure 3a. The magnetic-field intensity is used to judge whether the SIM card is in or out of the magnetic field. The signal processing path is too long, and there may be some signal loss or noise interference in these long processing paths. In this paper, we propose an improved analog frontend for LF receiver as shown in
Figure 3b, a two-stage high gain rail-to-rail amplifier is used to amplify
, and a comparator is used to obtain
. The “in or out” decision of the magnetic field is made using digital logic.
4.1. Antenna Matching Circuits
Before the
goes the rail-to-rail amplifiers, a matching circuit is inserted, as shown in
Figure 4. In [
20],
,
,
, and
,
,
comprise two
match networks. This kind of match network is usually used in NFC impedance matching of antenna coils to obtain the maximum communication distance [
21,
22,
23]. The induced voltage in the 13.56 MHz NFC system is as high as the
V level. The induced voltage
in this proposed LF system is as low as the
V level. A
matching network consumes the induced power and makes
even worse.
Because the matching circuits are printed on SIM card substrate, we also bonded some SIM card from [
20] with different values of resistance and capacitance, as shown in
Figure 4. One removes
,
and
, and the other removes
,
,
, and
. The experiment shows the distance
x is improved in both of the two new methods. The best is that with
and
. Some phones with complitely metallic shells with this kind of SIM card can have a 0.2 ∼ 0.4 cm improvement.
and
comprise a lowpass filter (LPF), and the cut-off frequency
= 1/(2
).
The LF working frequency channel in this paper is at the kHz level, and is set at 100 kHz in this system. The coils in the micro-SIM card and nano-SIM card are not the same size, and the values of and in these two kinds of SIM card are also different. The best distance is obtained at = 100 and = 47 pF for the micro sim card, and = 10 and = 2.2 nF for the nano-SIM card.
4.2. Rail-to-Rail Amplifiers
According to Equation (
1), for example, the reader coil is 60 mm by 60 mm with 88 turns, and the coil in the nano SIM card is 11.8 mm by 8.8 mm with 18 turns. The voltage peak-to-peak value of the reader is 3.8 V, and the impedance of the reader coil is 56 ohm.
= 50
V at
x = 8 cm, and
= 20
V at
x = 12 cm according to Equation (
1) in [
20]. The max
x is obtained when all amplifiers are at max gain, the total gain is 96,000, and the maximum value of
x in theory is 16 cm; however, the actual maximum value
x is 12 cm in [
20], which means there are signal losses in analog frontend circuits.
In the RCC, the slave device should obtain the status whether it is in or out of the magnetic field. When is amplified by three amplifiers, six DACs and six comparators are used to detect magnetic field intensity. The six DACs are programed with different values, and the six comparators can obtain six signals with different period windows of value “1”, thus the action of in or out of magnetic field can be caculated by comparing the six period windows. A buffer is needed to increase signal drive capability because it will send it to six comparators. In this paper, we do not use the method involving the analog circuits of six DACs and six comparators. We use digital logic to detect the in or out of magnetic-field action. The LF reader sends several continuous preamble frame at the start of RCC communication and during the idle time. We can obtain the in or out status by recording whether it receives preamble frame at times.
The induced signal at the receiver coil is small, and the cascade amplifiers are used to produce the expected ideal waveform
; this process has no requirement in terms of gain accuracy. Three similar amplifiers are used with programmable gain in [
20], as shown in
Figure 3a.
,
, and
,
are two low-pass filters.
,
, and
are blocking capacitors (
) which are used to add common voltage
. The blocking capacitors are large (at the pF level) and suffer mismatch issues. These filters and blocking capacitors increase the signal loss in the amplify process.
In this paper, we simplify the design of analog frontend circuits as shown in
Figure 3b. Two-stage rail-to-rail amplifiers with fixed gain of 51,200 are used instead of three programmable gain amplifiers, as shown in
Figure 5. Because there is a LPF in coil matching circuit in
Figure 4, there is no extra LPF in proposed rail-to-rail amplifiers, nor are the large blocking capacitors needed. In
Figure 5,
,
and
,
are rail to rail input stage.
,
,
,
,
and
are first-stage amplifier.
and
are second-stage amplifier [
24,
25], and these two transistors also form a class AB amplifier.
Table 1 gives the transistor dimensions of the two amplifiers. For example,
consists of 8 transistors with a width of 12
m and a length of 4
m. The simulation shows the phase margin of rail-to-rail amplifiers is larger than 52°.
The LF communication distance x is only a few cm. Considering that different mobile phones have different magnetic field shielding strengths, and the LF reader coil is installed some distance from the surface of the master device, x needs to be improved as much as possible to allow space for installment and to improve the application convenience of the RCC. In place of x, is similar to the ideal waveform . For , is worse than , and a comparator is used to produce the ideal waveform . The comparator is used to compare the and and to output “0” or “1”.
4.3. Self-Correcting Clock Recovery Differential Manchester Decoder
There are many methods of differential Manchester decoding. The basic method is based on the accurate clock counter to identify “1” and “0” [
26]. This method requires high chip-clock accuracy and consistency, and the period of the LF working frequency
being fixed at the transmitter and receiver. In CMOS technology, the clock generated by the oscillator using a resistive and capacitive network (RCOSC) is different from that in chips. The clock frequency deviation can range from −50 to +50% at the worst if the oscillator is not trimmed.
In previous work [
20], a high-level threshold register and a low level threshold register were used to generate a decoding clock, and this design can adjust to a clock frequency deviation of ±30%. However, this method needs a high system clock to get a large value of high and low-level threshold register. Meanwhile, when the working frequency of LF is changed, a new value of high- and low-level threshold registers should be reloaded by the SE chip.
In this paper, a self-recovery clock method is used to eliminate the dependence on system clock precision and adjusted to different LF working frequencies, as shown in
Figure 6. In the differential Manchester code, a clock is generated at the fall and rise edge of
. In the generated clocks, there are some redundant clocks, so a delay time is used to mask the redundant clocks, and what are left arethe recovery decoding clocks. The process is as follow: First, two consecutive high-level and low-level periods are counted as
and
. When
:
is ≈ 1:2 or 2:1,
can be obtained by
=
, this happens when the differential Manchester code is changing (1 → 0 or 0 → 1). Signal
c is obtained by detecting the rising and falling edges of
. Signal
d is obtained by broadening the pulse period of
c to 3/4
. Using inverted
d to mask the redundant pulse
in
c, the recovery clock
is obtained, and the decoded message
a can be obtained by sampling
using
. Compared with the original clock counter method, this method can adapt to a variety of signal periods.
4.4. Low Power Design
The proposed analog frontend circuits are simple compared to those in [
20]. The other circuits are auxiliary circuits including a bandgap (BG), two voltage regulators (VR), and a RCOSC. The BG provides the reference voltage
and current
for the analog frontend circuits.
Figure 7 gives the circuits of bandgap [
27].
= 1V in this work.
,
,
,
,
and
are boot circuits for bandgap.
Table 2 gives the transistor dimensions of the banggap circuits. One VR is for the analog frontend circuits which is 2 V, and the other one is for the digital logic and is 1.8 V. The SPI interface is designed to be asynchronous to avoid the need for a high working frequency clock. This means that the clock signal of SPI interface is used directly. The primary threats to asynchronous circuits are glitches in the SPI interface pins. We add a resistance-capacitance (RC) passive filter and a Schmidt trigger with hysteresis comparison in input-output (IO) circuits to remove glitches. Because the proposed differential Manchester decoding method uses a self-recovery clock and is asynchronous to system clock, the system clock has no accuracy or high-frequency requirements. A low frequency 50 KHz RCOSC can be used without trimming. The RCOSC is designed in low power mode that works in the subthreshold region with a current consumption of less than 500 nA [
28]. The dynamic power of digital logic can be calculated as
=
[
29]. Because the RCOSC frequency is low, i.e., 50 KHz compared to 360 KHz in [
20], the power consumption of digital logic also decreases.
5. Range-Controlled Communication Protocols
The HF communication distance is at the meter level, and the LF communication distance is at the centimeter level. The RCC protocol restricts HF to work only when LF establishes a connection.
5.1. Frame Format of Low-Frequency Communication
The frame format of LF is composed of the preamble, control domain, valid data, and cyclic redundancy check (CRC) bits, as shown in
Figure 8a. The preamble is used for frame synchronization and consists of eight “1” bits and one “0” bit to form “111111110”, this is helpful to obtain
for the proposed differential Manchester decoder. The form of preamble also means that eight continuous “1” bits cannot exist in next frame data to ensure the preamble form is unique. The scrambling mechanism is added at the LF reader to avoid eight consecutive “1” bits in the sequence. A scrambling code “0” is added after every seven consecutive “1” bits in the data stream as shown in
Figure 8b. The LF receiver automatically processes the scrambling code to obtain the transmission data. The control domain defines the frame type (data frame or command frame) and data length. CRC is used to verify the control domain and valid data. The generated polynomial of CRC is
.
5.2. Protocol for Range-Controlled Communication
Data transmission in LF is encrypted. The encryption process is carried out in the MCU of the master device, and decryption is carried out by the SE chip [
30]. RCC must be carried out within the effective distance of LF, as described in
Figure 9. The workflow of the proposed protocol session includes four stages: activation, access, transaction, and stop.
In the activation phase, the initiator first sends 20 preambles, then generates , and calculates the HF activation response (ATI) frequency channel according to . If the HF frequency channel is currently occupied, needs to be regenerated until the selected ATI frequency channel is idle. The initiator sends the INQUIRY command with and through the LF channel. The responder is activated after receiving the INQUIRY command and generates and the HF frequency channel for the access and transaction stages. The responder also must ensure that the generated is currently idle. The responder sends an ATI message, including and through the HF channel at the working frequency . The responder enters the access phase after sending the ATI. If initiator doesnot receive the ATI message, it goes back to activation phase.
The HF channel in the access and transaction stages operates at frequency . The initiator sends a connection request CONNECT_REQ through the HF channel in the access phase. The responder receives the CONNECT_REQ command and sends the response CONNECT_RSP to the initiator within 8 ms. The responder enters the transaction stage after sending CONNECT_RSP.
The initiator sends an encrypted data exchange request APDATA_REQ through the HF channel in the transaction stage. At the same time, the LF channel is used to send the corresponding encryption key. Once the responder receives APDATA_REQ and the encryption key, it parses and executes the APDU command encapsulated in APDATA_REQ, then encapsulates the response in APDATA_RSP and sends it to the initiator. If the responder receives the wrong APDATA_REQ or the receiving time is beyond 100 ms, it will return to the activation stage. The responder will send APDATA_RSP or the long time wait frame (LTW) to the initiator within 500 ms and remain in the transaction stage. To maintain the transaction phase, the initiator sends the LINKCTL_REQ frame through the HF channel every 44 ms during the idle time of the transaction phase.
When the transaction stops normally or the responder’s status is abnormal, the initiator must send a CLOSE_REQ command to close the connection through the HF channel. After receiving the first correct CLOSE_REQ command, the responder immediately closes the transaction and returns to the activation stage.