WO2019210466A1 - 一种nfc刷卡控制方法及终端设备 - Google Patents

一种nfc刷卡控制方法及终端设备 Download PDF

Info

Publication number
WO2019210466A1
WO2019210466A1 PCT/CN2018/085357 CN2018085357W WO2019210466A1 WO 2019210466 A1 WO2019210466 A1 WO 2019210466A1 CN 2018085357 W CN2018085357 W CN 2018085357W WO 2019210466 A1 WO2019210466 A1 WO 2019210466A1
Authority
WO
WIPO (PCT)
Prior art keywords
nfc
antenna
terminal device
nfc signal
strength
Prior art date
Application number
PCT/CN2018/085357
Other languages
English (en)
French (fr)
Inventor
甄家灏
许浩维
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2018/085357 priority Critical patent/WO2019210466A1/zh
Priority to CN201880047078.5A priority patent/CN110915144B/zh
Publication of WO2019210466A1 publication Critical patent/WO2019210466A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems

Definitions

  • the present application relates to the field of communications, and in particular, to an NFC card control method and a terminal device.
  • NFC Near Field Communication
  • NFC Near Field Communication
  • the NFC intelligent terminal mainly works in three modes: card reader mode, card emulation mode, and point-to-point mode.
  • card emulation mode is that the entire NFC smart terminal participates in NFC communication as an intelligent contactless IC card. Financial consumption, bus consumption or access control.
  • the main products in NFC communication are divided into two categories, one is a variety of intelligent non-contact IC cards, and the other is a variety of non-contact card reader devices.
  • terminal devices are very common in daily life, but when using NFC-enabled terminal devices for card reading, there are often many reasons for card reading failure, but the user does not know what causes the card to fail. Due to the fact that the terminal device fails to read the card, the user feels very inconvenient during use and the effect experience is extremely poor.
  • the embodiment of the invention provides an NFC card control method and a terminal device, so as to realize that the terminal device performs position adjustment according to the interface prompt information, and the optimal card reading position has been achieved.
  • the present application provides a method for detecting an NFC card, the method is applied to a terminal device, where the terminal device includes an NFC antenna, and the method includes: the NFC antenna receives the first NFC signal sent by the NFC card reader; and the terminal device determines the first a first strength of the NFC signal; when the first strength of the first NFC signal is less than the first strength threshold, the terminal device displays the first prompt information, where the first prompt information is used to prompt the mobile terminal device, where the first intensity threshold is greater than or It is equal to the minimum signal strength of the NFC signal received by the NFC antenna when the terminal device and the NFC card reader complete the NFC card reading operation.
  • the first intensity is an RSSI value.
  • the NFC antenna includes an NFC first antenna, a vertical variable antenna, and a horizontal variable antenna, and the vertical variable antenna is located at a 90° or 270° vertical direction of the NFC first antenna; the horizontal variable antenna is located at the NFC first antenna.
  • the first direction of the first NFC signal is determined by the terminal device: the NFC first antenna of the terminal device determines the first antenna NFC signal induced voltage Vref according to the first NFC signal; the vertical variable antenna is according to the first The NFC signal determines a vertical antenna NFC signal induced voltage Vv; the horizontal variable antenna determines a horizontal antenna NFC signal induced voltage Vp according to the first NFC signal;
  • the terminal device determines the first strength of the first NFC signal according to the first antenna NFC signal induced voltage Vref, the vertical antenna NFC signal induced voltage Vv, and the horizontal antenna NFC signal induced voltage Vp.
  • the first intensity is calculated as:
  • ⁇ v is the difference between the first antenna NFC signal induced voltage Vref and the vertical antenna NFC signal induced voltage Vv
  • ⁇ p is the difference between the first antenna NFC signal induced voltage Vref and the horizontal antenna NFC signal induced voltage Vp.
  • the method further comprises: determining an angle ⁇ , the angle ⁇ characterizing an angle of the NFC antenna of the terminal device deviating from the NFC card reader; the first prompt information is used to prompt the mobile terminal device according to the angle ⁇ .
  • the formula for calculating the angle ⁇ is:
  • the method further includes: after the terminal device moves, the terminal device receives the second NFC signal sent by the NFC card reader; the terminal device determines the first strength of the second NFC signal; and when the second NFC signal When the first strength is less than the first strength threshold, the terminal device displays the second prompt information, and the second prompt information is used to prompt to continue the mobile terminal device.
  • the method further includes: after the terminal device moves, the terminal device receives a third NFC signal sent by the NFC card reader; the terminal device determines a first strength of the third NFC signal; and when the third NFC signal When the first strength is greater than or equal to the first strength threshold, the terminal device displays the third prompt information, and the third prompt information is used to prompt the completion of the card reading.
  • the first prompt information, the second prompt information, and/or the third prompt information include one or more prompts of a text, a pattern, a direction indication, an angle indication, a vibration, a bullet box, and an audible prompt. information.
  • the application provides a terminal device, including: an NFC antenna, an antenna matching circuit, an NFC chip, a processor, a memory, and a display screen; and an NFC antenna, configured to receive the first NFC sent by the NFC card reader.
  • a signal matching circuit for demodulating the received first NFC signal to obtain a first NFC signal induced voltage
  • an NFC chip for determining a first intensity of the first NFC signal according to the first NFC signal induced voltage
  • the first intensity threshold is greater than or equal to a minimum signal strength of the NFC signal received by the NFC antenna when the terminal device and the NFC card reader complete the NFC card reading operation; and the memory is configured to store the preset number An intensity threshold; a display screen for displaying the first prompt information.
  • the NFC chip specifically includes: a receiving end, an automatic gain control AGC, and an analog-to-digital converter ADC; the receiving end receives the first NFC signal induced voltage provided by the antenna matching circuit, and the automatic gain control AGC is regulated.
  • the value of the automatic gain control AGC changes with the change of the NFC signal; the analog-to-digital converter ADC converts the output value of the automatic gain control AGC into a digital value; according to the value of the automatic gain control AGC and the analog-to-digital converter ADC
  • the value of the first NFC signal is obtained; the first intensity is the RSSI value.
  • the NFC antenna includes: an NFC first antenna, a vertical variable antenna, and a horizontal variable antenna;
  • the antenna matching circuit includes: a first antenna matching circuit, a vertical antenna matching circuit, and a horizontal antenna matching circuit;
  • a first antenna matching circuit configured to determine a first antenna NFC signal induced voltage Vref according to the NFC signal received by the NFC first antenna
  • a vertical antenna matching circuit configured to receive the NFC signal according to the vertical variable antenna, Determining a vertical variable antenna NFC signal induced voltage Vv; a horizontal antenna matching circuit for determining a horizontal variable antenna NFC signal induced voltage Vp according to the NFC signal received by the horizontal variable antenna; and a comparing circuit for obtaining the first antenna NFC signal induced voltage Vref a difference ⁇ v from the vertical antenna NFC signal induced voltage Vv; and a first antenna NFC signal induced voltage Vref NFC antenna signal level difference induced voltage Vp Delta] p; calculation means for Delta] p, and ⁇ v provided by the comparison circuit determines a first signal strength of the first NFC.
  • the first intensity is calculated as:
  • the calculation module is further configured to determine an angle ⁇ according to ⁇ v and ⁇ p provided by the comparison circuit, where the angle ⁇ represents an angle of the NFC antenna of the terminal device deviating from the NFC card reader; At the prompt, the terminal device is moved according to the angle ⁇ .
  • the formula for calculating the angle ⁇ is:
  • the terminal device is further configured to: an NFC antenna, configured to receive a second NFC signal sent by the NFC card reader; and an antenna matching circuit, configured to demodulate the received second NFC signal to obtain a second NFC signal induced voltage; an NFC chip, configured to determine a first strength of the second NFC signal according to the second NFC signal induced voltage; and a processor, configured to compare the first intensity of the second NFC signal with the first intensity threshold When the first strength of the second NFC signal is less than the first intensity threshold, the terminal device displays the second prompt information, the second prompt information is used to prompt to continue the mobile terminal device, and the display screen is configured to display the second prompt information.
  • the terminal device is further configured to: an NFC antenna, configured to receive a third NFC signal sent by the NFC card reader; and a matching circuit, configured to demodulate the received third NFC signal to obtain a first a third NFC signal induced voltage; an NFC chip, configured to determine a first strength of the third NFC signal according to the third NFC signal induced voltage; and a processor configured to compare and determine the first intensity of the third NFC signal according to the first intensity threshold When the first strength of the third NFC signal is greater than or equal to the first intensity threshold, the terminal device displays the third prompt information, the third prompt information is used to prompt the completion of the card reading, and the display screen is configured to display the third prompt information.
  • the first prompt information, the second prompt information, and/or the third prompt information include one or more prompts of a text, a pattern, a direction indication, an angle indication, a vibration, a bullet box, and an audible prompt. information.
  • the present application provides a computer readable storage medium comprising instructions for causing a computer to perform the method of any of the first aspects when the instructions are run on a computer.
  • the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the first aspects.
  • the present application provides a communication device, characterized by comprising a processor configured to support a communication device to perform the method according to any of the first aspects.
  • the NFC card control method and the terminal device provided by the present application can intuitively and clearly remind the user of the strength of the current NFC signal, and can further remind the user that the current terminal and the NFC card reader deviate from the direction, and Adjust the device to the best position according to the direction.
  • 1 is a current location map of an NFC antenna on a terminal device
  • FIG. 2 is a schematic diagram of an NFC card reading failure scenario
  • FIG. 3 is a structural diagram of a circuit of an NFC card control terminal according to Embodiment 1 of the present invention.
  • Figure 4 is a coordinate diagram of the NFC signal induced voltage and ADC, AGC;
  • FIG. 5 is a coordinate diagram of a NFC card control RSSI value and an NFC signal according to Embodiment 1 of the present invention
  • FIG. 6 is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 1 of the present invention.
  • FIG. 6 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 1 of the present invention.
  • 6c is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 1 of the present invention.
  • FIG. 6 is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 1 of the present invention.
  • FIG. 7 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 1 of the present invention.
  • FIG. 7b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic diagram of detecting an antenna position of a terminal device according to Embodiment 2 of the present invention.
  • FIG. 9 is a structural diagram of a circuit of an NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 10b is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 11 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 11b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 12 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 12b is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 13 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • FIG. 13b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, or the like.
  • the terminal device When an NFC-enabled terminal device (hereinafter collectively referred to as a terminal device) is close to the card reader device, the terminal device receives the NFC signal generated by the card reader device, and the terminal device internally generates a parameter for characterizing the current NFC signal strength. Value.
  • the value of the parameter that reflects the strength of the current NFC signal may be a value of a Received Signal Strength Indication (RSI) value.
  • the processor compares the RSSI value provided by the NFC chip with a preset threshold, and determines whether the current NFC signal reaches a preset threshold, satisfies the requirement for successful card reading, and displays the message as a prompt message on the display screen, so that The user makes the appropriate adjustments.
  • RSSI Received Signal Strength Indication
  • the RSSI value is calculated by the algorithm provided by the internal chip of the AGC (automatic gain control) and ADC (Analog-to-Digital Converter).
  • AGC automatic gain control
  • ADC Analog-to-Digital Converter
  • the RSSI value may be calculated differently for different chips.
  • the RSSI values are currently calculated according to different chip designs, and the values of the AGC and ADC are calculated by the formula provided inside the chip. Different chips in the prior art can provide different calculation formulas.
  • the voltage values provided by the at least one vertical variable antenna and the at least one horizontal variable antenna that are vertically or horizontally aligned with the NFC first antenna are compared with the reference voltage values of the NFC first antenna, respectively, to obtain a horizontal direction.
  • the signal strength and the offset angle of the current NFC signal are calculated by the difference between the induced voltage of the NFC signal in the horizontal direction and the induced voltage of the NFC signal in the vertical direction, and displayed on the display screen as a prompt message for the user to respond accordingly. Adjustment.
  • the card reading operation involved in the present application refers to NFC information interaction between the terminal device and the card reader when the terminal device is close to the card reader.
  • FIG. 1 is a diagram showing the position distribution of an NFC antenna on a terminal device.
  • the different positions of the NFC antenna are as shown in Figure 1.
  • different dashed boxes represent the antenna positions of different types of terminal equipment, such as the position of the antenna of the model 1 terminal represented by the A antenna, the position of the antenna of the terminal of the model 2 of the B antenna, and the terminal of the model 3 of the C antenna. The location of the antenna, etc. Because the antenna positions of different types of terminal devices are different, the user cannot know the correct position of the current terminal device antenna, and thus the antenna position cannot be aligned with the card reading device.
  • Figure 2 is a schematic diagram of an NFC card reading failure scenario.
  • FIG. 3 is a structural diagram of a circuit of an NFC card control terminal according to an embodiment of the present invention.
  • the circuit includes: an NFC antenna, an antenna matching circuit, an NFC chip, a processor, a memory, a display driver, and a display screen.
  • the NFC chip includes: a receiving end, an AGC, and an ADC.
  • the NFC antenna receives the NFC signal of the card reader device, and after demodulation by the antenna matching circuit, the NFC chip is supplied with the NFC signal induced voltage Vrx.
  • the analog to digital converter ADC is for digitizing the received NFC signal at a sampling rate higher than the carrier frequency of the received NFC signal.
  • Figure 4 is a coordinate diagram of the NFC signal induced voltage and ADC, AGC.
  • the AGC transmits the induced voltage without adjustment, so as the output of the ADC increases linearly or nonlinearly as the NFC signal increases, the voltage Vrx also increases.
  • the AGC operates to regulate the voltage Vrx.
  • the output value of the AGC increases with the increase of the NFC signal, and the output value of the AGC reacts to the receiving end, so that Vrx remains constant at a value at this stage until the AGC reaches a saturated state.
  • the NFC signal induced voltage increases as the NFC signal increases until the AGC starts operating, and the induced voltage will stabilize at a constant value until the AGC reaches saturation. The voltage will again increase as the NFC signal increases. Therefore, the received NFC signal strength cannot be determined based only on the induced voltage.
  • the RSSI value can be obtained by a certain algorithm according to the value of the ADC and the output value of the AGC, and the RSSI value is also increased with the increase of the NFC signal, and the RSSI value has a monotonous relationship with the NFC signal (see FIG. 5), so The strength change of the NFC signal strength can be inferred from the RSSI value.
  • the monotonically increasing relationship between the RSSI value and the NFC signal is not necessarily a linear relationship or a non-linear relationship.
  • the processor After receiving the RSSI value provided by the NFC chip, the processor compares with a threshold stored in advance in the memory. If the RSSI value is satisfied, the processor instructs the display driver to drive the display screen, and the corresponding prompt interface is displayed on the display screen to notify If the current device location is successfully read by the card; or the RSSI value does not meet the threshold condition, the processor instructs the display driver to drive the display screen, and the corresponding prompt interface is displayed on the display screen to notify the current device that the card reading failed, and the NFC card reading cannot be performed. Operate and prompt the user to move the terminal device. In other embodiments, the prompt interface may be displayed on the display screen, and may also be prompted by any other equivalent manner such as different characters, patterns, direction indications, vibrations, bullet frames, sounds, and brightness.
  • FIG. 5 is a coordinate diagram of an NFC card control RSSI value and an NFC signal according to an embodiment of the present invention.
  • the terminal device can detect and calibrate the first intensity of the NFC signal generated by the chip according to the actual NFC signal strength according to the circuit shown in FIG.
  • the first intensity of the NFC signal may be an RSSI value, and those skilled in the art should note that the first strength of the NFC signal may also select any other parameter that characterizes the strength of the NFC received signal.
  • the change of the RSSI value corresponding to the current RSSI value of the terminal device can be determined from the change of the RSSI value corresponding to the current RSSI value of the terminal device.
  • the relationship between the RSSI value and the NFC signal shown in FIG. 5 is not necessarily a linear relationship, and may also be a non-linear relationship, but the correspondence between the RSSI value and the NFC signal must be a monotonous change, that is, with NFC. The increased RSSI value of the signal also increases.
  • 1.5 A/m, 3.5 A/m, and 7.5 A/m are three NFC signal sampling points exemplarily selected in the embodiment.
  • the correspondence between the RSSI value and the NFC signal may be different.
  • a terminal device with a large antenna collects a large number of magnetic lines. Therefore, when the same RSSI value is obtained, the NFC signal corresponding to the terminal device with a large antenna is relatively small, that is, under the same NFC signal, the antenna is more Larger, the resulting RSSI value will be larger.
  • different thresholds can be selected according to different designed terminal devices.
  • the terminal device When the terminal device detects that the RSSI value of the current NFC signal reaches a preset threshold, the terminal device considers that the current NFC signal meets the card reading success requirement and can complete the NFC card reading operation. If the terminal device detects that the RSSI value of the current NFC signal does not reach the preset threshold, it considers that the current NFC signal does not meet the requirements, and the card fails to complete the NFC card reading operation.
  • assuming an RSSI value of 5 satisfies the NFC card reading operation, and assumes an RSSI value of 2 at an NFC signal of 1.5 A/m, and an RSSI value of 3, 7.5 for an NFC signal of 3.5 A/m.
  • the RSSI value of the A/m NFC signal is 6.
  • the terminal device detects the RSSI value of 1.5A/m or 3.5A/m and the RSSI value does not reach the preset threshold, it considers that the current NFC signal fails to read the card and cannot perform the NFC card reading operation; If the RSSI value of the /m NFC signal meets the preset threshold, it is considered that the card reading is successful under the current NFC signal, and the NFC card reading operation can be performed.
  • the sampling point is not limited to the above three sampling points.
  • the sampling point detects that the RSSI value is greater than or equal to a preset threshold, it is considered that the current NFC signal is successfully read, and the NFC can be Perform a card reading operation.
  • an RSSI value of 5 is detected, that is, just a predetermined threshold is reached, and the card reading succeeds in completing the NFC card reading operation.
  • the preset thresholds can be appropriately selected according to the hardware conditions of different terminal devices.
  • FIG. 6 is a schematic diagram of an application scenario of an NFC signal strength terminal according to an embodiment of the present invention.
  • the terminal device when the terminal device is close to the card reader for card reading operation, the terminal device detects that the current placement position cannot perform the NFC card reading operation, and the display device (the picture on the right side is the screen device of the display device) , hereinafter collectively referred to as the screen capture screen, will display red, that is, the black circular area in the picture. It is used to inform the current device that the NFC signal is weak and cannot perform effective NFC card reading.
  • FIG. 6b is a schematic diagram of an application scenario of another NFC card control terminal according to an embodiment of the present invention.
  • the display screen on the right side will display red, that is, The black circular area in the picture and the indication text at the bottom of the display: "NFC signal in the current position is not good" is used to inform the current device that the NFC signal is weak and cannot perform effective NFC card reading.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 6 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 1 of the present invention.
  • the terminal device when the terminal device is close to the card reader for card reading operation, for example, the orientation is deviated, and the terminal device detects that the current placement position cannot perform the NFC card reading operation, the right display screen is screened. There will be a red color, that is, a black circular area in the picture, and an indication text at the bottom of the display: "The current position of the NFC signal is not good, please move the device direction", which is used to inform the current device that the NFC signal is weak and cannot be effective. NFC card reading operation requires mobile device orientation.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 6 is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 1 of the present invention.
  • the terminal device when the terminal device approaches the card reader for card reading operation, and the terminal device detects that the current NFC signal does not reach the preset threshold, the terminal device display screen pops up the card reading interface. As shown in the screenshot on the right side of Figure 6d, the card reading interface is displayed. The card reading interface will display red, which is the black circular area in the figure. At the same time, the current device antenna position and/or indicator arrow will be displayed on the display interface, and below the display screen. Display the indication text: “The current position of the NFC signal is not good, please align the antenna position with the card reader device” to visually display the current device antenna and the direction of movement, so that the antenna position is aligned with the card reader's card reading area. The indicator arrow can prompt the current user to move to a position where the signal is strong, and the direction detection can be determined according to the magnetic induction intensity detected by the terminal device antenna or the density of the magnetic induction line.
  • the terminal device After the terminal device moves, it is detected that the current location NFC signal still does not reach the preset threshold, and the above steps are repeated to continue the mobile terminal device until the terminal device antenna position is aligned with the card reader's card reading area. After the terminal device moves, detecting that the current position NFC signal reaches a preset threshold, the red color in the card reading interface may turn green, and through text, pattern, direction indication, vibration, bullet box, sound, brightness, etc. Prompt in any equivalent way to inform the user that the current location has reached the best and the card is successfully read.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 7 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 1 of the present invention.
  • the terminal device when the terminal device is close to the card reader for the card reading operation, the terminal device detects that the current placement position can be performed by the NFC card reading operation, and the display screen on the right side is screened. There will be a green display, which is a white circular area in the picture. It is used to inform the current device that the NFC signal is strong enough to perform an effective NFC card reading operation.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 7b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 1 of the present invention.
  • the terminal device when the terminal device is close to the card reader for the card reading operation, the terminal device detects that the current placement position can be performed by the NFC card reading operation, and the right side of the display screen is screened. There will be a green display, that is, a white circular area in the picture, and an indication text at the bottom of the display: "NFC signal at the current position is good", which is used to inform the current device that the NFC signal is strong enough to perform a valid NFC card reading operation. .
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 8 is a schematic diagram of a position of an antenna structure of a terminal device according to an embodiment of the present invention.
  • the terminal device is fixed with an NFC first antenna, and a horizontal variable antenna is disposed at a position of 0° or 180° in the horizontal direction of the first antenna of the NFC, and is set at a position of 90° or 270° in the vertical direction of the first antenna of the NFC.
  • the horizontal variable antenna is located to the right of the NFC first antenna and the vertical variable antenna is located directly below the NFC first antenna.
  • one horizontal variable antenna and one vertical variable antenna are added as an example. In other embodiments, more horizontal variable antennas and vertical variable antennas may be added correspondingly. It should also be noted by those skilled in the art that the positions of the horizontal variable antenna and the vertical variable antenna shown in FIG. 8 are only a preferred embodiment. In other embodiments, as long as the horizontal variable antenna is satisfied, the antenna is located in the horizontal direction of the NFC first antenna. ° or 180 ° and its vicinity, and the vertical variable antenna is located 90 ° or 270 ° in the vertical direction of the NFC first antenna and its vicinity.
  • FIG. 9 is a structural diagram of another NFC card control terminal according to an embodiment of the present invention.
  • FIG. 9 is a structural diagram of the terminal circuit shown in FIG. 8.
  • the horizontal variable antenna and the vertical variable antenna are responsible for receiving the NFC signal of the mobile phone and generating an NFC signal induced voltage, and the NFC receiving signal for actual information exchange is received by the NFC first antenna.
  • the energy received by the NFC first antenna is demodulated by the antenna matching circuit to obtain a corresponding first antenna NFC signal induced voltage Vref under the current NFC signal.
  • the vertical antenna matching circuit demodulates the energy received by the vertical variable antenna to obtain the corresponding vertical variable antenna NFC signal induced voltage Vv under the current NFC signal; and, through the horizontal variable
  • the antenna demodulates the energy received by the horizontal variable antenna through the horizontal antenna matching circuit to obtain the corresponding horizontal variable antenna NFC signal induced voltage Vp under the current NFC signal.
  • the difference ⁇ p between the induced voltage Vref and the horizontal antenna NFC signal induced voltage Vp, where ⁇ p Vp-Vref.
  • the comparison circuit After the first antenna NFC signal induced voltage Vref is compared with Vv and Vp, the comparison circuit directly outputs the first antenna NFC signal induced voltage Vref to the NFC chip. Since the internal AGC operation of the chip stabilizes the voltage at a fixed value, the comparison circuit can only be compared by the voltage output from each matching circuit on the left side of the comparison circuit as shown in FIG.
  • the calculation module is configured to receive ⁇ v and ⁇ p output by the comparison module, and calculate a second intensity ⁇ NFC and an angle ⁇ of the NFC signal.
  • the strength of the NFC signal can be obtained by comparing ⁇ NFC with a preset threshold. among them,
  • the angle ⁇ is the angle between the direction indicated by the NFC signal and the horizontal direction. among them
  • the calculation module sends the calculated ⁇ NFC and angle ⁇ to the processor.
  • the processor compares the received ⁇ NFC with a threshold stored in advance in the memory to determine the strength of the current NFC signal, and simultaneously sends the angle ⁇ together with the determination result to the display driver, and drives the display screen to display the determination result and display the indication direction.
  • the strength of the NFC signal is determined by comparing the RSSI value detected by the NFC chip with a preset threshold. At this time, the determination method of the strength of the NFC signal is determined as described in FIGS. 3 and 5. When it is determined that the current NFC signal is sufficiently large, it is determined that the current position of the terminal device is successfully read, and the NFC card reading operation can be performed; when it is determined that the current NFC signal is relatively weak, it is determined that the current device position of the terminal device fails to read the card, and the NFC cannot be performed. Card reading operation.
  • the positive and negative of ⁇ v and ⁇ p are determined based on the relative positions of the horizontal variable antenna and the vertical variable antenna and the NFC first antenna.
  • ⁇ v positive and ⁇ p is negative
  • ⁇ angle is in the first quadrant
  • ⁇ v and ⁇ p are simultaneously negative
  • ⁇ angle is in the second quadrant
  • ⁇ v negative and ⁇ p is positive
  • ⁇ angle is in the third quadrant
  • ⁇ v and ⁇ p are the same, it is judged that the ⁇ angle is in the fourth quadrant.
  • the positions of the horizontal variable antenna and the vertical variable antenna and the NFC first antenna are different according to different hardware design, and the quadrants corresponding to the positive and negative values of ⁇ v and ⁇ p are also different.
  • the terminal device measures the difference between the vertical variable antenna and the NFC signal generated by the NFC first antenna when the optimal position is measured in advance, and the NFC signal generated by the horizontal variable antenna and the NFC first antenna.
  • the difference between the two is taken as the reference variable of the optimum position, and is recorded as ⁇ vref and ⁇ pref.
  • ⁇ v and ⁇ p are obtained from the comparison circuit, and the calculation module compares ⁇ v with ⁇ vref, ⁇ p and ⁇ pref.
  • the calculation module calculates the corresponding ⁇ NFC and the angle ⁇ according to the calibrated ⁇ v′ and ⁇ p′, and sends the calculated ⁇ NFC and the angle ⁇ to the processor.
  • the processor compares the received ⁇ NFC with a threshold stored in advance in the memory to determine the strength of the current NFC signal, and simultaneously sends the angle ⁇ together with the determination result to the display driver, and drives the display screen to display the determination result and display the indication direction.
  • the vertical variable antenna and the horizontal variable antenna in the embodiment of the present invention may be constituted by a magnetic induction device.
  • a magnetic induction device for example, sensors, inductors and other devices.
  • the magnetic field of the NFC signal can be sensed, for example, 13.56 MHz, and the induced current can be converted into a voltage, the corresponding induced voltage variable under different NFC signals can be output. It is not necessary to demodulate the RF signal.
  • FIG. 10 is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device displays when the terminal device detects that the current placement position cannot perform the NFC card reading operation because the antenna position is deviated from the card reader device.
  • the strength of the current NFC signal and the direction of the display indication are displayed, that is, the black circular area in the figure, and there is an indication arrow in the area with an angle ⁇ to the horizontal direction, which is used to indicate that the current terminal device moves in the direction of the indication arrow to The best card reading location.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 10b is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device when the terminal device is close to the card reader for card reading operation, since the antenna position is deviated from the card reader device, the terminal device detects that the current placement position cannot perform the NFC card reading operation, and the terminal device display screen
  • the strength of the current NFC signal and the direction of the display indication are displayed, that is, the black circular area in the figure, while the area has an indication arrow at an angle ⁇ to the horizontal direction, and a text indicating the direction of movement is displayed below the display screen: Move the device to the lower right ⁇ ° direction to indicate that the current terminal device is moving in the direction of the pointing arrow to the optimal card reading position.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • the red color in the card reading interface may turn green, that is, the color of the black area in the figure changes, and the text, the pattern, the direction indication, Other arbitrary equivalent methods such as vibration, bullet box, sound, brightness, etc., prompt the user to inform the user that the current position has reached the best and the card reading is successful.
  • FIG. 11 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device when the terminal device is close to the card reader for card reading operation, since the antenna position is deviated from the card reader device, but the terminal device detects that the current placement position can perform an NFC card reading operation, the terminal device displays The screen displays the strength of the current NFC signal and the direction of the display indication, that is, the white circular area in the figure. At the same time, there is an indication arrow in the area with an angle ⁇ to the horizontal direction, which is used to indicate that the current terminal device moves in the direction of the indication arrow. To the best card reading position.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 11b is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device displays The strength of the current NFC signal and the direction of the display indication are displayed on the screen, that is, the white circular area in the figure, while the area has an indication arrow at an angle ⁇ to the horizontal direction, and a text indicating the direction of movement is displayed below the display screen: “Please move the device to the lower right ⁇ ° direction” to indicate that the current terminal device moves to the optimal card reading position in the direction of the pointing arrow.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 12 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device displays The screen displays the strength of the current NFC signal and the direction of the display indication, that is, the white circular area in the figure.
  • the terminal device displays the strength of the current NFC signal and the direction of the display indication, that is, the white circular area in the figure.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 12b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • the terminal device displays The strength of the current NFC signal and the direction of the display indication are displayed on the screen, that is, the white circular area in the figure, while the area has an indication arrow at an angle ⁇ to the horizontal direction, and a text indicating the direction of movement is displayed below the display screen: "Please move the device to the upper left ⁇ ° direction" to indicate that the current terminal device moves to the optimal card reading position in the direction of the pointing arrow.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 13 is a schematic diagram of an application scenario of another NFC card control terminal according to Embodiment 2 of the present invention.
  • the antenna position is just coincident with the card reader device, and the terminal device detects that the current placement position can perform an NFC card reading operation, and the terminal device displays The strength of the current NFC signal is displayed on the screen, that is, the white circular area in the figure is used to inform the current terminal device that it has moved to the optimal card reading position.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • FIG. 13b is a schematic diagram of an application scenario of an NFC card control terminal according to Embodiment 2 of the present invention.
  • the antenna position coincides with the card reader device, and the terminal device detects that the current placement position can perform the NFC card reading operation, and the terminal device displays The strength of the current NFC signal is displayed on the screen, that is, the white circular area in the figure, and the text indicating the moving direction is displayed at the bottom of the display: “The current position has reached the best”, which is used to inform the current terminal that the terminal device has moved to The best card reading location.
  • the antenna position of the current device may be prompted by the user on the display interface.
  • the positions shown in FIG. 6c and FIG. 6d to inform the current antenna position of the terminal device, and the current terminal device may be moved according to the antenna position. It is more convenient to provide a fast mobile experience.
  • the NFC signal for distinguishing the current position by using the above is only one implementation manner provided by the embodiment, and may also use other characters, patterns, direction indications, vibrations, bullet frames, sounds, brightness, and the like. The manner of substitution is not to be taken beyond the scope of the invention.
  • the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明涉及一种检测NFC刷卡控制方法,方法应用于终端设备,终端设备包括NFC天线、NFC芯片、以及处理器,NFC天线与NFC芯片电连接,NFC芯片与处理器电连接,方法包括:当终端设备接近NFC读卡器时,终端设备的NFC天线接收读卡器发送的NFC信号;终端设备确定第一NFC信号的第一强度;当第一强度小于第一强度阈值时,终端设备显示第一提示信息,第一提示信息用于提示移动终端设备,调整终端设备与NFC读卡器之间的相对位置,第一强度阈值大于或等于终端设备与NFC读卡器完成NFC读卡操作时,NFC信号的最小信号强度。可以从直觉上清晰地提醒使用者当前NFC信号的强弱,以及还可以进一步的提醒使用者当前终端与NFC读卡器偏离方向,并根据方向调整设备移动到最佳位置。

