NFC card reading method, electronic equipment and storage medium

By acquiring the detuning quantization parameters of the NFC antenna at different coupling positions, and generating indication information to guide the target card to move to the optimal coupling position, the problem of card reading failure caused by the reduction of NFC antenna area is solved, and efficient NFC card reading is achieved.

CN119272779APending Publication Date: 2025-01-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310836930.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

As mobile phone functions become more diverse and space becomes more compact, the area of ​​NFC antennas shrinks, resulting in a smaller sensing area and making it difficult to find strong coupling points, leading to NFC card reading failures.

Method used

By acquiring the detuning quantization parameters of the NFC antenna at different coupling positions, coupling position indication information is generated to indicate the correct movement direction of the target card so that reading can be completed at the target coupling position.

Benefits of technology

It improves the performance and success rate of NFC card reading, ensuring efficient completion of NFC card reading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119272779A_ABST
    Figure CN119272779A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an NFC card reading method, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first detuning quantization parameter corresponding to an NFC antenna under the condition that the electronic equipment reads a target card based on the NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna under the condition that the target card is located at different coupling positions; generating coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of the target coupling position; and under the condition that the target card is located at the target coupling position, reading of the target card is completed according to the target coupling position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to an NFC card reading method, electronic equipment and storage medium. Background Art

[0002] As mobile phones have more and more functions and the space is becoming more and more compact, all related functions and devices in mobile phones are developing in the direction of miniaturization, and the area of ​​NFC antennas is also developing in the direction of smaller size; therefore, due to the limitation of environmental space, the sensing area of ​​NFC antennas becomes smaller, which makes it difficult to find the strong coupling point and leads to card reading failure; that is, how to improve the performance of NFC card reading to ensure the success rate of NFC card reading is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide an NFC card reading method, an electronic device, and a storage medium, which can effectively improve the performance of NFC card reading and ensure the success rate of NFC card reading.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides an NFC card reading method, the method comprising:

[0006] When a target card is read based on a near field communication (NFC) antenna, a first detuning quantization parameter corresponding to the NFC antenna is acquired; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions;

[0007] generating coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of the target coupling position;

[0008] When the target card is in the target coupling position, the target card is read according to the target coupling position.

[0009] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device comprising an acquisition unit, a generation unit, and a reading unit.

[0010] The acquisition unit is configured to acquire a first detuning quantization parameter corresponding to a near field communication (NFC) antenna when reading a target card based on the NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions;

[0011] The generating unit is configured to generate coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of a target coupling position;

[0012] The reading unit is used to complete the reading of the target card according to the target coupling position when the target card is in the target coupling position.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing instructions executable by the processor; when the instructions are executed by the processor, the NFC card reading method as described above is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the NFC card reading method as described above is implemented.

[0015] The embodiment of the present application provides an NFC card reading method, an electronic device and a storage medium. When the electronic device reads a target card based on a near field communication NFC antenna, the electronic device obtains a first detuning quantization parameter corresponding to the NFC antenna; wherein the first detuning quantization parameter represents the detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the target card is read according to the target coupling position. It can be seen that in the embodiment of the present application, when the electronic device performs NFC card reading on the target card, the detuning degree of the NFC antenna at the current coupling position can be determined by real-time acquisition of the first detuning quantization parameter of the NFC antenna corresponding to the coupling position where the target card is attached, thereby generating coupling position indication information to guide the moving direction that can approach the strong coupling point that is easy to read the card, that is, the correct moving direction of the target coupling position, so that when it is determined that the target card moves to the target coupling position, the target card can be read according to the target coupling position, so as to achieve efficient NFC card reading, effectively improve the performance of NFC card reading, and ensure the success rate of NFC card reading. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of the implementation process of the NFC card reading method proposed in this application embodiment Figure 1 ;

[0017] Figure 2 Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 1 ;

[0018] Figure 3Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 2 ;

[0019] Figure 4 Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 3 ;

[0020] Figure 5 Schematic diagram of the implementation process of the NFC card reading method proposed in this application embodiment Figure 2 ;

[0021] Figure 6 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 1 ;

[0022] Figure 7 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the drawings.

[0024] As mobile phones have more and more functions and the space is becoming more and more compact, all related functions and devices in mobile phones are moving towards miniaturization, and the area of ​​NFC antennas is also moving towards smaller size; as the available area of ​​NFC decreases, the overall performance of NFC antennas also shows a downward trend. The direct impact on the parameters is that the sensing area becomes smaller, especially in reader mode. The card reading area is small and it is difficult for users to find the strong coupling point, which leads to card reading failure; that is, how to improve the performance of NFC card reading to ensure the success rate of NFC card reading is a technical problem that needs to be solved urgently.

