Near field communication device and method and electronic equipment

By using two non-overlapping or partially overlapping NFC antennas on a smartphone and using the controller to judge the communication range and dynamically select the antenna, the problem of small NFC communication range of smartphones is solved, and the user experience and communication coverage are improved.

CN118921085APending Publication Date: 2024-11-08SHENZHEN GOODIX TECH CO LTD

Patent Information

Application Number
CN202411140749.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The NFC antenna space on mobile terminals such as smartphones is limited, resulting in a small communication range. Users need to adjust the grip status to align the opponent's devices, which has a poor user experience.

Method used

Two non-overlapping or partially overlapping antennas are used to judge the communication range of the external NFC device through the NFC controller, and dynamically select the appropriate antenna for signal transmission to improve the communication range and flexibility.

Benefits of technology

Enhanced coverage and user experience of NFC communication, reduce dependence on device location, and improve card swipe area and reader mode performance in card simulation mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921085A_ABST
    Figure CN118921085A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a near field communication (NFC) device and method and electronic equipment, and the device comprises a first antenna which is used for receiving and transmitting an NFC signal in a first communication range; the second antenna is used for receiving and transmitting NFC signals in a second communication range, and the first communication range and the second communication range are not overlapped or partially overlapped; the NFC controller is used for judging the communication range where the external NFC device is located and selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range, and the communication range is the first communication range or the second communication range. By adopting the embodiment of the invention, the NFC communication range of the NFC device can be expanded, and a user can conveniently use the NFC device to carry out near field communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Near Field Communication (NFC), and in particular to a Near Field Communication device, method and electronic device. Background Art

[0002] Mobile terminals such as smartphones usually have NFC devices to implement NFC functions. NFC devices can work in active mode or passive mode. Active mode can include peer-to-peer mode (P2P mode for short) and reader / writer mode (RW mode for short). In peer-to-peer mode, two mobile terminals with NFC functions are paired and connected to achieve point-to-point data transmission. For example, the NFC built into a smartphone allows files to be quickly transferred between two smartphones. Mobile terminals with NFC devices in reader / writer mode read and write information from media such as labels, stickers, and business cards with NFC chips. Passive mode includes card emulation mode (CE mode for short). In card emulation mode, the mobile terminal is equivalent to an IC card using RFID technology, which can be used as a credit card, transportation card, access control, train ticket, etc.

[0003] In the related art, due to the limited space on the mobile terminal, generally one NFC antenna is used to send and receive NFC signals, or a multi-segment antenna is used as a whole antenna to send and receive NFC signals. The communication range of an NFC antenna is limited, so when a user uses a mobile terminal for NFC communication, the user needs to adjust the holding state of the mobile terminal to align it with the NFC device of the other end. For example, when using a smartphone for NFC payment, a specific position of the smartphone needs to be aligned with the NFC reader / writer. Therefore, the user experience of using a mobile terminal for NFC communication is poor. Summary of the invention

[0004] In view of the above problems, the embodiments of the present application provide a near field communication device, method and electronic device to solve the above technical problems.

[0005] In a first aspect, an embodiment of the present application provides an NFC device, including: a first antenna, used to receive and transmit NFC signals in a first communication range; a second antenna, used to receive and transmit NFC signals in a second communication range, the first communication range and the second communication range do not overlap or partially overlap; an NFC controller, used to determine the communication range where an external NFC device is located, and select the first antenna or the second antenna to transmit the NFC signal according to the communication range, and the communication range is the first communication range or the second communication range.

[0006] In some embodiments, the NFC controller is used to determine a communication range of an external NFC device based on a first electrical parameter received by the first antenna and a second electrical parameter received by the second antenna.

[0007] In some embodiments, an NFC controller is used to: determine a first reception indicator based on a first voltage received by a first antenna; determine a second reception indicator based on a second voltage received by a second antenna, wherein the first reception indicator and the second reception indicator include at least one of electric field strength, received current, received power, and received signal strength indication (RSSI); and determine the communication range of an external NFC device based on the first reception indicator and the second reception indicator.

[0008] In some embodiments, an NFC controller is used to: determine a ratio of a first reception indicator to a second reception indicator to obtain an initial ratio; correct the initial ratio based on a correction coefficient to obtain a correction ratio, wherein the correction coefficient is used to correct the matching detuning of the first antenna and the second antenna; and determine a communication range of an external NFC device based on the correction ratio.

[0009] In some embodiments, the NFC controller is configured to determine that the communication range is the first communication range when the correction ratio is greater than 1, and to determine that the communication range is the second communication range when the correction ratio is less than 1.

[0010] In some embodiments, the NFC controller is configured to select the first antenna or the second antenna to transmit an NFC signal to reply to the NFC command according to a current communication range after receiving an NFC command each time and before replying to the NFC command.

[0011] In some embodiments, the NFC controller is further configured to determine whether the receiving field strength is stable, and if the receiving field strength is stable, select the first antenna or the second antenna to transmit the NFC signal according to the current communication range.

[0012] In some embodiments, the NFC controller is used to select the first antenna or the second antenna according to the current communication range when it is in an activated state and determines that the receiving field strength is stable, and use the selected antenna to transmit the NFC signal until entering a dormant state.

[0013] In some embodiments, the NFC controller includes a transmitting module; the transmitting module includes: a first transmitting unit connected to the first antenna, used to transmit the NFC signal through the first antenna; a second transmitting unit connected to the second antenna, used to transmit the NFC signal through the second antenna; the NFC controller is used to: when the first antenna is selected, enable the first transmitting unit to transmit the NFC signal through the first antenna; when the second antenna is selected, enable the second transmitting unit to transmit the NFC signal through the second antenna.

[0014] In some embodiments, the NFC controller includes a transmitting module and a multi-way selection module; the multi-way selection module includes: a first path between the transmitting module and the first antenna, and a second path between the transmitting module and the second antenna; the NFC controller is used to: when the first antenna is selected, enable the first path to transmit the NFC signal through the first antenna; when the second antenna is selected, enable the second path to transmit the NFC signal through the second antenna.

[0015] In some embodiments, the NFC controller further includes: a receiving module, the receiving module being configured to process NFC signals received by the first antenna and the second antenna and output an NFC command.

[0016] In some embodiments, the receiving module includes: a first receiving end and a second receiving end; an NFC controller, which is used to: connect the first receiving end to the first antenna during a first period, and enable the second receiving end to receive a preset voltage, and determine the first voltage based on the voltage difference generated by the receiving module; connect the second receiving end to the second antenna during a second period, and enable the first receiving end to receive a preset voltage, and determine the second voltage based on the voltage difference generated by the receiving module.

[0017] In some embodiments, the NFC controller is further configured to determine whether the receiving field strength is stable based on a voltage difference generated when the receiving module is connected to the first antenna and the second antenna.

[0018] In some embodiments, the NFC controller is used to determine whether the receiving field strength is stable based on the first electrical parameter and / or the second electrical parameter.

[0019] In some embodiments, the NFC controller is used to determine that the receiving field strength is stable if a change in at least one of the first electrical parameter, the second electrical parameter, and the difference between the first electrical parameter and the second electrical parameter within a predetermined time period satisfies a preset condition.

[0020] In some embodiments, the NFC controller further includes: a first receiving end, a second receiving end, a first transmitting end, and a second transmitting end; the NFC device further includes: a first matching circuit connected between the first transmitting end and the first antenna; a first peripheral receiving circuit connected between the first receiving end and the first matching circuit; a second matching circuit connected between the second transmitting end and the second antenna; and a second peripheral receiving circuit connected between the second receiving end and the second matching circuit.

[0021] In a second aspect, an embodiment of the present application provides a near field communication method, which is applied to an NFC device, the NFC device comprising a first antenna for receiving and transmitting an NFC signal in a first communication range, a second antenna for receiving and transmitting the NFC signal in a second communication range, and an NFC controller, the first communication range does not overlap or partially overlaps with the second communication range, the method comprising: determining a communication range where an external NFC device is located, the communication range being the first communication range or the second communication range; and selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range.

[0022] In some embodiments, determining the communication range of the external NFC device includes: determining the communication range of the external NFC device based on a first electrical parameter received by the first antenna and a second electrical parameter received by the second antenna.