Description

一种NFC刷卡控制方法及终端设备 技术领域
本申请涉及通信领域,尤其涉及一种NFC刷卡控制方法及终端设备。
背景技术
NFC(Near Field Communication,近距离通信),NFC是一种基于13.56MHz载波频率的近距离无线通信技术,经过十几年的发展,越来越被大众欢迎和接受,基于其特有的连接迅速和安全性,广泛应用于金融、社保、公交、门禁等领域,给人们生活带来了便利。
NFC智能终端主要工作于三种模式:读卡器模式,卡模拟模式,点对点模式,其中使用最多的是卡模拟模式,也就是整个NFC智能终端作为一张智能非接触IC卡参与NFC通信,完成金融消费,公交消费或门禁出入。
在NFC通信中主要的产品分为两类,一类是形形色色的各种智能非接触IC卡,还有一类就是各种非接触的读卡器设备。现在终端设备在日常生活中非常常见,但是当使用具有NFC功能的终端设备进行读卡时,往往有很多原因导致读卡失败,但是使用者却并不知道是何种原因导致读卡失败。由于终端设备读卡失败的情况十分常见,使用者在使用过程中会感到非常不便,效果体验极差。
发明内容
本发明实施例提供了一种NFC刷卡控制方法及终端设备,以实现提示终端设备根据界面提示信息进行位置调整,已达到最佳读卡位置。
第一方面,本申请提供了一种检测NFC刷卡控制方法,方法应用于终端设备,终端设备包括NFC天线,方法包括:NFC天线接收NFC读卡器发送的第一NFC信号;终端设备确定第一NFC信号的第一强度;当第一NFC信号的第一强度小于第一强度阈值时,终端设备显示第一提示信息,第一提示信息用于提示移动终端设备,其中,第一强度阈值大于或等于终端设备与NFC读卡器完成NFC读卡操作时,NFC天线接收的NFC信号的最小信号强度。
在一种可能的实施方式中,第一强度为RSSI值。
在一种可能的实施方式中,NFC天线包括NFC第一天线、垂直变量天线和水平变量天线,垂直变量天线位于NFC第一天线垂直方向90°或270°位置;水平变量天线位于NFC第一天线水平方向0°或180°位置;终端设备确定第一NFC信号的第一强度包括:终端设备的NFC第一天线根据第一NFC信号确定第一天线NFC信号感应电压Vref;垂直变量天线根据第一NFC信号确定垂直天线NFC信号感应电压Vv;水平变量天线根据第一NFC信号确定水平天线NFC信号感应电压Vp;
终端设备根据第一天线NFC信号感应电压Vref、垂直天线NFC信号感应电压Vv和水平天线NFC信号感应电压Vp,确定第一NFC信号的第一强度。
在一种可能的实施方式中,第一强度的计算公式为:
Figure PCTCN2018085357-appb-000001
其中,Δv为第一天线NFC信号感应电压Vref与垂直天线NFC信号感应电压Vv的差值;Δp为第一天线NFC信号感应电压Vref与水平天线NFC信号感应电压Vp的差值。
在一种可能的实施方式中,方法还包括:确定角度θ,角度θ表征终端设备的NFC天线偏离NFC读卡器的角度;第一提示信息用于提示根据角度θ移动终端设备。
在一种可能的实施方式中,角度θ的计算公式为:
Figure PCTCN2018085357-appb-000002
在一种可能的实施方式中,方法还包括:当终端设备移动后,终端设备接收NFC读卡器发送的第二NFC信号;终端设备确定第二NFC信号的第一强度;当第二NFC信号的第一强度小于第一强度阈值时,终端设备显示第二提示信息,第二提示信息用于提示继续移动终端设备。
在一种可能的实施方式中,方法还包括:当终端设备移动后,终端设备接收NFC读卡器发送的第三NFC信号;终端设备确定第三NFC信号的第一强度;当第三NFC信号的第一强度大于或等于第一强度阈值时,终端设备显示第三提示信息,第三提示信息用于提示读卡完成。
在一种可能的实施方式中,第一提示信息、第二提示信息和/或第三提示信息包括文字、图案、方向指示、角度指示、震动、弹框、声音提示中的一个或多个提示信息。
第一方面,本申请提供了一种终端设备,终端设备包括:NFC天线、天线匹配电路、NFC芯片、处理器、存储器和显示屏;NFC天线,用于接收NFC读卡器发送的第一NFC信号;天线匹配电路,用于对接收的第一NFC信号进行解调,得到第一NFC信号感应电压;NFC芯片,用于根据第一NFC信号感应电压确定第一NFC信号的第一强度;处理器,用于根据第一NFC信号的第一强度与第一强度阈值进行比较判断;当第一NFC信号的第一强度小于第一强度阈值,终端设备显示第一提示信息,第一提示信息用于提示移动终端设备,其中,第一强度阈值大于或等于终端设备与NFC读卡器完成NFC读卡操作时,NFC天线接收的NFC信号的最小信号强度;存储器,用于存储预先设定的第一强度阈值;显示屏,用于显示第一提示信息。
在一种可能的实施方式中,NFC芯片具体包括:接收端、自动增益控制AGC和模数转化器ADC;接收端接收天线匹配电路提供的第一NFC信号感应电压,自动增益控制AGC在稳压工作的过程中,自动增益控制AGC的值随着NFC信号的变化而变化;模数转化器ADC将自动增益控制AGC的输出值转换为数字;根据自动增益控制AGC的值和模数转化器ADC的值得到第一NFC信号的第一强度;第一强度为RSSI值。
在一种可能的实施方式中,NFC天线包括:NFC第一天线、垂直变量天线和水平变量天线;天线匹配电路包括:第一天线匹配电路、垂直天线匹配电路和水平天线匹配电路;NFC第一天线,用于接收NFC信号;垂直变量天线,位于NFC第一天线垂 直方向90°或270°位置,用于接收NFC信号;水平变量天线,位于NFC第一天线水平方向0°或180°位置,用于接收NFC信号;第一天线匹配电路,用于根据NFC第一天线接收的NFC信号,确定第一天线NFC信号感应电压Vref;垂直天线匹配电路,用于根据垂直变量天线接收的NFC信号,确定垂直变量天线NFC信号感应电压Vv;水平天线匹配电路,用于根据水平变量天线接收的NFC信号,确定水平变量天线NFC信号感应电压Vp;比较电路,用于得到第一天线NFC信号感应电压Vref与垂直天线NFC信号感应电压Vv的差值Δv;以及第一天线NFC信号感应电压Vref与水平天线NFC信号感应电压Vp的差值Δp;计算模块,用于根据比较电路提供的Δv和Δp,确定第一NFC信号的第一强度。
在一种可能的实施方式中,第一强度的计算公式为:
Figure PCTCN2018085357-appb-000003
在一种可能的实施方式中,计算模块还用于根据比较电路提供的△v和△p,确定角度θ,角度θ表征终端设备的NFC天线偏离NFC读卡器的角度;第一提示信息用于提示根据角度θ移动终端设备。
在一种可能的实施方式中,角度θ的计算公式为:
Figure PCTCN2018085357-appb-000004
在一种可能的实施方式中,终端设备还用于:NFC天线,用于接收NFC读卡器发送的第二NFC信号;天线匹配电路,用于对接收的第二NFC信号进行解调,得到第二NFC信号感应电压;NFC芯片,用于根据第二NFC信号感应电压确定第二NFC信号的第一强度;处理器,用于根据第二NFC信号的第一强度与第一强度阈值进行比较判断;当第二NFC信号的第一强度小于第一强度阈值,终端设备显示第二提示信息,第二提示信息用于提示继续移动终端设备;显示屏,用于显示第二提示信息。
在一种可能的实施方式中,终端设备还用于:NFC天线,用于接收NFC读卡器发送的第三NFC信号;匹配电路,用于对接收的第三NFC信号进行解调,得到第三NFC信号感应电压;NFC芯片,用于根据第三NFC信号感应电压确定第三NFC信号的第一强度;处理器,用于根据第三NFC信号的第一强度与第一强度阈值进行比较判断;当第三NFC信号的第一强度大于或等于第一强度阈值,终端设备显示第三提示信息,第三提示信息用于提示读卡完成;显示屏,用于显示第三提示信息。
在一种可能的实施方式中,第一提示信息、第二提示信息和/或第三提示信息包括文字、图案、方向指示、角度指示、震动、弹框、声音提示中的一个或多个提示信息。
第三方面,本申请提供了一种计算机可读存储介质,包括指令,当指令在计算机上运行时,使计算机执行根据第一方面任一项的方法。
第四方面,本申请提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面任一项的方法。
第五方面,本申请提供了一种通信装置,其特征在于,包括处理器,处理器被配置为支持通信装置执行根据第一方面任一项的方法。
本申请提供的一种NFC刷卡控制方法及终端设备,可以从直觉上清晰明了地提醒使用者当前NFC信号的强弱,以及还可以进一步的提醒使用者当前终端与NFC读卡器偏离方向,并根据方向调整设备移动到最佳位置。
附图说明
图1为目前终端设备上NFC天线位置分布图;
图2为NFC读卡失败场景示意图;
图3为本发明实施例一提供的一种NFC刷卡控制终端电路结构图;
图4为NFC信号感应电压与ADC、AGC对应坐标图;
图5为本发明实施例一提供的一种NFC刷卡控制RSSI值与NFC信号对应坐标图;
图6a为本发明实施例一提供的一种NFC刷卡控制终端应用场景图;
图6b为本发明实施例一提供的另一种NFC刷卡控制终端应用场景图;
图6c为本发明实施例一提供的再一种NFC刷卡控制终端应用场景图;
图6d为本发明实施例一提供的又一种NFC刷卡控制终端应用场景图;
图7a为本发明实施例一提供的再一种NFC刷卡控制终端应用场景图;
图7b为本发明实施例一提供的又一种NFC刷卡控制终端应用场景图;
图8为本发明实施例二提供的一种检测终端设备结构天线位置示意图;
图9为本发明实施例二提供的一种NFC刷卡控制终端电路结构图;
图10a为本发明实施例二提供的一种NFC刷卡控制终端应用场景图;
图10b为本发明实施例二提供的另一种NFC刷卡控制终端应用场景图;
图11a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图;
图11b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图;
图12a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图;
图12b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图;
图13a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图;
图13b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。需要说明的是,本申请实施例中的终端设备可以为手机、平板电脑和可穿戴设备等。
当具有NFC功能的终端设备(下文统称为终端设备)靠近读卡器设备时,终端设备接收到读卡器设备所产生的NFC信号,终端设备的内部会产生用于表征当前NFC讯号强度的参数数值。其中,体现当前NFC讯号强度的参数的数值可以采用RSSI(Received Signal Strength Indication,接收讯号强度)值作为参考数值。处理器根据NFC芯片提供的RSSI值与预先设定的阈值进行比较,用于判断当前NFC信号是否达到预先设定的阈值,满足读卡成功的要求,并且作为提示消息在显示屏上显示,以便用户做出相应的调整。其中,RSSI值是由AGC(automatic gaincontrol,自动增益控制)和ADC(Analog-to-Digital Converter,模数转换器)的值根据芯片内部提供的算法计算出来的。此前的做法是只拿RSSI值来做调整芯片外部接收电路产生的电压实现稳压状态,以达到芯片可以稳定解调NFC信号的目的。对于不同的芯片,RSSI值的计算方式可能不同。RSSI值目前根据不同的芯片设计,将AGC和ADC的值经过芯片内部提供的公式进行计算。现有技术中不同的芯片可以提供不同的计算公式。
在另一个示例中,通过方位上和NFC第一天线垂直或水平的至少一个垂直变量天 线和至少一个水平变量天线提供的电压值分别与NFC第一天线的基准电压值进行比较,得到水平方向上NFC信号感应电压的差值和垂直方向上NFC信号感应电压的差值。再通过水平方向上NFC信号感应电压的差值和垂直方向上NFC信号感应电压的差值计算当前NFC信号的信号强度以及偏移角度,并显示在显示屏上作为提示消息,以便用户做出相应的调整。
本申请中所涉及的读卡操作,是指当终端设备靠近读卡器时,终端设备与读卡器之间进行的NFC信息交互。
图1为目前终端设备上NFC天线位置分布图。
在进行NFC读卡操作的时候,常因为讯号不好或是用户不知道感应位置而导致刷卡失败,目前也没有很好的方法可以提供用户一个直觉的方法来得知当前感应位置讯号的好坏,以及来让用户判别可以移动感应位置或是真的有其他刷卡而不是讯号问题。
NFC天线的不同位置就如同图1所示。如图1所示,不同的虚线框代表了不同型号终端设备的天线位置,如A天线代表型号1终端的天线所在位置、B天线代表型号2终端的天线所在位置和C天线代表型号3终端的天线所在位置等。由于不同型号终端设备的天线位置不同,所以导致用户无法得知当前终端设备天线的正确位置,进而无法将天线位置对准读卡设备。
图2为NFC读卡失败场景示意图。
如图2所示,当用户直接使用终端设备的时候会直接摆放到读卡器设备上面,但因为天线位置没有对准而常常导致讯号不好刷卡失败。
图3为本发明实施例提供的一种NFC刷卡控制终端电路结构图。
如图3所示,电路包括:NFC天线、天线匹配电路、NFC芯片、处理器、存储器、显示驱动和显示屏。其中NFC芯片包括:接收端、AGC和ADC。
当载有NFC天线和NFC芯片的终端设备靠近读卡器时,NFC天线接收到读卡器设备的NFC信号后,经过天线匹配电路的解调,将给NFC芯片提供NFC信号感应电压Vrx。模数转换器ADC是用于以高于接收到的NFC信号载波频率的采样率将接收到的NFC信号数字化。图4为NFC信号感应电压与ADC、AGC对应坐标图。在电压较小时,AGC会传递感应电压而不进行调整,因此随着NFC信号的增加ADC的输出会线性或非线性增加,电压Vrx也随着增加。在电压较大时,AGC工作将电压Vrx进行稳压。在AGC稳压的过程中,AGC的输出值随着NFC信号的增加不断增加,AGC的输出值反作用于接收端,使得在此阶段Vrx保持恒定在一个数值上,直到AGC达到饱和状态。在此过程中,如图4上半部分所示,NFC信号感应电压随着NFC信号的增加而增加,直到AGC开始工作,感应电压将会稳定在一个恒定的数值上,直到AGC达到饱和,感应电压会再次随着NFC信号增加而增加。因此,仅根据感应电压无法确定接收的NFC信号强度。但是,可以根据ADC的值和AGC的输出值通过一定算法得到RSSI值,而RSSI值也随之NFC信号的增加而不断增加,RSSI值与NFC信号存在单调增的关系(参见图5),所以可以根据RSSI值推断NFC信号强度的强弱变化。本领域技术人员应当注意,RSSI值与NFC信号的单调增关系不一定是线性关系,也可以是非线性关系。
处理器接收到NFC芯片提供的RSSI值后,与存储器内预先存储的阈值进行比较, 如果RSSI值满足,则处理器指示显示驱动对显示屏进行驱动,显示屏上显示相应提示界面,用于告知当前设备位置读卡成功;或RSSI值不满足阈值条件,则处理器指示显示驱动对显示屏进行驱动,显示屏上显示相应提示界面,用于告知当前设备位置读卡失败,无法进行NFC读卡操作,并提示用户移动终端设备。在其他实施例中,在显示屏上显示提示界面的同时,还可以通过不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行提示。
图5为本发明实施例提供的一种NFC刷卡控制RSSI值与NFC信号对应坐标图。
如图5所示,终端设备可以根据如图3所示电路,根据实际NFC信号强度检测并校准,由芯片产生的NFC信号第一强度。其中NFC信号第一强度可以为RSSI值,并且本领域技术人员应当注意,NFC信号第一强度还可以选取其他表征NFC接收信号强度的任意参数。
根据芯片产生的RSSI值与当前NFC信号之间的联系,可以从该终端当前NFC信号下对应的RSSI值的变化,判断该终端设备当前RSSI值对应的NFC信号大小的变化情况。本领域技术人员应当注意,图5所示的RSSI值与NFC信号对应关系不一定是线性关系,也可以是非线性关系,但RSSI值与NFC信号对应关系一定是单调增的变化,即随着NFC信号的增加RSSI值也随之变大。
其中1.5A/m、3.5A/m和7.5A/m为实施例示例性选取的三个NFC信号采样点。根据不同终端设备的硬件配置,例如天线的大小以及终端设备对射频信号接收的能力,RSSI值与NFC信号的对应关系有可能不同。例如天线大的终端设备收集到的磁力线较多,所以在得到相同的RSSI值的情况下,天线大的终端设备对应的NFC信号就会比较小,也就是说在相同的NFC信号下,天线越大,得到的RSSI值也就越大。同时可以根据不同设计的终端设备选择不同的阈值,当终端设备检测到当前NFC信号的RSSI值达到预先设定的阈值后,便认为当前NFC信号满足读卡成功要求,并且可以完成NFC读卡操作;如果终端设备检测到当前NFC信号的RSSI值没有达到预先设定的阈值后,便认为当前NFC信号不满足要求,将会读卡失败,无法完成NFC读卡操作。
在一个实施例中,假定RSSI值为5即满足可以完成NFC读卡操作,并假定在1.5A/m的NFC信号下RSSI值为2,3.5A/m的NFC信号下RSSI值为3,7.5A/m的NFC信号下RSSI值为6。当终端设备在检测到1.5A/m或3.5A/m的NFC信号下RSSI值未达到预先设定的阈值,便认为当前NFC信号下读卡失败,无法进行NFC读卡操作;而在7.5A/m的NFC信号下检测到RSSI值满足预先设定的阈值,便认为当前NFC信号下读卡成功,可以进行NFC读卡操作。但本领域技术人员应当注意,采样点并不局限于上述三个采样点,当在采样点检测到RSSI值大于或等于预先设定的阈值后,即认为当前NFC信号下读卡成功,NFC可以进行读卡操作。在另一实施例中例如在6A/m的NFC信号下,检测到RSSI值为5,即刚好达到预先设定的阈值,读卡成功可以完成NFC读卡操作。本领域技术人员还应当注意,预先设定的阈值根据不同终端设备的硬件条件,可以进行适当的选择。
图6a为本发明实施例提供的一种NFC讯号强度终端应用场景图。
如图6a所示,当终端设备靠近读卡器进行读卡操作时,终端设备检测出当前摆放 位置无法进行NFC读卡操作时,在显示屏(右侧的图片为显示屏的终端设备截屏,下文统称为显示屏截屏)上,便会有显示红色,即图中黑色圆形区域。用于告知当前设备摆放位置NFC信号薄弱,无法进行有效的NFC读卡操作。
本领域技术人员应当注意,用不同颜色区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图6b为本发明实施例提供的另一种NFC刷卡控制终端应用场景图;
如图6b所示,当终端设备靠近读卡器进行读卡操作时,终端设备检测出当前摆放位置无法进行NFC读卡操作时,右侧的显示屏截屏上,便会有显示红色,即图中黑色圆形区域,以及显示屏下方显示指示文字:“当前位置NFC信号不佳”,用于告知当前设备摆放位置NFC信号薄弱,无法进行有效的NFC读卡操作。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图6c为本发明实施例一提供的再一种NFC刷卡控制终端应用场景图。
如图6c所示,当终端设备靠近读卡器进行读卡操作时,例如摆放方位偏离,终端设备检测出当前摆放位置无法进行NFC读卡操作时,右侧的显示屏截屏上,便会有显示红色,即图中黑色圆形区域,以及显示屏下方显示指示文字:“当前位置NFC信号不佳请移动设备方向”,用于告知当前设备摆放位置NFC信号薄弱,无法进行有效的NFC读卡操作,需要移动设备方向。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图6d为本发明实施例一提供的又一种NFC刷卡控制终端应用场景图。
如图6d所示,当终端设备靠近读卡器进行读卡操作时,终端设备检测到当前NFC信号没有达到预先设定的阈值,则终端设备显示屏弹出读卡界面。如图6d右侧的显示屏截屏上显示读卡界面,读卡界面会有显示红色,即图中黑色圆形区域,同时在显示界面显示当前设备天线位置和/或指示箭头,以及显示屏下方显示指示文字:“当前位置NFC信号不佳,请将天线位置对准读卡器设备”,以便直观显示当前设备天线以及移动方向,方便将天线位置对准读卡器的读卡区域。其中指示箭头可以提示当前用户向信号较强的位置移动,方向的检测可以根据终端设备天线检测到的磁感应强度或磁感应线的密度等方式进行判断。
当终端设备移动后,检测到当前位置NFC信号仍然没有达到预先设定的阈值,则重复上述步骤,继续移动终端设备,直至将终端设备天线位置对准读卡器的读卡区域。当终端设备移动后,检测到当前位置NFC信号达到预先设定的阈值,则读卡界面中的红色可以变为绿色,并通过文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行提示,告知用户当前位置已达到最佳,读卡成功。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其 他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图7a为本发明实施例一提供的再一种NFC刷卡控制终端应用场景图;
在一个实施例中,如图7a所示,当终端设备靠近读卡器进行读卡操作时,终端设备检测出当前摆放位置可以进行NFC读卡操作时,右侧的显示屏截屏上,便会有显示绿色,即图中白色圆形区域。用于告知当前设备摆放位置NFC信号足够强,可以进行有效的NFC读卡操作。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图7b为本发明实施例一提供的又一种NFC刷卡控制终端应用场景图;
在一个实施例中,如图7b所示,当终端设备靠近读卡器进行读卡操作时,终端设备检测出当前摆放位置可以进行NFC读卡操作时,右侧的显示屏截屏上,便会有显示绿色,即图中白色圆形区域,以及显示屏下方显示指示文字:“当前位置NFC信号良好”,用于告知当前设备摆放位置NFC信号足够强,可以进行有效的NFC读卡操作。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
可以理解的是,以上应用场景仅为举例说明,并不局限于对本发明实施例应用场景的限定。
图8为本发明实施例提供的一种终端设备结构天线位置示意图。
如图8所示,终端设备固定有NFC第一天线,在位于NFC第一天线水平方向0°或180°位置设置有水平变量天线,在位于NFC第一天线垂直方向90°或270°位置设置有垂直变量天线。在一个实施例中如图8所示,水平变量天线位于NFC第一天线右侧位置,垂直变量天线位于NFC第一天线垂直正下方位置。本领域技术人员应当注意,图8中水平变量天线和垂直变量天线个数为最少的新增天线个数,可以根据实际情况添加更多水平变量天线和垂直变量天线,添加天线数量越多,测量则越精确。在本实施例中以添加水平变量天线和垂直变量天线各1个为例,在其他实施例中可以相应添加更多水平变量天线和垂直变量天线。本领域技术人员还应当注意,图8示出的水平变量天线和垂直变量天线的位置仅为一种优选实施例,在其他实施例中,只要能满足水平变量天线位于NFC第一天线水平方向0°或180°及其附近位置,以及垂直变量天线位于NFC第一天线垂直方向90°或270°及其附近位置即可。
图9为本发明实施例提供的另一种NFC刷卡控制终端电路结构图。
图9为图8所示终端电路结构图。
如图9所示,水平变量天线和垂直变量天线负责接收手机NFC信号,并产生NFC信号感应电压,而对于实际用于信息交互的NFC接收信号则由NFC第一天线负责接收。通过NFC第一天线接收到NFC信号后,经过天线匹配电路对NFC第一天线接收的能量进行解调,得到当前NFC信号下对应的第一天线NFC信号感应电压Vref。相应的,通过垂直变量天线接收到NFC信号后,经过垂直天线匹配电路对垂直变量天线接收的能量进行解调,得到当前NFC信号下对应的垂直变量天线NFC信号感应电压 Vv;以及,通过水平变量天线接收到NFC信号后,经过水平天线匹配电路对水平变量天线接收的能量进行解调,得到当前NFC信号下对应的水平变量天线NFC信号感应电压Vp。比较电路接收到Vref、Vv和Vp后,计算第一天线NFC信号感应电压Vref与垂直天线NFC信号感应电压Vv的差值△v,其中△v=Vv-Vref;以及,计算第一天线NFC信号感应电压Vref与水平天线NFC信号感应电压Vp的差值△p,其中△p=Vp-Vref。在比较电路中,第一天线NFC信号感应电压Vref在与Vv、Vp比较完后,比较电路将第一天线NFC信号感应电压Vref直接输出至NFC芯片上。由于芯片内部的AGC工作会使得电压稳定在某一固定数值上,所以比较电路只能透过如图9所示的比较电路左侧各个匹配电路输出的电压进行比较。
计算模块用于接收比较模块输出的△v和△p,计算得到NFC信号第二强度△ NFC和角度θ。此时NFC信号的强弱可以由△ NFC与预先设定的阈值进行比较得到。其中,
Figure PCTCN2018085357-appb-000005
角度θ为NFC信号指示方向与水平方向的夹角。其中
Figure PCTCN2018085357-appb-000006
计算模块将计算得到的△ NFC与角度θ发送至处理器。处理器根据接收到的△ NFC与存储器中预先储存的阈值进行比较,判断当前NFC信号的强弱,同时将角度θ与判断结果一同发送至显示驱动,驱动显示屏显示判断结果以及显示指示方向。在计算模块计算出△ NFC之前,NFC信号的强弱由NFC芯片检测出的RSSI值与预先设定的阈值进行比较来确定。此时NFC信号的强弱的判定方式如图3、图5所述方式判断。当判定当前NFC信号足够大时,判定终端设备当前摆放位置读卡成功,可以进行NFC读卡操作;当判定当前NFC信号比较微弱时,判定终端设备当前摆放位置读卡失败,无法进行NFC读卡操作。
在一个实施例中,以图8所示为例,根据水平变量天线和垂直变量天线与NFC第一天线的相对位置,判断△v和△p的正负。当△v为正和△p为负时,判断θ角在第一象限;当△v和△p同时为负时,判断θ角在第二象限;当△v为负和△p为正时,判断θ角在第三象限;当△v和△p同正时,判断θ角在第四象限。本领域技术人员应当注意,根据不同的硬件设计水平变量天线和垂直变量天线与NFC第一天线的摆放位置,其△v和△p的正负值对应的象限也是不同的。
在另一个实施例中,终端设备预先会测量最佳位置时垂直变量天线与NFC第一天线所产生的NFC信号之间的差值,和水平变量天线与NFC第一天线所产生的NFC信号之间的差值作为最佳位置的基准变量,记为△vref和△pref。当终端设备与读卡器位置偏离时,从比较电路中得到△v和△p后,计算模块将△v与△vref、△p与△pref比较。在一个实施例中提供一种最简便的线性差值,即△v’=△v-△vref,△p’=△p-△pref。在其他实施例中,也可以是某种加权关系。之后,计算模块根据校准后的△v’和△p’计算相应的△ NFC和角度θ,将计算得到的△ NFC与角度θ发送至处理器。处理器根据接收到的△ NFC与存储器中预先储存的阈值进行比较,判断当前NFC信号的强弱,同时将角度θ与判断结果一同发送至显示驱动,驱动显示屏显示判断结果以及显示指示方向。
本领域技术人员应当注意,本发明实施例中垂直变量天线和水平变量天线可以由磁感应器件构成。例如传感器、电感等器件。只要能够感应到NFC信号的磁场,例如13.56MHz,并且能够将感应电流转换成电压,就可以输出不同NFC信号下对应的感应电压变量。可以不需要对射频信号进行解调。
图10a为本发明实施例二提供的一种NFC刷卡控制终端应用场景图。
如图10a所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器 设备有偏差,终端设备检测出当前摆放位置无法进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中黑色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图10b为本发明实施例二提供的另一种NFC刷卡控制终端应用场景图。
如图10b所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器设备有偏差,终端设备检测出当前摆放位置无法进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中黑色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,以及显示屏下方显示指示移动方向的文字:“请将设备向右下θ°方向移动”,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
在上述一个或多个实施例中,当终端设备移动后,检测到当前位置NFC信号仍然没有达到预先设定的阈值,则重复上述步骤,继续移动终端设备,直至将终端设备天线位置对准读卡器的读卡区域。当终端设备移动后,检测到当前位置NFC信号达到预先设定的阈值,则读卡界面中的红色可以变为绿色,即图中的黑色区域颜色产生变化,并通过文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行提示,告知用户当前位置已达到最佳,读卡成功。
图11a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图。
如图11a所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器设备有偏差,但终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中白色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图11b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图。
如图11b所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器设备有偏差,但终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中白色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,以及显示屏下方显示指示移动方向的文字:“请将设备向右下θ°方向移动”,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图12a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图。
如图12a所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器设备有偏差,但终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中白色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图12b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图。
如图12b所示,当终端设备靠近读卡器进行读卡操作时,由于天线位置与读卡器设备有偏差,但终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱以及显示指示方向,即图中白色圆形区域,同时区域中有与水平方向呈θ角的指示箭头,以及显示屏下方显示指示移动方向的文字:“请将设备向左上θ°方向移动”,用于指示当前终端设备沿指示箭头方向移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图13a为本发明实施例二提供的再一种NFC刷卡控制终端应用场景图。
如图13a所示,当终端设备靠近读卡器进行读卡操作时,此时天线位置与读卡器设备刚好吻合,终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱,即图中白色圆形区域,用于告知当前终端设备已经移动到最佳读卡位置。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
图13b为本发明实施例二提供的又一种NFC刷卡控制终端应用场景图。
如图13b所示,当终端设备靠近读卡器进行读卡操作时,此时天线位置与读卡器设备刚好吻合,终端设备检测出当前摆放位置可以进行NFC读卡操作时,终端设备显示屏上便会显示出当前NFC信号的强弱,即图中白色圆形区域,以及显示屏下方显示指示移动方向的文字:“当前位置已达到最佳”,用于告知当前终端设备已经移动到最佳读卡位置。
在上述一个或多个示例中,也可以在显示界面提示用户当前设备的天线位置,具体可参照图6c和图6d所示位置,告知当前终端设备的天线位置,可以根据天线位置移动当前终端设备,能够更加方便的提供快捷的移动体验。
本领域技术人员应当注意,用上述区分当前位置NFC信号仅仅为本实施例提供的一种实现方式,还可以用不同文字、图案、方向指示、震动、弹框、声音、亮度等其他任意等效的方式进行替换,但不应当认为超出本发明包含的范围。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。