[0025] In order to solve the above problems, in an embodiment of the present application, when the electronic device reads the target card based on the near field communication NFC antenna, it obtains the first detuning quantization parameter corresponding to the NFC antenna; wherein the first detuning quantization parameter represents the detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the target card is read according to the target coupling position. This can effectively improve the performance of NFC card reading and ensure the success rate of NFC card reading.

[0026] 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.

[0027] Figure 1 Schematic diagram of the implementation process of the NFC card reading method proposed in this application embodiment Figure 1 ,like Figure 1 As shown, in an embodiment of the present application, the method for an electronic device to perform NFC card reading may include the following steps:

[0028] Step 101: When reading a target card based on an NFC antenna, obtain a first detuning quantization parameter corresponding to the NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions.

[0029] In an embodiment of the present application, the electronic device can obtain a first detuning quantization parameter corresponding to the NFC antenna when reading a target card based on a near field communication NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions.

[0030] It should be noted that in the embodiments of the present application, the electronic device can be any device with communication and storage functions, and the electronic device can have resource selection requirements. For example, the electronic device can be a smart lock, a tablet computer, a mobile phone, an e-reader, a remote control, a personal computer (PC), a laptop computer, a vehicle-mounted electronic device, an Internet TV, a wearable electronic device, a personal digital assistant (PDA), a portable media player (PMP), a navigation device, and other electronic devices.

[0031] It should be noted that, in the embodiments of the present application, the electronic device may include an NFC antenna for implementing some NFC functions; the electronic device acts as an external antenna interface (TX) end, and when the target card is close to the NFC antenna, the NFC antenna will produce a detuning phenomenon; the tighter the coupling, the greater the degree of detuning, and it is easier to read the card.

[0032] Further, in an embodiment of the present application, a script may be set to quantify the degree of detuning of the NFC antenna, that is, to obtain a detuning quantization parameter. When the detuning degree of the NFC antenna is greater, the detuning quantization parameter is also greater.

[0033] Furthermore, in an embodiment of the present application, the target card represents a card attached to an electronic device for NFC card reading; the target card may be a smart card, for example, the smart card may include an ordinary smart card, a standard smart card, a small smart card, and a special-shaped smart card, etc.

[0034] Exemplarily, in an embodiment of the present application, the target card is an access card, and the electronic device can read the access card based on the NFC antenna. During the reading, the access card is attached to the electronic device.

[0035] Exemplarily, in an embodiment of the present application, the target card is an ID card, and the electronic device can read the ID card based on the NFC antenna. During the reading, the ID card is attached to the electronic device.

[0036] Furthermore, in an embodiment of the present application, the first detuning quantization parameter refers to a detuning quantization parameter corresponding to the NFC antenna when a target card is attached to the electronic device.

[0037] Furthermore, in an embodiment of the present application, the electronic device can also obtain a second detuning quantization parameter corresponding to the NFC antenna in a no-load state; wherein the no-load state represents a state of no card reading; the second detuning quantization parameter represents a detuning degree parameter of the NFC antenna in the no-load state; that is, the second detuning quantization parameter refers to the detuning quantization parameter of the NFC antenna when there is no target card attached to the electronic device and the electronic device does not perform NFC card reading.

[0038] Further, in an embodiment of the present application, the first detuning quantization parameter includes an initial detuning quantization parameter and a third detuning quantization parameter; wherein the initial detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to an initial coupling position of the target card when the target card is in an initial attachment state; the third detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to a real-time coupling position of the target card when the target card moves in a target moving direction.

[0039] It should be noted that, in the embodiments of the present application, the initial attachment state refers to the state in which the target card is attached to the electronic device and the target card has not moved; thus, the initial coupling position is the coupling position corresponding to when the target card begins to be attached to the electronic device and has not moved.

[0040] Further, in an embodiment of the present application, after the target card moves in the target moving direction, its corresponding coupling position is the real-time coupling position, and the third detuning quantization parameter is the detuning degree parameter of the NFC antenna corresponding to the real-time coupling position.

[0041] It should be noted that in the embodiments of the present application, the target movement direction can be any direction, for example, the target movement direction can be any direction of up, down, left, and right, or any direction of upper left, upper right, lower left, lower right, etc., and the present application does not make any specific limitation.

[0042] That is to say, in the embodiment of the present application, when the target card moves according to the target moving direction, it can move in any direction, and the arbitrarily selected direction is the target moving direction.

[0043] Further, in an embodiment of the present application, the first detuning quantization parameter and the second detuning quantization parameter are any one of detuning data, current data, frequency data, and received signal strength indication (RSSI) data.