[0023] In some embodiments, based on a first electrical parameter received by a first antenna and a second electrical parameter received by a second antenna, determining a communication range of an external NFC device includes: determining a first reception indicator based on a first voltage received by the first antenna; determining a second reception indicator based on a second voltage received by the second antenna, wherein the first reception indicator and the second reception indicator include at least one of electric field strength, reception current, reception power, and received signal strength indication (RSSI); and determining the communication range of the external NFC device based on the first reception indicator and the second reception indicator.

[0024] In some embodiments, determining the communication range of the external NFC device based on the first reception indicator and the second reception indicator includes: determining the ratio of the first reception indicator to the second reception indicator to obtain an initial ratio; correcting the initial ratio based on a correction coefficient to obtain a correction ratio, wherein the correction coefficient is used to correct the matching detuning of the first antenna and the second antenna; and determining the communication range of the external NFC device based on the correction ratio.

[0025] In some embodiments, selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: after each receipt of an NFC command and before replying to the NFC command, selecting the first antenna or the second antenna to transmit the NFC signal to reply to the NFC command according to the current communication range.

[0026] In some embodiments, selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: determining whether the received field strength is stable; and selecting the first antenna or the second antenna to transmit the NFC signal according to the current communication range when the received field strength is stable.

[0027] In some embodiments, selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: in an activated state and when determining that the receiving field strength is stable, selecting the first antenna or the second antenna according to the current communication range, and using the selected antenna to transmit the NFC signal until entering a dormant state.

[0028] In some embodiments, determining whether the received field strength is stable includes: determining whether the received field strength is stable based on a first electrical parameter received by the first antenna and / or a second electrical parameter received by the second antenna.

[0029] In some embodiments, if the change of at least one of the first electrical parameter, the second electrical parameter, and the difference between the first electrical parameter and the second electrical parameter within a predetermined time period satisfies a preset condition, it is determined that the receiving field strength is stable.

[0030] In a third aspect, an embodiment of the present application provides an electronic device, including a device body and the NFC device of the above embodiment arranged on the device body.

[0031] In some embodiments, the first antenna is disposed on the top of the device body, and the second antenna is disposed in the middle or lower portion of the device body.

[0032] In some embodiments, the device body includes a first part and a second part, the first part and the second part can be relatively rotated to a folded state or an unfolded state, the first antenna is arranged at the first part, and the second antenna is arranged at the second part.

[0033] In the near field communication device, method and electronic device provided by the embodiment of the present application, the first antenna receives and transmits NFC signals in the first communication range, the second antenna receives and transmits the NFC signals in the second communication range, and the first communication range does not overlap or partially overlaps with the second communication range, and the NFC device determines whether the external NFC device is in the first communication range or the second communication range, and selects the corresponding antenna to transmit the NFC signal. The NFC communication range of the near field communication device can be increased, making it easier for users to use the NFC device for near field communication.

[0034] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1A schematic diagram of the structure of a near field communication device provided in an embodiment of the present application is shown.

[0037] Figure 2 A schematic structural diagram of an exemplary near field communication device provided in an embodiment of the present application is shown.

[0038] Figure 3 A schematic diagram of the structure of another exemplary near field communication device provided in an embodiment of the present application is shown.

[0039] Figure 4 A schematic diagram of a multi-port network of a near field communication device provided in an embodiment of the present application when receiving an NFC signal is shown.

[0040] Figure 5 A schematic diagram of a multi-port network of a near field communication device provided by an embodiment of the present application when the first antenna transmits an NFC signal is shown.

[0041] Figure 6 A schematic diagram of a multi-port network of a near field communication device provided by an embodiment of the present application when the second antenna transmits an NFC signal is shown.

[0042] Fig. 7A A schematic diagram of an electronic device provided in an embodiment of the present application is shown.

[0043] Figure 7B A schematic diagram of a foldable electronic device provided in an embodiment of the present application in a fully opened state is shown.

[0044] Figure 7C A schematic diagram of a foldable electronic device provided by an embodiment of the present application in a fully folded state is shown.

[0045] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0046] Fig. 9 A flow chart of a near field communication method provided in an embodiment of the present application is shown.

[0047] Fig.10 A flowchart of an exemplary near field communication method provided by an embodiment of the present application is shown.

[0048] Fig.11 A flowchart of another exemplary near field communication method provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0050] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0051] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0052] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0053] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.

[0054] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.

[0055] It should be noted that, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.

[0056] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0057] Figure 1 The schematic diagram of the structure of the near field communication device provided in the embodiment of the present application is shown. Figure 1 As shown, the NFC device 100 provided in the embodiment of the present application includes a first antenna 101, a second antenna 102 and an NFC controller (Near Field Communication Controller, referred to as NFCC, also known as an NFC chip) 103. The first antenna 101 is used to send and receive NFC signals in a first communication range, and the second antenna 102 is used to send and receive NFC signals in a second communication range. The NFC controller 103 is used to determine the communication range where the external NFC device is located, and selects the first antenna 101 or the second antenna 102 to transmit the NFC signal according to the communication range, and the communication range is the first communication range or the second communication range.

[0058] The NFC device 100 can perform contactless short-range wireless communication with an external NFC device. The NFC device 100 and the external NFC device transmit electromagnetic signals through near-field coupling. When current flows through the antenna of an NFC device, a magnetic field proportional to the number of coil turns and area is generated. The time-varying magnetic field passes through the closed space of the antenna of another NFC device and generates an induced voltage, thereby transmitting energy and signals. In the embodiment of the present application, the first communication range and the second communication range are ranges that can transmit electromagnetic signals through near-field coupling.

[0059] In some embodiments, the first communication range does not overlap with the second communication range. If the first communication range does not overlap with the second communication range, the first communication range and the second communication range may constitute a larger communication range. At this time, there may be some blind spots that are neither in the first communication range nor in the second communication range. If the external NFC device is in the blind spot, the first antenna 101 and the second antenna 102 cannot receive the NFC signal sent by the external NFC device, and the NFC signal sent by the NFC device 100 through the first antenna 101 or the second antenna 102 cannot be received by the external NFC device.

[0060] In some embodiments, the first communication range partially overlaps with the second communication range. If the first communication range partially overlaps with the second communication range, the first communication range and the second communication range can constitute a larger communication range, while reducing the blind spot. At this time, the relative positional relationship between the NFC device 100 and the external NFC device for communication is more flexible, and even if the positional relationship between the NFC device 100 and the external NFC device changes, for example, the NFC device 100 moves during the communication process, the external NFC device is more likely to be in one of the first communication range and the second communication range.

[0061] When the external NFC device is in a different position relationship with the first antenna 101 or the second antenna 102, the electrical parameters received by the first antenna 101 and the second antenna 102 are different, and the electrical parameters may be current, voltage, electric field strength, etc. In some embodiments, the NFC controller 103 may be used to determine the communication range of the external NFC device according to the first electrical parameter received by the first antenna 101 and the second electrical parameter received by the second antenna 102. In a specific implementation, the received first and second electrical parameters may include: received current, voltage, electric field strength, etc.

[0062] Considering that the receiving voltage of the antenna is easy to measure, in some embodiments, the NFC controller 103 can be used to: determine the first receiving index according to the first voltage U1 received by the first antenna 101; determine the second receiving index according to the second voltage U2 received by the second antenna 102; and judge the communication range of the external NFC device according to the first receiving index and the second receiving index. Generally, the closer the external NFC device is to the communication range of the antenna, the higher the electric field strength, receiving current, receiving power or received signal strength indication (RSSI) of the antenna. The first receiving index and the second receiving index can be at least one of the electric field strength, receiving current and received signal strength indication (RSSI) of the antenna. According to the voltage received by the antenna and the input impedance of the antenna, the receiving current can be calculated by Ohm's law. The receiving voltage can be converted into electric field strength. If the antenna coefficient is known, the electric field strength can be calculated using the formula E=V / AF, where V represents the voltage received by the antenna and AF represents the antenna coefficient. The receiving power can be calculated according to the receiving current or receiving voltage and input impedance of the antenna.