Claims (20)

  1. 一种检测NFC刷卡控制方法,其特征在于,所述方法应用于终端设备,所述终端设备包括NFC天线,所述方法包括:
    所述NFC天线接收所述NFC读卡器发送的第一NFC信号;
    所述终端设备确定所述第一NFC信号的第一强度;
    当所述第一NFC信号的第一强度小于第一强度阈值时,所述终端设备显示第一提示信息,所述第一提示信息用于提示移动所述终端设备,其中,所述第一强度阈值大于或等于所述终端设备与所述NFC读卡器完成NFC读卡操作时,所述NFC天线接收的NFC信号的最小信号强度。
  2. 根据权利要求1所述的方法,其特征在于,所述第一强度为RSSI值。
  3. 根据权利要求1或2所述的方法,其特征在于,所述NFC天线包括NFC第一天线、垂直变量天线和水平变量天线,所述垂直变量天线位于所述NFC第一天线垂直方向90°或270°位置;所述水平变量天线位于所述NFC第一天线水平方向0°或180°位置;
    所述终端设备确定所述第一NFC信号的第一强度包括:
    所述终端设备的所述NFC第一天线根据所述第一NFC信号确定第一天线NFC信号感应电压Vref;所述垂直变量天线根据所述第一NFC信号确定垂直天线NFC信号感应电压Vv;所述水平变量天线根据所述第一NFC信号确定水平天线NFC信号感应电压Vp;
    所述终端设备根据所述第一天线NFC信号感应电压Vref、所述垂直天线NFC信号感应电压Vv和所述水平天线NFC信号感应电压Vp,确定所述第一NFC信号的第一强度。
  4. 根据权利要求3所述的方法,其特征在于,所述第一强度的计算公式为:
    Figure PCTCN2018085357-appb-100001
    其中,所述Δv为所述第一天线NFC信号感应电压Vref与所述垂直天线NFC信号感应电压Vv的差值;
    所述Δp为所述第一天线NFC信号感应电压Vref与所述水平天线NFC信号感应电压Vp的差值。
  5. 根据权利要求1-4任一所述的方法,其特征在于,所述方法还包括:确定角度θ,所述角度θ表征所述终端设备的所述NFC天线偏离所述NFC读卡器的角度;
    所述第一提示信息用于提示根据所述角度θ移动所述终端设备。
  6. 根据权利要求5所述的方法,其特征在于,所述角度θ的计算公式为:
    Figure PCTCN2018085357-appb-100002
  7. 根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:
    当所述终端设备移动后,所述终端设备接收所述NFC读卡器发送的第二NFC信号;
    所述终端设备确定所述第二NFC信号的第一强度;
    当所述第二NFC信号的第一强度小于所述第一强度阈值时,所述终端设备显示第 二提示信息,所述第二提示信息用于提示继续移动所述终端设备。
  8. 根据权利要求1-6任一所述的方法,其特征在于,所述方法还包括:
    当所述终端设备移动后,所述终端设备接收所述NFC读卡器发送的第三NFC信号;
    所述终端设备确定所述第三NFC信号的第一强度;
    当所述第三NFC信号的第一强度大于或等于所述第一强度阈值时,所述终端设备显示第三提示信息,所述第三提示信息用于提示读卡完成。
  9. 根据权利要求1-8任一所述的方法,其特征在于,所述第一提示信息、第二提示信息和/或第三提示信息包括文字、图案、方向指示、角度指示、震动、弹框、声音提示中的一个或多个提示信息。
  10. 一种终端设备,其特征在于,所述终端设备包括:NFC天线、天线匹配电路、NFC芯片、处理器、存储器和显示屏;
    所述NFC天线,用于接收NFC读卡器发送的第一NFC信号;
    所述天线匹配电路,用于对接收的所述第一NFC信号进行解调,得到第一NFC信号感应电压;
    所述NFC芯片,用于根据所述第一NFC信号感应电压确定所述第一NFC信号的第一强度;
    所述处理器,用于根据所述第一NFC信号的第一强度与第一强度阈值进行比较判断;当所述第一NFC信号的第一强度小于第一强度阈值,所述终端设备显示第一提示信息,所述第一提示信息用于提示移动所述终端设备,其中,所述第一强度阈值大于或等于所述终端设备与所述NFC读卡器完成NFC读卡操作时,所述NFC天线接收的NFC信号的最小信号强度;
    所述存储器,用于存储预先设定的所述第一强度阈值;
    所述显示屏,用于显示所述第一提示信息。
  11. 根据权利要求10所述的终端设备,其特征在于,所述NFC芯片具体包括:接收端、自动增益控制AGC和模数转化器ADC;
    所述接收端接收所述天线匹配电路提供的所述第一NFC信号感应电压,所述自动增益控制AGC在稳压工作的过程中,所述自动增益控制AGC的值随着NFC信号的变化而变化;所述模数转化器ADC将所述自动增益控制AGC的输出值转换为数字;
    根据所述自动增益控制AGC的值和所述模数转化器ADC的值得到所述第一NFC信号的第一强度;
    所述第一强度为RSSI值。
  12. 根据权利要求10或11所述的终端设备,其特征在于,所述NFC天线包括:NFC第一天线、垂直变量天线和水平变量天线;所述天线匹配电路包括:第一天线匹配电路、垂直天线匹配电路和水平天线匹配电路;
    所述NFC第一天线,用于接收NFC信号;
    所述垂直变量天线,位于所述NFC第一天线垂直方向90°或270°位置,用于接收NFC信号;
    所述水平变量天线,位于所述NFC第一天线水平方向0°或180°位置,用于接 收NFC信号;
    所述第一天线匹配电路,用于根据所述NFC第一天线接收的NFC信号,确定第一天线NFC信号感应电压Vref;
    所述垂直天线匹配电路,用于根据所述垂直变量天线接收的NFC信号,确定垂直变量天线NFC信号感应电压Vv;
    所述水平天线匹配电路,用于根据所述水平变量天线接收的NFC信号,确定水平变量天线NFC信号感应电压Vp;
    所述比较电路,用于得到所述第一天线NFC信号感应电压Vref与所述垂直天线NFC信号感应电压Vv的差值Δv;以及所述第一天线NFC信号感应电压Vref与所述水平天线NFC信号感应电压Vp的差值Δp;
    所述计算模块,用于根据所述比较电路提供的所述Δv和所述Δp,确定所述第一NFC信号的第一强度。
  13. 根据权利要求12所述的终端设备,其特征在于,所述第一强度的计算公式为:
    Figure PCTCN2018085357-appb-100003
  14. 根据权利要求10-13任一所述的终端设备,其特征在于,所述计算模块还用于根据所述比较电路提供的所述△v和所述△p,确定角度θ,所述角度θ表征所述终端设备的所述NFC天线偏离所述NFC读卡器的角度;
    所述第一提示信息用于提示根据所述角度θ移动所述终端设备。
  15. 根据权利要求14所述的终端设备,其特征在于,所述角度θ的计算公式为:
    Figure PCTCN2018085357-appb-100004
  16. 根据权利要求10-15任一所述的终端设备,其特征在于,所述终端设备还用于:
    所述NFC天线,用于接收NFC读卡器发送的第二NFC信号;
    所述天线匹配电路,用于对接收的所述第二NFC信号进行解调,得到第二NFC信号感应电压;
    所述NFC芯片,用于根据所述第二NFC信号感应电压确定所述第二NFC信号的第一强度;
    所述处理器,用于根据所述第二NFC信号的第一强度与所述第一强度阈值进行比较判断;当所述第二NFC信号的第一强度小于所述第一强度阈值,所述终端设备显示第二提示信息,所述第二提示信息用于提示继续移动所述终端设备;
    所述显示屏,用于显示所述第二提示信息。
  17. 根据权利要求10-15任一所述的终端设备,其特征在于,所述终端设备还用于:
    所述NFC天线,用于接收NFC读卡器发送的第三NFC信号;
    所述匹配电路,用于对接收的所述第三NFC信号进行解调,得到第三NFC信号感应电压;
    所述NFC芯片,用于根据所述第三NFC信号感应电压确定所述第三NFC信号的第一强度;
    所述处理器,用于根据所述第三NFC信号的第一强度与所述第一强度阈值进行比 较判断;当所述第三NFC信号的第一强度大于或等于所述第一强度阈值,所述终端设备显示第三提示信息,所述第三提示信息用于提示读卡完成;
    所述显示屏,用于显示第三提示信息。
  18. 根据权利要求10-17任一所述的终端设备,其特征在于,所述第一提示信息、第二提示信息和/或第三提示信息包括文字、图案、方向指示、角度指示、震动、弹框、声音提示中的一个或多个提示信息。
  19. 一种计算机可读存储介质,包括指令,当所述指令在计算机上运行时,使所述计算机执行根据权利要求1至9任一项所述的方法。
  20. 一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如权利要求1至9任一项所述的方法。
