Near field communication module, near field communication control method, equipment, medium and product

By designing a near-field communication module that includes a tag chip, a reader chip, a near-field antenna, and a switching unit, a single module was made capable of functioning as both a master and slave device, solving the problem of signal interference between the reader and the tag device and improving the user experience.

CN121902829APending Publication Date: 2026-04-21ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
Filing Date
2026-03-23
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In NFC technology applications, interference signals can occur when the card reader and tag are too close together, affecting the user's normal business processing experience.

Method used

Design a near-field communication module, including a tag chip, a reader chip, a near-field antenna, and a switching unit. The switching unit controls the connection or disconnection state between the near-field antenna and the reader chip, so that a single module can be used as both a master device module and a slave device module, sharing the same near-field antenna to avoid signal interference.

Benefits of technology

It effectively avoids signal interference between master and slave device modules, provides stable near-field communication, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121902829A_ABST
    Figure CN121902829A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a near field communication module, a near field communication control method, equipment, a medium and a product, and the near field communication module comprises a tag chip, a card reader chip, a near field antenna and a switch unit. The label chip is connected with the near-field antenna, the card reader chip is also connected with the near-field antenna, the switch unit is connected between the card reader chip and the near-field antenna, and when the near-field communication module is used as a main equipment module for near-field communication, the switch unit can control the near-field antenna and the card reader chip to be in a closed state; when the near field communication module serves as a slave device module of near field communication, the switch unit can control the near field antenna and the card reader chip to be in an open circuit state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of near-field communication technology, and particularly to a near-field communication module. This specification also relates to a near-field communication control method, a near-field communication device, a computing device, a computer-readable storage medium, and a computer program product. Background Technology

[0002] NFC (Near Field Communication) technology, as a near-field communication technology, boasts advantages such as high security and high speed. With the continuous development of NFC technology and the expanding market application scale, its application scenarios have covered various business areas. For example, when users purchase goods at merchants such as shopping malls and supermarkets, they may use personal terminals with NFC functionality, such as mobile phones, to interact with merchant devices for transactions. Alternatively, users may use NFC-enabled cards, such as bank cards, to interact with merchant devices for transactions. To meet the needs of different users, merchants deploy various devices or equipment, such as card readers and tag devices, at the checkout counter or service areas. However, in practical applications, if the distance between the card reader device and the tag device is too close, interference signals may occur, affecting the user's normal business transactions.

[0003] Therefore, improving the user experience of using NFC to conduct business has become an urgent technical problem to be solved. Summary of the Invention

[0004] In view of this, one or more embodiments of this specification provide a near-field communication module, a near-field communication control method, a device, a medium, and a product to improve the user experience of using NFC functionality to conduct business.

[0005] According to a first aspect of one or more embodiments of this specification, a near-field communication module is provided, including: a tag chip, a reader chip, a near-field antenna, and a switching unit; The tag chip and the reader chip are both connected to the near-field antenna; The switching unit is connected between the card reader chip and the near-field antenna; when the near-field communication module is used as the master device module for near-field communication, the switching unit controls the near-field antenna and the card reader chip to be in a closed circuit state; when the near-field communication module is used as the slave device module for near-field communication, the switching unit controls the near-field antenna and the card reader chip to be in a closed circuit state.

[0006] According to a second aspect of one or more embodiments of this specification, a control method for near-field communication is provided, applied to the near-field communication module described in the first aspect above, comprising: Obtain a first instruction for instructing the near-field communication module to be used as a master device module for near-field communication; Based on the first instruction, the switching unit in the near-field communication module is set to a first state, so that the near-field antenna in the near-field communication module and the card reader chip in the near-field communication module are in a connected state.

[0007] According to a third aspect of one or more embodiments of this specification, a near-field communication device is provided, the near-field communication device including the near-field communication module described above, or the near-field communication device being capable of performing the near-field communication control method described above.

[0008] According to a fourth aspect of one or more embodiments of this specification, a computing device is provided, including a memory and a processor, the memory being used to store a computer program or instructions, and the processor being used to execute the computer program or instructions, wherein the computer program or instructions, when executed by the processor, implement the steps of the near-field communication control method.

[0009] According to a fifth aspect of one or more embodiments of this specification, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the control method for near-field communication.

[0010] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the steps of the control method for near-field communication.

[0011] One embodiment of this specification achieves at least the following beneficial effects: By providing a near-field communication (NFC) module, the NFC module includes a tag chip, a reader chip, a near-field antenna, and a switching unit. The tag chip and the reader chip are both connected to the near-field antenna, and the switching unit is connected between the reader chip and the near-field antenna. When the NFC module is used as a master device module for NFC, the switching unit can control the near-field antenna and the reader chip to be in a closed-circuit state; when the NFC module is used as a slave device module for NFC, the switching unit can control the near-field antenna and the reader chip to be in a closed-circuit state. In this way, a single NFC module can function as both a master and slave device module. The reader chip and the tag chip share the same near-field antenna, effectively avoiding signal interference between the near-field antennas in the master device module and the slave device module when they are set up separately. This provides stable NFC communication and improves the user experience. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This specification provides an example of an application scenario diagram of a near-field communication module. Figure 2 This specification provides a schematic diagram of the structure of a near-field communication module according to one embodiment. Figure 3 This is a schematic diagram of the structure of a second near-field communication module provided in one embodiment of this specification; Figure 4 This is a schematic diagram of the structure of a third near-field communication module provided in one embodiment of this specification; Figure 5 This is a schematic diagram of the structure of a fourth near-field communication module provided in one embodiment of this specification; Figure 6 This is a schematic diagram of the structure of a fifth near-field communication module provided in one embodiment of this specification; Figure 7 This is a schematic diagram of the structure of a sixth near-field communication module provided in one embodiment of this specification; Figure 8 This is a schematic diagram of the structure of a seventh near-field communication module provided in one embodiment of this specification; Figure 9 This is a schematic diagram of the structure of an eighth near-field communication module provided in one embodiment of this specification; Figure 10 This is a schematic diagram of the structure of a ninth near-field communication module provided in one embodiment of this specification; Figure 11 This is a schematic diagram of the structure of a tenth near-field communication module provided in one embodiment of this specification; Figure 12 A schematic diagram of the structure of an eleventh near-field communication module provided in one embodiment of this specification; Figure 13 A schematic diagram of the structure of the twelfth near-field communication module provided in one embodiment of this specification; Figure 14 A flowchart illustrating a near-field communication control method provided in one embodiment of this specification; Figure 15 This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0014] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this specification, and not all embodiments. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this specification.

[0015] This specification uses specific terms to describe embodiments thereof. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, those skilled in the art can combine and integrate the different embodiments or examples described herein, as well as the features of those different embodiments or examples, without contradiction.

[0016] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “an,” “an,” “the,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification includes any or all possible combinations of one or more associated listed items.

[0017] The terms “comprising,” “including,” or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, product, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in the process, method, product, or apparatus that includes said elements is not excluded.

[0018] Although the terms "first," "second," etc., may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, "first" may also be referred to as "second," and similarly, "second" may also be referred to as "first," without departing from the scope of one or more embodiments of this specification. Ordinal numbers such as "first," "second," etc., do not necessarily indicate order; often they are used to facilitate the distinction of objects. For example, "first server" and "second server" usually refer to two servers. To distinguish these two servers, they are described as "first server" and "second server." Of course, sometimes these two servers may be the same server.

[0019] Depending on the context, the word "if" as used here can be interpreted as "when," "when," or "in response to determination."

[0020] In this specification, unless explicitly stated otherwise, "receiving and sending data" does not necessarily mean direct receiving and sending; it can also mean indirect receiving and sending. For example, A receiving data sent by B can be understood as A directly receiving the data sent by B, or it can be understood as A indirectly receiving the data sent by B through other entities such as C. Similarly, B sending data to A can be understood as B sending the data directly to A, or it can be understood as B indirectly sending the data to A through other entities such as C. Here, C can be one entity, or it can be two or more entities.

[0021] In this specification, unless explicitly stated otherwise, the relationships between structures can be direct or indirect. For example, when describing "A is connected to B," unless it is explicitly stated that A and B are directly connected, it should be understood that A can be directly connected to B or indirectly connected to B. Similarly, when describing "A is on top of B," unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements, and A is above B). And so on.

[0022] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of related data shall comply with the relevant laws, regulations and standards of the relevant regions, and corresponding operation entry points shall be provided for users to choose to authorize or refuse.

[0023] The following explains the terms and concepts used in one or more embodiments of this specification.

[0024] NFC (Near Field Communication) is a short-range wireless communication technology with a typical operating distance of less than 10cm, used in scenarios such as mobile payments, access cards, and public transport cards. In NFC, the device that actively transmits signals can be called the master device, such as an NFC card reader or a device in card reader mode, acting as the card reader end of the NFC communication. The device that passively responds to the signals transmitted by the master device can be called the slave device, such as an NFC tag, a device in card emulation mode, or a device with an NFC tag, acting as the tag end of the NFC communication.

[0025] The reader chip is an integrated circuit chip on the master device side of near-field communication (NFC). It is the core component of the NFC link as the master device and the core hardware carrier for realizing the master device mode in the dual-mode NFC module. Its core attribute is active communication. It has independent capabilities for radio frequency signal transmission, slave device scanning, and communication timing control. It can actively initiate radio frequency commands and communication requests to surrounding NFC slave devices. It is the core unit for completing active data reading and writing, link establishment, and command issuance in NFC. It is widely compatible with the mainstream NFC operating frequency band (13.56MHz) and is compatible with NFC standard protocols such as ISO14443 and ISO15693.

[0026] Tag chip: This is an integrated circuit chip on the slave device side of near-field communication (NFC) and a core component of the NFC link. It is often used in conjunction with a near-field antenna to form the core module of an NFC tag. It is also the core hardware carrier for implementing slave device mode in a dual-mode NFC module. Its core attribute is passive response communication. It has no ability to actively initiate NFC communication and can only receive and respond to radio frequency commands and communication requests initiated by the NFC master device. It is the core unit for data storage and passive interaction in NFC. It is widely compatible with the mainstream NFC operating frequency band (13.56MHz) and is compatible with NFC standard protocols such as ISO14443 and ISO15693.