[0063] Exemplarily, if at least one of the electric field strength, received current and received signal strength indication (RSSI) of the first antenna 101 is greater than the corresponding indicator of the second antenna 102, it is determined that the external NFC device is within the first communication range of the first antenna 101, and the NFC controller 103 can select the first antenna 101 to transmit the NFC signal; if at least one of the electric field strength, received current and received signal strength indication (RSSI) of the first antenna 101 is less than the corresponding indicator of the second antenna 102, it is determined that the external NFC device is within the second communication range of the second antenna 102, and the NFC controller 103 can select the second antenna 102 to transmit the NFC signal.

[0064] When determining the electric field strength, the receiving current and the received signal strength indication (RSSI) based on the received voltage, the input impedance of the antenna is used. Considering that the input impedance of the antenna has a certain detuning, in some embodiments, the NFC controller 103 can be used to: determine the ratio of the first receiving index to the second receiving index to obtain an initial ratio; correct the initial ratio based on a correction coefficient to obtain a correction ratio, and the correction coefficient is used to correct the matching detuning of the first antenna 101 and the second antenna 102; and determine the communication range of the external NFC device according to the correction ratio. This embodiment can improve the judgment accuracy, and by calculating the ratio, a correction coefficient can be used to correct the matching detuning of the first antenna 101 and the second antenna 102.

[0065] As a typical example, the NFC controller 103 may determine that the communication range is the first communication range when the correction ratio is greater than 1, and determine that the communication range is the second communication range when the correction ratio is less than 1.

[0066] As a typical example, the first receiving indicator and the second receiving indicator are receiving currents, and the NFC controller 103 can determine the correction ratio in the following manner: L=α*(Rt2 / Rt1)*(U1 / U2); wherein L represents the correction ratio, U1 represents the first voltage, U2 represents the second voltage, Rt1 represents the input impedance of the first antenna 101, Rt2 represents the input impedance of the second antenna 102, and α represents the correction coefficient.

[0067] In some embodiments, the NFC controller 103 may select the first antenna 101 or the second antenna 102 to transmit an NFC signal to reply to the NFC command according to the current communication range after each NFC command is received and before replying to the NFC command. Specifically, after receiving the NFC command, if the external NFC device is in the first communication range of the first antenna 101, the first antenna 101 is selected to transmit an NFC signal to reply to the NFC command; if the external NFC device is in the second communication range of the second antenna 102, the second antenna 102 is selected to transmit an NFC signal to reply to the NFC command. With this embodiment, the antenna that transmits the NFC signal can be dynamically selected, and even if the position of the NFC device 100 and the external NFC device changes during the communication process, the communication can be ensured to proceed normally. With this implementation, the NFC device 100 selects the antenna that transmits the NFC signal each time it replies to an NFC command in an NFC communication such as bank card payment, access card verification, and transportation card payment.

[0068] When the NFC device 100 communicates with an external NFC device, it is usually necessary to bring the two close together first. In some cases, the positional relationship between the two needs to be adjusted after the two are close together. After the two are close together and the positional relationship is appropriate, the two positional relationships usually remain basically unchanged. For example, when using a smartphone including the NFC device 100 to swipe a bus card, the user brings the smartphone close to the location of the reader on the gate, and then keeps it for a certain period of time until the card is swiped. The field strength is unstable during the process of approaching or adjusting the positional relationship between the two, and the field strength is basically stable when the positional relationship between the two remains basically unchanged. In some embodiments, the NFC controller 103 can also determine whether the received field strength is stable. When the received field strength is stable, the first antenna 101 or the second antenna 102 is selected to transmit the NFC signal according to the current communication range.

[0069] The NFC device 100 is usually in a low power mode (also called a sleep mode). After detecting an external NFC device, the NFC device 100 enters a normal working mode (also called an activated state). The NFC device 100 receives NFC commands in the wake-up mode and replies to the received NFC commands. For example, when using a smartphone including the NFC device 100 to swipe a bus card, the user brings the smartphone close to the location of the reader on the gate. After approaching to a certain degree, the NFC device 100 can detect the reader on the gate, enter the normal working mode, receive the NFC command sent by the reader on the gate, and the NFC device 100 can reply to the NFC command to complete the card swiping process. After the card swiping is completed, the NFC device 100 is away from the reader on the gate, and the NFC device 100 enters the sleep mode. As a typical implementation, the NFC controller 103 can select the first antenna 101 or the second antenna 102 according to the current communication range when it is in the activated state and determines that the receiving field strength is stable, and use the selected antenna to transmit the NFC signal until entering the sleep state. That is, the selected antenna is used as the antenna for transmitting NFC signals throughout the process from activation to sleep. With this implementation, the NFC device 100 transmits an NFC signal through a selected antenna in an NFC communication such as bank card payment, access card verification, transportation card payment, etc.

[0070] When the receiving field strength of the first antenna 101 is stable, the first voltage U1 received by the first antenna 101 is basically stable; when the receiving field strength of the second antenna 102 is stable, the second voltage U2 received by the second antenna 102 is basically stable. Based on this, in some embodiments, the NFC controller 103 can determine whether the receiving field strength is stable based on the first voltage U1 received by the first antenna 101 and / or the second voltage U2 received by the second antenna 102. Specifically, the NFC controller 103 can determine that the receiving field strength is stable if the change of at least one of the first voltage U1, the second voltage U2, and the difference between the first voltage U1 and the second voltage U2 within a predetermined time period meets a preset condition. In some implementations, when any one of the first voltage U1 and the second voltage U2 is stable, it is determined that the receiving field strength is stable. Considering that the first voltage U1 and the second voltage U2 may be small, that is, the receiving field strength of the first antenna 101 or the second receiving antenna 102 is relatively weak, and the NFC device 100 may still be in the process of moving, in some implementations, the NFC controller 103 determines whether the receiving field strength is stable based on whether the change of the difference between the first voltage U1 and the second voltage U2 within a predetermined time period meets a preset condition. Specifically, if the change of at least one of the difference between the first voltage U1 and the second voltage U2 within a predetermined time period meets a preset condition, the receiving field strength is determined to be stable.

[0071] The NFC controller 103 includes a transmitting module 105. When the transmitting module 105 is in operation, it modulates data onto a carrier signal of a specific frequency and then sends the carrier signal out.

[0072] In some embodiments, reference Figure 2 As shown, the transmitting module 105 may include: a first transmitting unit 1051, connected to the first antenna 101, and used to transmit an NFC signal through the first antenna 101; a second transmitting unit 1052, connected to the second antenna 102, and used to transmit an NFC signal through the second antenna 102; and an NFC controller 103 is used to: when the first antenna 101 is selected, enable the first transmitting unit 1051 to transmit the NFC signal through the first antenna 101; when the second antenna 102 is selected, enable the second transmitting unit 1052 to transmit the NFC signal through the second antenna 102.

[0073] In some embodiments, reference Figure 3 As shown, the NFC controller includes a transmitting module 105 and a multi-way selection module 106. The multi-way selection module 106 includes a first path S1 between the transmitting module 105 and the first antenna 101, and a second path S2 between the transmitting module 105 and the second antenna 102. The input end of the multi-way selection module 106 is connected to the output end of the transmitting module 105, and the multi-way selection module 106 includes two output ends, wherein the first output end is connected to the first antenna 101, and the second output end is connected to the second antenna 102. The input end of the multi-way selection module 106 and the first output end form a first path S1, and the input end of the multi-way selection module 106 and the second output end form a first path S2. The NFC controller 103 is used to select the first path S1 to transmit the NFC signal through the first antenna 101 when the first antenna 101 is selected; when the second antenna 102 is selected, the second path S2 is selected to transmit the NFC signal through the second antenna 102.

[0074] The NFC controller 103 may further include a receiving module 107. The receiving module 107 is used to process the NFC signals received by the first antenna 101 and the second antenna 102 and output NFC commands. When the receiving module 107 is working, it demodulates the received carrier signal and restores the original data.

[0075] In some embodiments, reference Figure 2 As shown, the receiving module 107 may include a first receiving unit 1071 and a second receiving unit 1072. The first receiving unit 1071 is connected to the first antenna 101, and is used to process the NFC signal received by the first antenna 101 and output a first NFC command. The second receiving unit 1072 is connected to the second antenna 102, and is used to process the NFC signal received by the second antenna 102 and output a second NFC command.