PCT/CN2018/085357 2018-05-02 2018-05-02 一种nfc刷卡控制方法及终端设备 WO2019210466A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/085357 WO2019210466A1 (zh) 2018-05-02 2018-05-02 一种nfc刷卡控制方法及终端设备
CN201880047078.5A CN110915144B (zh) 2018-05-02 2018-05-02 一种nfc刷卡控制方法、终端设备及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/085357 WO2019210466A1 (zh) 2018-05-02 2018-05-02 一种nfc刷卡控制方法及终端设备

Publications (1)

Publication Number Publication Date
WO2019210466A1 true WO2019210466A1 (zh) 2019-11-07

Family

ID=68386894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085357 WO2019210466A1 (zh) 2018-05-02 2018-05-02 一种nfc刷卡控制方法及终端设备

Country Status (2)

Country Link
CN (1) CN110915144B (zh)
WO (1) WO2019210466A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183140A (zh) * 2020-09-30 2021-01-05 上海创功通讯技术有限公司 参数调用的方法、移动终端及系统
WO2022012616A1 (zh) * 2020-07-15 2022-01-20 维沃移动通信有限公司 近场通信nfc的信息显示方法、装置及电子设备
CN114205736A (zh) * 2020-09-17 2022-03-18 Oppo广东移动通信有限公司 Nfc使用引导方法、装置、存储介质以及终端
EP4145346A1 (en) * 2021-09-02 2023-03-08 Nxp B.V. Positioning guidance for rfid devices

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111711942B (zh) * 2020-05-27 2023-04-11 维沃移动通信有限公司 电子设备、电子设备的控制方法及可读存储介质
CN112822666B (zh) * 2020-12-30 2023-04-07 珠海格力电器股份有限公司 一种通信方法、装置、电子设备及存储介质
CN113920709A (zh) * 2021-11-25 2022-01-11 四川长虹电器股份有限公司 一种智能电视蓝牙遥控器配对方法
CN116491923B (zh) * 2023-06-26 2023-09-22 苏州维伟思医疗科技有限公司 电磁波传感器位置对准方法、装置、电子设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933025A (zh) * 2016-06-24 2016-09-07 广东欧珀移动通信有限公司 一种通信控制管理方法及移动终端
CN106231559A (zh) * 2016-09-27 2016-12-14 北京小米移动软件有限公司 网络访问方法、装置及终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215051B (zh) * 2010-04-02 2013-08-28 国民技术股份有限公司 一种利用低频磁通信的射频sim卡启动交易的距离门限判断方法
CN101888277B (zh) * 2010-06-17 2013-10-23 深圳市江波龙电子有限公司 智能扩展卡和基于rssi的近距离通信控制系统及方法
US20160142862A1 (en) * 2011-10-17 2016-05-19 Google Inc. Techniques for effectuating a near-field communication session
US20150278803A1 (en) * 2014-03-28 2015-10-01 Google Inc. Near field communication field detection
CN104978655B (zh) * 2014-04-11 2018-02-06 上海智向信息科技有限公司 近场支付连接及数据交换方法以及系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933025A (zh) * 2016-06-24 2016-09-07 广东欧珀移动通信有限公司 一种通信控制管理方法及移动终端
CN106231559A (zh) * 2016-09-27 2016-12-14 北京小米移动软件有限公司 网络访问方法、装置及终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022012616A1 (zh) * 2020-07-15 2022-01-20 维沃移动通信有限公司 近场通信nfc的信息显示方法、装置及电子设备
CN114205736A (zh) * 2020-09-17 2022-03-18 Oppo广东移动通信有限公司 Nfc使用引导方法、装置、存储介质以及终端
CN112183140A (zh) * 2020-09-30 2021-01-05 上海创功通讯技术有限公司 参数调用的方法、移动终端及系统
CN112183140B (zh) * 2020-09-30 2024-05-14 上海创功通讯技术有限公司 参数调用的方法、移动终端及系统
EP4145346A1 (en) * 2021-09-02 2023-03-08 Nxp B.V. Positioning guidance for rfid devices