[0027] Switching unit: An integrated circuit module that can switch on and off radio frequency signal paths. Its core function is to change the conduction state between its own ports according to the control signal to achieve selective connection of different radio frequency paths. Switch types can be radio frequency switches, single-pole multi-throw analog switches, etc.

[0028] Near-field antenna: A radio frequency antenna adapted to near-field communication frequencies (such as 13.56MHz) is the hardware carrier for near-field wireless signal interaction. It can convert electrical signals into near-field radio frequency electromagnetic waves, and can also restore the received near-field radio frequency electromagnetic waves back into electrical signals, so as to realize bidirectional conversion between wireless signals and electrical signals.

[0029] Figure 1This is a schematic diagram illustrating an application scenario of a near-field communication module provided in one embodiment of this specification.

[0030] like Figure 1 As shown in the diagram, the application scenario includes device 101, card 102, and mobile terminal 103.

[0031] In the embodiments of this specification, device 101 may include, but is not limited to, any device or apparatus with computing and processing capabilities that has NFC functionality. Card 102 may include, but is not limited to, bank cards, public transport cards, access cards, shopping cards, discount cards, membership cards, tag cards, smart cards, and other cards with NFC functionality, or cards may include any form of card such as virtual cards that carry card information on a smart device with NFC functionality. Mobile terminal 103 may include, but is not limited to, at least one of the following terminals with NFC functionality: smartphones, tablets, laptops, smart interactive devices, wearable devices, and in-vehicle smart terminals. Wearable devices may include, but are not limited to, at least one of the following terminals: smart bracelets, smartwatches, and smart glasses.

[0032] In one implementation, device 101 and card 102 can establish a communication connection via Near Field Communication (NFC). During this connection, device 101 can be the initiator of NFC communication, also known as the master device, actively sending NFC radio frequency signals. It is responsible for generating the radio frequency field and initiating the NFC communication process. Card 102 can be a passively responding device, relying on the radio frequency field generated by device 101 for power supply. Alternatively, card 102 can be an active card, communicating with device 101 based on its own energy. During the communication connection between device 101 and card 102, device 101 may not need to establish a communication connection with mobile terminal 103.

[0033] In another implementation, device 101 and mobile terminal 103 can establish a communication connection via NFC. During this communication connection, mobile terminal 103 can be the initiator of near-field communication, also known as the master device, while device 101 can be a passively responding slave device. Device 101 can rely on the radio frequency field generated by mobile terminal 103 for power supply, or device 101 can communicate with mobile terminal 103 based on its own energy. During the communication connection between device 101 and card 103, device 101 and card 102 may not need to establish a communication connection.

[0034] In at least one embodiment of this application, a near-field communication module is provided. This application also relates to a near-field communication control method, a near-field communication device, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.

[0035] Figure 2 This is a schematic diagram of a near-field communication module provided in one embodiment of this specification.

[0036] like Figure 2 As shown, the near-field communication module 200 may include a tag chip 2001, a card reader chip 2002, a near-field antenna 2004, and a switching unit 2003.

[0037] In one or more embodiments of this specification, to facilitate the distinction between the reader chip on the near-field communication module and the reader chip on the external NFC device, and between the tag chip on the near-field communication module and the tag chip on the external NFC device, the terms "reader chip" and "external reader chip" are used to refer to the reader chip on the near-field communication module, "tag chip" and "external tag chip" are used to refer to the tag chip on the near-field communication module and the tag chip on the external NFC device, respectively. The external NFC device refers to a device distinct from the near-field communication module.

[0038] In one embodiment of this specification, the tag chip 2001 and the reader chip 2002 can be connected together to the near-field antenna 2004. When the near-field communication module acts as a slave device module for near-field communication, the tag chip 2001 is connected to the near-field antenna 2004, and communicates with the initiator of near-field communication through the near-field antenna 2004. In this case, the initiator can refer to an external NFC device. When the near-field communication module acts as a master device module for near-field communication, the reader chip 2002 is connected to the near-field antenna 2004, and the near-field communication module can act as the initiator of near-field communication to communicate with the passive responder of near-field communication. In this case, the passive responder can refer to an external NFC device.

[0039] In one embodiment of this specification, the switch unit 2003 can be connected between the card reader chip 2002 and the near-field antenna 2004. When the near-field communication module is used as the main device module for near-field communication, the switch unit 2003 can be in a connected state to control the near-field antenna 2004 and the card reader chip 2002 to be in a path state. Thus, the card reader chip 2002 can send an electromagnetic coupling signal to an external NFC device through the switch unit 2003 and the near-field antenna 2004, and then establish an NFC communication connection between the card reader chip 2002 and the external NFC device based on the electromagnetic coupling information.

[0040] In practical applications, when the near-field communication module acts as the main device module for near-field communication, the tag chip 2001 and the near-field antenna 2004 can be in an open-circuit state. This effectively avoids interference from the signal provided by the tag chip 2001 during communication between the near-field communication module and external NFC devices. There are two ways to control the open-circuit state between the tag chip 2001 and the near-field antenna 2004. The first way is to control the tag chip 2001 to a non-operating state, such as by disabling the RF port on the tag chip 2001 connected to the near-field antenna 2004, or by powering off the tag chip 2001. The second way is to also provide a switch unit 2003 between the tag chip 2001 and the near-field antenna 2004. By controlling this switch unit 2003 to be in an open state, the open-circuit state between the tag chip 2001 and the near-field antenna 2004 can be achieved.

[0041] In one embodiment of this specification, when the near-field communication module is used as a slave device module for near-field communication, the switching unit 2003 can be in an open state to control the near-field antenna 2004 and the card reader chip 2002 to be in an open-circuit state.

[0042] In practical applications, when the near-field communication module acts as a slave device module in near-field communication, the tag chip 2001 and the near-field antenna 2004 can be in a closed-circuit state. This allows the tag chip 2001 to receive electromagnetic coupling signals sent by an external NFC device through the near-field antenna 2004, and subsequently establish an NFC communication connection between the tag chip 2001 and the external NFC device based on this electromagnetic coupling information. During the process of establishing an NFC communication connection between the tag chip 2001 and the external NFC device, the reader chip 2002 and the near-field antenna 2004 can be in a closed-circuit state, effectively avoiding interference from the signal provided by the reader chip 2002.

[0043] In one embodiment of this specification, a preset control may be provided on the near-field communication module, which can be used to control the near-field communication module to switch between master device module mode and slave device module mode.

[0044] As one implementation method, the preset control may include a first control and a second control. In practical applications, when the first control is triggered, such as by being pressed, the near-field communication module can be switched to master device module mode, and when the second control is triggered, the near-field communication module can be switched to slave device module mode.

[0045] In one implementation, the preset control can be an independent control. When the preset control is in a first trigger state, the near-field communication module can be switched to master device module mode; when the preset control is in a second trigger state, the near-field communication module can be switched to slave device module mode. The trigger state can include a press state, a rotation state, or an offset state, etc.

[0046] In one embodiment of this specification, a control program may be pre-embedded in the near-field communication (NFC) module. This control program can switch the NFC module between master device mode and slave device mode. In practical applications, when an object approaches the NFC module, the NFC module can identify whether the object is a master or slave device. If the object does not emit Bluetooth signals, network signals, or NFC radio frequency signals, it can be determined that the object is a slave device. If the object is a slave device, the control program switches the NFC module to master device mode; if the object is a master device, such as when it emits Bluetooth signals, network signals, or NFC radio frequency signals, the control program switches the NFC module back to slave device mode.

[0047] As one implementation, the near-field communication module may also be provided with an identification unit, which can identify whether an object approaching the near-field communication module is the master device or the slave device of the near-field communication.

[0048] In practical applications, the switching unit can also be connected between the tag chip and the near-field antenna, controlling the connection or disconnection between the tag chip and the near-field antenna. The reader chip can be directly connected to the near-field antenna, with the connection or disconnection controlled by the control program.

[0049] Figure 2 The near-field communication (NFC) module integrates a tag chip and a reader chip, both of which share the same near-field antenna. This allows the NFC module to be used as both a master and slave device module for NFC communication, thus meeting diverse user adaptation needs. Furthermore, it effectively avoids signal interference issues between the master and slave modules when they are set up separately, providing stable NFC communication and improving user experience.

[0050] based on Figure 2 The near-field communication module described in this specification also provides some specific structures of the near-field communication module, which will be explained below.

[0051] In one implementation, the switching unit is connected between the card reader chip and the near-field antenna, and may include: the radio frequency port of the card reader chip is connected to the first controlled terminal of the switching unit; the common terminal of the switching unit is connected to the near-field antenna; when the near-field communication module acts as a master device module for near-field communication, the first controlled terminal of the switching unit is in a conducting state, and the card reader chip and the near-field antenna are in a closed state; when the near-field communication module acts as a slave device module for near-field communication, the first controlled terminal of the switching unit is in a disconnected state, and the card reader chip and the near-field antenna are in a disconnected state.

[0052] In one embodiment of this specification, the radio frequency (RF) port of the card reader chip 2002 may have input or output functions. The input function of the RF port refers to inputting signals provided by an external tag chip to the card reader chip 2002, while the output function refers to sending signals provided by the card reader chip 2002 to the external tag chip. The RF port of the card reader chip 2002 may include several ports, such as two or four.

[0053] In one embodiment of this specification, the reader chip 2002 can be connected to the first controlled terminal of the switching unit 2003 via an RF port, and the switching unit 2003 can be connected to the near-field antenna 2004 via a common terminal, thereby forming a signal transmission path between the reader chip 2002, the switching unit 2003, and the near-field antenna 2004. In practical applications, the signal provided by the reader chip 2002 can be transmitted to the first controlled terminal of the switching unit 2003 via the RF port, and then transmitted to the switching unit 2003. The switching unit 2003 then transmits the signal to the near-field antenna 2004 via the common terminal, and the near-field antenna 2004 then sends it to an external NFC device. Alternatively, the signal fed back from the external NFC device at the near-field antenna 2004 can also be returned to the switching unit 2003 via the common terminal, and the switching unit 2003 returns the signal to the reader chip 2002 via the first controlled terminal and the RF port. The first controlled terminal of the switching unit 2003 may include several ports, such as two ports, four ports, etc. The common terminal of the switch unit 2003 may also include several ports, such as one port, two ports, etc.