[0076] In some embodiments, reference Figure 3 As shown, the receiving module 107 may include: a first receiving terminal IN1 and a second receiving terminal IN2. The first receiving terminal IN1 is connected to the first antenna 101. The second receiving terminal IN2 is connected to the second antenna 102. The receiving module 107 is used to output an NFC command based on a voltage difference between the first receiving terminal IN1 and the second receiving terminal IN2.

[0077] Please continue to refer to Figure 3 As shown, the first receiving terminal IN1 of the receiving module 107 can be switched between the first antenna 101 and the preset voltage terminal, and the second receiving terminal IN2 of the receiving module 107 can be switched between the second antenna 102 and the preset voltage terminal. Figure 3 In the receiving module 107 shown, the NFC controller 103 can connect the first receiving terminal IN1 of the receiving module 107 to the first antenna 101 during the first period, and make the second receiving terminal IN2 receive a preset voltage, and determine the first voltage U1 received by the first antenna 101 based on the voltage difference generated by the receiving module 107; connect the second receiving terminal IN2 to the second antenna 102 during the second period, and make the first receiving terminal IN1 receive a preset voltage, and determine the second voltage U2 received by the second antenna 102 based on the voltage difference generated by the receiving module 107. Specifically, the voltage of the preset voltage terminal is a preset voltage, which can be a common mode voltage terminal, and the voltage of the common mode voltage terminal is a common mode voltage (VCM for short). During the first period, the first receiving terminal IN1 of the receiving module 107 is connected to the first antenna 101, and the second receiving terminal IN2 is connected to the common mode voltage terminal. The voltage difference generated by the receiving module 107 is the difference between the first voltage U1 received by the first antenna 101 and the common mode voltage. Based on the voltage difference and the common mode voltage during the first period, the first voltage U1 received by the first antenna 101 can be inversely deduced. During the second period, the second receiving terminal IN2 of the receiving module 107 is connected to the second antenna 102, and the first receiving terminal IN1 is connected to the common mode voltage terminal. The voltage difference generated by the receiving module 107 is the difference between the second voltage U2 received by the second antenna 102 and the common mode voltage. Based on the voltage difference and the common mode voltage during the second period, the second voltage U2 received by the second antenna 102 can be inferred.

[0078] Please continue to refer to Figure 3As shown, the NFC controller 103 can also determine whether the receiving field strength is stable based on the voltage difference generated when the receiving module 107 is connected to the first antenna 101 and the second antenna 102. As mentioned above, the NFC controller 103 can also select the first antenna 101 or the second antenna 102 to transmit the NFC signal according to the current communication range when the receiving field strength is stable. Specifically, when the receiving module 107 is connected to the first antenna 101 and the second antenna 102, the voltage difference generated is the voltage difference between the first voltage U1 received by the first antenna 101 and the second voltage 102 received by the second antenna 102. The NFC controller 103 can determine whether the receiving field strength is stable based on whether the change of the voltage difference within a predetermined time period meets a preset condition. This implementation method uses the voltage difference generated by the receiving module 107 to determine whether the receiving field strength is stable.

[0079] See also Figure 2 and Figure 3 As shown, the NFC controller 103 may include: a first receiving terminal RXn, a second receiving terminal RXp, a first transmitting terminal TXn, and a second transmitting terminal TXp. In some implementations, reference Figure 2 As shown, the first receiving end RXn is the input end of the first receiving unit 1071, the second receiving end RXp is the input end of the second receiving unit 1072, the first transmitting end TXn is the output end of the first transmitting unit 1051, and the second transmitting end TXp is the output end of the second transmitting unit 1052. In some implementations, reference Figure 3 As shown, the first receiving end RXn is the first receiving end IN1 of the receiving module 107, the second receiving end RXp is the second receiving end IN2 of the receiving module 107, the first transmitting end TXn is the first output end of the multi-way selection module 106, and the second transmitting end TXp is the second output end of the multi-way selection module 106.

[0080] Continue to refer Figure 2 and Figure 3 As shown, the NFC device 100 may further include: a first matching circuit 1081, connected between the first transmitting terminal TXn and the first antenna 101; and a second matching circuit 1082, connected between the second transmitting terminal TXp and the second antenna 102. The first matching circuit 1081 is used to adjust the impedance of the first antenna 101 and the first matching circuit 1081. The second matching circuit 1082 is used to adjust the impedance of the second antenna 102 and the second matching circuit 1082. The first antenna 101 and the second antenna 102 use independent matching circuits, and the matching of the two antennas is debugged separately. The NFC controller 103 selects one of the antennas to transmit the NFC signal according to the situation, so that each antenna can maximize the power driving capability of the NFC controller 103.

[0081] In one implementation, Figure 2and Figure 3 As shown, the first matching circuit 1081 includes a first matching unit M11, and further, may also include a first filtering unit M21, and the first filtering unit M21 is located between the first transmitting terminal TXn and the first matching unit M11. The first filtering unit M21 and the first matching unit M11 are used to adjust the impedance of the first antenna 101 and the first matching circuit 1081. The first filtering unit M21 is also used to filter the signal output by the first transmitting terminal TXn to obtain a filtered signal, and the filtered signal is, for example, a fundamental signal obtained after filtering and eliminating harmonic signals in the transmitting signal. The first matching unit M11 is also used to receive the filtered signal and output an excitation signal to the first antenna 101, and the excitation signal is used to drive the first antenna 101 to generate a magnetic field.

[0082] Continue to refer Figure 2 and Figure 3 As shown, the second matching circuit 1082 includes a second matching unit M12, and further, may also include a second filtering unit M22. The second filtering unit M22 is located between the second transmitting terminal TXp and the second matching unit M12. The second filtering unit M22 and the second matching unit M12 are used to adjust the impedance of the second antenna 102 and the second matching circuit 1082. The second filtering unit M22 is also used to filter the transmission signal output by the second transmitting terminal TXp to obtain a filtered signal, which is, for example, a fundamental signal obtained after filtering and eliminating harmonic signals in the transmission signal. The second matching unit M12 is also used to receive the filtered signal and output an excitation signal to the second antenna 102, and the excitation signal is used to drive the second antenna 102 to generate a magnetic field.

[0083] As an example, Figure 2 and Figure 3 As shown, the first matching unit M11 includes a first capacitor C11 and a second capacitor C12; the second matching unit M12 includes a third capacitor C21 and a fourth capacitor C22. The first end of the first capacitor C11 is connected to the first end of the second capacitor C12, the first end of the third capacitor C21 is connected to the first end of the fourth capacitor C22, and the second end of the second capacitor C12 and the second end of the fourth capacitor C22 are grounded.

[0084] Continue to read Figure 2 and Figure 3As shown, the first filtering unit M21 includes a first filtering inductor L1 and a first filtering capacitor C01, the first end of the first filtering inductor L1 is connected to the first transmitting terminal TXn, the second end of the first filtering inductor L1, the first end of the first filtering capacitor C01, and the second end of the first capacitor C11 are connected together, and the second end of the first filtering capacitor C01 is grounded. The second filtering unit M22 includes a second filtering inductor L2 and a second filtering capacitor C02, the first end of the second filtering inductor L2 is connected to the second transmitting terminal TXp, the second end of the second filtering inductor L2, the first end of the second filtering capacitor C02, and the second end of the second capacitor C21 are connected together, and the second end of the second filtering capacitor C02 is grounded.

[0085] Please continue to read Figure 2 and Figure 3 As shown, in some implementations, the NFC device 100 may further include: a first peripheral receiving circuit 1091, connected between the first receiving terminal RXn and the first matching circuit 1081; and a second peripheral receiving circuit 1092, connected between the second receiving terminal RXp and the second matching circuit 1082. The first receiving terminal RXn receives a signal from the first antenna 101 through the first peripheral receiving circuit 1091, and the second receiving terminal RXp receives a signal from the second antenna 102 through the second peripheral receiving circuit 1092.

[0086] As an example, Figure 2 and Figure 3 As shown, the resistor Rn and the capacitor Cn connected to the first receiving terminal RXn of the NFC controller 103 can form a first peripheral receiving circuit 1091, and the first receiving terminal RXn receives the signal from the first antenna 101 through the first peripheral receiving circuit 1091; the resistor Rp and the capacitor Cp connected to the second receiving terminal RXp of the NFC controller 103 can form a second peripheral receiving circuit 1092, and the second receiving terminal RXp receives the signal from the second antenna 102 through the second peripheral receiving circuit 1092.