[0044] Exemplarily, in an embodiment of the present application, the detuning quantization parameter adopts detuning data. First, the electronic device can perform no-load self-calibration processing to obtain detuning data (second detuning quantization parameter) in the no-load state. For example, the second detuning quantization parameter is M1. Then, when the electronic device detects that a target card is attached, the detuning data at this time is obtained, that is, the initial detuning quantization parameter, expressed as M2; when the target card is detected to move in any target moving direction, the detuning data of the real-time coupling position can be obtained, that is, the third detuning quantization parameter, expressed as M3.

[0045] Further, in an embodiment of the present application, the third detuning quantization parameter may be acquired in a manner of capturing at preset time intervals through a script setting, that is, the current detuning quantization parameter is acquired once at every preset time interval.

[0046] Furthermore, in the embodiments of the present application, the specific value of the preset time interval is not limited in the present application.

[0047] Exemplarily, in an embodiment of the present application, after the electronic device performs no-load self-calibration, when it detects that a target card is attached, it obtains an initial detuning quantization parameter, and starts to obtain a third detuning quantization parameter at a preset time interval. For example, if the preset time interval is 0.5 seconds, the third detuning quantization parameter is obtained every 0.5 seconds.

[0048] Step 102: Generate coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of the target coupling position.

[0049] In an embodiment of the present application, when the electronic device reads the target card based on the NFC antenna, after obtaining the first detuning quantization parameter corresponding to the NFC antenna, it can generate coupling position indication information according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position.

[0050] Further, in an embodiment of the present application, the coupling position indication information may be used to indicate whether the current target moving direction is correct, that is, whether it is a direction close to a strongly coupled target coupling position.

[0051] It can be understood that in the embodiment of the present application, the target coupling position is a strong coupling position, which is a position that is conducive to NFC card reading.

[0052] It should be noted that, in the embodiments of the present application, the correct moving direction is the target moving direction or a direction opposite to the target moving direction.

[0053] That is to say, in an embodiment of the present application, when a user uses an electronic device to perform NFC card reading, the electronic device can generate coupling position indication information based on the first detuning quantization parameter to instruct the user to move the target card in the correct moving direction indicated by the coupling position indication information, thereby guiding the user to quickly find a better coupling position to achieve efficient card reading.

[0054] Furthermore, in some embodiments of the present application, when the electronic device generates coupling position indication information according to the first detuning quantization parameter, it can determine coupling reference data corresponding to the real-time coupling position according to the first detuning quantization parameter and the second detuning quantization parameter; and generate the coupling position indication information according to the coupling reference data.

[0055] It should be noted that, in an embodiment of the present application, the coupling reference data can be used to determine whether the detuning degree of the current NFC antenna is increasing, that is, whether the coupling degree is increasing, so as to determine whether the current target movement direction is conducive to finding a strongly coupled target coupling position, and then generate coupling position indication information.

[0056] Furthermore, in some embodiments of the present application, when the electronic device determines the coupling reference data corresponding to the real-time coupling position based on the first detune quantization parameter and the second detune quantization parameter, it can perform a subtraction operation on the initial detune quantization parameter and the second detune quantization parameter to obtain first coupling data; perform a subtraction operation on the third detune quantization parameter and the second detune quantization parameter to obtain second coupling data; and perform a subtraction operation on the second coupling data and the first coupling data to obtain coupling reference data.

[0057] Exemplarily, in an embodiment of the present application, the electronic device obtains the second detuning quantization parameter in the no-load state as M1. When the electronic device detects that a target card is attached, it determines that the initial detuning quantization parameter at this time is M2, and the first coupling data is A1=M2-M1; after the target card moves in any direction, the electronic device obtains the third detuning quantization parameter as M3, and the second coupling data is A2=M3-M1; and then a subtraction operation can be performed on A2 and A1 to obtain the coupling reference data A2-A1.

[0058] It should be noted that, in an embodiment of the present application, when a target card is attached to the electronic device, the detuning degree corresponding to the NFC antenna should be greater than the detuning degree in the no-load state, that is, the first coupling data obtained by subtracting the second detuning quantization parameter from the initial detuning quantization parameter should be greater than 0; further, when the target card moves in a certain target moving direction, if the direction is conducive to coupling, the detuning degree of the NFC antenna will be greater, that is, at this time, the third detuning quantization parameter should be greater than the initial detuning quantization parameter, so that the second coupling data obtained by subtracting the second detuning quantization parameter from the third detuning quantization parameter is greater than the first coupling data obtained by subtracting the second detuning quantization parameter from the initial detuning quantization parameter, that is, at this time, the coupling reference data should be greater than 0; and if the target moving direction is not conducive to coupling, the detuning degree of the NFC antenna will decrease, then at this time, the third detuning quantization parameter should be less than the initial detuning quantization parameter, so that the second coupling data obtained by subtracting the second detuning quantization parameter from the third detuning quantization parameter is less than the first coupling data obtained by subtracting the second detuning quantization parameter from the initial detuning quantization parameter, that is, at this time, the coupling reference data should be less than 0.