[0054] In one embodiment of this specification, when the near-field communication module is used as the master device module for near-field communication, the first controlled terminal of the switching unit 2003 can be in a conducting state so that the first controlled terminal of the switching unit 2003 can be connected through the radio frequency port of the card reader chip 2002 and the common terminal of the switching unit 2003 can be connected to the near-field antenna 2004, thereby realizing a path between the card reader chip 2002 and the near-field antenna 2004; when the near-field communication module is used as a slave device module for near-field communication, the first controlled terminal of the switching unit 2003 can be in a disconnected state to realize an open circuit between the card reader chip 2002 and the near-field antenna 2004.

[0055] In practical applications, the first controlled terminal of the switch unit 2003 being in a conducting state means that the first controlled terminal of the switch unit 2003 is connected to the common terminal; the first controlled terminal of the switch unit 2003 being in a disconnected state means that the first controlled terminal of the switch unit 2003 is not connected to the common terminal.

[0056] In one embodiment of this specification, a point-to-point connection is used between the radio frequency port of the reader chip and the first controlled terminal of the switch unit. This effectively reduces the attenuation and reflection of the radio frequency signal during transmission, thereby ensuring the signal transmission quality of near-field communication, effectively improving the overall stability of NFC communication, and enhancing the user experience.

[0057] As one implementation method, Figure 3 This is a schematic diagram of a second near-field communication module provided in one embodiment of this specification. Figure 3 As shown, the switching unit 2003 in the near-field communication module 200 may include a first sub-switching element 2003-1 and a second sub-switching element 2003-2.

[0058] Optionally, the connection between the radio frequency port of the card reader chip and the first controlled terminal of the switching unit may include: the first radio frequency port of the card reader chip being connected to the first sub-controlled terminal of the first sub-switching element; and the second radio frequency port of the card reader chip being connected to the second sub-controlled terminal of the second sub-switching element.

[0059] Optionally, the common terminal of the switching unit is connected to the near-field antenna, which may include: the first antenna terminal of the near-field antenna being connected to the common terminal of the first sub-switching element; and the second antenna terminal of the near-field antenna being connected to the common terminal of the first sub-switching element.

[0060] In one embodiment of this specification, the card reader chip 2002 is connected to the first sub-controlled terminal of the first sub-switch element 2003-1 via a first radio frequency port, and the common terminal of the first sub-switch element 2003-1 is connected to the first antenna terminal of the near-field antenna 2004, thereby forming a first connection channel between the card reader chip 2002, the switch unit 2003, and the near-field antenna 2004. Simultaneously, the card reader chip 2002 is connected to the second sub-controlled terminal of the first sub-switch element 2003-1 via a second radio frequency port, and the common terminal of the first sub-switch element 2003-1 is connected to the second antenna terminal of the near-field antenna 2004, thereby forming a second connection channel between the card reader chip 2002 and the switch unit 2003. These first and second connection channels can collaboratively constitute a complete loop channel between the card reader chip 2002, the switch unit 2003, and the near-field antenna 2004, thereby improving the stability of the operating state of these devices.

[0061] In one implementation, the near-field communication module may further include a first matching circuit. The first matching circuit may include at least one component selected from capacitors, resistors, and inductors, and is used to adjust the signal provided by the reader chip into a radio frequency signal that meets the requirements of near-field communication.

[0062] As one implementation, the circuit structure of the first matching circuit may include any one of the following structures: a first structure formed by first connecting a resistor and an inductor in series to form a sub-circuit, and then connecting the sub-circuit in parallel with a capacitor; a second structure formed by first connecting a capacitor and an inductor in series to form a sub-circuit, and then connecting the sub-circuit in parallel with a resistor; a third structure formed by first connecting a resistor and a capacitor in series to form a sub-circuit, and then connecting the sub-circuit in parallel with an inductor; a fourth structure formed by first connecting a resistor and an inductor in parallel to form a sub-circuit, and then connecting the sub-circuit in series with a capacitor; a fifth structure formed by first connecting a resistor and a capacitor in parallel to form a sub-circuit, and then connecting the sub-circuit in series with an inductor; a sixth structure formed by first connecting a capacitor and an inductor in parallel to form a sub-circuit, and then connecting the sub-circuit in series with a resistor; a single-branch structure formed by connecting a resistor, an inductor, and a capacitor in series sequentially; and a star structure formed by connecting a resistor, an inductor, and a capacitor in parallel with each other.

[0063] In one embodiment of this specification, the first matching circuit can perform frequency tuning, amplitude and phase calibration on the electrical signal of the card reader chip to filter out noise interference and suppress unwanted harmonics in the electrical signal, and finally adjust the electrical signal provided by the card reader chip to meet the radio frequency index requirements of near-field communication, so as to ensure that the transmission characteristics of the radio frequency signal are adapted to the operating frequency and transmission standard of near-field communication.

[0064] In one embodiment of this specification, the first matching circuit may be connected in series between the card reader chip and the switching unit, or the first matching circuit may be connected in series between the switching unit and the near-field antenna.

[0065] As one implementation method, Figure 4 This is a schematic diagram of the structure of a third near-field communication module provided in one embodiment of this specification. Figure 4 As shown, the near-field communication module 200 may also include a first matching circuit 2005, which may be connected in series between the card reader chip 2002 and the switching unit 2003.

[0066] Optionally, the connection between the radio frequency port of the card reader chip and the first controlled terminal of the switching unit may include: the radio frequency port of the card reader chip being connected to the input terminal of the first matching circuit; and the output terminal of the first matching circuit being connected to the first controlled terminal of the switching unit.

[0067] In one embodiment of this specification, the radio frequency (RF) signal provided by the card reader chip 2002 can be sent to the input terminal of the first matching circuit 2005 through the RF port on the card reader chip 2002. The RF signal is then input to the first matching circuit 2005 through the input terminal of the first matching circuit 2005. The first matching circuit 2005 can adjust the RF signal to meet the requirements of near-field communication. The first matching circuit 2005 then sends the RF signal to the first controlled terminal of the switching unit 2003 through the output terminal of the first matching circuit 2005. The RF signal is then input to the switching unit 2003 through the first controlled terminal of the switching unit 2003. Finally, it is transmitted to the near-field antenna 2004 through the common terminal of the switching unit 2003, and the near-field antenna 2004 transmits the signal outward.

[0068] In one embodiment of this specification, the radio frequency port of the card reader chip 2002 may include a first radio frequency port and a second radio frequency port, the input terminal of the first matching circuit 2005 may include a first input terminal and a second input terminal, the output terminal of the first matching circuit 2005 may include a first output terminal and a second output terminal, the switching unit 2003 may include a first sub-switching element 2003-1 and a second sub-switching element 2003-1, the first sub-switching element 2003-1 may include a first sub-controlled terminal, and the first sub-switching element 2003-1 may include a second sub-controlled terminal.

[0069] Optionally, the radio frequency port of the card reader chip is connected to the input terminal of the first matching circuit, which may include: the first radio frequency port of the card reader chip is connected to the first input terminal of the first matching circuit, and the second radio frequency port of the card reader chip is connected to the second input terminal of the first matching circuit.

[0070] Optionally, the output terminal of the first matching circuit is connected to the first controlled terminal of the switching unit, which may include: the first output terminal of the first matching circuit is connected to the first sub-controlled terminal of the first switching sub-element, and the second output terminal of the first matching circuit is connected to the second sub-controlled terminal of the second switching sub-element.

[0071] In one embodiment of this specification, the card reader chip 2002 is connected to the first input terminal of the first matching circuit 2005 via a first radio frequency port, and the first matching circuit 2005 is connected to the first sub-controlled terminal of the first switch sub-element in the switch unit 2003 via a first output terminal, thereby forming a first connection channel between the card reader chip 2002, the first matching circuit 2005, and the switch unit 2003; simultaneously, the card reader chip 2002 is connected to the second input terminal of the first matching circuit 2005 via a second radio frequency port, and the first matching circuit 2005 is connected to the second sub-controlled terminal of the second switch sub-element in the switch unit 2003 via a second output terminal, thereby forming a second connection channel between the card reader chip 2002, the first matching circuit 2005, and the switch unit 2003. The first connection channel and the second connection channel can work together to form a complete loop channel between the card reader chip 2002, the first matching circuit 2005 and the switching unit 2003, so as to improve the stability of the working state of the card reader chip 2002, the first matching circuit 2005 and the switching unit 2003.

[0072] As one implementation method, Figure 5 This is a schematic diagram of the structure of a fourth near-field communication module provided in one embodiment of this specification. Figure 5 As shown, the near-field communication module 200 may further include a first matching circuit 2005, which may be connected in series between the switching unit 2003 and the near-field antenna 2004.

[0073] Optionally, the common terminal of the switching unit is connected to the near-field antenna, which may include: the common terminal of the switching unit being connected to the input terminal of the first matching circuit; and the output terminal of the first matching circuit being connected to the near-field antenna.

[0074] In one embodiment of this specification, the switching unit 2003 sends the radio frequency signal obtained from the card reader chip 2002 to the input terminal of the first matching circuit 2005 through the common terminal of the switching unit 2003. The radio frequency signal is then input to the first matching circuit 2005 through the input terminal of the first matching circuit 2005. The first matching circuit 2005 can adjust the radio frequency signal to meet the requirements of near-field communication. The first matching circuit 2005 then sends the radio frequency signal to the near-field antenna 2004 through its output terminal, and the near-field antenna 2004 then transmits the radio frequency signal outward.

[0075] In one embodiment of this specification, the input terminal of the first matching circuit 2005 may include a first input terminal and a second input terminal, the output terminal of the first matching circuit 2005 may include a first output terminal and a second output terminal, the switching unit 2003 may include a first sub-switching element 2003-1 and a first sub-switching element 2003-1, and the near-field antenna 2004 may include a first antenna terminal and a second antenna terminal.