[0087] The NFC device 100 can be applied to electronic devices such as smart phones, mainly used for mobile payment, identity recognition, access control, obtaining electronic tag information, data exchange, device connection, electronic wallet, electronic bus card, etc. On the upper part of some smart phones, the position that can be used as an NFC antenna is very limited. There may be a 1.5-2 cm long frame NFC antenna, or a very small NFC antenna, which is not conducive to power radiation. The performance of the reader mode is generally not very good. A dedicated NFC coil antenna is added to the middle section of the smart phone. The performance of the reader mode and the card simulation mode of this antenna will be better. Both antennas can support the card simulation mode, and the card swiping area can be greatly increased, which will improve the user experience. The dedicated NFC coil antenna in the middle section of the smart phone is used for the reader mode. For example, in mobile payment, identity recognition, access control, electronic wallet, and electronic bus card applications, the smart phone works in the card simulation mode, and the NFC device 100 is used as a card read by the reader. The NFC antenna on the upper part of the smart phone and the dedicated NFC coil antenna in the middle section of the smart phone both receive the NFC signal transmitted by the reader. When reading an NFC tag, the smartphone works in reader / writer mode, the NFC device 100 acts as a reader / writer, and the dedicated NFC coil antenna in the middle of the smartphone transmits NFC signals to read information from the NFC tag and write information to the NFC tag.

[0088] When the NFC device 100 works in the card emulation mode, the reader and the NFC device 100 form a multi-port network. All devices in the multi-port network are inductors. The multi-port network is a reciprocal network. Specifically, the first antenna 101 corresponds to the first port 1, the second antenna 102 corresponds to the second port 2, and the antenna of the reader corresponds to the third port 3. Figure 4 As shown, the excitation signal added by the reader to its antenna is U3_rw, the excitation current is I3_rw, the signal voltage received at the first port 1 is U1_rw, the current is I1_rw, and similarly, the voltage and current at the second port 2 are U2_rw and I2_rw respectively. Figure 5 As shown, when the first antenna 101 replies to the signal, the excitation voltage and current at the first port 1 are U1_txnce and I1_ce respectively, and the excitation voltage and current at the third port 3 are U3_txnce and I3_txnce. According to the reciprocity law, if the current applied at the port is I1_txne=I3_rw, then U3_txnce=U1_rw, and this network is also a linear system, and the general relationship can be obtained: U3_txnce=(I1_txnce / I3_rw)*U1_rw. Please refer to Figure 6As shown, when the second antenna 102 replies with a signal, the excitation voltage and current at the second port 2 are U2_txpce and I2_txpce respectively, and the excitation voltage and current at the port 3 are U3_txpce and I3_txpce. Similarly, the general relationship can be obtained: U3_txpce = (I2_txpce / I3_rw) * U2_rw. In summary:

[0089] U3_txpce / U3_txnce=(I1_txpce*U1_rw) / (I2_txnce*U2_rw)

[0090] =(I1_txpce / I2_txnce)*(U1_rw / U2_rw).

[0091] If the driving voltages of TXp and TXn are the same, then U3_txpce / U3_txnce=(Rt2 / Rt1)*(U1_rw / U2_rw), where Rt1 and Rt2 are the impedances seen from the driving pins of the first transmitting terminal TXn and the second transmitting terminal TXn of the NFC controller 103, respectively.

[0092] The NFC device 100 can be applied to the electronic device 200, mainly used for mobile payment, identity recognition, access control, obtaining electronic tag information, data exchange, device connection, electronic wallet, electronic bus card, etc. The electronic device 200 may include a device body 201, and the NFC device 100 is arranged on the device body 201. The first antenna 101 of the NFC device 100 may be arranged on the top of the device body 201, and the second antenna 102 of the NFC device 100 may be arranged in the middle of the device body 201. The first communication range Scope1 of the first antenna 101 may cover the top to the middle area of ​​the device body 201; the second communication range Scope2 of the second antenna 102 may cover the middle area of ​​the device body 201. If the electronic device 200 is a smart phone, when the user uses the smart phone for mobile payment, identity recognition, access control, electronic wallet, electronic bus card, etc., the top or middle of the smart phone can be close to the corresponding reader device for NFC communication.

[0093] See also Fig. 7AAs a typical embodiment, the electronic device 200 may include a device body 201, and the device body 201 includes a display screen 202, a middle frame 203 and a back shell 204. Among them, the display screen 202 is located on the front of the device body 201, and is used to display the picture and provide a human-computer interaction interface for the user; the middle frame 203 is generally located between the display screen 202 and the back shell 204, and is used to support the display screen 202 and to carry various functional components inside the device body 201, such as a motherboard, a battery, a camera, a speaker, a microphone, various sensor units, etc. In this embodiment, the NFC controller 103 of the NFC device 100 can be arranged between the display screen 202 and the back shell 204. In a specific embodiment, the middle frame 203 includes a frame located outside the device body 201, and the frame may include multiple sides and carry a power button, a volume button or other function buttons. The first antenna 101 can be arranged at the top of the electronic device 200, for example, at the top frame outside the device body 201. The second antenna 102 can be arranged in the middle of the electronic device 200, for example, in the middle of the back shell 204. In some implementations, a wireless charging induction coil is disposed in the middle of the rear housing 204 , and the second antenna 102 may be formed on the periphery or inside of the induction coil. The second antenna 102 may be a dedicated NFC coil antenna.

[0094] The electronic device 200 can be a smart phone, and the frame at the top of the electronic device 200 is originally used as a cellular communication, GPS and BLE antenna. Some smart phones have begun to support satellite communication, and they also need to reuse the top frame as a communication antenna, so that the top frame is divided into more segments, and the length of each segment will be shortened accordingly, and it is unlikely to reserve a frame of sufficient length for use as an NFC antenna. In addition, due to the continuous improvement of the performance of the camera 205, the overall area of ​​the camera is getting larger and larger, and the position that can be reserved for the NFC antenna on the back of the smart phone is getting smaller and smaller. In short, on the top of some smart phones, the position that can be used as an NFC antenna is very limited. There may be a 1.5-2cm long frame NFC antenna, or a very small NFC antenna, which is not conducive to power radiation. The performance of the reader-writer mode is generally not very good, and the card simulation mode has a smaller requirement for power radiation, but it will also be affected. At this time, an NFC antenna is added to the middle of the smart phone, and the performance of the reader-writer mode and the card simulation mode of this NFC antenna will be better. In the embodiment of the present application, both antennas can support the card simulation mode, and the card swiping area can be greatly improved, which will better improve the user experience.

[0095] See also Figure 7B and Figure 7CAs shown in the figure, as a typical embodiment, the electronic device 200 is a foldable device, which may include a device body, the device body including a first part 201A and a second part 201B, a display screen 202, a middle frame and a rear shell. The first part 201A and the second part 201B can be relatively rotated to a folded state or an unfolded state. The display screen 202 is a flexible display screen, which can be relatively rotated to a folded state or an unfolded state with the first part 201A and the second part 201B. Figure 7B Shown fully expanded, see Figure 7C The fully folded state is shown. The middle frame may include a first middle frame 203A of the first part 201A and a second middle frame 203B of the second part 201B. The rear shell may include a first rear shell 204A of the first part 201A and a second rear shell 204B of the second part 201B.

[0096] The NFC device 100 is disposed in the device body 201. Specifically, the NFC controller 103 of the NFC device 100 can be disposed in the first part 201A or the second part 201B. The first antenna 101 of the NFC device 100 is disposed in the first part 201A, and the second antenna 102 is disposed in the second part 201B. As a typical implementation, the first antenna 101 is disposed at the top of the first part 201A, and the second antenna 102 is disposed in the middle of the second part 201B. In some implementations, both the first antenna 101 and the second antenna 102 support the card emulation mode, that is, in the card emulation mode, the first antenna 101 or the second antenna 102 can be selected to transmit a signal, and both the first antenna 101 and the second antenna 102 can receive the NFC signal sent by the reader.

[0097] See also Figure 7B As shown, in the fully unfolded state, the first communication range Scope1 of the first antenna 101 and the second communication range Scope2 of the second antenna 102 form a larger communication range, that is, NFC communication can be performed in the first communication range Scope1 or the second communication range Scope2. If the first antenna 101 is set at the top of the first part 201A and the second antenna 102 is set in the middle of the second part 201B, NFC communication can be performed in both the top and the middle.