Also Published As

Publication number Publication date
CN110915144B (zh) 2021-12-10
CN110915144A (zh) 2020-03-24

Similar Documents

Publication Publication Date Title
WO2019210466A1 (zh) 一种nfc刷卡控制方法及终端设备
KR102380348B1 (ko) 무선 전력 송신 장치 및 거치 형태에 따른 무선 전력 송신 방법
KR102191800B1 (ko) 안테나 스위칭 방법
CN102819721B (zh) 基于nfc的信息交互方法和装置
TWI512634B (zh) 近場通訊環境內工作的近場通訊裝置、在近場通訊環境內通訊的近場通訊裝置及其增益調節方法
US9270337B2 (en) Mobile wireless communications device including NFC antenna matching control circuit and associated methods
US8838024B2 (en) Near field communication apparatus, display control method, and program
US11016724B2 (en) Method for changing audio signal path according to external electronic device transmitting EM signal and electronic device therefor
EP2487805B1 (en) Near field communication apparatus, display control method, and program
KR102187833B1 (ko) 전자 장치의 기능 실행 방법 및 이를 사용하는 전자 장치
US11470222B2 (en) Communication apparatus and control method for communication apparatus
RU2710941C2 (ru) Устройство для проведения электронной конференции, способ управления этим устройством и цифровое перо
US20150261946A1 (en) Apparatus and method for authenticating user
KR20140134562A (ko) 지자기 센서를 이용한 통신부 제어 방법 및 이를 위한 전자 기기
TWI467945B (zh) 近場通訊裝置及用於檢測近場通訊裝置的存在的方法
CN112395894A (zh) 基于nfc的通信方法及装置
US10511190B2 (en) Power transmission apparatus wirelessly transmitting power to power receiving apparatus
US9268980B2 (en) Wireless tag communication device and wireless tag communication program
TWI474642B (zh) 近場通訊裝置、檢測近場通訊裝置之存在的方法
JP2013055543A (ja) 情報処理装置、情報処理システム、情報処理方法、及び情報処理プログラム
US10963654B2 (en) Electronic device for transmitting data and method for controlling the same
US9495536B2 (en) Method and apparatus for determining input
CN105338605B (zh) 一种功率调节方法及电子设备
CN107451567B (zh) 具有指纹识别功能的终端
JP2009146085A (ja) 携帯端末及びそれを用いた通信方法並びにプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18917440

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18917440

Country of ref document: EP

Kind code of ref document: A1