[0076] Optionally, the common terminal of the switching unit is connected to the input terminal of the first matching circuit, which may include: the common terminal of the first sub-switching element is connected to the first input terminal of the first matching circuit, and the common terminal of the second sub-switching element is connected to the second input terminal of the first matching circuit.

[0077] Optionally, the output terminal of the first matching circuit is connected to the near-field antenna, which may include: the first output terminal of the first matching circuit is connected to the first antenna terminal of the near-field antenna, and the second output terminal of the first matching circuit is connected to the second antenna terminal of the near-field antenna.

[0078] In one embodiment of this specification, the switching unit 2003 is connected to the first input terminal of the first matching circuit 2005 via the common terminal of the first sub-switching element 2003-1. The first matching circuit 2005 is connected to the first antenna terminal of the near-field antenna 2004 via its first output terminal, thus forming a first connection channel between the switching unit 2003, the first matching circuit 2005, and the near-field antenna 2004. Simultaneously, the switching unit 2003 is connected to the second input terminal of the first matching circuit 2005 via the common terminal of the first sub-switching element 2003-1. The first matching circuit 2005 is connected to the second antenna terminal of the near-field antenna 2004 via its second output terminal, thus forming a second connection channel between the switching unit 2003 and the first matching circuit 2005. These first and second connection channels can collaboratively constitute a complete loop channel between the switching unit 2003, the first matching circuit 2005, and the near-field antenna 2004, thereby improving the stability of the operating state of the switching unit 2003, the first matching circuit, and the near-field antenna 2004.

[0079] In one implementation, the near-field communication module may further include a second matching circuit, which may include at least one component selected from capacitors, resistors, and inductors; the second matching circuit may be used to adjust the signal provided by the tag chip into a radio frequency signal that meets the requirements of near-field communication.

[0080] In one embodiment of this specification, the explanation of the second matching circuit structure can be found in the explanation of the first matching circuit structure described above, and will not be repeated here.

[0081] In one embodiment of this specification, the second matching circuit can perform frequency tuning, amplitude and phase calibration on the electrical signal provided by the tag chip to filter out noise interference and suppress unwanted harmonics in the electrical signal, and finally adjust the electrical signal provided by the tag chip to meet the radio frequency index requirements of near-field communication, so as to ensure that the transmission characteristics of the radio frequency signal are adapted to the operating frequency and transmission standard of near-field communication.

[0082] Figure 6 This is a schematic diagram of the structure of a fifth near-field communication module provided in one embodiment of this specification. Figure 6 As shown, the near-field communication module 200 may also include a second matching circuit 2006. When the first matching circuit 2005 is connected in series between the card reader chip 2002 and the switch unit 2003, the second matching circuit 2006 may be connected in series between the tag chip 2001 and the near-field antenna 2004.

[0083] Optionally, the radio frequency port of the tag chip is connected to the input terminal of the second matching circuit, and the output terminal of the second matching circuit is connected to the near-field antenna.

[0084] In one embodiment of this specification, the radio frequency (RF) signal provided by the tag chip 2001 can be sent to the input terminal of the second matching circuit 2006 through the RF port on the tag chip 2001. The RF signal is then input to the second matching circuit 2006 through the input terminal of the second matching circuit 2006. The second matching circuit 2006 can adjust the RF signal to meet the requirements of near-field communication. The second matching circuit 2006 then sends the RF signal to the near-field antenna 2004 through its output terminal, and finally the near-field antenna 2004 transmits it outward.

[0085] In one embodiment of this specification, the radio frequency port of the tag chip 2001 may include a third radio frequency port and a fourth radio frequency port, the input terminal of the second matching circuit 2006 may include a third input terminal and a fourth input terminal, the output terminal of the second matching circuit 2006 may include a third output terminal and a fourth output terminal, and the near-field antenna 2004 may include a third antenna terminal and a fourth antenna terminal.

[0086] Optionally, the connection between the radio frequency port of the tag chip and the input terminal of the second matching circuit may include: the connection between the third radio frequency port of the tag chip and the third input terminal of the second matching circuit, and the connection between the fourth radio frequency port of the tag chip and the fourth input terminal of the second matching circuit.

[0087] Optionally, the output terminal of the second matching circuit is connected to the near-field antenna, which may include: the third output terminal of the second matching circuit 2006 is connected to the third antenna terminal of the near-field antenna, and the fourth output terminal of the second matching circuit is connected to the fourth antenna terminal of the near-field antenna.

[0088] In one embodiment of this specification, the tag chip 2001 is connected to the third input terminal of the second matching circuit 2006 via a third RF port, and the second matching circuit 2006 is connected to the third antenna terminal of the near-field antenna 2004 via a third output terminal, thus forming a first connection channel between the tag chip 2001, the second matching circuit 2006, and the near-field antenna 2004. Simultaneously, the tag chip 2001 is connected to the fourth input terminal of the second matching circuit 2006 via a fourth RF port, and the second matching circuit 2006 is connected to the fourth antenna terminal of the near-field antenna 2004 via a fourth output terminal, thus forming a second connection channel between the tag chip 2001, the second matching circuit 2006, and the near-field antenna 2004. These first and second connection channels can collaboratively constitute a complete loop channel between the tag chip 2001, the second matching circuit 2006, and the near-field antenna 2004, thereby improving the stability of the operating state of these devices.

[0089] Figure 7 This is a schematic diagram of the sixth near-field communication module provided in one embodiment of this specification. Figure 7 As shown, the near-field communication module 200 may also include a second matching circuit 2006. When the first matching circuit 2005 is connected in series between the switching unit 2003 and the near-field antenna 2004, the second matching circuit 2006 may be connected in series between the tag chip 2001 and the first matching circuit 2005.

[0090] Optionally, the radio frequency port of the tag chip is connected to the input terminal of the second matching circuit; the output terminal of the second matching circuit is connected to the input terminal of the first matching circuit.

[0091] In one embodiment of this specification, the radio frequency (RF) signal provided by the tag chip 2001 can be transmitted to the input terminal of the second matching circuit 2006 through the RF port on the tag chip 2001. This RF signal is then input to the second matching circuit 2006 through its input terminal. The second matching circuit 2006 adjusts the RF signal to meet the requirements of near-field communication. The second matching circuit 2006 then transmits the RF signal to the first matching circuit 2005 through its output terminal. The first matching circuit 2005 then transmits the signal to the near-field antenna 2004, which finally transmits it outwards. The RF signal in the second matching circuit 2006 is also transmitted to the near-field antenna 2004 through the first matching circuit 2005, thus avoiding a direct connection between the second matching circuit 2006 and the near-field antenna 2004. This reduces the number of antenna terminals in the near-field antenna 2004, simplifies its structure, and lowers the production cost of the near-field communication module.

[0092] In one embodiment of this specification, the radio frequency port of the tag chip 2001 may include a third radio frequency port and a fourth radio frequency port, the input terminal of the second matching circuit 2006 may include a third input terminal and a fourth input terminal, the output terminal of the second matching circuit 2006 may include a third output terminal and a fourth output terminal, and the input terminal of the first matching circuit 2005 may include a first input terminal and a second input terminal.

[0093] In one embodiment of this specification, the explanation regarding the connection between the radio frequency port of the tag chip and the input terminal of the second matching circuit can be found in the above explanation and will not be repeated here.

[0094] Optionally, the output terminal of the second matching circuit is connected to the input terminal of the first matching circuit, which may include: the third output terminal of the second matching circuit is connected to the first input terminal of the first matching circuit, and the fourth output terminal of the second matching circuit is connected to the second input terminal of the first matching circuit.

[0095] In one embodiment of this specification, the second matching circuit 2006 is connected to the first input terminal of the first matching circuit 2005 via a third output terminal to form a first connection channel between the second matching circuit 2006 and the first matching circuit 2005. Simultaneously, the second matching circuit 2006 is connected to the second input terminal of the first matching circuit 2005 via a fourth output terminal to form a second connection channel between the second matching circuit 2006 and the first matching circuit 2005. These first and second connection channels can collaboratively constitute a complete loop between the second matching circuit 2006 and the first matching circuit 2005, thereby improving the stability of the operating state of devices such as the first matching circuit 2005 and the second matching circuit 2006.

[0096] In one embodiment of this specification, if the radio frequency signal provided by the card reader chip 2002 already meets the requirements of the radio frequency signal for near-field communication, the first matching circuit 2005 may not be provided in the near-field communication module. Similarly, if the radio frequency signal provided by the tag chip 2001 already meets the requirements of the radio frequency signal for near-field communication, the second matching circuit 2006 may not be provided in the near-field communication module.

[0097] In one implementation, the switch unit 2003 can also be connected between the tag chip 2001 and the near-field antenna 2004; when the near-field communication module is used as a master device module for near-field communication, the switch unit 2003 controls the near-field antenna 2004 and the tag chip 2001 to be in an open-circuit state; when the near-field communication module is used as a slave device module for near-field communication, the switch unit 2003 controls the near-field antenna 2004 and the tag chip 2001 to be in a closed-circuit state.

[0098] In one embodiment of this specification, when connecting the tag chip 2001 and the near-field antenna 2004, the tag chip 2001 can be connected to the switching unit 2003 first, and then the switching unit 2003 can be connected to the near-field antenna 2004, so that the switching unit 2003 can control the connection and disconnection between the tag chip 2001 and the near-field antenna 2004.

[0099] In practical applications, when the near-field communication module is used as the main device module for near-field communication, the near-field communication module mainly uses the card reader chip 2002 to interact with external NFC devices. At this time, the switch unit 2003 can be used to control the card reader chip 2002 and the near-field antenna 2004 to be in a closed circuit state, and to control the near-field antenna 2004 and the tag chip 2001 to be in a closed circuit state, so as to avoid the tag chip 2001 interfering with the interaction process between the card reader chip 2002 and the external NFC device. When the near-field communication module acts as a slave device module in near-field communication, it mainly uses the tag chip 2001 to interact with external NFC devices. At this time, the switching unit 2003 can be used to control the near-field antenna 2004 and the tag chip 2001 to be in a closed-circuit state, and to control the card reader chip 2002 and the near-field antenna 2004 to be in a closed-circuit state, so as to avoid the card reader chip 2002 interfering with the interaction process between the tag chip 2001 and the external NFC device. For example, the card search signal sent by the card reader chip 2002 may cause the external NFC device to accidentally eject the card, causing the external NFC device to mistakenly enter the card emulation mode, so that the external NFC device cannot interact with the tag chip 2001 as a card reader device.