[0098] See also Figure 7C As shown, in the fully folded state, the first communication range Scope1 of the first antenna 101 corresponds to the first side of the electronic device 200, and the second communication range Scope2 of the second antenna 102 corresponds to the second side of the electronic device 200. In this case, both the first side and the second side of the electronic device 200 can perform NFC communication.

[0099] See also Figure 8As shown, the typical hardware structure of the electronic device 200 may include: a processor 801, a memory 802, a radio device 803, an audio output unit 804, an A / V input unit 805, a display unit 806, a user input unit 807, an interface unit 808 and a power supply 809. It should be understood that Figure 8 This is merely an exemplary description of the embodiment of the present application and is not intended to limit the electronic device 200 .

[0100] The display unit 806 includes various types of display panels that can display visual graphics, such as a graphical user interface (GUI). The user input unit 807 may include a touch panel that can cover the display panel. The audio output unit 804 includes a speaker, etc. The A / V input unit 805 includes an image processor 8051 and a microphone 8052.

[0101] The memory 802 can store data and instructions that can be executed on the processor 801, including an operating system 811, etc. Figure 8 As shown, the memory 802 stores a plurality of application programs 810. The one or more application programs 810 include weather, instant messaging, phone, text messages, mailboxes, or stocks, etc.

[0102] Please continue to refer to Figure 8 As shown, in the embodiment of the present application, the electronic device 200 also includes an NFC device 100. The processor 801 can communicate with the NFC device 100. Specifically, the processor 801 can communicate with the NFC controller 103 of the NFC device 100, and the processor 801 and the NFC controller 103 can be connected through a bus. The aforementioned operating system 811 and / or application 810 can control the NFC device 100 to implement NFC functions such as mobile payment, identity recognition, access control, obtaining electronic tag information, data exchange, device connection, electronic wallet, and electronic bus card.

[0103] The embodiment of the present application also provides a near field communication method, which can be implemented by the NFC device 100 and the electronic device 200 of the embodiment of the present application. The method can be applied to point-to-point mode, card simulation mode, and reader-writer mode. Considering the limited space for setting the antenna, generally a larger antenna and a smaller antenna are set, and the signal transmission capability is large. The larger antenna can achieve a larger transmission power, and the smaller antenna can achieve a smaller transmission power. The transmission power required for the card simulation mode is generally small. As a typical implementation method, the method is applied to the card simulation mode, and the larger antenna and the smaller antenna are both used for NFC communication in the card simulation mode.

[0104] Fig. 9 A flowchart of a near field communication method according to an embodiment of the present disclosure is shown. Fig. 9As shown, the method includes step S901 to step S902.

[0105] Step S901, determining the communication range of the external NFC device, the communication range being the first communication range or the second communication range.

[0106] refer to Figure 1 The NFC device shown, NFC device 100 includes a first antenna 101, a second antenna 102 and an NFC controller 103. The first antenna 101 is used to send and receive NFC signals in a first communication range, and the second antenna 102 is used to send and receive NFC signals in a second communication range. The NFC controller 103 is used to determine the communication range where the external NFC device is located, and selects the first antenna 101 or the second antenna 102 to transmit the NFC signal according to the communication range, and the communication range is the first communication range or the second communication range.

[0107] In some implementations, the first communication range does not overlap with the second communication range. If the first communication range does not overlap with the second communication range, the first communication range and the second communication range may constitute a larger communication range. At this time, there may be some blind spots that are neither in the first communication range nor in the second communication range. If the external NFC device is in the blind spot, the first antenna 101 and the second antenna 102 cannot receive the NFC signal sent by the external NFC device, and the NFC signal sent by the NFC device 100 through the first antenna 101 or the second antenna 102 cannot be received by the external NFC device.

[0108] In some implementations, the first communication range partially overlaps with the second communication range. If the first communication range partially overlaps with the second communication range, the first communication range and the second communication range can constitute a larger communication range, while reducing the blind spot. At this time, the relative positional relationship between the NFC device 100 and the external NFC device for communication is more flexible, and even if the positional relationship between the NFC device 100 and the external NFC device changes, for example, the NFC device 100 moves during the communication process, the external NFC device is more likely to be in one of the first communication range and the second communication range.

[0109] refer to Fig. 7A As shown, when the method is implemented by the electronic device 200, the first communication range of the first antenna 101 and the second communication range of the second antenna 102 form a larger communication range, that is, NFC communication can be performed in the first communication range or the second communication range. If the first antenna 101 is set at the top of the electronic device 200, and the second antenna 102 is set in the middle of the electronic device 200, NFC communication can be performed regardless of the top or the middle.

[0110] refer to Figure 7B and Figure 7CAs shown, when the method is implemented by the electronic device 200, in a fully unfolded state, such as Figure 7B As shown, the first communication range of the first antenna 101 and the second communication range of the second antenna 102 form a larger communication range, that is, NFC communication can be performed in the first communication range or the second communication range. If the first antenna 101 is set at the top of the first part 201A and the second antenna 102 is set in the middle of the second part 201B, NFC communication can be performed in both the top and the middle. Figure 7C As shown, the first communication range of the first antenna 101 corresponds to the first side of the electronic device 200, and the second communication range Scope2 of the second antenna 102 corresponds to the second side of the electronic device 200. In this case, both the first side and the second side of the electronic device 200 can perform NFC communication.

[0111] Please continue to refer to Fig. 7A and 7B When the electronic device 200 works in the card emulation mode, NFC communication can be performed regardless of the top or the middle of the electronic device 200. For example, when the electronic device 200 is used as an electronic bus card (also called an NFC bus card), the card can be swiped when the top or the middle of the electronic device 200 is close to the gate (i.e., the external NFC device); when the electronic device 200 is used as a bank card, mobile payment can be performed when the top or the middle of the electronic device 200 is close to the POS machine (i.e., the external NFC device). Figure 7C As shown, when the electronic device 200 is in a folded state, both the first side and the second side of the electronic device 200 can perform NFC communication. For example, when the electronic device 200 is used as an electronic bus card (also called an NFC bus card), the card can be swiped when the first side or the second side of the electronic device 200 is close to the gate; when the electronic device 200 is used as a bank card, mobile payment can be achieved when the first side or the second side of the electronic device 200 is close to the POS machine.

[0112] In some embodiments, step S901 of determining the communication range of the external NFC device may include: determining the communication range of the external NFC device based on a first electrical parameter received by the first antenna 101 and a second electrical parameter received by the second antenna 102 .

[0113] In some embodiments, reference Figure 2As shown, the first receiving unit 1071 is used to process the NFC signal received by the first antenna 101 and output the first NFC command, and the second receiving unit 1072 is used to process the NFC signal received by the second antenna 102 and output the second NFC command. The electrical parameter received by the first receiving unit 1071 is the first electrical parameter, and the electrical parameter received by the second receiving unit 1072 is the second electrical parameter.

[0114] In some embodiments, reference Figure 3 As shown, the first receiving terminal IN1 of the receiving module 107 is used to receive the signal of the first antenna 101, the second receiving terminal IN2 of the receiving module 107 is used to receive the signal of the second antenna 102, and the receiving module 107 is used to output the NFC command based on the voltage difference between the first receiving terminal IN1 and the second receiving terminal IN2. The electrical parameter received by the first receiving terminal IN1 is the first electrical parameter, and the electrical parameter received by the second receiving terminal IN2 is the second electrical parameter.

[0115] As an implementation method, the first electrical parameter and the second electrical parameter are received voltages. Based on the first electrical parameter received by the first antenna and the second electrical parameter received by the second antenna, the communication range of the external NFC device is judged, including: determining a first receiving indicator according to the first voltage U1 received by the first antenna 101; determining a second receiving indicator according to the second voltage U2 received by the second antenna 102, wherein the first receiving indicator and the second receiving indicator include at least one of electric field strength, receiving current, receiving power and received signal strength indication (RSSI); judging the communication range of the external NFC device according to the first receiving indicator and the second receiving indicator.