[0059] Further, in some embodiments of the present application, the coupling position indication information may include first indication information and second indication information.

[0060] Furthermore, in some embodiments of the present application, when the electronic device generates coupling position indication information based on coupling reference data, if the coupling reference data is greater than a preset value, it generates first indication information to instruct to continue moving the target card in the target moving direction; if the coupling reference data is less than the preset value, it generates second indication information to instruct to move the target card in a direction opposite to the target moving direction.

[0061] It should be noted that, in the embodiments of the present application, the preset value may be 0 or other values.

[0062] Exemplarily, in an embodiment of the present application, assuming that the preset value is 0, when the electronic device determines that the current coupling reference data is greater than 0, a first indication information is generated, that is, the current target movement direction is correct, and the user can be instructed to continue moving the target card in the current target movement direction to find the target coupling position; and when the electronic device determines that the current coupling reference data is less than 0, a second indication information is generated to instruct the user to move the target card in the direction opposite to the target movement direction.

[0063] Furthermore, in an embodiment of the present application, the electronic device may display the first indication information or the second indication information based on any one of a floating window, a floating ball, and an APP.

[0064] Furthermore, in an embodiment of the present application, when the electronic device displays the first indication information or the second indication information, it can indicate the correct moving direction by displaying specific data such as detuned quantization parameters and coupling reference data, and can also indicate patterns such as arrows.

[0065] For example, in the embodiments of the present application, Figure 2 Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 1 ,like Figure 2 The figure shows a schematic diagram of coupling position indication information displayed by an electronic device based on a floating window. For example, a floating window is displayed through a user interface (User Interface, UI) design, and the coupling position indication information is displayed in the floating window. For example, the coupling position indication information is the first indication information, and the current target movement direction is left, then the first indication information can be a left arrow to indicate that the user can continue to move the target card to the left.

[0066] For example, in the embodiments of the present application, Figure 3 Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 2 ,like Figure 3 The figure shows a floating ball displayed by an electronic device through an electronic screen; a function or APP for displaying coupling position indication information can be opened based on the floating ball, thereby displaying the coupling position indication information.

[0067] For example, in the embodiments of the present application, Figure 4 Implementation diagram of the NFC card reading method proposed in this application embodiment Figure 3 ,like Figure 4 Shown is an icon of an APP displayed on an electronic screen of an electronic device, where the APP can be used to display coupling position indication information.

[0068] Furthermore, in an embodiment of the present application, the electronic device may also generate third indication information to indicate that the current coupling position is better and reading can be performed, that is, the target coupling position has been found.

[0069] It can be understood that in an embodiment of the present application, the user can move the target card based on the coupling position indication information and move the target card according to the prompted correct moving direction, for example, the target moving direction is right; when at moment T1, the electronic device determines that the coupling reference data is greater than the preset value based on the current real-time coupling position, that is, the detuning degree of the NFC antenna increases and the coupling degree increases, then a first indication information can be generated to instruct the user to continue moving the target card to the right, and at moment T2, the electronic device determines that the coupling reference data is less than the preset value based on the current real-time coupling position, then a second indication information can be generated to instruct the user to move the target card to the left until the target coupling position is found, and a third indication information is generated to instruct the user that the current target card is already in the target coupling position and can stop moving.

[0070] Step 103: When the target card is at the target coupling position, the target card is read according to the target coupling position.

[0071] In an embodiment of the present application, after the electronic device generates coupling position indication information according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position, it can complete reading of the target card according to the target coupling position when the target card is in the target coupling position.

[0072] In summary, in the embodiments of the present application, the variation trend of the detuning quantization parameter is used to determine the tightness of the current coupling, thereby enabling the user to quickly find a better coupling position, achieve efficient card reading, and improve NFC card reading performance.

[0073] The embodiment of the present application provides an NFC card reading method, in which the electronic device obtains a first detuning quantization parameter corresponding to the NFC antenna when reading a target card based on a near field communication NFC antenna; wherein the first detuning quantization parameter represents the detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the target card is read according to the target coupling position. It can be seen that in the embodiment of the present application, when the electronic device performs NFC card reading on the target card, the detuning degree of the NFC antenna at the current coupling position can be determined by obtaining the first detuning quantization parameter of the NFC antenna corresponding to the coupling position where the target card is attached in real time, thereby generating coupling position indication information to guide the moving direction that can approach the strong coupling point that is easy to read the card, that is, the correct moving direction of the target coupling position, so that when it is determined that the target card moves to the target coupling position, the target card can be read according to the target coupling position, so as to achieve efficient NFC card reading, effectively improve the performance of NFC card reading, and ensure the success rate of NFC card reading.