[0100] In one implementation, the radio frequency port of the card reader chip 2002 is connected to the first controlled terminal of the switch unit 2003; the radio frequency port of the tag chip 2001 is connected to the second controlled terminal of the switch unit 2003; the near-field antenna 2004 is connected to the common terminal of the switch unit 2003; when the first controlled terminal is in a conducting state, the second controlled terminal is in a non-conducting state; when the second controlled terminal is in a conducting state, the first controlled terminal is in a non-conducting state.

[0101] In one embodiment of this specification, the switching unit 2003 may include one sub-switching element, or the switching unit 2003 may include two sub-switching elements.

[0102] As one implementation method, Figure 8 This is a schematic diagram of the structure of a seventh near-field communication module provided in one embodiment of this specification. Figure 8 As shown, the near-field communication module 200 includes a first sub-switch element 2003-1 in the switch unit 2003. The tag chip 2001 and the card reader chip 2002 share a first sub-switch element 2003-1 and are connected to the near-field antenna 2004.

[0103] In one embodiment of this specification, the first sub-switch element 2003-1 may be provided with a first sub-controlled terminal, a second sub-controlled terminal, and a common terminal. The radio frequency port of the card reader chip 2002 may be connected to the first sub-controlled terminal on the first sub-switch element 2003-1, the radio frequency port of the tag chip 2001 may be connected to the second sub-controlled terminal of the first sub-switch element 2003-1, and the common terminal of the first sub-switch element 2003-1 may be connected to the antenna terminal of the near-field antenna 2004.

[0104] In practical applications, when the near-field communication module acts as the master device module, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a conducting state, thereby enabling the reader chip 2002 to operate, and control the second sub-controlled terminal to be in a non-conducting state, thereby enabling the tag chip 2001 to operate. When the near-field communication module acts as a slave device module, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a non-conducting state, thereby enabling the reader chip 2002 to operate, and control the second sub-controlled terminal to be in a conducting state, thereby enabling the tag chip 2001 to operate. By controlling the first sub-controlled terminal to be in a conducting state while simultaneously controlling the second sub-controlled terminal to be in a non-conducting state, or by controlling the second sub-controlled terminal to be in a conducting state while simultaneously controlling the first sub-controlled terminal to be in a non-conducting state, the interference problem between the reader chip 2002 and the tag chip 2001 can be effectively avoided, improving the user experience.

[0105] In one embodiment of this specification, a sub-switch element is provided in the switch unit 2003, and the card reader chip 2002 and the tag chip 2001 are controlled by sharing the sub-switch element, thereby simplifying the structure of the near-field communication module and saving the development cost of the near-field communication module.

[0106] As one implementation method, Figure 9 This is a schematic diagram of the structure of an eighth near-field communication module provided in one embodiment of this specification. Figure 9 As shown, the near-field communication module 200 may include two sub-switching elements in its switching unit 2003, namely a first sub-switching element 2003-1 and a second sub-switching element 2003-2. The tag chip 2001 is connected to the near-field antenna 2004 through the second sub-switching element 2003-2, and the card reader chip 2002 is connected to the near-field antenna 2004 through the first sub-switching element 2003-1.

[0107] In one embodiment of this specification, the first sub-switch element 2003-1 may be provided with a first sub-controlled terminal and a first common terminal; the first sub-switch element 2003-1 may be provided with a second sub-controlled terminal and a second common terminal; and the antenna terminal of the near-field antenna 2004 may include a first antenna terminal and a second antenna terminal. The first radio frequency port of the card reader chip 2002 may be connected to the first sub-controlled terminal of the first sub-switch element 2003-1, and the first common terminal of the first sub-switch element 2003-1 may be connected to the first antenna terminal of the near-field antenna 2004 to form a first connection path between the card reader chip and the near-field antenna. The third radio frequency port of the tag chip 2001 may be connected to the second sub-controlled terminal of the first sub-switch element 2003-1, and the second common terminal of the first sub-switch element 2003-1 may be connected to the second antenna terminal of the near-field antenna 2004 to form a third connection path between the tag chip and the near-field antenna.

[0108] In practical applications, as one implementation, the second radio frequency port of the card reader chip 2002 can be directly connected to the near-field antenna to form a second connection path between the card reader chip and the near-field antenna. The fourth radio frequency port of the tag chip 2001 can be directly connected to the near-field antenna to form a fourth connection path between the tag chip and the near-field antenna. As another implementation, it can also be as follows... Figure 10 As shown, the second RF port of the card reader chip 2002 is connected to the controlled terminal in the second sub-switch element. The fourth RF port of the tag chip 2001 is also connected to the controlled terminal in the second sub-switch element.

[0109] In practical applications, when the near-field communication module is used as the main device module for near-field communication, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a conducting state, so that the first connection path between the card reader chip and the near-field antenna is in a conducting state, and the control program controls the second connection path between the card reader chip and the near-field antenna to also be in a connected state, so that the card reader chip 2002 is in a working state. The first sub-switch element 2003-1 can control the second sub-controlled terminal to be in a non-conductive state, thereby deactivating the third connection path between the tag chip and the near-field antenna. Alternatively, it can control the fourth connection path between the tag chip and the near-field antenna to be in a non-conductive state, thereby deactivating the tag chip 2001. When the near-field communication module acts as a slave device module for near-field communication, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a non-conductive state, thereby deactivating the first connection path between the reader chip and the near-field antenna. Alternatively, it can control the second connection path between the reader chip and the near-field antenna to be in a non-conductive state, thereby deactivating the reader chip 2002. The first sub-switch element 2003-1 can also control the second sub-controlled terminal to be in a conductive state, thereby activating the third connection path between the tag chip and the near-field antenna, and can also control the fourth connection path between the tag chip and the near-field antenna to be in a conductive state, thereby activating the tag chip 2001. By controlling the card reader chip to be in working state while simultaneously controlling the tag chip to be in working state, or controlling the tag chip to be in working state while simultaneously controlling the card reader chip to be in working state, the interference problem between the card reader chip 2002 and the tag chip 2001 can be effectively avoided, thus improving the user experience.

[0110] In one embodiment of this specification, when the switch unit 2003 includes two sub-switch elements, the card reader chip 2002 can be connected to the two sub-switch elements respectively, and the tag chip 2001 can also be connected to the two sub-switch elements respectively, so as to improve the accuracy of the switch unit 2003 in controlling the card reader chip 2002 and the tag chip 2001.

[0111] As one implementation method, Figure 10 This is a schematic diagram of the structure of a ninth near-field communication module provided in one embodiment of this specification. Figure 10As shown, the switching unit 2003 in the near-field communication module 200 may include two sub-switching elements, namely, first sub-switching element 2003-1 and first sub-switching element 2003-1. Tag chip 2001 can establish a first connection with near-field antenna 2004 through first sub-switching element 2003-1, and a second connection with near-field antenna 2004 through first sub-switching element 2003-1. Reader chip 2002 can establish a third connection with near-field antenna 2004 through first sub-switching element 2003-1, and a fourth connection with near-field antenna 2004 through first sub-switching element 2003-1.

[0112] In one embodiment of this specification, the first sub-switch element 2003-1 may be provided with a first sub-controlled terminal, a third sub-controlled terminal and a first common terminal; the first sub-switch element 2003-1 may be provided with a second sub-controlled terminal, a fourth sub-controlled terminal and a second common terminal; the antenna end of the near-field antenna 2004 may include a first antenna end and a second antenna end; the radio frequency port of the card reader chip 2002 may include a first radio frequency port and a second video port; and the radio frequency port of the tag chip 2001 may include a third video port and a fourth radio frequency port.

[0113] The first radio frequency (RF) port of the card reader chip 2002 can be connected to the first sub-controlled terminal on the first sub-switch element 2003-1, the second RF port of the card reader chip 2002 can be connected to the second sub-controlled terminal on the first sub-switch element 2003-1, the third RF port of the tag chip 2001 can be connected to the third sub-controlled terminal on the first sub-switch element 2003-1, and the fourth RF port of the tag chip 2001 can be connected to the fourth sub-controlled terminal on the first sub-switch element 2003-1. The first common terminal of the first sub-switch element 2003-1 can be connected to the first antenna terminal of the near-field antenna 2004, and the second common terminal of the first sub-switch element 2003-1 can be connected to the second antenna terminal of the near-field antenna 2004.

[0114] In practical applications, when the near-field communication module acts as the master device module for near-field communication, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a conducting state, and the first sub-switch element 2003-1 can control the second sub-controlled terminal to be in a conducting state. Simultaneously, the first sub-switch element 2003-1 can control the third sub-controlled terminal to be in a non-conducting state, and / or the first sub-switch element 2003-1 can control the fourth sub-controlled terminal to be in a non-conducting state. When the near-field communication module acts as a slave device module for near-field communication, the first sub-switch element 2003-1 can control the first sub-controlled terminal to be in a non-conducting state, and / or the first sub-switch element 2003-1 can control the second sub-controlled terminal to be in a non-conducting state, while simultaneously the first sub-switch element 2003-1 can control the third sub-controlled terminal to be in a conducting state, and the second sub-switch element 2003 can control the fourth sub-controlled terminal to be in a conducting state. This effectively avoids the problem of mutual interference between the card reader chip 2002 and the tag chip 2001, thereby improving the user experience.

[0115] In one embodiment of this specification, the reader chip 2002 and the near-field antenna 2004 can be connected via a dual-path connection through a first sub-switching element 2003-1, thereby forming a complete loop channel between the reader chip 2002 and the near-field antenna 2004, which can improve the stability of the operating state of the reader chip 2002 and other devices such as the switching element. Similarly, the tag chip 2001 and the near-field antenna 2004 can also be connected via a dual-path connection through a first sub-switching element 2003-1, thereby forming a complete loop channel between the tag chip 2001 and the near-field antenna 2004, which can also improve the stability of the operating state of the tag chip 2001 and other devices such as the switching element.

[0116] In one implementation, the radio frequency port of the tag chip may include a radio frequency transmission port.