[0116] As a further implementation method, the communication range of the external NFC device is determined according to the first reception indicator and the second reception indicator, including: determining the ratio of the first reception indicator to the second reception indicator to obtain an initial ratio; correcting the initial ratio based on a correction coefficient to obtain a correction ratio, the correction coefficient being used to correct the matching detuning of the first antenna and the second antenna; and determining the communication range of the external NFC device according to the correction ratio.

[0117] As a typical example, the first receiving indicator and the second receiving indicator are receiving currents, and the correction ratio can be determined in the following manner: L = α*(Rt2 / Rt1)*(U1 / U2); wherein L represents the correction ratio, U1 represents the first voltage, U2 represents the second voltage, Rt1 represents the input impedance of the first antenna 101, Rt2 represents the input impedance of the second antenna 102, and α represents the correction coefficient.

[0118] Step S902: Select the first antenna or the second antenna to transmit an NFC signal according to the communication range.

[0119] In some implementations, reference Figure 2 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first transmitting unit 1051 to transmit the NFC signal through the first antenna 101 ; and when the second antenna 102 is selected, the second transmitting unit 1052 is enabled to transmit the NFC signal through the second antenna 102 .

[0120] In some implementations, reference Figure 3 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first path S1 to transmit the NFC signal through the first antenna 101; when the second antenna 102 is selected, the second path S2 is enabled to transmit the NFC signal through the second antenna 102. The first path S1 is a path between the transmitting module 105 and the first antenna 101, and the second path S2 is a path between the transmitting module 105 and the second antenna 102.

[0121] As a typical implementation manner: after each NFC command is received and before replying to the NFC command, the first antenna or the second antenna is selected according to the current communication range to transmit an NFC signal to reply to the NFC command.

[0122] As another typical implementation, selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: determining whether the receiving field strength is stable; and selecting the first antenna or the second antenna to transmit the NFC signal according to the current communication range when the receiving field strength is stable. Specifically, in the activated state and when it is determined that the receiving field strength is stable, selecting the first antenna or the second antenna according to the current communication range, and using the selected antenna to transmit the NFC signal until entering the dormant state.

[0123] In some embodiments, if the change of at least one of the first electrical parameter, the second electrical parameter, and the difference between the first electrical parameter and the second electrical parameter within a predetermined time period satisfies a preset condition, it is determined that the receiving field strength is stable. The implementation method of the receiving field strength stabilization can be referred to the above description and will not be repeated here.

[0124] Fig.10 A communication method in a card emulation mode according to an embodiment of the present application is shown, such as Fig.10 As shown, the method includes steps S1001 to S1005.

[0125] Step S1001, field strength wake-up detection.

[0126] If the field strength of the first antenna or the second antenna meets the wake-up condition, the sleep mode enters the active state and enters step S1002. If the field strength of the first antenna and the second antenna does not meet the wake-up condition, the sleep mode remains.

[0127] Step S1002: Receive an NFC command from a reader / writer using the first antenna and the second antenna.

[0128] In some embodiments, reference Figure 2 As shown, the first receiving unit 1071 is used to process the NFC signal received by the first antenna 101 and output a first NFC command, and the second receiving unit 1072 is used to process the NFC signal received by the second antenna 102 and output a second NFC command.

[0129] In some embodiments, reference Figure 3 As shown, the first receiving terminal IN1 of the receiving module 107 is used to receive the signal of the first antenna 101, the second receiving terminal IN2 of the receiving module 107 is used to receive the signal of the second antenna 102, and the receiving module 107 is used to output the NFC command based on the voltage difference between the first receiving terminal IN1 and the second receiving terminal IN2.

[0130] Step S1003, detecting the communication range of the reader / writer, and selecting an antenna according to the communication range of the reader / writer. The specific method for determining the communication range of the reader / writer is described above and will not be repeated here. If the reader / writer is within the first communication range of the first antenna 101, the first antenna 101 is selected to transmit an NFC signal to reply to the NFC command. If the reader / writer is within the second communication range of the second antenna 102, the second antenna 102 is selected to transmit an NFC signal to reply to the NFC command.

[0131] Step S1004: Utilize the selected antenna to transmit an NFC signal to reply to the NFC command.

[0132] In some implementations, reference Figure 2 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first transmitting unit 1051 to transmit the NFC signal through the first antenna 101 ; and when the second antenna 102 is selected, the second transmitting unit 1052 is enabled to transmit the NFC signal through the second antenna 102 .

[0133] In some implementations, reference Figure 3 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first path S1 to transmit the NFC signal through the first antenna 101; when the second antenna 102 is selected, the second path S2 is enabled to transmit the NFC signal through the second antenna 102. The first path S1 is a path between the transmitting module 105 and the first antenna 101, and the second path S2 is a path between the transmitting module 105 and the second antenna 102.

[0134] Step S1005, determine whether the sleep condition is met, if so, end the communication and enter the sleep state; if not, return to step S1002 and continue to detect the NFC command of the reader / writer.

[0135] Fig.11 A communication method in a card emulation mode according to an embodiment of the present application is shown. Fig.11 As shown, the method includes steps S1101 to S1106.

[0136] Step S1101, field strength wake-up detection.

[0137] If the field strength of the first antenna or the second antenna meets the wake-up condition, the sleep mode enters the active state and enters step S1102 and step S1103. If the field strength of the first antenna and the second antenna does not meet the wake-up condition, the sleep mode is maintained.

[0138] Step S1102: Receive an NFC command from a reader / writer using the first antenna and the second antenna.

[0139] Step S1103, determine whether the received field strength is stable. If the received field strength is stable, proceed to step S1104, otherwise continue to detect and determine until the received field strength is stable.

[0140] Step S1104, detecting the communication range of the reader / writer, and selecting an antenna according to the communication range. The specific method for determining the communication range of the reader / writer is described above and will not be repeated here. If the reader / writer is within the first communication range of the first antenna 101, the first antenna 101 is selected to transmit an NFC signal to reply to the NFC command. If the reader / writer is within the second communication range of the second antenna 102, the second antenna 102 is selected to transmit an NFC signal to reply to the NFC command.

[0141] Step S1105: Utilize the selected antenna to transmit an NFC signal to reply to the NFC command.

[0142] In some implementations, reference Figure 2 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first transmitting unit 1051 to transmit the NFC signal through the first antenna 101 ; and when the second antenna 102 is selected, the second transmitting unit 1052 is enabled to transmit the NFC signal through the second antenna 102 .

[0143] In some implementations, reference Figure 3 As shown, when the first antenna 101 is selected, the NFC controller 103 enables the first path S1 to transmit the NFC signal through the first antenna 101; when the second antenna 102 is selected, the second path S2 is enabled to transmit the NFC signal through the second antenna 102. The first path S1 is a path between the transmitting module 105 and the first antenna 101, and the second path S2 is a path between the transmitting module 105 and the second antenna 102.

[0144] Step S1106, determine whether the sleep condition is met, if so, end the communication and enter the sleep state; if not, return to step S1102 and continue to detect the NFC command of the reader / writer.

[0145] like Fig.11 In the implementation method shown, after judging that the received field strength is stable, the antenna that needs to work is selected. After selecting the working antenna, this antenna will always be used for work, and no second selection will be made. In the actual card swiping process, the user moves the mobile phone from a distance to the approach, and the field strength values ​​received by the two antennas will change dynamically. It is possible that the field strength signal received by the first antenna is strong at one moment, and the signal of the second antenna is strong at another moment, which may easily lead to inappropriate antenna selection and communication failure. After holding the mobile phone close to the reader, the hand is relatively motionless, and the field strength is relatively stable at this time. This scheme adds a field strength stability judgment mechanism. After waiting for the field strength to be detected to be stable, it means that the hand is relatively motionless. At this time, selecting the antenna that needs to work can greatly alleviate the problem of inappropriate antenna selection.

[0146] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A near field communication (NFC) device, It is characterized in that include: A first antenna, used for receiving and transmitting NFC signals within a first communication range; a second antenna, configured to receive and transmit the NFC signal within a second communication range, wherein the first communication range does not overlap or partially overlaps with the second communication range; The NFC controller is used to determine a communication range of an external NFC device, and select the first antenna or the second antenna to transmit the NFC signal according to the communication range, wherein the communication range is the first communication range or the second communication range.

2. The NFC device according to claim 1, It is characterized in that The NFC controller is used to determine a communication range of an external NFC device based on a first electrical parameter received by the first antenna and a second electrical parameter received by the second antenna.

