Control method, device and equipment of radio frequency communication, storage medium and card reader
By monitoring changes in sensing signals and dynamically determining polling detection thresholds, the problems of high power consumption and low success rate in radio frequency communication are solved, achieving low-power and high-efficiency card reader operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
- Filing Date
- 2026-02-02
- Publication Date
- 2026-06-09
AI Technical Summary
In existing radio frequency communication, the problems of high power consumption and low card reading success rate caused by low power card detection technology are mainly due to false triggering and missed detection caused by fixed detection thresholds.
By monitoring changes in the sensing signal, obtaining the signal strength information, analyzing the target signal-to-noise ratio, and dynamically determining the polling detection threshold, hierarchical polling is achieved, reducing false triggers and improving accuracy.
It reduces reader power consumption, improves the accuracy of electronic tag detection and communication success rate, reduces unnecessary polling interactions, and improves communication efficiency.
Smart Images

Figure CN122179034A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of radio frequency communication technology, and specifically to control methods, devices, equipment, storage media, and card readers for radio frequency communication. Background Technology
[0002] Radio frequency (RF) communication devices are electronic devices or systems that operate in the radio frequency band, using radio waves as the transmission medium to achieve wireless signal transmission, reception, and information exchange. RF communication devices include card readers and electronic tags, and data transmission and exchange are achieved through communication between the card reader and the electronic tag. During the communication process between the card reader and the electronic tag, the card reader typically activates an RF field and continuously polls the corresponding electronic tag to detect the communication tag. However, the electronic tag and the card reader are not communicating at all times, which would be too power-consuming for battery-powered card readers.
[0003] In related technologies, the power consumption of card readers is reduced by using Low Power Card Detection (LPCD) technology. During the use of LPCD technology, the card reader periodically sends sensing signals. By detecting the value of the sensing pulse, the difference between the detected sensing pulse value and the reference value is determined and the relationship with the detection threshold is judged to determine whether the wake-up condition is met.
[0004] However, the detection threshold in related technologies is usually a fixed value. Setting a lower detection threshold can achieve a larger LPCD detection range and sensitivity, but it is prone to false triggering of polling and increases power consumption. Setting a higher detection threshold reduces the LPCD detection range and may result in missed detections, affecting the card reading success rate. Summary of the Invention
[0005] This invention provides a control method, apparatus, device, storage medium, and card reader for radio frequency communication, in order to solve the problems of high power consumption and low card reading success rate caused by LPCD technology in related technologies.
[0006] In a first aspect, the present invention provides a radio frequency communication control method applied to a card reader, comprising: monitoring changes in a sensing signal at preset time intervals; acquiring sensing signal strength information when the sensing signal changes; the sensing signal being a signal used to detect the presence of an electronic tag, and the sensing signal strength information being information reflecting the proximity of the electronic tag; analyzing the signal quality of the sensing signal based on the sensing signal strength information to obtain a target signal-to-noise ratio (SNR); the target SNR being used to characterize the ratio of the sensing signal strength to the noise interference strength; determining a polling detection threshold corresponding to the target SNR based on the target SNR; acquiring a real-time sensing signal; determining a target judgment index based on the real-time sensing signal and a preset reference value; the target judgment index being used to characterize the amplitude of changes in the sensing signal; comparing the target judgment index with the polling detection threshold; and polling the electronic tag based on the target comparison result obtained from the comparison to control the radio frequency communication.
[0007] The radio frequency communication control method of this invention monitors changes in the sensing signal at preset time intervals. When the sensing signal changes, it acquires the sensing signal strength information, avoiding the ineffective power consumption of continuous sensing signal acquisition, reducing the power consumption of the card reader, and associating the sensing signal change with the proximity of the electronic tag to reduce false triggering and improve the accuracy of electronic tag detection. Based on the sensing signal strength information, this invention analyzes the signal quality of the sensing signal to obtain a target signal-to-noise ratio (SNR), providing a quantitative basis for subsequent polling strategies. Based on the target SNR, it determines the corresponding polling detection threshold, dynamically determining the polling detection threshold to adapt to different interference environments, providing a basis for subsequent hierarchical polling and improving the flexibility of the polling strategy. This invention acquires real-time sensing signals and determines target judgment indicators based on the real-time sensing signals and preset reference values, converting signal changes into target judgment indicators, making the judgment of the electronic tag status more accurate. This invention compares the target judgment indicators with the polling detection threshold, and polls the electronic tag based on the target comparison results to control the radio frequency communication, achieving hierarchical polling, reducing unnecessary polling interactions, improving communication efficiency, and reducing the probability of communication conflicts. Compared with related technologies, this invention dynamically determines the polling detection threshold by the target signal-to-noise ratio, which improves the accuracy of triggering polling, reduces the probability of false polling, and improves the success rate of radio frequency communication.
[0008] In one optional implementation, determining the polling detection threshold corresponding to the target signal-to-noise ratio (SNR) includes: determining a first polling detection threshold and a second polling detection threshold corresponding to the target SNR; wherein the first polling detection threshold is less than the second polling detection threshold.
[0009] In one optional implementation, monitoring changes in the sensing signal at preset time intervals includes: transmitting the sensing signal at preset time intervals and monitoring changes in the amplitude or phase of the sensing signal.
[0010] In one optional implementation, the signal quality of the sensed signal is analyzed based on the sensed signal strength information to obtain a target signal-to-noise ratio, including: obtaining a target absolute value based on the absolute value of each sensed signal strength value in the sensed signal strength information; obtaining multiple target noise values based on the absolute value of the difference between two adjacent target absolute values; obtaining the total power of signal and noise based on the sum of the multiple target absolute values and the quotient of the number of sensed signal strength values; obtaining the noise power based on the sum of the multiple target noise values and the quotient of the number of sensed signal strength values; obtaining the signal power based on the difference between the total power of signal and noise and the noise power; and obtaining the target signal-to-noise ratio based on the quotient of the signal power and the noise power.
[0011] In one optional implementation, determining a first polling detection threshold and a second polling detection threshold corresponding to the target signal-to-noise ratio (SNR) includes: matching the target SNR with multiple preset SNR intervals to obtain a target SNR interval; using the first preset polling detection threshold corresponding to the target SNR interval as the first polling detection threshold; and using the second preset polling detection threshold corresponding to the target SNR interval as the second polling detection threshold.
[0012] In one optional implementation, determining the target judgment index based on the real-time sensing signal and the preset reference value includes: obtaining the target judgment index based on the difference between the real-time sensing signal and the preset reference value.
[0013] In one optional implementation, the electronic tag is polled based on the target comparison result obtained from the comparison, including: if the target comparison result shows that the target judgment index is greater than the second polling detection threshold, an instruction to poll the electronic tag is triggered, and the electronic tag is polled; if the target comparison result shows that the target judgment index is greater than or equal to the first polling detection threshold and the target judgment index is less than or equal to the second polling detection threshold, the process of obtaining real-time sensing signals, determining the target judgment index based on the real-time sensing signals and preset reference values, and comparing the target judgment index with the polling detection threshold is repeated until the target comparison result shows that the target judgment index is greater than the second polling detection threshold; if the target comparison result shows that the target judgment index is less than the first polling detection threshold, the process of obtaining real-time sensing signals, determining the target judgment index based on the real-time sensing signals and preset reference values, and comparing the target judgment index with the polling detection threshold is repeated until a preset number of returns is reached.
[0014] Secondly, the present invention provides a radio frequency communication control device, comprising: a signal change monitoring unit, configured to monitor changes in a sensing signal at preset time intervals, and acquire sensing signal strength information when the sensing signal changes; the sensing signal is a signal used to detect the presence of an electronic tag, and the sensing signal strength information is information reflecting the proximity of the electronic tag; a signal quality analysis unit, configured to analyze the signal quality of the sensing signal based on the sensing signal strength information to obtain a target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of the sensing signal strength to the noise interference strength; a detection threshold determination unit, configured to determine a polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio; a judgment index determination unit, configured to acquire a real-time sensing signal, and determine a target judgment index based on the real-time sensing signal and a preset reference value; the target judgment index is used to characterize the amplitude of the sensing signal change; and a radio frequency communication control unit, configured to compare the target judgment index with the polling detection threshold, and poll the electronic tag based on the target comparison result obtained from the comparison, so as to control the radio frequency communication.
[0015] Thirdly, the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the radio frequency communication control method of the first aspect or any corresponding embodiment described above.
[0016] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to perform the radio frequency communication control method of the first aspect or any corresponding embodiment thereof.
[0017] Fifthly, the present invention provides a card reader, characterized in that it includes a signal-to-noise ratio calculation module and a communication control module, the signal-to-noise ratio calculation module and the communication control module being used to execute the radio frequency communication control method of the first aspect or any corresponding embodiment described above. Attached Figure Description
[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 This is a schematic diagram of an application scenario according to an embodiment of the present invention;
[0020] Figure 2This is a schematic diagram of the structure corresponding to the LPCD technology according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the card reader's card detection phase to polling phase according to an embodiment of the present invention; Figure 4 This is a schematic flowchart of a first method for controlling radio frequency communication according to an embodiment of the present invention; Figure 5 This is a second flowchart illustrating the control method for radio frequency communication according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of a radio frequency communication control device according to an embodiment of the present invention; Figure 7 This is a schematic diagram of the correspondence in the mapping table according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the sensing signal measurement value control process of the sensing signal detection card according to an embodiment of the present invention; Figure 9 This is a schematic diagram of the third process of the radio frequency communication control method according to an embodiment of the present invention; Figure 10 This is a structural block diagram of a radio frequency communication control device according to an embodiment of the present invention; Figure 11 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] It is understood that before using the technical solutions disclosed in the various embodiments of the present invention, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in the present invention and their authorization should be obtained in accordance with relevant laws and regulations through appropriate means.
[0023] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0024] As an optional application scenario of this invention, such as Figure 1 As shown, the control system for this radio frequency communication may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.
[0025] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.
[0026] RF (Radio Frequency) communication devices have a wide range of applications. Common RF communication devices include Near Field Communication (NFC) devices and Radio Frequency Identification (RFID) devices. NFC or RFID systems include reader devices (e.g., card readers) and card devices (e.g., electronic tags). Reader devices can also be called card readers, pollers, interrogators, or proximity coupling devices. In this embodiment of the invention, the reader device is referred to as a card reader. A card reader can be a traditional card reader, or an NFC smart device acting as a card reader, such as a mobile phone, walkie-talkie, or other communication device, or a wearable device such as a smartwatch or wristband. The card reader generates a high-frequency radio field, polls, and attempts to communicate with its passive or active counterpart. The communication counterpart is a card device, electronic tag, or card. In this embodiment of the invention, the communication counterpart is referred to as an electronic tag. The electronic tag can be a passive transponder as a proximity integrated circuit card, an active card emulation device, or other smart devices such as mobile phones that can be used as tags or card devices. For example, the electronic tag can be a passive tag or an active tag, or an NFC device as a card device, a mobile phone, or a wearable device such as a smartwatch or bracelet.
[0027] In this embodiment of the invention, the communication mechanism between the reader and the electronic tag is as follows: the reader emits a radio frequency field and the electronic tag responds through load modulation if it has sufficient power. The power transmission depends on the distance, antenna geometry and coupling, matching network design, the processing power requirements of the electronic tag, process changes, etc.
[0028] Generally, card readers enable RF fields and continuously poll electronic tags using all different communication technologies (e.g., NFC-A, NFC-B, NFC-F, NFC-V) to detect them. However, electronic tags and card readers do not communicate at all times. This is too power-intensive for battery-powered devices (e.g., mobile devices, wearables, door lock readers), as the battery can be easily depleted, reducing the availability of both the card reader and the electronic tags.
[0029] Therefore, LPCD technology can be used to reduce reader power consumption. LPCD technology uses short RF sensing pulses (or short radio frequency pulses, detection signals) to detect load changes at the reader's RF interface to determine the presence of an electronic tag, thereby waking up the reader for polling. Through LPCD technology, the reader can significantly shorten the RF field connection duration and switch to a power-saving state (such as standby mode) between sensing pulses. Specifically, LPCD technology includes the following steps: LPCD low-power detection; if the wake-up condition is met, the reader is woken up for polling; otherwise, card detection continues. The wake-up condition can be that the difference between the sensing pulse value and the reference value is greater than a detection threshold; after waking up, the reader polls the electronic tag; if the electronic tag responds and the reader can demodulate it correctly, normal communication begins; otherwise, polling continues.
[0030] For example, such as Figure 2The diagram shown is a structural schematic of the LPCD technology according to an embodiment of the present invention. The card reader and the electronic tag communicate through proximity. The card reader includes a storage module, an MCU (Microcontroller Unit), a communication control module, a transmitting module, a matching network module, and a receiving module. The card reader and the electronic tag communicate via an antenna. The card reader controls the transmitting module through the communication control module to generate a sensing signal for card detection. The sensing signal can be a 13.56MHz RF carrier or a modulated signal on an RF carrier. The duration of the sensing signal is short and can be configured according to actual conditions, for example, 30 microseconds to 50 microseconds. The time interval between each sensing signal is configurable, and the transmission frequency of the sensing signal can be configured according to actual conditions, for example, 2Hz, 3Hz, 5Hz, etc. The higher the transmission frequency, the greater the power consumption, the more frequent the detection pulse values, and the faster the response to the channel environment. After the transmitting module generates the sensing signal, the sensing signal is transmitted to the receiving module through the matching network module. The receiving module detects changes in the sensing signal. If an electronic tag approaches, the sensing signal will show changes in amplitude or phase. These changes can be detected by the receiving module. If the change in the sensing signal exceeds the detection threshold, the system will wake up and poll. Figure 3 This is a schematic diagram of the card reader's card detection stage and polling stage according to an embodiment of the present invention. The horizontal axis represents time, and the vertical axis represents the radio frequency field. The sensing signal is continuously monitored, that is, the LPCD periodically detects the card. When the sensing signal changes at time tn-1 and time tn, the reader enters the frame polling stage to detect the polling signal.
[0031] The card reader detects cards using an LPCD (Low-Level Discrete Coil) sensor. Once the presence of an electronic tag is detected, it wakes up and polls to initiate communication. When the card reader and the electronic tag are far apart, the LPCD sensing pulse does not change, and the card reader cannot detect the electronic tag's presence. As the distance approaches, the LPCD sensing pulse changes. If the wake-up threshold is reached, polling is activated, and communication begins. However, due to noise, interference, and temperature variations in the communication environment, simply waking up and polling based on a change in the sensing signal exceeding the threshold can easily lead to false wake-ups, thus increasing overall power consumption.
[0032] This invention provides a control method for radio frequency communication, which determines two polling detection thresholds based on the signal-to-noise ratio to improve the accuracy of triggering polling.
[0033] According to an embodiment of the present invention, a control method for radio frequency communication is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0034] This embodiment provides a radio frequency communication control method, which can be used in computer equipment, specifically, in a card reader. Figure 4 This is a first flowchart of a radio frequency communication control method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps: Step S401: Monitor the changes in the sensing signal according to a preset time interval. When the sensing signal changes, acquire the sensing signal strength information. The sensing signal is used to detect the presence of the electronic tag, and the sensing signal strength information is used to reflect the proximity of the electronic tag.
[0035] The preset time interval is a pre-set time interval that can be set according to actual conditions. For example, the preset time interval can be 30 microseconds to 50 microseconds. The sensing signal is a radio frequency signal used to detect the presence of the electronic tag. It is a probe wave emitted by the card reader. When the sensing signal changes, the electronic tag exists. When the sensing signal does not change, the electronic tag does not exist. The sensing signal strength information is the information after quantizing multiple sensing signal strengths by an ADC (Analog-to-Digital Converter). ADC quantization refers to the process by which an analog-to-digital converter converts continuously changing sensing signal strengths into discrete digital signals.
[0036] In some optional implementations, the multiple sensing signal intensities can be multiple sample values of the envelope value of the acquired sensing signal, or multiple in-phase / quadrature two-way signal values after mixing and filtering, or values of in-phase / quadrature signals after baseband filtering and other processing; the number of sensing signal intensities can be configured by an external register, such as 16, 32, 64, 128, etc. For example, if the sensing pulse duration is 10 microseconds, 20 microseconds, 40 microseconds, or 80 microseconds, the sample length can be set to 16, 32, 64, or 128, respectively.
[0037] Step S402: Analyze the signal quality of the sensed signal based on the sensed signal strength information to obtain the target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of the sensed signal strength to the noise interference strength.
[0038] Among them, the target signal-to-noise ratio is used to measure the quality of the sensed signal. The higher the target signal-to-noise ratio, the clearer the sensed signal.
[0039] Step S403: Determine the polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio.
[0040] The number of polling detection thresholds can be set according to the actual situation. For example, there can be two polling detection thresholds, namely the first polling detection threshold and the second polling detection threshold. The first polling detection threshold and the second polling detection threshold are two judgment criteria set based on the target signal-to-noise ratio. The first polling detection threshold is the low polling detection threshold, and the second polling detection threshold is the high polling detection threshold.
[0041] In some optional implementations, a mapping table between signal-to-noise ratio (SNR) and polling detection thresholds is pre-stored in the card reader's storage module. In the mapping table, one SNR corresponds to two polling detection thresholds, namely a high polling detection threshold and a low polling detection threshold. The target SNR is matched in the mapping table to obtain the first polling detection threshold and the second polling detection threshold.
[0042] Step S404: Acquire real-time sensing signals, and determine target judgment indicators based on real-time sensing signals and preset reference values; target judgment indicators are used to characterize the magnitude of changes in sensing signals.
[0043] The preset reference value is a pre-set reference value for the sensing signal, and the target judgment index is the difference or ratio between the real-time sensing signal and the preset reference value, which is used to characterize the magnitude of the signal change.
[0044] Step S405: Compare the target judgment index with the polling detection threshold, and poll the electronic tag according to the target comparison result to control the radio frequency communication.
[0045] Among them, the electronic tag is an identification carrier with an RFID chip, which is used to communicate with the card reader to realize data interaction; polling is the communication process in which the card reader sends instructions to the electronic tag and requests a response.
[0046] In this embodiment of the invention, polling detection is Low Power Card Detection (LPCD), which uses short pulses for field detection to determine whether to trigger the normal polling detection process.
[0047] The radio frequency communication control method provided in this embodiment monitors changes in the sensing signal at preset time intervals. When the sensing signal changes, it acquires the sensing signal strength information, avoiding the ineffective power consumption of continuous sensing signal acquisition, reducing the power consumption of the card reader, and associating the sensing signal change with the proximity of the electronic tag to reduce false triggering and improve the accuracy of electronic tag detection. Based on the sensing signal strength information, this embodiment analyzes the signal quality of the sensing signal to obtain a target signal-to-noise ratio (SNR), providing a quantitative basis for subsequent polling strategies. Based on the target SNR, it determines a first and second polling detection threshold, dynamically adjusting the thresholds to adapt to different interference environments. These dual thresholds provide a basis for subsequent hierarchical polling, improving the flexibility of the polling strategy. This embodiment acquires real-time sensing signals and, based on the real-time sensing signals and preset reference values, determines target judgment indicators, transforming signal changes into target judgment indicators, making the judgment of the electronic tag status more accurate. This invention compares target judgment indicators with polling detection thresholds. Based on the target comparison results, it polls the electronic tag to control radio frequency communication, achieving hierarchical polling, reducing unnecessary polling interactions, improving communication efficiency, and lowering the probability of communication conflicts. Compared with related technologies, this invention dynamically determines two polling detection thresholds through the target signal-to-noise ratio, improving the accuracy of triggering polling, reducing the probability of false polling triggers, and increasing the success rate of radio frequency communication.
[0048] This embodiment provides a radio frequency communication control method, which can be used in computer equipment, specifically, in a card reader. Figure 5 This is a second flowchart of a radio frequency communication control method according to an embodiment of the present invention, such as... Figure 5 As shown, the process includes the following steps: Step S501: Monitor the changes in the sensing signal according to a preset time interval. When the sensing signal changes, acquire the sensing signal strength information. The sensing signal is used to detect the presence of the electronic tag, and the sensing signal strength information is used to reflect the proximity of the electronic tag.
[0049] Specifically, step S501 includes: Step S5011: Transmit a sensing signal at a preset time interval and monitor the changes in the amplitude or phase of the sensing signal.
[0050] Step S5012: When the amplitude or phase of the sensed signal changes, acquire the sensed signal strength information.
[0051] For example, Figure 6This is a schematic diagram of a radio frequency communication control device according to an embodiment of the present invention. The card reader includes a storage module, an MCU (Microcontroller Unit), a communication control module, a transmitting module, a matching network module, a receiving module, and a signal-to-noise ratio calculation module. The card reader and the electronic tag communicate via an antenna. The card reader controls the transmitting module through the communication control module to generate a sensing signal for card detection. After the transmitting module generates the sensing signal, the sensing signal is transmitted to the receiving module through the matching network module. The receiving module detects changes in the sensing signal. If an electronic tag approaches, the amplitude or phase of the sensing signal will change. This change can be detected by the receiving module. When a change in the amplitude or phase of the sensing signal is detected, it indicates that an electronic tag is approaching, and the sensing signal strength information is obtained. The sensing signal strength information is the information obtained by ADC quantization of multiple sensing signal strengths.
[0052] Step S502: Based on the sensing signal strength information, analyze the signal quality of the sensing signal to obtain the target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of the sensing signal strength to the noise interference strength.
[0053] Specifically, step S502 above includes: Step S5021: Obtain the target absolute value based on the absolute value of each sensing signal intensity value in the sensing signal intensity information, and obtain multiple target noise values based on the absolute value of the difference between two adjacent target absolute values.
[0054] In some alternative implementations, the sensed signal strength information is input to... Figure 6 The signal-to-noise ratio calculation module in the middle obtains the target signal-to-noise ratio; the sensing signal strength information includes multiple sensing signal strength values after quantization processing of the sensing signal strength.
[0055] For example, the formula for determining the absolute value of the target is:
[0056] in, For the first The target absolute value of the intensity of each sensed signal. It is an absolute value function. For the first Each sense signal strength value.
[0057] In some alternative implementations, the formula for determining the target noise value is:
[0058] in, For the first The target noise value of a sensed signal intensity value It is an absolute value function. For the first The target absolute value of the intensity of each sensed signal. For the first The target absolute value of the intensity of a sensed signal.
[0059] Step S5022: The total power of signal and noise is obtained by dividing the sum of the absolute values of multiple targets by the number of sensed signal strength values; the noise power is obtained by dividing the sum of the noise values of multiple targets by the number of sensed signal strength values.
[0060] For example, the formula for determining the total power of the signal and noise is:
[0061] in, For the first The target absolute value of the intensity of each sensed signal. The total power of signal and noise. This represents the number of sensed signal strength values.
[0062] Alternatively, the formula for determining the total power of the signal and noise is:
[0063] For the first The target absolute value of the intensity of each sensed signal. This represents the total power of the signal and noise.
[0064] In some alternative implementations, the formula for determining the noise power is:
[0065] in, For noise power, For the first The target noise value of a sensed signal intensity value This represents the number of sensed signal strength values.
[0066] Alternatively, the formula for determining noise power is:
[0067] in, For noise power, For the first The target noise value of the sensed signal strength value.
[0068] Step S5023: Obtain the signal power based on the difference between the total signal and noise power and the noise power, and obtain the target signal-to-noise ratio based on the quotient of the signal power and the noise power.
[0069] For example, the formula for determining signal power is:
[0070] in, For signal power, The total power of signal and noise. This represents noise power.
[0071] In some alternative implementations, the formula for determining the target signal-to-noise ratio is:
[0072] in, For the target signal-to-noise ratio, For signal power, This represents noise power.
[0073] Step S503: Determine the polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio.
[0074] Specifically, step S503 includes: Step S5031: Based on the target signal-to-noise ratio, determine the first round of detection threshold and the second round of detection threshold corresponding to the target signal-to-noise ratio; the first round of detection threshold is less than the second round of detection threshold.
[0075] In some optional implementations, step S5031 above includes: Step a1: Match the target signal-to-noise ratio with multiple preset signal-to-noise ratio intervals to obtain the target signal-to-noise ratio interval.
[0076] Step a2: Use the first preset polling detection threshold corresponding to the target signal-to-noise ratio interval as the first polling detection threshold, and use the second preset polling detection threshold corresponding to the target signal-to-noise ratio interval as the second polling detection threshold.
[0077] Among them, in advance Figure 6 The storage module shown stores a mapping table containing multiple preset signal-to-noise ratio (SNR) intervals and two preset polling detection thresholds corresponding to each SNR interval. The correspondence in the mapping table can be obtained by fitting a curve. The number of preset SNR intervals in the mapping table can be set according to actual conditions, for example, such as... Figure 7 As shown, Figure 7This is a schematic diagram of the correspondence in the mapping table according to an embodiment of the present invention. The number of preset signal-to-noise ratio (SNR) intervals in the mapping table can be 6, namely [SNR_MIN, SNR_MIN], (SNR_MIN, SNR1), [SNR1, SNR2), [SNR2, SNR3), [SNR3, SNR4), [SNR4, SNR_MAX]. Each preset SNR interval in the mapping table corresponds to two preset polling detection thresholds, one is a high polling detection threshold (second preset polling detection threshold), and the other is a low polling detection threshold (first preset polling detection threshold). For example, the two preset polling detection thresholds corresponding to the preset SNR interval [SNR_MIN, SNR_MIN] are TH_LOW_MAX and TH_HI. GH_MAX, the two preset polling detection thresholds corresponding to the preset signal-to-noise ratio interval (SNR_MIN, SNR1) are TH_LOW1 and TH_HIGH1, the two preset polling detection thresholds corresponding to the preset signal-to-noise ratio interval [SNR1, SNR2) are TH_LOW2 and TH_HIGH2, the two preset polling detection thresholds corresponding to the preset signal-to-noise ratio interval [SNR2, SNR3) are TH_LOW3 and TH_HIGH3, the two preset polling detection thresholds corresponding to the preset signal-to-noise ratio interval [SNR3, SNR4) are TH_LOW4 and TH_HIGH4, and the two preset polling detection thresholds corresponding to the preset signal-to-noise ratio interval [SNR4, SNR_MAX) are TH_LOW_MIN and TH_HIGH_MIN.
[0078] In some optional implementations, the target signal-to-noise ratio is matched with multiple preset signal-to-noise ratio intervals to obtain the target signal-to-noise ratio interval in which the target signal-to-noise ratio is located. The high polling detection threshold (second preset polling detection threshold) corresponding to the target signal-to-noise ratio interval is used as the second polling detection threshold, and the low polling detection threshold (first preset polling detection threshold) is used as the first polling detection threshold.
[0079] In this embodiment of the invention, the channel environment can vary. If the calculated target signal-to-noise ratio is in the range of [SNR4, SNR_MAX), it indicates that the channel environment is very good with little noise and interference. In this case, a lower detection threshold can be set, but it should not be set too low. This threshold can be set to TH_LOW_MIN and TH_HIGH_MIN. SNR_MIN can be the signal-to-noise ratio value corresponding to the minimum demodulation sensitivity of the card reader. If the calculated SNR value is equal to SNR_MIN, then regardless of whether the change in the sensed value exceeds the detection threshold, polling will not be woken up. Therefore, the two preset polling detection thresholds corresponding to SNR_MIN are set as large as possible, namely TH_LOW_MAX and TH_HIGH_MAX.
[0080] Step S504: Acquire real-time sensing signals, and determine target judgment indicators based on real-time sensing signals and preset reference values; target judgment indicators are used to characterize the magnitude of changes in sensing signals.
[0081] Specifically, step S504 includes: Step S5041: Obtain the target judgment index based on the difference between the real-time sensing signal and the preset reference value.
[0082] In order to more accurately detect changes in the sensed signal, preset reference values can be continuously updated, for example, For the first The sensing signal value obtained from the first acquisition of the sensing signal, the first The preset reference value can be achieved in two ways: using moving average filtering and using IIR (Infinite Impulse Response) low-pass filtering.
[0083] For example, the formula for determining the preset reference value using moving average filtering is:
[0084] in, This is a preset reference value determined using moving average filtering. For the first The sensing signal value obtained by acquiring the sensing signal in the next step. For the most recent The measured value of the sensing signal.
[0085] For example, the formula for determining the preset reference value using IIR low-pass filtering is as follows:
[0086] in, For the first The preset reference value is determined by using IIR low-pass filtering. For the first The preset reference value is determined by using IIR low-pass filtering. For the first The sensing signal value obtained by acquiring the sensing signal in the next step. Values greater than 0 and less than 1, in particular, , The preset parameter can be a positive integer, for example, it can be set to a positive integer such as 2, 3, 4, 5, etc.
[0087] Step S505: Compare the target judgment index with the polling detection threshold, and poll the electronic tag according to the target comparison result to control the radio frequency communication.
[0088] Specifically, step S505 includes: Step S5051: If the target comparison result is that the target judgment index is greater than the second round of detection threshold, then trigger the instruction to poll the electronic tag and poll the electronic tag.
[0089] In some optional implementations, if the target comparison result is that the target judgment index is greater than or equal to the first round of detection threshold and the target judgment index is less than or equal to the second round of detection threshold, then the process of obtaining the real-time sensing signal, determining the target judgment index based on the real-time sensing signal and the preset reference value, and comparing the target judgment index with the round of detection threshold continues until the target comparison result is that the target judgment index is greater than the second round of detection threshold.
[0090] Furthermore, by combining the previously set low threshold TH_LOW and high threshold TH_HIGH, an interference detection step can be added. Figure 8 This is a schematic diagram of the sensing signal measurement value control process of the sensing signal detection card according to an embodiment of the present invention, which adds a noise and interference detection step in the first step. When performing the sensing signal detection for the first time, the target judgment index delta ( If delta is greater than the second round of detection threshold TH_HIGH, wake up frame polling. If the value is greater than the first round detection threshold TH_LOW and less than or equal to the second round detection threshold TH_HIGH, polling is not activated, and the next sensing signal detection begins, until delta( If +1 is also greater than TH_HIGH, then polling will be activated; otherwise, the sensing signal detection will be performed again.
[0091] In some optional implementations, if the target comparison result is that the target judgment index is less than the first round of detection threshold, the process of obtaining the real-time sensing signal, determining the target judgment index based on the real-time sensing signal and the preset reference value, and comparing the target judgment index with the round of detection threshold is repeated until the preset number of returns is reached.
[0092] The preset number of returns can be set according to the actual situation. For example, the preset number of returns can be 2 or 3.
[0093] The radio frequency communication control method provided in this embodiment sets different detection thresholds through signal-to-noise ratio (SNR) calculation, detects the channel environment, calculates the target SNR to estimate the channel environment, and sets the detection threshold based on the channel environment to reduce the probability of false wake-ups, thereby reducing the polling power consumption caused by false wake-ups and making the detection threshold more accurate. At the same time, an interference detection step is added to further reduce the probability of false wake-ups. By setting high and low detection thresholds instead of a single detection threshold, it can more flexibly respond to the detection needs under different channel environments. While ensuring effective detection, it minimizes unnecessary energy consumption and improves the stability and reliability of the entire radio frequency communication system.
[0094] This embodiment provides a radio frequency communication control method, which can be used in computer equipment, specifically, in a card reader. Figure 9 This is a third flowchart of a radio frequency communication control method according to an embodiment of the present invention, such as... Figure 9 As shown, the process includes the following steps: Under no-load conditions, the card reader sends LPCD sensing signals for initial calibration to obtain reference values. The card reader periodically sends sensing signals and calculates the signal-to-noise ratio (SNR) in the communication link using the received measurement signals. It then determines whether the SNR is lower than the minimum demodulation SNR. If the SNR is lower than the minimum demodulation SNR, it returns to the step of periodically sending sensing signals and calculating the SNR in the communication link using the received measurement signals. If the SNR is higher than the minimum demodulation SNR, it sets the corresponding LPCD detection threshold based on the magnitude of the SNR. Finally, it determines whether the change in the measurement signal meets the conditions for wake-up polling. If not, it returns to the step of periodically sending sensing signals and calculating the SNR in the communication link using the received measurement signals. If the conditions are met, it wakes up the card reader's polling detection and sends frame polling signals.
[0095] This embodiment also provides a radio frequency communication control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0096] This embodiment provides a control device for radio frequency communication, such as... Figure 10 As shown, it includes: The signal change monitoring unit 1001 is used to monitor the changes in the sensing signal at preset time intervals. When the sensing signal changes, the sensing signal strength information is obtained. The sensing signal is used to detect the presence of the electronic tag, and the sensing signal strength information is used to reflect the proximity of the electronic tag.
[0097] The signal quality analysis unit 1002 is used to analyze the signal quality of the sensed signal based on the sensed signal strength information to obtain the target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of the sensed signal strength to the noise interference strength.
[0098] The detection threshold determination unit 1003 is used to determine the polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio.
[0099] The judgment index determination unit 1004 is used to acquire real-time sensing signals and determine target judgment indexes based on real-time sensing signals and preset reference values; the target judgment indexes are used to characterize the change amplitude of sensing signals.
[0100] The radio frequency communication control unit 1005 is used to compare the target judgment index with the polling detection threshold, and poll the electronic tag according to the target comparison result to control the radio frequency communication.
[0101] In some optional implementations, the signal change monitoring unit 1001 is a unit configured in the communication control module, the signal quality analysis unit 1002 is a unit configured in the signal-to-noise ratio calculation module, and the detection threshold determination unit 1003, the judgment index determination unit 1004, and the radio frequency communication control unit 1005 are units configured in the communication control module.
[0102] In some alternative implementations, the signal change monitoring unit 1001 includes: The sensing signal detection subunit is used to transmit sensing signals at preset time intervals and monitor changes in the amplitude or phase of the sensing signals.
[0103] In some alternative implementations, the signal quality analysis unit 1002 includes: The noise value determination subunit is used to obtain the target absolute value based on the absolute value of each sensing signal intensity value in the sensing signal intensity information, and to obtain multiple target noise values based on the absolute value of the difference between two adjacent target absolute values.
[0104] The noise power determination subunit is used to obtain the total power of the signal and noise based on the sum of multiple target absolute values and the quotient of the number of sensed signal strength values; and to obtain the noise power based on the sum of multiple target noise values and the quotient of the number of sensed signal strength values.
[0105] The signal-to-noise ratio (SNR) determination subunit is used to obtain the signal power based on the difference between the total signal and noise power and the noise power, and to obtain the target SNR based on the quotient of the signal power and the noise power.
[0106] In some optional implementations, the detection threshold determination unit 1003 includes: The detection threshold determination subunit determines the first round detection threshold and the second round detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio; the first round detection threshold is less than the second round detection threshold.
[0107] Specifically, the signal-to-noise ratio (SNR) interval matching subunit is used to match the target SNR with multiple preset SNR intervals to obtain the target SNR interval; the first preset polling detection threshold corresponding to the target SNR interval is used as the first polling detection threshold, and the second preset polling detection threshold corresponding to the target SNR interval is used as the second polling detection threshold.
[0108] In some optional implementations, the judgment index determination unit 1004 includes: The judgment index determination subunit is used to obtain the target judgment index based on the difference between the real-time sensing signal and the preset reference value.
[0109] In some alternative implementations, the radio frequency communication control unit 1005 includes: The first radio frequency communication control subunit is used to trigger an instruction to poll the electronic tag if the target judgment index is greater than the second polling detection threshold based on the target comparison result.
[0110] The second radio frequency communication control subunit is used to obtain real-time sensing signals, determine target judgment indicators based on real-time sensing signals and preset reference values, and compare target judgment indicators with polling detection thresholds, until the target comparison result is that the target judgment indicator is greater than the second polling detection threshold.
[0111] The third radio frequency communication control subunit is used to obtain real-time sensing signals if the target judgment index is less than the first polling detection threshold based on the target comparison result, determine the target judgment index based on the real-time sensing signal and the preset reference value, and compare the target judgment index with the polling detection threshold until the preset number of returns is reached.
[0112] The radio frequency communication control device provided in this embodiment of the invention can execute the radio frequency communication control method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0113] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0114] The following is a detailed reference. Figure 11The diagram illustrates a structural schematic suitable for implementing an electronic device according to embodiments of the present invention. The electronic device may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1102 or a program loaded from memory 1108 into random access memory (RAM) 1103. The RAM 1103 also stores various programs and data required for the operation of the electronic device. The processor 1101, ROM 1102, and RAM 1103 are interconnected via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0115] Typically, the following devices can be connected to I / O interface 1105: input devices 1106 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1107 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 1108 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1109. Communication device 1109 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 11 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0116] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1109, or installed from memory 1108, or installed from ROM 1102. When the computer program is executed by processor 1101, it performs the functions defined in the radio frequency communication control method of the embodiments of the present invention.
[0117] Figure 11 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0118] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the radio frequency communication control method shown in the above embodiments is implemented.
[0119] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0120] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A control method of radio frequency communication, characterized in that, Applied to a card reader, the method includes: The changes in the sensing signal are monitored at preset time intervals. When the sensing signal changes, the sensing signal strength information is obtained. The sensing signal is used to detect the presence of the electronic tag, and the sensing signal strength information is used to reflect the proximity of the electronic tag. Based on the sensed signal strength information, the signal quality of the sensed signal is analyzed to obtain the target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of sensed signal strength to noise interference strength; Based on the target signal-to-noise ratio, determine the polling detection threshold corresponding to the target signal-to-noise ratio; Acquire real-time sensing signals, and determine target judgment indicators based on the real-time sensing signals and preset reference values; the target judgment indicators are used to characterize the change amplitude of the sensing signals. The target judgment index is compared with the polling detection threshold. Based on the target comparison result obtained from the comparison, the electronic tag is polled to control the radio frequency communication.
2. The method of claim 1, wherein, The step of determining the polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio includes: Based on the target signal-to-noise ratio, a first round detection threshold and a second round detection threshold corresponding to the target signal-to-noise ratio are determined; the first round detection threshold is less than the second round detection threshold.
3. The method according to claim 1 or 2, characterized in that, The monitoring of changes in the sensing signal at preset time intervals includes: The sensing signal is transmitted at the preset time interval, and the changes in the amplitude or phase of the sensing signal are monitored.
4. The method according to claim 1 or 2, characterized in that, The step of analyzing the signal quality of the sensed signal based on the sensed signal intensity information to obtain the target signal-to-noise ratio includes: The target absolute value is obtained based on the absolute value of each sensing signal intensity value in the sensing signal intensity information, and multiple target noise values are obtained based on the absolute value of the difference between two adjacent target absolute values. The total power of the signal and noise is obtained by dividing the sum of the absolute values of the multiple targets by the number of sensed signal strength values; the noise power is obtained by dividing the sum of the noise values of the multiple targets by the number of sensed signal strength values. The signal power is obtained by the difference between the total power of the signal and noise and the noise power, and the target signal-to-noise ratio is obtained by the quotient of the signal power and the noise power.
5. The method according to claim 2, characterized in that, The step of determining the first round detection threshold and the second round detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio includes: The target signal-to-noise ratio is matched with multiple preset signal-to-noise ratio intervals to obtain the target signal-to-noise ratio interval; The first preset polling detection threshold corresponding to the target signal-to-noise ratio interval is used as the first polling detection threshold, and the second preset polling detection threshold corresponding to the target signal-to-noise ratio interval is used as the second polling detection threshold.
6. The method according to claim 1 or 2, characterized in that, The step of determining the target judgment index based on the real-time sensing signal and the preset reference value includes: The target judgment index is obtained based on the difference between the real-time sensing signal and the preset reference value.
7. The method according to claim 2, characterized in that, The step of polling the electronic tag based on the target comparison result obtained from the comparison includes: If the target comparison result is that the target judgment index is greater than the second polling detection threshold, then an instruction to poll the electronic tag is triggered, and the electronic tag is polled. If the target comparison result is that the target judgment index is greater than or equal to the first polling detection threshold and the target judgment index is less than or equal to the second polling detection threshold, then return to the steps of obtaining real-time sensing signals, determining target judgment index based on real-time sensing signals and preset reference values, and comparing the target judgment index with the polling detection threshold until the target comparison result is that the target judgment index is greater than the second polling detection threshold. If the target comparison result is that the target judgment index is less than the first polling detection threshold, then the process of obtaining the real-time sensing signal, determining the target judgment index based on the real-time sensing signal and the preset reference value, and comparing the target judgment index with the polling detection threshold is repeated until the preset number of returns is reached.
8. A control device for radio frequency communication, characterized in that, The device includes: The signal change monitoring unit is used to monitor the changes in the sensing signal at preset time intervals. When the sensing signal changes, it acquires the sensing signal strength information. The sensing signal is used to detect the presence of an electronic tag, and the sensing signal strength information is used to reflect the proximity of the electronic tag. The signal quality analysis unit is used to analyze the signal quality of the sensed signal based on the sensed signal strength information to obtain a target signal-to-noise ratio; the target signal-to-noise ratio is used to characterize the ratio of the sensed signal strength to the noise interference strength. The detection threshold determination unit is used to determine the polling detection threshold corresponding to the target signal-to-noise ratio based on the target signal-to-noise ratio. The judgment index determination unit is used to acquire real-time sensing signals and determine target judgment indexes based on the real-time sensing signals and preset reference values; the target judgment indexes are used to characterize the change amplitude of the sensing signals. The radio frequency communication control unit is used to compare the target judgment index with the polling detection threshold, and poll the electronic tag according to the target comparison result obtained from the comparison, so as to control the radio frequency communication.
9. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the radio frequency communication control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the control method for radio frequency communication as described in any one of claims 1 to 7.
11. A card reader, characterized in that, It includes a signal-to-noise ratio (SNR) calculation module and a communication control module, wherein the SNR calculation module and the communication control module are used to execute the radio frequency communication control method according to any one of claims 1 to 7.