[0117] In one embodiment of this specification, the radio frequency (RF) ports of the tag chip may include a third RF port and a fourth RF port. The third RF port and the fourth RF port may be two RF transmission ports on the tag chip, used to transmit electrical signals provided by the tag chip to the outside.

[0118] In one implementation, the radio frequency port of the card reader chip may include a radio frequency transmission port.

[0119] In one embodiment of this specification, the radio frequency port of the card reader chip may include a first radio frequency port and a second radio frequency port. The first radio frequency port and the second radio frequency port may be two radio frequency transmission ports on the card reader chip, used to transmit electrical signals provided by the card reader chip to the outside.

[0120] In one implementation, the near-field communication module may further include a control unit connected to the switching unit for controlling the state of the switching unit. And / or, the switching unit includes at least one radio frequency switch selected from a single-pole single-throw switch and a single-pole double-throw switch. In practical applications, the control unit may be a microcontroller unit (MCU) or other components with control capabilities.

[0121] In one embodiment of this specification, when the near-field communication module acts as the master device module for near-field communication, the control unit can control the controlled terminal in the switching unit connected to the reader chip to be in a conducting state, and control the controlled terminal in the switching unit connected to the tag chip to be in a non-conducting state. This allows the electrical signal provided by the reader chip to be transmitted outward, while the radio frequency signal provided by the tag chip cannot be transmitted outward, effectively avoiding signal interference. When the near-field communication module acts as a slave device module for near-field communication, the control unit can control the controlled terminal in the switching unit connected to the tag chip to be in a conducting state, and control the controlled terminal in the switching unit connected to the reader chip to be in a non-conducting state. This allows the electrical signal provided by the tag chip to be transmitted outward, while the radio frequency signal provided by the reader chip cannot be transmitted outward, effectively avoiding signal interference.

[0122] In related technologies, the switching element of the switching unit is a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor). However, in high-frequency signal transmission scenarios, MOSFETs have problems with large parasitic capacitance and parasitic inductance, which can easily cause a sharp increase in the frequency loss of radio frequency signals, seriously affecting the transmission quality of NFC signals. At the same time, when MOSFETs are used as switching elements, they can only realize two working states: on and ground, and do not have an off state. Therefore, their isolation performance for NFC signals is poor, making it difficult to meet the signal isolation requirements of near-field communication.

[0123] In one embodiment of this specification, the switching element of the switching unit is configured as a radio frequency (RF) switch, which may include at least one of a single-pole single-throw (SPSS) switch and a single-pole double-throw (SPDSS) switch. RF switches typically achieve switching state transitions through plug-in switching. This plug-in method results in relatively low insertion loss, effectively reducing NFC signal loss and ensuring the transmission quality of the RF signal. Furthermore, RF switches can achieve both on and off operating states, providing superior isolation performance for NFC signals and better meeting the signal isolation requirements of near-field communication. In practical applications, the switching unit 2003 may be capable of handling RF voltages of 30 to 40 volts, or it may be a switching unit capable of handling RF voltages of other volt values; no limitation is made here.

[0124] In one embodiment of this specification, the near-field communication module may not include a control unit. Instead, selective control of the reader chip and tag chip's operating status can be achieved through the module's built-in software program. Alternatively, if the near-field communication module includes a control unit, a combination of hardware control and software control within the control unit can be used to implement dual management of the reader chip and tag chip. This improves the accuracy of controlling their operating status, further reduces signal interference between the two chips, and ensures stable near-field communication signal transmission.

[0125] As one implementation method, Figure 11 This is a schematic diagram of the structure of a tenth near-field communication module provided in one embodiment of this specification. Figure 11 As shown, the near-field communication module 200 may include a tag chip 2001, a card reader chip 2002, a first sub-switch element 2003-1, a near-field antenna 2004, a first matching circuit 2005, a second matching circuit 2006, and a control unit 2007.

[0126] In one embodiment of this specification, the card reader chip 2002 includes a first radio frequency port and a second radio frequency port; the tag chip 2001 includes a third radio frequency port and a fourth radio frequency port; the first sub-switch element 2003-1 includes a first sub-controlled terminal, a third sub-controlled terminal, a first common terminal, and a first control signal input terminal; the first sub-switch element 2003-1 includes a second sub-controlled terminal, a fourth sub-controlled terminal, a second common terminal, and a second control signal input terminal; the first matching circuit 2005 includes a first input terminal, a second input terminal, a first output terminal, and a second output terminal; the second matching circuit 2006 includes a third input terminal, a fourth input terminal, a third output terminal, and a fourth output terminal; and the near-field antenna 2004 includes a first antenna terminal and a second antenna terminal.

[0127] In one embodiment of this specification, a radio frequency (RF) port refers to an electrical interface terminal used for RF signal input, output, or bidirectional transmission. A controlled terminal refers to an electrical port used for receiving RF signals. A common terminal refers to a port at the common connection point of the RF path, which can selectively establish a conducting RF path with one controlled terminal of the switching unit, while other controlled terminals are in an RF off state.

[0128] In one embodiment of this specification, the first radio frequency port of the card reader chip 2002 can be connected to the first input terminal of the first matching circuit 2005, the first output terminal of the first matching circuit 2005 can be connected to the first sub-controlled terminal of the first sub-switching element 2003-1, and the first common terminal of the first sub-switching element 2003-1 can be connected to the first antenna terminal of the near-field antenna 2004, so as to form a first signal path between the card reader chip 2002, the first matching circuit 2005, the first sub-switching element 2003-1, and the near-field antenna 2004. The second RF port of the card reader chip 2002 can be connected to the second input terminal of the first matching circuit 2005. The second output terminal of the first matching circuit 2005 can be connected to the second sub-controlled terminal of the first sub-switching element 2003-1. The second common terminal of the first sub-switching element 2003-1 can be connected to the second antenna terminal of the near-field antenna 2004, thereby forming a second signal path between the card reader chip 2002, the first matching circuit 2005, the first sub-switching element 2003-1, and the near-field antenna 2004. The third RF port of the tag chip 2001 can be connected to the third input terminal of the second matching circuit 2006. The third output terminal of the second matching circuit 2006 can be connected to the third sub-controlled terminal of the first sub-switching element 2003-1. The first common terminal of the first switching element can be connected to the first antenna terminal of the near-field antenna 2004, thereby forming a third signal path between the tag chip 2001, the second matching circuit 2006, the first sub-switching element 2003-1, and the near-field antenna 2004. The fourth RF port of the tag chip 2001 can be connected to the fourth input terminal of the second matching circuit 2006, the fourth output terminal of the second matching circuit 2006 can be connected to the fourth sub-controlled terminal of the first sub-switching element 2003-1, and the second common terminal of the first sub-switching element 2003-1 can be connected to the second antenna terminal of the near-field antenna 2004, so as to form a fourth signal path between the tag chip 2001, the second matching circuit 2006, the first sub-switching element 2003-1, and the near-field antenna 2004.

[0129] In one embodiment of this specification, the first control signal output terminal of the control unit can be connected to the first control signal input terminal of the first sub-switch element 2003-1 to control the first sub-controlled terminal or the third sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting state or a non-conducting state. The second control signal output terminal of the control unit can be connected to the second control signal input terminal of the first sub-switch element 2003-1 to control the second sub-controlled terminal or the fourth sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting state or a non-conducting state. This effectively controls the card reader chip 2002 to be in a working state or a non-working state, and controls the tag chip 2001 to be in a working state or a non-working state. This allows for the control of the card reader chip 2002 to be in a working state while the tag chip 2001 is in a non-working state, or vice versa, during the same working period. This avoids interference between the card reader chip 2002 and the tag chip 2001, thereby improving the user experience.

[0130] As one implementation method, Figure 12 This is a schematic diagram of the structure of an eleventh near-field communication module provided in one embodiment of this specification. Figure 12 As shown, the near-field communication module 200 may include a tag chip 2001, a card reader chip 2002, a first sub-switch element 2003-1, a near-field antenna 2004, a first matching circuit 2005, a second matching circuit 2006, and a control unit 2007.

[0131] In one embodiment of this specification, the card reader chip 2002 includes a first radio frequency port and a second radio frequency port; the tag chip 2001 includes a third radio frequency port and a fourth radio frequency port; the first sub-switch element 2003-1 includes a third sub-controlled terminal, a first common terminal and a first control signal input terminal; the first sub-switch element 2003-1 includes a fourth sub-controlled terminal, a second common terminal and a second control signal input terminal; the first matching circuit 2005 includes a first input terminal, a second input terminal, a first output terminal and a second output terminal; the second matching circuit 2006 includes a third input terminal, a fourth input terminal, a fifth input terminal, a sixth input terminal, a third output terminal and a fourth output terminal; and the near-field antenna 2004 includes a first antenna terminal and a second antenna terminal.

[0132] In one embodiment of this specification, the explanations of the radio frequency port, the controlled terminal, and the common terminal can be found above and will not be repeated here.

[0133] In one embodiment of this specification, the first radio frequency port of the card reader chip 2002 can be connected to the first input terminal of the first matching circuit 2005, the first output terminal of the first matching circuit 2005 can be connected to the fifth input terminal of the second matching circuit 2006, and the third output terminal of the second matching circuit 2006 can be connected to the first antenna terminal of the near-field antenna 2004, thereby forming a first signal path among the card reader chip 2002, the first matching circuit 2005, the second matching circuit 2006, and the near-field antenna 2004. The second radio frequency port of the card reader chip 2002 can be connected to the second input terminal of the first matching circuit 2005, the second output terminal of the first matching circuit 2005 can be connected to the sixth input terminal of the second matching circuit 2006, and the fourth output terminal of the second matching circuit 2006 can be connected to the second antenna terminal of the near-field antenna 2004, thereby forming a second signal path among the card reader chip 2002, the first matching circuit 2005, the second matching circuit 2006, and the near-field antenna 2004. The third RF port of the tag chip 2001 can be connected to the third sub-controlled terminal of the first sub-switch element 2003-1. The first common terminal of the first sub-switch element 2003-1 can be connected to the third input terminal of the second matching circuit 2006. The third output terminal of the second matching circuit 2006 is connected to the first antenna terminal of the near-field antenna 2004 to form a third signal path between the tag chip 2001, the first sub-switch element 2003-1, the second matching circuit 2006 and the near-field antenna 2004. The fourth RF port of the tag chip 2001 can be connected to the fourth sub-controlled terminal of the first sub-switch element 2003-1, the second common terminal of the first sub-switch element 2003-1 can be connected to the fourth input terminal of the second matching circuit 2006, and the fourth output terminal of the second matching circuit 2006 can be connected to the second antenna terminal of the near-field antenna 2004, so as to form a fourth signal path between the tag chip 2001, the first sub-switch element 2003-1, the second matching circuit 2006, and the near-field antenna 2004.