[0074] Based on the above embodiment, in another embodiment of the present application, exemplarily, the electronic device is a mobile phone, Figure 5 Schematic diagram of the implementation process of the NFC card reading method proposed in this application embodiment Figure 2 ,like Figure 5 As shown, the mobile phone can first perform no-load self-calibration without performing NFC card reading to obtain the second detuning quantization parameter in the no-load state (step 201), and then when it is detected that a target card is attached, that is, when it is necessary to start NFC card reading, first when the target card is in the initial attachment state, the initial detuning quantization parameter is obtained (step 202), and then when it is detected that the target card moves in the target moving direction, the third detuning quantization parameter is obtained (step 203), so as to determine the coupling reference data according to the above detuning quantization parameters, including the second detuning quantization parameter, the initial detuning quantization parameter and the third detuning quantization parameter (step 204), so as to generate the coupling position indication information based on the coupling reference data, and further, when the coupling reference data is greater than the preset value, the first indication information is generated (step 205), and when the coupling reference data is less than the preset value, the second indication information is generated (step 206).

[0075] Further, in the embodiment of the present application, when the mobile phone detects that the target card moves to the target coupling position and completes the reading of the target card according to the target coupling position, the above-mentioned Figure 5 process.

[0076] It should be noted that, in the embodiment of the present application, the mobile phone serves as the TX end. When the target card is close to the NFC antenna, the NFC antenna will produce a detuning phenomenon; when the coupling is tighter, the detuning degree is greater, and it is easier to read the card; when the detuning quantization parameter is used to measure the detuning degree of the NFC antenna, the greater the detuning degree, the greater the detuning quantization parameter, so that the correct moving direction of the target card can be determined by the change of the detuning quantization parameter to achieve more efficient card reading.

[0077] Further, in an embodiment of the present application, a script may be set to quantify the degree of detuning of the NFC antenna, that is, to obtain a detuning quantization parameter. When the detuning degree of the NFC antenna is greater, the detuning quantization parameter is also greater.

[0078] It should be noted that, in the embodiments of the present application, the initial attachment state refers to the state in which the target card is attached to the mobile phone and has not moved; thus, the initial coupling position is the coupling position corresponding to when the target card begins to attach to the mobile phone and has not moved.

[0079] Further, in an embodiment of the present application, after the target card moves in the target moving direction, its corresponding coupling position is the real-time coupling position, and the third detuning quantization parameter is the detuning degree parameter of the NFC antenna corresponding to the real-time coupling position.

[0080] Furthermore, in an embodiment of the present application, the target moving direction may be any direction, for example, the target moving direction may be any direction of up, down, left, and right, or any direction of upper left, upper right, lower left, and lower right.

[0081] Further, in an embodiment of the present application, the first detuning quantization parameter and the second detuning quantization parameter are any one of detuning data, current data, frequency data and RSSI data.

[0082] Exemplarily, in an embodiment of the present application, the detuning quantization parameter adopts detuning data, and the correct moving direction of the target card is quickly determined according to the change trend of the detuning data to achieve efficient card reading.

[0083] Exemplarily, in an embodiment of the present application, the mobile phone first performs no-load self-calibration processing to obtain detuning data in the no-load state, such as M1, and then when the electronic device detects that a target card is attached, the detuning data at this time is obtained, which is represented by M2; when the target card is detected to move in any target moving direction, the detuning data of the real-time coupling position can be captured at a preset time interval, which is represented by M3.

[0084] Among them, in the embodiments of the present application, the original instantaneous grabbing mechanism of the mobile phone in the loaded state can be improved and adjusted to continuously grab at preset time intervals.

[0085] Furthermore, in some embodiments of the present application, when the electronic device determines the coupling reference data corresponding to the real-time coupling position based on the first detune quantization parameter and the second detune quantization parameter, it can perform a subtraction operation on the initial detune quantization parameter and the second detune quantization parameter to obtain first coupling data; perform a subtraction operation on the third detune quantization parameter and the second detune quantization parameter to obtain second coupling data; and perform a subtraction operation on the second coupling data and the first coupling data to obtain coupling reference data.

[0086] Exemplarily, in an embodiment of the present application, the electronic device obtains the second detuning quantization parameter in the no-load state as M1. When the electronic device detects that a target card is attached, it determines that the initial detuning quantization parameter at this time is M2, and the first coupling data is A1=M2-M1; after the target card moves in any direction, the electronic device obtains the third detuning quantization parameter as M3, and the second coupling data is A2=M3-M1; and then a subtraction operation can be performed on A2 and A1 to obtain the coupling reference data A2-A1.

