Control method and control device for near field communication equipment and near field communication equipment
By collecting IQ data under multiple initial detection parameter groups, determining the appropriate detection parameter group and setting the target phase and amplitude, the problem that near-field communication devices are difficult to detect all NFC cards in a low power consumption state is solved, and effective detection of all NFC cards to be applied is achieved.
Patent Information
- Application Number
- CN202411737622.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-04
AI Technical Summary
It is difficult for near-field communication devices to detect all NFC cards to be applied in a low-power state, especially when multiple different types of NFC cards exist, and missed detection is prone to occur.
By acquiring the first IQ data when no NFC card is approached and the second IQ data when each NFC card is to be applied under the conditions of multiple initial detection parameter groups, it is determined that each initial detection parameter group can meet the maximum proximity distance of all NFC cards to be applied, and selecting the phase and amplitude in the initial detection parameter group corresponding to the maximum maximum proximity distance as the target phase and a target amplitude, the near-field communication device is controlled to detect the NFC card according to the target phase and a target amplitude in the low power consumption state.
Ensure that near-field communication devices can detect all NFC cards to be applied in a low-power state, improving the sensitivity and accuracy of detection.
Smart Images

Figure CN119562295A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of near field communication, for example, to a control method and control device for near field communication equipment, and near field communication equipment. Background Art
[0002] Currently, in a card reading mode, a near field communication device continuously transmits a large radio frequency field to poll a card, which results in a large power consumption of the near field communication device in a working mode.
[0003] In the related art, in order to reduce the power consumption of near-field communication devices, a low-power card detection mode is adopted. In the card reading mode, a smaller radio frequency field is emitted intermittently. If the near-field communication device detects an NFC card when the NFC card is close to its antenna, it enters the normal working mode and emits a larger radio frequency field to poll the NFC card.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] In the related art, when a near field communication device is in a low power consumption state, it usually detects NFC cards with a fixed phase or amplitude. However, with the emergence of many different types of NFC cards, it is very easy to miss NFC cards when detecting NFC cards with a fixed phase or amplitude. Therefore, when a near field communication device is in a low power consumption state, how to ensure that it can detect all the NFC cards to be used has become a technical problem that needs to be solved urgently.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a control method and a control device for a near field communication device, and a near field communication device, which can ensure that the near field communication device can detect all NFC cards to be used when the near field communication device is in a low power consumption state.
[0009] In some embodiments, a control method for a near field communication device includes: when the near field communication device is in a low power consumption state, collecting first IQ data when no NFC card is approaching and second IQ data when each type of NFC card to be applied is approaching at multiple proximity distances under the conditions of multiple initial detection parameter groups; determining, based on the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance that each initial detection parameter group can meet to detect all NFC cards to be applied; determining the phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value as the target phase and target amplitude; and controlling the near field communication device to detect NFC cards according to the target phase and target amplitude when it is subsequently in a low power consumption state.
[0010] Optionally, determining, according to the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance at which each initial detection parameter group can meet to detect all NFC cards to be applied, includes: generating, according to the first IQ data, a first distribution graph corresponding to each initial detection parameter group; generating, according to the second IQ data, a second distribution graph of each type of NFC card to be applied at multiple proximity distances under the condition of each initial detection parameter group; and determining, according to the first distribution graph and multiple second distribution graphs corresponding to each initial detection parameter group, a maximum proximity distance at which each initial detection parameter group can meet to detect all NFC cards to be applied.
[0011] Optionally, for each initial detection parameter group, when none of the multiple second distribution patterns corresponding to any proximity distance intersects with the first distribution pattern, it is determined that under the conditions of the initial detection parameter group and the proximity distance, the near field communication device can detect all NFC cards to be used.
[0012] Optionally, the intersection of the second distribution pattern and the first distribution pattern is determined according to the distance between the center point of the first distribution pattern and the center point of the second distribution pattern.
[0013] Optionally, before collecting the first IQ data when no NFC card is approaching under the conditions of multiple initial detection parameter groups, the control method further includes: collecting third IQ data when no NFC card is approaching under the conditions of multiple set detection parameter groups; and screening out multiple initial detection parameter groups from the multiple set detection parameter groups according to the third IQ data.
[0014] Optionally, multiple initial detection parameter groups are screened out from multiple set detection parameter groups according to the third IQ data, including: generating a third distribution graph corresponding to each set detection parameter group according to the third IQ data; screening out multiple target third distribution graphs from the multiple third distribution graphs according to the set selection strategy; and determining the set detection parameter group corresponding to each target third distribution graph as the initial detection parameter group.
[0015] Optionally, before collecting the first IQ data when no NFC card is approaching under the conditions of multiple initial detection parameter groups, the control method also includes: receiving user input information, determining the application environment of the near field communication device; and determining multiple NFC cards to be applied corresponding to the application environment.
[0016] In some embodiments, a control device for a near field communication device includes: an acquisition module, configured to, when the near field communication device is in a low power consumption state, respectively acquire first IQ data when no NFC card is approaching, and second IQ data when each type of NFC card to be applied is approaching at multiple proximity distances under the conditions of multiple initial detection parameter groups; a determination module, configured to determine, based on the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance that each initial detection parameter group can meet to detect all NFC cards to be applied; the determination module is further configured to determine the phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value as the target phase and target amplitude; and a control module, configured to control the near field communication device to detect NFC cards according to the target phase and target amplitude when it is subsequently in a low power consumption state.
[0017] In some embodiments, a control device for a near field communication device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned control method for a near field communication device when running the program instructions.
[0018] In some embodiments, a near field communication device includes: a device body; and a control device for the near field communication device as described above, which is disposed in the device body.
[0019] The control method and control device for near field communication equipment and the near field communication equipment provided by the embodiments of the present disclosure can achieve the following technical effects:
[0020] In the embodiment of the present disclosure, when the near field communication device is in a low power consumption state, first, under the conditions of multiple initial detection parameter groups including different phase and amplitude combinations, the first IQ data when no NFC card is close, and the second IQ data when each NFC card to be applied is close at multiple proximity distances are collected. Then, according to the first IQ data and the second IQ data corresponding to each initial detection parameter group, it is determined that each initial detection parameter group can meet the maximum proximity distance for detecting all NFC cards to be applied. Finally, the phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value are selected as the parameters for the near field communication device to detect NFC cards in the subsequent low power consumption state. In this way, the phase and amplitude of the near field communication device detecting the NFC card can adapt to all NFC cards to be applied. Therefore, in the embodiment of the present disclosure, when the near field communication device is in a low power consumption state, it can be ensured that the near field communication device can detect all NFC cards to be applied.
[0021] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0023] Figure 1 is a schematic diagram of a near field communication device provided by an embodiment of the present disclosure;
[0024] Figure 2 is a schematic diagram of a control method for a near field communication device provided by an embodiment of the present disclosure;
[0025] Figure 3 is a schematic diagram of another control method for a near field communication device provided by an embodiment of the present disclosure;
[0026] Figure 4 is a schematic diagram of distribution of a first distribution graph and a plurality of second distribution graphs provided in an embodiment of the present disclosure;
[0027] Figure 5 is a schematic diagram of a third distribution graph provided by an embodiment of the present disclosure;
[0028] Figure 6 is a schematic diagram of another third distribution graph provided by an embodiment of the present disclosure;
[0029] Figure 7 is a schematic diagram of another third distribution graph provided by an embodiment of the present disclosure;
[0030] Figure 8 is a schematic diagram of a control device for a near field communication device provided by an embodiment of the present disclosure;
[0031] Fig. 9 It is a schematic diagram of another control device for a near field communication device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0033] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0034] Unless otherwise stated, the term "plurality" of a feature means two or more.
[0035] In the embodiment of the present disclosure, the character " / " feature indicates that the preceding and following objects are in an "or" relationship. For example, the A / B feature indicates: A or B.
[0036] The term "and / or" is a description of the association relationship between objects, and the characteristic indicates that there can be three relationships. For example, A and / or B, the characteristic indicates: A or B, or, A and B.
[0037] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0038] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.
[0039] In the embodiments of the present disclosure, a near field communication device refers to a device used to perform near field communication with an NFC chip, such as a smart phone, a tablet computer, a gate machine, and an NFC card reader. Figure 1 As shown, the near field communication device 100 includes a device body 110 and a control apparatus 800 (900) for the near field communication device.
[0040] Specifically, the control device 800 ( 900 ) for the near field communication device is disposed in the device body 110 .
[0041] Optionally, the control device 900 for the near field communication device includes a processor, and when the near field communication device is in a low power consumption state, the processor can respectively collect the first IQ data when no NFC card is approaching under the conditions of multiple initial detection parameter groups, and the second IQ data when each NFC card to be applied is approaching at multiple proximity distances. According to the first IQ data and the second IQ data corresponding to each initial detection parameter group, it can be determined that each initial detection parameter group can meet the maximum proximity distance for detecting all NFC cards to be applied. The phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value can be determined as the target phase and target amplitude, and the near field communication device can be controlled to detect the NFC card according to the target phase and target amplitude when it is in a low power consumption state later.
[0042] In combination with the above-mentioned near field communication device, the present disclosure provides a control method for a near field communication device, such as Figure 2 As shown, the control method includes:
[0043] S201, when the near field communication device is in a low power consumption state, the processor collects first IQ data when no NFC card is approaching and second IQ data when each NFC card to be used is approaching at multiple approach distances under the conditions of multiple initial detection parameter groups.
[0044] Specifically, the initial detection parameter group refers to a set detection parameter group pre-screened from multiple set detection parameter groups and suitable for the current near field communication device. Specifically, each set detection parameter group specifies a set of phase and amplitude parameter combinations for the near field communication device.
[0045] Specifically, the IQ data refers to component data of two signals, I (in-phase) and Q (quadrature) of a radio frequency signal detected by a near field communication device.
[0046] Specifically, when the near field communication device is in a low power consumption state, by comparing and analyzing the first IQ data collected under each initial detection parameter condition and the second IQ data when each NFC card to be applied is close at multiple close distances, it can be determined which phase and amplitude specified in the initial detection parameter group is more suitable for the detection of all NFC cards to be applied. Therefore, the processor needs to collect the first IQ data when no NFC card is close, and the second IQ data when each NFC card to be applied is close at multiple close distances under the conditions of multiple initial detection parameter groups.
[0047] Optionally, the detection distance of current NFC cards is usually not greater than 5 cm, so the multiple proximity distances set in the embodiments of the present disclosure are all values within the range of 0 cm to 5 cm, for example, 1 cm, 2 cm, 3 cm, 4 cm and 5 cm.
[0048] S202: The processor determines, based on the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance that each initial detection parameter group can meet to detect all the NFC cards to be applied.
[0049] Specifically, the second IQ data corresponding to each initial detection parameter group includes the second IQ data of different NFC cards to be applied at different proximity distances. Therefore, for any initial detection parameter group, the processor can determine, by comparing and analyzing the first IQ data and the second IQ data, at which proximity distances the near field communication device can detect all the NFC cards to be applied under the conditions of the initial detection parameter group. Therefore, the processor can determine the maximum proximity distance that each initial detection parameter group can meet to detect all the NFC cards to be applied.
[0050] S203: The processor determines the phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value as the target phase and target amplitude.
[0051] Specifically, if the phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value are used, the near field communication device can both meet the requirements of detecting all NFC cards to be applied and ensure the sensitivity of NFC card detection. Therefore, the processor can determine the phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value as the target phase and target amplitude.
[0052] S204: The processor controls the near field communication device to detect the NFC card according to the target phase and target amplitude when the device is in a low power consumption state.
[0053] Specifically, by controlling the near field communication device to detect NFC cards according to the target phase and target amplitude when it is in a low power consumption state, the sensitivity of the near field communication device in detecting NFC cards can be improved while ensuring that all NFC cards to be used can be detected.
[0054] In the embodiment of the present disclosure, when the near field communication device is in a low power consumption state, first, under the conditions of multiple initial detection parameter groups including different phase and amplitude combinations, the first IQ data when no NFC card is close, and the second IQ data when each NFC card to be applied is close at multiple proximity distances are collected. Then, according to the first IQ data and the second IQ data corresponding to each initial detection parameter group, it is determined that each initial detection parameter group can meet the maximum proximity distance for detecting all NFC cards to be applied. Finally, the phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value are selected as the parameters for the near field communication device to detect NFC cards in the subsequent low power consumption state. In this way, the phase and amplitude of the near field communication device detecting the NFC card can adapt to all NFC cards to be applied. Therefore, in the embodiment of the present disclosure, when the near field communication device is in a low power consumption state, it can be ensured that the near field communication device can detect all NFC cards to be applied.
[0055] The present disclosure provides another control method for a near field communication device. Figure 3 As shown, the control method includes:
[0056] S301, when the near field communication device is in a low power consumption state, the processor collects first IQ data when no NFC card is approaching and second IQ data when each NFC card to be used is approaching at multiple approach distances under the conditions of multiple initial detection parameter groups.
[0057] S302: The processor generates a first distribution graph corresponding to each initial detection parameter group according to the first IQ data.
[0058] Specifically, the first IQ data corresponding to each initial detection parameter group includes multiple IQ data collected multiple times. A coordinate system is constructed with I data as the vertical coordinate and Q data as the horizontal coordinate. The first IQ data is mapped to the coordinate system to obtain the distribution of the first IQ data. The first distribution graph can be obtained by constructing a corresponding graph according to the outline of the distribution.
[0059] Optionally, a graphics generation tool based on MATLAB is pre-built, and the processor inputs the first IQ data corresponding to each initial detection parameter group into the graphics generation tool to generate a first distribution graph corresponding to each initial detection parameter group.
[0060] S303: The processor generates, according to the second IQ data, second distribution patterns of each type of NFC card to be used at multiple proximity distances under the condition of each initial detection parameter group.
[0061] Specifically, each NFC card to be used needs to construct a second distribution pattern at each proximity distance.
[0062] Specifically, the scheme for constructing the second distribution graph based on the second IQ data is the same as the scheme for constructing the first distribution graph based on the first IQ data, that is, mapping the IQ data to a coordinate system with the I data as the ordinate and the Q data as the abscissa. Therefore, it will not be described in detail here.
[0063] S304: The processor determines, based on the first distribution graph and the plurality of second distribution graphs corresponding to each initial detection parameter group, a maximum proximity distance that can be satisfied by each initial detection parameter group for detecting all the NFC cards to be applied.
[0064] Optionally, for each initial detection parameter group, when none of the multiple second distribution patterns corresponding to any proximity distance intersects with the first distribution pattern, it is determined that under the conditions of the initial detection parameter group and the proximity distance, the near field communication device can detect all NFC cards to be used.
[0065] Optionally, the intersection of the second distribution pattern and the first distribution pattern is determined according to the distance between the center point of the first distribution pattern and the center point of the second distribution pattern.
[0066] Specifically, taking the case where both the first distribution pattern and the second distribution pattern are circles as an example, if the distance between the center point of the first distribution pattern and the center point of the second distribution pattern is less than the sum of the radii of the first distribution pattern and the second distribution pattern, it can be determined that the second distribution pattern and the first distribution pattern intersect. Therefore, according to the distance between the center point of the first distribution pattern and the center point of the second distribution pattern, the intersection of the second distribution pattern and the first distribution pattern is determined.
[0067] For example, for each initial detection parameter group, when the near field communication device can detect all the NFC cards to be used at a certain proximity distance, the distribution of the first distribution pattern and the plurality of second distribution patterns may be as follows: Figure 4 shown.
[0068] S305: The processor determines the phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value as the target phase and target amplitude.
[0069] S306: The processor controls the near field communication device to detect the NFC card according to the target phase and target amplitude when the device is in a low power consumption state.
[0070] In the embodiment of the present disclosure, for each initial detection parameter, the maximum proximity distance that each initial detection parameter group can meet to detect all the NFC cards to be applied is determined by comparing and analyzing the first distribution graph generated based on the first IQ data and the plurality of second distribution graphs generated based on the second IQ data. This is conducive to improving the efficiency and accuracy of determining the maximum proximity distance corresponding to each initial detection parameter.
[0071] In some embodiments, before collecting the first IQ data when no NFC card is approaching under the conditions of multiple initial detection parameter groups, the control method further includes: collecting the third IQ data when no NFC card is approaching under the conditions of multiple set detection parameter groups; and selecting multiple initial detection parameter groups from the multiple set detection parameter groups according to the third IQ data.
[0072] Specifically, according to the third IQ data collected respectively under the conditions of multiple set detection parameter groups when no NFC card is approaching, the graphical comparison rule of the distribution of which set detection parameter groups in the coordinate system with I data as the ordinate and Q data as the abscissa can be determined. Therefore, multiple initial detection parameter groups can be screened out from the multiple set detection parameter groups according to the third IQ data.
[0073] Optionally, multiple initial detection parameter groups are screened out from multiple set detection parameter groups according to the third IQ data, including: generating a third distribution graph corresponding to each set detection parameter group according to the third IQ data; screening out multiple target third distribution graphs from the multiple third distribution graphs according to the set selection strategy; and determining the set detection parameter group corresponding to each target third distribution graph as the initial detection parameter group.
[0074] Specifically, by constructing a third distribution graph corresponding to each set detection parameter group, it is possible to determine which set detection parameter groups the third IQ data collected under. The distribution graph in the coordinate system with I data as the vertical coordinate and Q data as the horizontal coordinate is relatively regular, which is more conducive to the subsequent judgment of whether the NFC card to be applied can be detected.
[0075] Specifically, the selection strategy is set to a strategy for selecting a relatively regular distribution pattern.
[0076] For example, Figures 5 to 7 As shown, it is a third distribution graph corresponding to three set detection parameters. Figure 5 The corresponding set detection parameter group is: I-phase is 0°C, amplitude is 207mv, Q-phase is 90°C, amplitude is 2mv; Figure 6 The corresponding set detection parameter group is: I-phase is 90°C, amplitude is 207mv, Q-phase is 0°C, amplitude is -4mv; Figure 7 The corresponding set detection parameter group is: I-phase is 45°C, amplitude is 123mv, Q-phase is 45°C, amplitude is 152mv.
[0077] By analyzing Figures 5 to 7 It can be seen that Figure 5 and Figure 6 The third distribution graph formed by the distribution of the third IQ data is relatively regular, and Figure 7The third IQ data distribution in is relatively scattered and has no obvious regular pattern. Therefore, you can choose Figure 5 and Figure 6 The corresponding set detection parameter group is used as the initial detection parameter group.
[0078] In the disclosed embodiment, multiple initial detection parameter groups are pre-screened from multiple set detection parameter groups. In this way, the first IQ data and the first IQ data that need to be collected can be reduced, the amount of calculation when determining the target phase and the target amplitude can be reduced, and the efficiency of determining the target phase and the target amplitude can be improved.
[0079] In some embodiments, before collecting the first IQ data when no NFC card is approaching under the conditions of multiple initial detection parameter groups, the control method also includes: receiving user input information, determining the application environment of the near field communication device; and determining multiple NFC cards to be applied corresponding to the application environment.
[0080] Specifically, when the NFC device is used in different environments, the types of NFC cards to be detected are different. Therefore, it is necessary to first determine the application environment of the NFC device according to the user input information input by the user, and then determine multiple NFC cards to be applied corresponding to the application environment.
[0081] Combination Figure 8 As shown, the embodiment of the present disclosure provides a control device for a near field communication device, including: an acquisition module 801, a determination module 802 and a control module 803. The acquisition module 801 is configured to collect the first IQ data when no NFC card is approaching and the second IQ data when each NFC card to be applied is approaching at multiple proximity distances under the conditions of multiple initial detection parameter groups when the near field communication device is in a low power consumption state. The determination module 802 is configured to determine the maximum proximity distance that each initial detection parameter group can meet to detect all NFC cards to be applied based on the first IQ data and the second IQ data corresponding to each initial detection parameter group. The determination module 802 is also configured to determine the phase and amplitude specified in the initial detection parameter group corresponding to the maximum proximity distance with the largest value as the target phase and target amplitude. The control module 803 is configured to control the near field communication device to detect the NFC card according to the target phase and target amplitude when it is in a low power consumption state later.
[0082] Combination Fig. 9As shown, an embodiment of the present disclosure provides a control device 900 for a near field communication device, and the control device 900 for a near field communication device includes: a processor (processor) 901 and a memory (memory) 902. Optionally, the device may also include a communication interface (Communication Interface) 903 and a bus 904. Among them, the processor 901, the communication interface 903, and the memory 902 can communicate with each other through the bus 904. The communication interface 903 can be used for information transmission. The processor 901 can call the logic instructions in the memory 902 to execute the control method for the near field communication device of the above embodiment.
[0083] In addition, the logic instructions in the memory 902 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0084] The memory 902 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 901 executes the functional application and data processing by running the program instructions / modules stored in the memory 902, that is, the control method for the near field communication device in the above embodiment is implemented.
[0085] The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 902 may include a high-speed random access memory and may also include a non-volatile memory.
[0086] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned control method for a near field communication device.
[0087] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0088] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0089] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0090] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0091] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A control method for a near field communication device, characterized in that: include: When the near field communication device is in a low power consumption state, first IQ data when no NFC card is approaching and second IQ data when each NFC card to be used is approaching at multiple approach distances are collected respectively under the conditions of multiple initial detection parameter groups; Determine, according to the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance at which each initial detection parameter group can meet the detection of all NFC cards to be applied; The phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value are determined as the target phase and target amplitude; The near field communication device is controlled to detect the NFC card according to the target phase and the target amplitude when it is in a low power consumption state subsequently.
2. The control method according to claim 1, characterized in that: Determining, according to the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance at which each initial detection parameter group can meet the detection of all NFC cards to be applied, including: Generate a first distribution graph corresponding to each initial detection parameter group according to the first IQ data; generating, according to the second IQ data, a second distribution pattern of each type of NFC card to be used at a plurality of proximity distances under the condition of each initial detection parameter group; According to the first distribution graph and the plurality of second distribution graphs corresponding to each initial detection parameter group, it is determined that each initial detection parameter group can meet a maximum proximity distance for detecting all the NFC cards to be applied.
3. The control method according to claim 2, characterized in that: For each initial detection parameter group, when any of the multiple second distribution patterns corresponding to the proximity distance do not intersect with the first distribution pattern, it is determined that under the conditions of the initial detection parameter group and the proximity distance, the near field communication device can detect all the NFC cards to be used.
4. The control method according to claim 3, characterized in that: The intersection of the second distribution pattern and the first distribution pattern is determined according to the distance between the center point of the first distribution pattern and the center point of the second distribution pattern.
5. The control method according to any one of claims 1 to 4, characterized in that: Before collecting the first IQ data when no NFC card is approaching under the conditions of the multiple initial detection parameter groups, the control method further includes: Under the conditions of multiple set detection parameter groups, the third IQ data when no NFC card is approaching is collected respectively; A plurality of initial detection parameter groups are selected from the plurality of set detection parameter groups according to the third IQ data.
6. The control method according to claim 5, characterized in that: A plurality of initial detection parameter groups are selected from the plurality of set detection parameter groups according to the third IQ data, including: generating a third distribution graph corresponding to each set detection parameter group according to the third IQ data; Screening out a plurality of target third distribution patterns from a plurality of third distribution patterns according to a set selection strategy; The set detection parameter group corresponding to each target third distribution pattern is determined as the initial detection parameter group.
7. The control method according to any one of claims 1 to 4, characterized in that: Before collecting the first IQ data when no NFC card is approaching under the conditions of the multiple initial detection parameter groups, the control method further includes: Receiving user input information and determining a pending application environment of the near field communication device; A plurality of NFC cards to be applied corresponding to the application environment to be applied are determined.
8. A control device for a near field communication device, characterized in that: include: The acquisition module is configured to acquire, when the near field communication device is in a low power consumption state, first IQ data when no NFC card is approaching and second IQ data when each NFC card to be applied is approaching at multiple approach distances under the conditions of multiple initial detection parameter groups; A determination module is configured to determine, based on the first IQ data and the second IQ data corresponding to each initial detection parameter group, a maximum proximity distance that each initial detection parameter group can meet to detect all the NFC cards to be applied; The determination module is further configured to determine the phase and amplitude specified in the initial detection parameter group corresponding to the maximum approach distance with the largest value as the target phase and target amplitude; The control module is configured to control the near field communication device to detect the NFC card according to the target phase and target amplitude when it is in a low power consumption state.
9. A control device for a near field communication device, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the control method for a near field communication device according to any one of claims 1 to 7 when running the program instructions.
10. A near field communication device, characterized in that: include: Equipment body; The control device for a near field communication device as claimed in claim 8 or 9 is arranged on the device body.