[0134] In one embodiment of this specification, the first control signal output terminal of the control unit can be connected to the first control signal input terminal of the first sub-switch element 2003-1 to control the third sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting or non-conducting state. The second control signal output terminal of the control unit can be connected to the second control signal input terminal of the first sub-switch element 2003-1 to control the fourth sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting or non-conducting state. This effectively controls the tag chip 2001 to be in a working or non-working state. In practical applications, the reader chip 2002 can be controlled to be in a working or non-working state by the software program in the near-field communication module. This allows the reader chip 2002 to be in a working state while the tag chip 2001 is in a non-working state, or the tag chip 2001 to be in a working state while the reader chip 2002 is in a non-working state, during the same working period, thus avoiding interference between the signals provided by the reader chip 2002 and the tags 2001.

[0135] As one implementation method, Figure 13 This is a schematic diagram of the structure of a twelfth near-field communication module provided in one embodiment of this specification. Figure 13 As shown, the near-field communication module 200 may include a tag chip 2001, a card reader chip 2002, a first sub-switch element 2003-1, a near-field antenna 2004, a first matching circuit 2005, a second matching circuit 2006, and a control unit 2007.

[0136] In one embodiment of this specification, the card reader chip 2002 includes a first radio frequency port and a second radio frequency port; the tag chip 2001 includes a third radio frequency port and a fourth radio frequency port; the first sub-switch element 2003-1 includes a first sub-controlled terminal, a first common terminal and a first control signal input terminal; the first sub-switch element 2003-1 includes a second sub-controlled terminal, a second common terminal and a second control signal input terminal; the first matching circuit 2005 includes a first input terminal, a second input terminal, a seventh input terminal, an eighth input terminal, a first output terminal and a second output terminal; the second matching circuit 2006 includes a third input terminal, a fourth input terminal, a third output terminal and a fourth output terminal; and the near-field antenna 2004 includes a first antenna terminal and a second antenna terminal.

[0137] In one embodiment of this specification, the explanations of the radio frequency port, the controlled terminal, and the common terminal can be found above and will not be repeated here.

[0138] In one embodiment of this specification, the first radio frequency port of the card reader chip 2002 can be connected to the first sub-controlled terminal of the first sub-switching element 2003-1, the first common terminal of the first sub-switching element 2003-1 can be connected to the first input terminal of the first matching circuit 2005, and the first output terminal of the first matching circuit 2005 can be connected to the first antenna terminal of the near-field antenna 2004, so as to form a first signal path between the card reader chip 2002, the first sub-switching element 2003-1, the first matching circuit 2005, and the near-field antenna 2004. The second RF port of the card reader chip 2002 can be connected to the second sub-controlled terminal of the first sub-switch element 2003-1. The second common terminal of the first sub-switch element 2003-1 can be connected to the second input terminal of the first matching circuit 2005. The second output terminal of the first matching circuit 2005 can be connected to the second antenna terminal of the near-field antenna 2004, thereby forming a second signal path between the card reader chip 2002, the first sub-switch element 2003-1, the first matching circuit 2005, and the near-field antenna 2004. The third RF port of the tag chip 2001 can be connected to the third input terminal of the second matching circuit 2006. The third output terminal of the second matching circuit 2006 can be connected to the seventh input terminal of the first matching circuit 2005. The first output terminal of the first matching circuit 2005 can be connected to the first antenna terminal of the near-field antenna 2004, thereby forming a third signal path between the tag chip 2001, the second matching circuit 2006, the first matching circuit 2005, and the near-field antenna 2004. The fourth RF port of the tag chip 2001 can be connected to the fourth input terminal of the second matching circuit 2006, the fourth output terminal of the second matching circuit 2006 can be connected to the eighth input terminal of the first matching circuit 2005, and the second output terminal of the first matching circuit 2005 can be connected to the second antenna terminal of the near-field antenna 2004, so as to form a fourth signal path between the tag chip 2001, the second matching circuit 2006, the first matching circuit 2005, and the near-field antenna 2004.

[0139] In one embodiment of this specification, the first control signal output terminal of the control unit can be connected to the first control signal input terminal of the first sub-switch element 2003-1 to control the first sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting or non-conducting state. The second control signal output terminal of the control unit can be connected to the second control signal input terminal of the first sub-switch element 2003-1 to control the second sub-controlled terminal on the first sub-switch element 2003-1 to be in a conducting or non-conducting state. This effectively controls the connection or disconnection between the card reader chip 2002 and the near-field antenna 2004. In practical applications, the connection or disconnection between the tag chip 2001 and the near-field antenna 2004 can be controlled by the software program in the near-field communication module. This allows for the following: during the same working period, the reader chip 2002 can be connected to the near-field antenna 2004 while the tag chip 2001 is not connected to the near-field antenna 2004; or the tag chip 2001 can be connected to the near-field antenna 2004 while the reader chip 2002 is not connected to the near-field antenna, thus avoiding interference between the signals provided by the reader chip 2002 and the tags.

[0140] In one implementation, the software program in the near-field communication module can also be used to control whether the reader chip 2002 is connected to or not connected to the near-field antenna, and the same software program can be used to control whether the tag chip 2001 is connected to or not connected to the near-field antenna. This allows the reader chip 2002 to be connected to the near-field antenna while the tag chip 2001 is not connected to the near-field antenna, or vice versa, during the same working period, thereby avoiding interference between the signals provided by the reader chip 2002 and the tag chip 2001.

[0141] Based on the same idea, embodiments of this specification also provide a control method for near-field communication performed based on the above-described near-field communication module. Figure 14 This is a flowchart illustrating a near-field communication control method according to one embodiment of this specification. From a hardware perspective, the entity executing the process can be a near-field communication module; from a software perspective, the entity executing the process can be a program mounted on the near-field communication module. The specific structure of the near-field communication module can be found in one or more of the foregoing embodiments, and will not be repeated here.

[0142] like Figure 14 As shown, the method may include the following steps.

[0143] Step 1402: Obtain a first instruction for instructing the near-field communication module to be used as a master device module for near-field communication.

[0144] In one embodiment of this specification, the triggering form of the first instruction may include an instruction manually input by the user through the human-machine interface of the near-field communication module, an instruction issued by the user to the near-field communication module via an external device, or an instruction automatically generated by the near-field communication module in response to an external triggering event; wherein, the external triggering event may include a triggering operation performed by the user on the hardware control of the near-field communication module, such as a press triggering operation performed on a physical button on the near-field communication module.

[0145] In practical applications, when the near-field communication module is used as a payment device at the cashier, the cashier can select the payment method, such as bank card payment, at the cashier or payment device when they determine that the consumer is using a bank card or other card. The near-field communication module can obtain the first instruction and switch to the main device module mode based on the first instruction.

[0146] In one implementation, the near-field communication module may include a control unit (MCU), which can acquire a first instruction to instruct the near-field communication module to be used as a master device module for near-field communication. An explanation of the control unit can be found in one or more of the foregoing embodiments, and will not be repeated here.

[0147] Step 1404: Based on the first instruction, set the switching unit in the near-field communication module to the first state, so that the near-field antenna in the near-field communication module and the card reader chip in the near-field communication module are in a connected state.

[0148] In one embodiment of this specification, the first state of the switching unit refers to the state used to connect the near-field antenna in the near-field communication module to the card reader chip. The path state refers to the state in which a continuous and effective electrically conductive radio frequency signal path is formed between the near-field antenna and the card reader chip through the switching unit, so as to ensure that the radio frequency signal between the card reader chip and the near-field antenna can be transmitted smoothly in both directions.

[0149] In one embodiment of this specification, by setting the switching unit to the first state, a dedicated radio frequency path for directional conduction between the card reader chip and the near-field antenna is realized, providing a stable and effective hardware path support for the card reader chip to perform the main device function, thereby improving the stability of the near-field communication module entering the working state of the main device module.

[0150] based on Figure 14 In addition to the method described herein, this specification also provides some specific implementation methods of this method, which will be described below.

[0151] Optionally, the method may further include: if a second instruction is obtained to instruct the near-field communication module to be used as a slave device module for near-field communication; then based on the second instruction, setting the switching unit in the near-field communication module to a second state, so that the near-field antenna and the card reader chip are in an open-circuit state.

[0152] In one embodiment of this specification, the explanation of the triggering form of the second instruction can be found in the triggering form of the first instruction described above, and will not be repeated here. The second state of the switching unit refers to the state used to disconnect the near-field antenna in the near-field communication module from the card reader chip. The open-circuit state refers to the state in which the electrical conduction between the near-field antenna and the card reader chip is completely interrupted, and the radio frequency signal cannot be transmitted bidirectionally between the two.

[0153] In practical applications, when the near-field communication module is used as a payment device at the cashier, the cashier can select a payment method, such as mobile payment, at the cashier or payment device when they determine that the consumer is using a mobile phone or other terminal. The near-field communication module can obtain a second instruction and switch to slave device module mode based on the second instruction.

[0154] In one implementation, the switching unit can control the connection or disconnection of the signal path between the card reader chip and the near-field antenna.

[0155] As another implementation, on the one hand, the switching unit can control the connection or disconnection of the signal path between the card reader chip and the near-field antenna; on the other hand, the switching unit can also control the connection or disconnection of the signal path between the tag chip and the near-field antenna.

[0156] Optionally, when the switching unit is set to the first state, the near-field antenna and the tag chip in the near-field communication module are in an open-circuit state.