[0087] Further, in an embodiment of the present application, assuming that the preset value is 0, when the coupling reference data A2-A1 is greater than 0, it indicates that the degree of detuning is greater and the coupling is stronger, then a first indication information is generated, that is, the current target movement direction is correct, and the user can be instructed to continue moving the target card in the current target movement direction to find the target coupling position; and when the coupling reference data A2-A1 is less than 0, a second indication information is generated to instruct the user to move the target card in the direction opposite to the target movement direction.

[0088] Exemplarily, in an embodiment of the present application, the electronic device is a mobile phone. The following Table 1 shows the detuning quantization parameter obtained through experiments. The detuning quantization parameter adopts detuning data, including the second detuning quantization parameter corresponding to the NFC antenna in an unloaded state, and the initial detuning quantization parameter and the third detuning quantization parameter corresponding to the NFC antenna when loaded and the target card is in the initial attachment state; it can be seen that for the first column of data, the second detuning quantization parameter corresponding to the NFC antenna in the unloaded state is 160, when the target card is attached, the initial detuning quantization parameter is 13408, and the target moving direction is upward, for example, moving upward by 1.After 3cm, the third detuning quantization parameter obtained is 3680, so the first coupling data can be 13408-160=13248, the second coupling data is 3680-160=3520, and the coupling reference data is 3520-13248=-9728. Assuming that the preset value is 0, the second indication information can be generated, indicating the movement in the opposite direction to the current target movement direction, that is, moving downward; for the second column of data, the second detuning quantization parameter corresponding to the NFC antenna in the unloaded state is 160, and when the target card is attached, the initial detuning quantization parameter is 1596 8, the target moving direction is downward, for example, after moving downward for a certain distance, the third detuning quantization parameter obtained is 7840, so that the first coupling data can be 15968-160=15808, the second coupling data is 7840-160=7680, and the coupling reference data is 7680-15808=-8128. Assuming that the preset value is 0, the second indication information can be generated, indicating moving in the opposite direction to the current target moving direction, that is, moving upward; for the third column data, the second detuning quantization parameter corresponding to the NFC antenna in the unloaded state is 160. When the target is attached When the card is used, the initial detuning quantization parameter is 15616, and the target moving direction is left. For example, after moving a certain distance to the left, the third detuning quantization parameter obtained is 14208, so that the first coupling data can be 15616-160=15456, the second coupling data is 14208-160=14048, and the coupling reference data is 14048-15456=-1408. Assuming that the preset value is 0, the second indication information can be generated, indicating moving in the opposite direction to the current target moving direction, that is, moving to the right; for the fourth column of data, the NFC antenna in the unloaded state The corresponding second detuning quantization parameter is 160. When the target card is attached, the initial detuning quantization parameter is 15776. The target moving direction is right. For example, after moving a certain distance to the right, the third detuning quantization parameter obtained is 10080, so that the first coupling data can be 15776-160=15616, the second coupling data is 10080-160=9920, and the coupling reference data is 9920-15616=-5696. Assuming the preset value is 0, the second indication information can be generated, indicating moving in the opposite direction of the current target moving direction, that is, moving to the left. .

[0089] Table 1

[0090]

[0091] It can be seen that in the embodiments of the present application, the mobile phone can identify whether the current NFC is in an unloaded or loaded state by obtaining detuning data (detuning quantization parameter), and can also identify the change in the moving direction in the loaded state, and determine whether the moving direction is conducive to finding a strong coupling point, thereby giving the correct moving direction.

[0092] It should be noted that, in the embodiment of the present application, in addition to the detuning data, the detuning quantization parameter may also be any one of current data, frequency data and RSSI data.

[0093] It should be noted that, in the embodiments of the present application, the preset value may be 0 or other values.

[0094] Furthermore, in an embodiment of the present application, the mobile phone may display the first indication information or the second indication information based on any one of a floating window, a floating ball and an APP.

[0095] Furthermore, in an embodiment of the present application, when the mobile phone displays the first indication information or the second indication information, it can indicate the correct moving direction by displaying specific data such as detuning quantization parameters and coupling reference data, and can also indicate patterns such as arrows.

[0096] Furthermore, in an embodiment of the present application, the mobile phone may also generate third indication information to indicate that the current coupling position is better and reading can be performed, that is, the target coupling position has been found.

[0097] Further, in an embodiment of the present application, when the mobile phone determines that the target card is in the target coupling position, the target card can be read based on the target coupling position.

[0098] In summary, in the embodiments of the present application, the mobile phone uses the changing trend of the detuning parameter to determine the current tightness of coupling, thereby enabling the user to quickly find a better coupling position, achieve efficient card reading, and improve NFC card reading performance.