3. The NFC device according to claim 2, It is characterized in that The NFC controller is used to: determining a first reception index according to a first voltage received by the first antenna; Determine a second reception indicator according to a second voltage received by the second antenna, wherein the first reception indicator and the second reception indicator include at least one of electric field strength, current, power, signal strength, and received signal strength indication RSSI; The communication range of the external NFC device is determined according to the first reception indicator and the second reception indicator.

4. The NFC device according to claim 3, It is characterized in that The NFC controller is used to: Determine a ratio of the first reception index to the second reception index to obtain an initial ratio; Correcting the initial ratio based on a correction coefficient to obtain a correction ratio, wherein the correction coefficient is used to correct the matching detuning of the first antenna and the second antenna; The communication range of the external NFC device is determined according to the correction ratio.

5. The NFC device according to claim 4, It is characterized in that The NFC controller is configured to determine that the communication range is the first communication range when the correction ratio is greater than 1, and to determine that the communication range is the second communication range when the correction ratio is less than 1.

6. The NFC device according to any one of claims 1 to 5, It is characterized in that The NFC controller is configured to select the first antenna or the second antenna to transmit the NFC signal to reply to the NFC command according to the current communication range after receiving the NFC command each time and before replying to the NFC command.

7. The NFC device according to any one of claims 1 to 5, It is characterized in that The NFC controller is further configured to determine whether the receiving field strength is stable, and when the receiving field strength is stable, select the first antenna or the second antenna to transmit the NFC signal according to the current communication range.

8. The NFC device according to claim 7, It is characterized in that The NFC controller is used to select the first antenna or the second antenna according to the current communication range when it is in an activated state and determines that the receiving field strength is stable, and use the selected antenna to transmit an NFC signal until entering a dormant state.

9. The NFC device according to any one of claims 1 to 8, It is characterized in that The NFC controller includes a transmitting module; The transmitting module includes: a first transmitting unit connected to the first antenna and configured to transmit an NFC signal through the first antenna; a second transmitting unit connected to the second antenna and configured to transmit an NFC signal through the second antenna; The NFC controller is configured to: when the first antenna is selected, enable the first transmitting unit to transmit an NFC signal through the first antenna; and when the second antenna is selected, enable the second transmitting unit to transmit an NFC signal through the second antenna.

10. The NFC device according to any one of claims 1 to 8, It is characterized in that The NFC controller includes a transmitting module and a multi-way selection module; The multi-path selection module includes: a first path between the transmitting module and the first antenna, and a second path between the transmitting module and the second antenna; The NFC controller is configured to: when the first antenna is selected, enable the first path to transmit an NFC signal through the first antenna; and when the second antenna is selected, enable the second path to transmit an NFC signal through the second antenna.

11. The NFC device according to any one of claims 1 to 8, It is characterized in that The NFC controller further includes: a receiving module including: a first receiving end and a second receiving end; The NFC controller is used to: During a first period, the first receiving end is connected to the first antenna, and the second receiving end receives a preset voltage, and a first voltage received by the first antenna is determined based on the voltage difference generated by the receiving module; During a second period, the second receiving end is connected to the second antenna, the first receiving end receives the preset voltage, and a second voltage received by the second antenna is determined based on the voltage difference generated by the receiving module.

12. The NFC device according to claim 11, It is characterized in that The NFC controller is further used to determine whether the receiving field strength is stable based on the voltage difference generated when the receiving module is connected to the first antenna and the second antenna.

13. The NFC device according to claim 7, It is characterized in that The NFC controller is used to determine whether the receiving field strength is stable based on the first electrical parameter received by the first antenna and / or the second electrical parameter received by the second antenna.

14. The NFC device according to claim 13, It is characterized in that The NFC controller is used to determine that the receiving field strength is stable if a change in at least one of the first electrical parameter, the second electrical parameter, and the difference between the first electrical parameter and the second electrical parameter within a predetermined time period satisfies a preset condition.

15. The NFC device according to any one of claims 1 to 14, It is characterized in that The NFC controller further includes: a first receiving end, a second receiving end, a first transmitting end, and a second transmitting end; The NFC device further comprises: A first matching circuit connected between the first transmitting end and the first antenna; A first peripheral receiving circuit connected between the first receiving end and the first matching circuit; A second matching circuit connected between the second transmitting end and the second antenna; The second peripheral receiving circuit is connected between the second receiving end and the second matching circuit.

16. A near field communication (NFC) method, It is characterized in that Applied to an NFC device, the NFC device includes a first antenna for receiving and transmitting an NFC signal in a first communication range, a second antenna for receiving and transmitting the NFC signal in a second communication range, and an NFC controller, the first communication range does not overlap or partially overlaps with the second communication range, and the method includes: Determine a communication range where the external NFC device is located, where the communication range is the first communication range or the second communication range; The first antenna or the second antenna is selected according to the communication range to transmit the NFC signal.

17. The method of claim 16, It is characterized in that The determining the communication range of the external NFC device includes: determining the communication range of the external NFC device based on a first electrical parameter received by the first antenna and a second electrical parameter received by the second antenna.

18. The method of claim 17, It is characterized in that Determining a communication range of an external NFC device based on a first electrical parameter received by the first antenna and a second electrical parameter received by the second antenna includes: Determine a first receiving indicator according to a first voltage received by the first antenna, and determine a second receiving indicator according to a second voltage received by the second antenna, wherein the first receiving indicator and the second receiving indicator include at least one of electric field strength, receiving current, receiving power, and received signal strength indication RSSI; The communication range of the external NFC device is determined according to the first reception indicator and the second reception indicator.

19. The method of claim 18, It is characterized in that The determining, according to the first reception indicator and the second reception indicator, a communication range of the external NFC device includes: Determine a ratio of the first reception index to the second reception index to obtain an initial ratio; Correcting the initial ratio based on a correction coefficient to obtain a correction ratio, wherein the correction coefficient is used to correct the matching detuning of the first antenna and the second antenna; The communication range of the external NFC device is determined according to the correction ratio.

20. The method according to any one of claims 16 to 19, It is characterized in that The selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: After receiving an NFC command each time and before replying to the NFC command, the first antenna or the second antenna is selected according to the current communication range to transmit the NFC signal to reply to the NFC command.

21. The method according to any one of claims 16 to 19, It is characterized in that The selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: Determine whether the receiving field strength is stable; When the receiving field strength is stable, the first antenna or the second antenna is selected to transmit the NFC signal according to the current communication range.

22. The method of claim 21, It is characterized in that The selecting the first antenna or the second antenna to transmit the NFC signal according to the communication range includes: In the activated state and when the receiving field strength is stable, the first antenna or the second antenna is selected according to the current communication range, and the NFC signal is transmitted using the selected antenna until entering the dormant state.

23. The method of claim 21, It is characterized in that The determining whether the received field strength is stable includes: determining whether the received field strength is stable based on a first electrical parameter received by the first antenna and / or a second electrical parameter received by the second antenna.

24. The method of claim 23, It is characterized in that If a change in at least one of the first electrical parameter, the second electrical parameter, and the difference between the first electrical parameter and the second electrical parameter within a predetermined time period satisfies a preset condition, it is determined that the receiving field strength is stable.

25. An electronic device, It is characterized in that The invention comprises a device body and an NFC device as claimed in any one of claims 1 to 15 arranged on the device body.

26. The electronic device according to claim 25, It is characterized in that The first antenna is arranged at the top of the device body, and the second antenna is arranged at the middle or lower part of the device body.

27. The electronic device according to claim 25, It is characterized in that The device body includes a first part and a second part, the first part and the second part can be relatively rotated to a folded state or an unfolded state, the first antenna is arranged on the first part, and the second antenna is arranged on the second part.

Citation Information

Patent Citations

  • Antenna device and electronic equipment

    CN113497630A

  • NFC (Near Field Communication) device, impedance matching method of NFC device and electronic equipment

    CN116366100A

  • Near field communication device and electronic equipment

    CN116582157A

  • Near field communication circuit and electronic device

    CN211742146U

  • Near field communication method, apparatus and system

    WO2015103787A1

Cited By

  • Near-field communication apparatus and method, and electronic device

    WO2026040832A1