[0157] In one embodiment of this specification, when the switching unit can also control the connection or disconnection of the signal path between the tag chip and the near-field antenna, the switching unit is set to the first state, in which case the switching unit can control the signal path between the near-field antenna and the tag chip to be in an open circuit state.

[0158] In practical applications, the open circuit state can be understood as a state where the electrical path is invalid. It is not a direct disconnection of the physical connection, but an interruption of electrical conduction achieved through internal switching of the switching unit, which is different from the open circuit caused by physical link damage.

[0159] Figure 14The method described herein allows for the control of the near-field communication module during any given working period. This control unit can either ensure that the reader chip and the near-field antenna are connected while the tag chip and the near-field antenna are disconnected, or that the tag chip and the near-field antenna are connected while the reader chip and the near-field antenna are disconnected. This effectively avoids interference between the reader chip and the tag chip, thereby improving the user experience.

[0160] While one or more embodiments of this specification provide method steps as described in the embodiments or flowcharts, it is understood that the order of steps listed in the embodiments or flowcharts is merely one possible execution order among many steps and does not represent the only possible execution order. The order of some steps may be adjusted according to actual needs, or some steps may be omitted. When the claims involve method steps, changes in the order of such steps, or parallel execution between steps, are also within the scope of protection of the claims.

[0161] The various technical features in the above embodiments can be combined arbitrarily, as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they have not been described one by one. Therefore, the arbitrary combination of various technical features in the above embodiments is also within the scope of this specification.

[0162] Based on the same idea, one embodiment of this specification also provides a near-field communication device, which may include the near-field communication module in one or more of the above embodiments, or the near-field communication device may be able to perform the above-described near-field communication control method.

[0163] Based on the same idea, this specification also provides devices corresponding to the above-described near-field communication control method.

[0164] Figure 15 This is a structural block diagram of a computing device provided in one embodiment of this specification.

[0165] The computing device 1500 includes: Memory 1510 and processor 1520; The memory 1510 is used to store computer programs or instructions, and the processor 1520 is used to execute the computer programs or instructions, which, when executed by the processor 1520, implement the steps of the near-field communication control method.

[0166] Specifically, the components of the computing device 1500 include, but are not limited to, a memory 1510 and a processor 1520. The processor 1520 is connected to the memory 1510 via a bus 1530, and the database 1550 is used to store data.

[0167] The computing device 1500 also includes an access device 1540, which enables the computing device 1500 to communicate via one or more networks 1560. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 1540 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0168] In one embodiment of this specification, the above-described components of the computing device 1500 and Figure 15 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 15 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0169] The computing device 1500 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 1500 can also be a mobile or stationary server.

[0170] The step of the near-field communication control method is implemented when the processor 1520 executes the computer instructions.

[0171] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the near-field communication control method described above.

[0172] An embodiment of this specification also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the control method for near-field communication as described above.

[0173] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the near-field communication control method described above.

[0174] An embodiment of this specification also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described near-field communication control method.

[0175] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the near-field communication control method described above belong to the same concept. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solution of the near-field communication control method described above.

[0176] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The devices and methods provided in the embodiments of this specification are corresponding, and therefore the devices also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding devices will not be repeated here.

[0177] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0178] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0179] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0180] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0181] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0182] Those skilled in the art will understand that one or more embodiments of this specification can be provided as a method, system, or computer program product. Therefore, the invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0183] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0184] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0185] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0186] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0187] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0188] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital character versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0189] This application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0190] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.

Claims

1. A near-field communication module, comprising a tag chip, a reader chip, a near-field antenna, and a switching unit; The tag chip and the reader chip are both connected to the near-field antenna; The switching unit is connected between the card reader chip and the near-field antenna; when the near-field communication module is used as the master device module for near-field communication, the switching unit controls the near-field antenna and the card reader chip to be in a closed circuit state; when the near-field communication module is used as the slave device module for near-field communication, the switching unit controls the near-field antenna and the card reader chip to be in a closed circuit state.

2. The near-field communication module according to claim 1, wherein the switching unit is connected between the card reader chip and the near-field antenna, comprising: The radio frequency port of the card reader chip is connected to the first controlled terminal of the switch unit; The common terminal of the switching unit is connected to the near-field antenna; When the near-field communication module is used as the main device module for near-field communication, the first controlled terminal of the switching unit is in the conducting state, and the card reader chip and the near-field antenna are in the conductive state. When the near-field communication module is used as a slave device module for near-field communication, the first controlled terminal of the switching unit is in an open state, and the card reader chip and the near-field antenna are in an open-circuit state.

3. The near-field communication module according to claim 2, wherein the switching unit includes a first sub-switching element and a second sub-switching element; the radio frequency port of the card reader chip is connected to the first controlled terminal of the switching unit, comprising: The first radio frequency port of the card reader chip is connected to the first sub-controlled terminal of the first sub-switch element; The second radio frequency port of the card reader chip is connected to the second sub-controlled terminal of the second sub-switch element; The connection between the common terminal of the switching unit and the near-field pass antenna includes: The first antenna end of the near-field antenna is connected to the common end of the first sub-switch element; The second antenna terminal of the near-field antenna is connected to the common terminal of the second sub-switch element.

4. The near-field communication module according to claim 2, wherein the near-field communication module further includes a first matching circuit, the first matching circuit including at least one component selected from capacitor, resistor, and inductor; the first matching circuit is used to adjust the signal provided by the card reader chip into a radio frequency signal that meets the requirements of near-field communication; If the first matching circuit is connected in series between the card reader chip and the switching unit, and the radio frequency port of the card reader chip is connected to the first controlled terminal of the switching unit, the following is included: The radio frequency port of the card reader chip is connected to the input terminal of the first matching circuit; The output terminal of the first matching circuit is connected to the first controlled terminal of the switching unit; Alternatively, if the first matching circuit is connected in series between the switching unit and the near-field antenna, and the common terminal of the switching unit is connected to the near-field antenna, the following configuration is included: The common terminal of the switching unit is connected to the input terminal of the first matching circuit; The output of the first matching circuit is connected to the near-field antenna.

5. The near-field communication module according to claim 4, wherein the near-field communication module further includes a second matching circuit, the second matching circuit including at least one component selected from capacitor, resistor, and inductor; the second matching circuit is used to adjust the signal provided by the tag chip into a radio frequency signal that meets the requirements of near-field communication; If the first matching circuit is connected in series between the card reader chip and the switch unit, the radio frequency port of the tag chip is connected to the input terminal of the second matching circuit, and the output terminal of the second matching circuit is connected to the near-field antenna; Alternatively, if the first matching circuit is connected in series between the switching unit and the near-field antenna, the radio frequency port of the tag chip is connected to the input terminal of the second matching circuit; the output terminal of the second matching circuit is connected to the input terminal of the first matching circuit.

6. The near-field communication module according to claim 1, wherein the switching unit is further connected between the tag chip and the near-field antenna; when the near-field communication module is a master device module for near-field communication, the switching unit controls the near-field antenna and the tag chip to be in an open-circuit state; when the near-field communication module is a slave device module for near-field communication, the switching unit controls the near-field antenna and the tag chip to be in a closed-circuit state.

7. The near-field communication module according to claim 6, wherein the radio frequency port of the card reader chip is connected to the first controlled terminal of the switching unit; The radio frequency port of the tag chip is connected to the second controlled terminal of the switching unit; The near-field antenna is connected to the common terminal of the switching unit; When the first controlled terminal is in a conducting state, the second controlled terminal is in a non-conducting state; when the second controlled terminal is in a conducting state, the first controlled terminal is in a non-conducting state.

8. The near-field communication module according to claim 7, wherein the switching unit includes a first sub-switching element and a second sub-switching element; the radio frequency port of the tag chip is connected to the second controlled terminal of the switching unit, comprising: The third radio frequency port of the tag chip is connected to the third sub-controlled terminal of the first sub-switch element; The fourth radio frequency port of the tag chip is connected to the fourth sub-controlled terminal of the second sub-switch element; When the near-field communication module is used as a slave device module for near-field communication, the third sub-controlled terminal and the fourth sub-controlled terminal are in a conducting state.

9. The near-field communication module according to any one of claims 5, 7, and 8, wherein the radio frequency port of the tag chip includes a radio frequency transmission port.

10. The near-field communication module according to any one of claims 2, 3, 4, and 7, wherein the radio frequency port of the card reader chip includes a radio frequency transmission port.

11. The near-field communication module according to any one of claims 1-8, wherein the near-field communication module further comprises a control unit, the control unit being connected to the switching unit and used to control the state of the switching unit; And / or, the switching unit includes at least one radio frequency switch among a single-pole single-throw switch and a single-pole double-throw switch.

12. A control method for near-field communication, applied to the near-field communication module of claim 1, comprising: Obtain a first instruction for instructing the near-field communication module to be used as a master device module for near-field communication; Based on the first instruction, the switching unit in the near-field communication module is set to a first state, so that the near-field antenna in the near-field communication module and the card reader chip in the near-field communication module are in a connected state.

13. The method according to claim 12, further comprising: If a second instruction is received instructing the near-field communication module to be used as a slave device module in near-field communication; Based on the second instruction, the switching unit in the near-field communication module is set to the second state, so that the near-field antenna and the card reader chip are in an open-circuit state.

14. According to the method of claim 12, when the switching unit is set to the first state, the near-field antenna and the tag chip in the near-field communication module are in an open-circuit state.

15. A near-field communication device, the near-field communication device comprising any one of claims 1 to 11, or a control method capable of performing near-field communication as described in any one of claims 12 to 14.

16. A computing device, comprising: Memory and processor; The memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 12 to 14.

17. A computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 12 to 14.

18. A computer program product comprising a computer program or instructions that, when executed by a processor, implement the steps of the method of any one of claims 12 to 14.

Citation Information

Patent Citations

  • Electronic label array and system as well as implementing method for separation multiplexing chip and antenna

    CN101226581A

  • Mode switching module and mode switching method

    CN103684535A

  • Double-frequency multi-protocol multifunctional NFC (near field communication) integrating system and application method

    CN104253634A

  • Service execution method based on NFC dual mode and NFC device

    CN120200637A

  • Electronic work card circuit and electronic work card

    CN215987357U