[0099] The embodiment of the present application provides an NFC card reading method, in which the electronic device obtains a first detuning quantization parameter corresponding to the NFC antenna when reading a target card based on a near field communication NFC antenna; wherein the first detuning quantization parameter represents the detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the target card is read according to the target coupling position. It can be seen that in the embodiment of the present application, when the electronic device performs NFC card reading on the target card, the detuning degree of the NFC antenna at the current coupling position can be determined by obtaining the first detuning quantization parameter of the NFC antenna corresponding to the coupling position where the target card is attached in real time, thereby generating coupling position indication information to guide the moving direction that can approach the strong coupling point that is easy to read the card, that is, the correct moving direction of the target coupling position, so that when it is determined that the target card moves to the target coupling position, the target card can be read according to the target coupling position, so as to achieve efficient NFC card reading, effectively improve the performance of NFC card reading, and ensure the success rate of NFC card reading.

[0100] Based on the above embodiment, in another embodiment of the present application, Figure 6 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 1 ,like Figure 6 As shown, the electronic device 10 proposed in the embodiment of the present application may include: an acquisition unit 11, a generation unit 12, a reading unit 13 and a display unit 14.

[0101] The acquisition unit 11 is used to acquire a first detuning quantization parameter corresponding to a near field communication (NFC) antenna when reading a target card based on the NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions;

[0102] The generating unit 12 is configured to generate coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of a target coupling position;

[0103] The reading unit 13 is used for completing the reading of the target card according to the target coupling position when the target card is in the target coupling position.

[0104] Furthermore, the acquisition unit 11 is also used to acquire a second detuning quantization parameter corresponding to the NFC antenna in an unloaded state; wherein the unloaded state represents a state of no card reading; and the second detuning quantization parameter represents a detuning degree parameter of the NFC antenna in the unloaded state.

[0105] Furthermore, the first detuning quantization parameter includes an initial detuning quantization parameter and a third detuning quantization parameter; wherein the initial detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to an initial coupling position of the target card when the target card is in an initial attachment state; and the third detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to a real-time coupling position of the target card when the target card moves in a target moving direction.

[0106] Furthermore, the correct moving direction is the target moving direction or a direction opposite to the target moving direction.

[0107] Further, the generating unit 12 is further configured to determine coupling reference data corresponding to the real-time coupling position according to the first detuning quantization parameter and the second detuning quantization parameter; and generate the coupling position indication information according to the coupling reference data.

[0108] Furthermore, the generating unit 12 is also used to perform a subtraction operation on the initial detuning quantization parameter and the second detuning quantization parameter to obtain first coupling data; and to perform a subtraction operation on the third detuning quantization parameter and the second detuning quantization parameter to obtain second coupling data; and to perform a subtraction operation on the second coupling data and the first coupling data to obtain the coupling reference data.

[0109] Furthermore, the coupling position indication information includes first indication information and second indication information, and the generating unit 12 is also used to generate the first indication information if the coupling reference data is greater than a preset value, to indicate to continue moving the target card in the target moving direction; and to generate the second indication information if the coupling reference data is less than the preset value, to indicate to move the target card in a direction opposite to the target moving direction.

[0110] Further, the first detuning quantization parameter and the second detuning quantization parameter are any one of detuning amount data, current data, frequency data, and received signal strength indication RSSI data.

[0111] The display unit 14 is used to display the first indication information or the second indication information based on any one of a floating window, a floating ball and an application APP.

[0112] In the embodiments of the present application, further, Figure 7 Schematic diagram of the composition structure of the electronic device proposed in the embodiment of the present application Figure 2 ,like Figure 7As shown, the electronic device 10 proposed in the embodiment of the present application may also include a processor 15 and a memory 16 storing executable instructions of the processor 15; further, the electronic device 10 may also include a communication interface 17, and a bus 18 for connecting the processor 15, the memory 16 and the communication interface 17.

[0113] In the embodiment of the present application, the processor 15 can be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the function of the processor can also be other, and the embodiment of the present application is not specifically limited. The electronic device 10 can also include a memory 16, which can be connected to the processor 15, wherein the memory 16 is used to store executable program code, the program code includes computer operation instructions, and the memory 16 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0114] In the embodiment of the present application, the bus 18 is used to connect the communication interface 17, the processor 15 and the memory 16, and the mutual communication between these devices.

[0115] In the embodiment of the present application, the memory 16 is used to store instructions and data.

[0116] Furthermore, in an embodiment of the present application, the above-mentioned processor 15 is used to obtain a first detuning quantization parameter corresponding to the NFC antenna when reading the target card based on the near field communication NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the reading of the target card is completed according to the target coupling position.

[0117] In practical applications, the memory 16 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 15.

[0118] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0119] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0120] The embodiment of the present application provides an electronic device, in the case of reading a target card based on an NFC antenna, the electronic device obtains a first detuning quantization parameter corresponding to the NFC antenna; wherein the first detuning quantization parameter represents the detuning degree parameter of the NFC antenna when the target card is in different coupling positions; coupling position indication information is generated according to the first detuning quantization parameter to indicate the correct moving direction of the target coupling position; when the target card is in the target coupling position, the target card is read according to the target coupling position. It can be seen that in the embodiment of the present application, when the electronic device performs NFC card reading on the target card, the detuning degree of the NFC antenna at the current coupling position can be determined by obtaining the first detuning quantization parameter of the NFC antenna corresponding to the coupling position where the target card is attached in real time, thereby generating coupling position indication information to guide the moving direction that can approach the strong coupling point that is easy to read the card, that is, the correct moving direction of the target coupling position, so that when it is determined that the target card moves to the target coupling position, the target card can be read according to the target coupling position, so as to achieve efficient NFC card reading, effectively improve the performance of NFC card reading, and ensure the success rate of NFC card reading.

[0121] Specifically, the program instructions corresponding to an NFC card reading method in this embodiment can be stored on a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to an NFC card reading method in the storage medium are read or executed by an electronic device, the following steps are included:

[0122] When a target card is read based on a near field communication (NFC) antenna, a first detuning quantization parameter corresponding to the NFC antenna is acquired; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions;

[0123] generating coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of the target coupling position;

[0124] When the target card is in the target coupling position, the target card is read according to the target coupling position.

[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0126] The present application is described with reference to implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. An NFC card reading method, characterized in that: The method comprises: When a target card is read based on a near field communication (NFC) antenna, a first detuning quantization parameter corresponding to the NFC antenna is obtained; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions; generating coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of the target coupling position; When the target card is in the target coupling position, the target card is read according to the target coupling position.

2. The method according to claim 1, characterized in that The method further comprises: A second detuning quantization parameter corresponding to the NFC antenna in an unloaded state is obtained; wherein the unloaded state represents a state of no card reading; and the second detuning quantization parameter represents a detuning degree parameter of the NFC antenna in the unloaded state.

3. The method according to claim 2, characterized in that The first detuning quantization parameter includes an initial detuning quantization parameter and a third detuning quantization parameter; wherein, The initial detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to an initial coupling position of the target card when the target card is in an initial attachment state; The third detuning quantization parameter represents a detuning degree parameter of the NFC antenna corresponding to a real-time coupling position of the target card when the target card moves in a target moving direction.

4. The method according to claim 3, characterized in that The correct moving direction is the target moving direction or a direction opposite to the target moving direction.

5. The method according to claim 3, characterized in that: The generating coupling position indication information according to the first detuning quantization parameter includes: Determine coupling reference data corresponding to the real-time coupling position according to the first detuning quantization parameter and the second detuning quantization parameter; The coupling position indication information is generated according to the coupling reference data.

6. The method according to claim 5, characterized in that The determining, according to the first detuning quantization parameter and the second detuning quantization parameter, coupling reference data corresponding to the real-time coupling position includes: performing a subtraction operation on the initial detuning quantization parameter and the second detuning quantization parameter to obtain first coupling data; performing a subtraction operation on the third detuning quantization parameter and the second detuning quantization parameter to obtain second coupling data; A subtraction operation is performed on the second coupling data and the first coupling data to obtain the coupling reference data.

7. The method according to claim 6, characterized in that The coupling position indication information includes first indication information and second indication information, and generating the coupling position indication information according to the coupling reference data includes: If the coupling reference data is greater than a preset value, generating the first indication information to instruct to continue moving the target card in the target moving direction; If the coupling reference data is less than the preset value, the second indication information is generated to instruct to move the target card in a direction opposite to the target moving direction.

8. The method according to claim 2, characterized in that: The first detuning quantization parameter and the second detuning quantization parameter are any one of detuning amount data, current data, frequency data, and received signal strength indication RSSI data.

9. The method according to claim 7, characterized in that: The method further comprises: Based on any one of a floating window, a floating ball and an application APP, the first indication information or the second indication information is displayed.

10. An electronic device, characterized in that: The electronic device comprises an acquisition unit, a generation unit and a reading unit. The acquisition unit is configured to acquire a first detuning quantization parameter corresponding to a near field communication (NFC) antenna when reading a target card based on the NFC antenna; wherein the first detuning quantization parameter represents a detuning degree parameter of the NFC antenna when the target card is in different coupling positions; The generating unit is configured to generate coupling position indication information according to the first detuning quantization parameter to indicate a correct moving direction of a target coupling position; The reading unit is used to complete the reading of the target card according to the target coupling position when the target card is in the target coupling position.

11. An electronic device, characterized in that: The electronic device includes a processor and a memory storing instructions executable by the processor; when the instructions are executed by the processor, the method according to any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.