CN111310506A - Decoding method and device for RFID reader-writer - Google Patents

Decoding method and device for RFID reader-writer Download PDF

Info

Publication number
CN111310506A
CN111310506A CN202010405234.XA CN202010405234A CN111310506A CN 111310506 A CN111310506 A CN 111310506A CN 202010405234 A CN202010405234 A CN 202010405234A CN 111310506 A CN111310506 A CN 111310506A
Authority
CN
China
Prior art keywords
signal
waveform
correlation result
data
type
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010405234.XA
Other languages
Chinese (zh)
Other versions
CN111310506B (en
Inventor
王于波
李德建
唐晓柯
陈家国
马岩
张喆
冯曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Smartchip Microelectronics Technology Co Ltd
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 State Grid Information and Telecommunication Co Ltd, Beijing Smartchip Microelectronics Technology Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202010405234.XA priority Critical patent/CN111310506B/en
Publication of CN111310506A publication Critical patent/CN111310506A/en
Application granted granted Critical
Publication of CN111310506B publication Critical patent/CN111310506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • G06K7/10198Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves setting parameters for the interrogator, e.g. programming parameters and operating modes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10009Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0036Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Electromagnetism (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Quality & Reliability (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

The embodiment of the invention provides a decoding method and a decoding device for an RFID reader-writer, belongs to the technical field of digital signal processing, and solves the problem that the RFID reader-writer in the prior art has a high error rate in a low signal-to-noise ratio environment. The method comprises the following steps: receiving a return signal of the electronic tag; obtaining an in-phase signal and an orthogonal signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal; obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the orthogonal signal; determining data to be decoded and an actual oversampling number in the complex signal according to the return frequency, the preset sampling frequency, the frequency preset deviation range and the coding type of the return signal; and determining a decoding result corresponding to the data to be decoded in the relevant period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number. The embodiment of the invention is suitable for the decoding process of the RFID reader-writer.

Description

Decoding method and device for RFID reader-writer
Technical Field
The invention relates to the technical field of digital signal processing, in particular to a decoding method and a decoding device for an RFID reader-writer.
Background
The Radio Frequency Identification (RFID) technology is a wireless communication technology widely used in logistics, asset management, and article anti-counterfeiting. One of the core technologies of RFID technology is decoding technology.
The RFID reader decodes the received input signal of the electronic tag, and in the prior art, the input signal to be decoded is not specifically defined. The input signals comprise in-phase signals and orthogonal signals, strong signals can be rapidly converted between the in-phase signals and the orthogonal signals in the process of changing the distance between the RFID reader-writer and the electronic tag, and when the processing speed of the RFID reader-writer cannot keep up with the conversion speed of the strong signals, error codes can appear in demodulation.
Disclosure of Invention
The embodiment of the invention aims to provide a decoding method and a decoding device for an RFID reader-writer, which solve the problem that the error rate of the RFID reader-writer in the prior art is high in a low signal-to-noise environment and overcome the problem of fast strong signal conversion caused by relative movement of the RFID reader-writer and an electronic tag.
In order to achieve the above object, an embodiment of the present invention provides a decoding method for an RFID reader, where the method includes: receiving a return signal of the electronic tag; obtaining an in-phase signal and a quadrature signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal; obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal; determining actual oversampling numbers of data to be decoded and single pilot tones in the complex signal according to the return frequency, the preset sampling frequency, a frequency preset deviation range and the coding type of the return signal; and determining a decoding result corresponding to the data to be decoded in the relevant period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number.
Further, the obtaining an in-phase signal and a quadrature signal from the return signal at a preset sampling frequency includes: sampling through an analog-to-digital converter (ADC), and converting an in-phase signal and a quadrature signal in the return signal from an analog domain to a digital domain; and respectively filtering the in-phase signal and the quadrature signal of the digital domain at the preset sampling frequency.
Further, the obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal includes: according to F = (I + j Q) < e >(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
Further, after obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal, the method further includes: comparing the real part of the complex signal with a preset signal threshold; when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal; and when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is an effective signal, and continuing the decoding operation of the return signal.
Further, the determining the actual oversampling number of the single pilot tone and the data to be decoded in the complex signal according to the return frequency, the preset sampling frequency, the preset frequency deviation range, and the coding type of the return signal includes: according to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSSetting the preset sampling frequency as the preset deviation range of the frequency +/-r%; obtaining the value range of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling number; determining a lead code capture coefficient corresponding to each oversampling number in the oversampling number value range according to the oversampling number value range and the coding type of the return signal; taking the lead code capture coefficient corresponding to each oversampling number as the coefficient of the lead code matched filter corresponding to each oversampling number; matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number; taking the oversampling number corresponding to the maximum value in the matching output values as the actual oversampling number of the single pilot tone in the complex signal; and determining a lead code corresponding to the actual oversampling number according to a coding protocol corresponding to the coding type, and taking the data from which the lead code in the complex signal is removed as data to be decoded.
Further, the determining, according to the encoding type of the return signal and the actual oversampling number, a decoding result corresponding to the data to be decoded in the correlation period corresponding to the actual oversampling number includes: determining sampling point values of a first waveform and a second waveform in the correlation period according to the coding type of the return signal and the actual oversampling number; extracting waveform data in the relevant period from the data to be decoded; respectively multiplying and accumulating the waveform data with the sampling point value of the first waveform and the sampling point value of the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform; taking the maximum value of the first type of correlation result and the second type of correlation result as a signal decision result; and determining the waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the relevant period.
Further, the obtaining a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform by performing multiply-accumulate operations on the waveform data and the sample values of the first waveform and the sample values of the second waveform respectively includes: respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and sampling point values of the first waveform to respectively obtain a first leading correlation result, a first current correlation result and a first delaying correlation result corresponding to the first waveform; acquiring absolute values corresponding to a first type of leading correlation result, a first type of current correlation result and a first type of delaying correlation result corresponding to the first waveform, and taking the maximum absolute value as the first type of correlation result corresponding to the first waveform; respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and the sampling point value of the second waveform to respectively obtain a second advanced correlation result, a second current correlation result and a second delayed correlation result corresponding to the second waveform; and acquiring absolute values corresponding to a second type of leading correlation result, a second type of current correlation result and a second type of delaying correlation result corresponding to the second type of waveform, and taking the maximum absolute value as the second type of correlation result corresponding to the second type of waveform.
Further, after the determining the decoding result corresponding to the data to be decoded in the correlation period corresponding to the actual oversampling number, the method further includes: will be provided withComparing the absolute value corresponding to the first type of advanced correlation result corresponding to the first waveform with the absolute value corresponding to the second type of advanced correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the advanced correlation result; comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform with the absolute value corresponding to the second current correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the current correlation result; comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the delayed correlation result; determining a read address mark according to the maximum value of the absolute value of the advanced correlation result, the absolute value of the current correlation result and the absolute value of the delayed correlation result; obtaining the actual starting point of the data to be decoded of the next relevant period according to any one of the following formulas: a. then=Ao+2-flag, or An=Ao+3-2 flag, wherein AnFor the actual starting point, AoA flag is the read address mark at the end point of the current correlation period, the value of the flag is 0 when the absolute value of the advanced correlation result is maximum, the value of the flag is 1 when the absolute value of the current correlation result is maximum, and the value of the flag is 2 when the absolute value of the delayed correlation result is maximum; and extracting the data to be decoded of the next relevant period from the actual starting point for decoding operation.
Correspondingly, the embodiment of the invention also provides a decoding device for the RFID reader-writer, which comprises: the receiving unit is used for receiving a return signal of the electronic tag; the signal sampling unit is used for obtaining an in-phase signal and an orthogonal signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal; the phase calculation unit is used for obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the orthogonal signal; the data to be decoded determining unit is used for determining the actual oversampling number of the data to be decoded and the single pilot tone in the complex signal according to the return frequency, the preset sampling frequency, the preset frequency deviation range and the coding type of the return signal; and the decoding unit is used for determining a decoding result corresponding to the data to be decoded in the relevant period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number.
Further, the signal sampling unit is further configured to convert an in-phase signal and a quadrature signal in the return signal from an analog domain to a digital domain by sampling through an analog-to-digital converter (ADC); and respectively filtering the in-phase signal and the quadrature signal of the digital domain at the preset sampling frequency.
Further, the phase calculation unit is further configured to calculate the phase based on F = (I + j × Q) × e(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
Further, the apparatus further comprises: the threshold comparison unit is used for comparing the real part of the complex signal with a preset signal threshold; when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal; and when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is an effective signal, and continuing the decoding operation of the return signal.
Further, the unit for determining data to be decoded is also configured to determine the data to be decoded according to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSSetting the preset sampling frequency as the preset deviation range of the frequency +/-r%; obtaining the value range of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling number; according to the value range of the oversampling number and the coding of the return signalDetermining a code type, wherein a lead code capture coefficient corresponding to each oversampling number in the value range of the oversampling number is determined; taking the lead code capture coefficient corresponding to each oversampling number as the coefficient of the lead code matched filter corresponding to each oversampling number; matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number; taking the oversampling number corresponding to the maximum value in the matching output values as the actual oversampling number of the single pilot tone in the complex signal; and determining a lead code corresponding to the actual oversampling number according to a coding protocol corresponding to the coding type, and taking the data from which the lead code in the complex signal is removed as data to be decoded.
Further, the decoding unit is further configured to determine sampling point values of the first waveform and the second waveform in the correlation period according to the coding type of the return signal and the actual oversampling number; extracting waveform data in the relevant period from the data to be decoded; respectively multiplying and accumulating the waveform data with the sampling point value of the first waveform and the sampling point value of the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform; taking the maximum value of the first type of correlation result and the second type of correlation result as a signal decision result; and determining the waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the relevant period.
Further, the decoding unit is further configured to perform a multiply-accumulate operation on the waveform data without delay, the waveform data delayed by one sampling point, and the waveform data delayed by two sampling points, and the sampling point values of the first waveform, so as to obtain a first early correlation result, a first current correlation result, and a first late correlation result corresponding to the first waveform, respectively; acquiring absolute values corresponding to a first type of leading correlation result, a first type of current correlation result and a first type of delaying correlation result corresponding to the first waveform, and taking the maximum absolute value as the first type of correlation result corresponding to the first waveform; respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and the sampling point value of the second waveform to respectively obtain a second advanced correlation result, a second current correlation result and a second delayed correlation result corresponding to the second waveform; and acquiring absolute values corresponding to a second type of leading correlation result, a second type of current correlation result and a second type of delaying correlation result corresponding to the second type of waveform, and taking the maximum absolute value as the second type of correlation result corresponding to the second type of waveform.
Further, the apparatus further comprises: a starting point calibration unit, configured to compare an absolute value corresponding to a first type of advanced correlation result corresponding to the first waveform with an absolute value corresponding to a second type of advanced correlation result corresponding to the second waveform, and use a maximum absolute value as an advanced correlation result absolute value; comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform with the absolute value corresponding to the second current correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the current correlation result; comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the delayed correlation result; determining a read address mark according to the maximum value of the absolute value of the advanced correlation result, the absolute value of the current correlation result and the absolute value of the delayed correlation result; obtaining the actual starting point A of the data to be decoded of the next relevant period according to any one of the following formulasn=Ao+2-flag, or An=Ao+3-2 flag, wherein AnFor the actual starting point, AoA flag is the read address mark at the end point of the current correlation period, the value of the flag is 0 when the absolute value of the advanced correlation result is maximum, the value of the flag is 1 when the absolute value of the current correlation result is maximum, and the value of the flag is 2 when the absolute value of the delayed correlation result is maximum; extracting the actual starting pointAnd carrying out decoding operation on the data to be decoded in the next relevant period.
Correspondingly, an embodiment of the present invention further provides an RFID reader, where the system includes: the decoding device for the RFID reader as described above.
Accordingly, the embodiment of the present invention also provides a machine-readable storage medium, which stores instructions for causing a machine to execute the decoding method for the RFID reader-writer described above.
According to the technical scheme, an in-phase signal and an orthogonal signal are obtained from a return signal returned by an electronic tag according to a preset sampling frequency, a complex signal corresponding to the return signal is obtained according to the data phase of the in-phase signal and the orthogonal signal, then the actual oversampling number of data to be decoded and single pilot tone in the complex signal is determined according to the return frequency, the preset sampling frequency, a frequency preset deviation range and the coding type of the return signal, and then the decoding result corresponding to the data to be decoded in a correlation period corresponding to the actual oversampling number is determined according to the coding type of the return signal and the actual oversampling number. The embodiment of the invention is suitable for decoding data of different coding types (FM 0/miller2/miller4/miller 8), enhances the universality of decoding, simultaneously captures the signal lead code by utilizing the time domain matching filtering technology to obtain the data to be decoded, and has strong weak signal detection capability. In addition, the in-phase signal and the orthogonal signal are used for phase calculation and rotation, signal energy is concentrated into one path, the signal-to-noise ratio can be improved, processing resources can be saved, and the problem of rapid strong signal conversion caused by relative movement of the RFID reader-writer and the electronic tag can be solved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
fig. 1 is a schematic flowchart of a decoding method for an RFID reader according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of preamble acquisition and actual oversampling number determination provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of a related processing structure of a first waveform according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a structure of a second waveform according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an implementation structure of error calibration of an actual starting point according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a decoding device for an RFID reader according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another decoding device for an RFID reader according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another decoding device for an RFID reader according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a schematic flowchart of a decoding method for an RFID reader according to an embodiment of the present invention. The embodiment of the invention is suitable for decoding FM0, miller2, miller4 and miller8 coding type data. As shown in fig. 1, the method comprises the steps of:
and step 110, receiving a return signal of the electronic tag.
In the embodiment of the invention, aiming at passive RFID, after the RFID reader transmits microwave signals to the electronic tag, the electronic tag obtains energy through the electromagnetic induction coil to supply power to the electronic tag for a short time, and returns a return signal to the RFID reader.
And 120, obtaining an in-phase signal and a quadrature signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal.
After receiving the return signal of the electronic tag, respectively sampling by using an Analog to digital converter (ADC), and converting the in-phase signal and the quadrature signal in the return signal from an Analog domain to a digital domain. Then, the in-phase signal and the quadrature signal of the digital domain are filtered respectively at the preset sampling frequency. Since the return frequency of the return signal fluctuates up and down, in order to facilitate subsequent processing of the return signal and accurately extract the actual return frequency of the return signal, the preset sampling frequency is a preset multiple of the return frequency of the return signal, for example, the preset multiple is greater than or equal to 16. In addition, the filtering operation can also filter out low-frequency noise, partial direct current and high-frequency components.
And step 130, obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal.
The phase calculation and rotation are carried out by utilizing the in-phase signals and the orthogonal signals, so that the signal energy is concentrated into one path, the signal-to-noise ratio can be improved, the processing resource can be saved, and the problem of rapid strong signal conversion caused by relative movement of the RFID reader-writer and the electronic tag can be solved.
In particular, according to F = (I + j × Q) × e(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
After the phase calculation and the phase rotation, most signals are distributed in the real part of the complex signal, the imaginary part has only a small amount of signals, and the signals of the imaginary part can be ignored in the subsequent processing.
In addition, in order to improve the effectiveness of decoding, the complex signal may be subjected to an effectiveness judgment, thereby determining whether it is an effective signal. For example, the real part of the complex signal is compared to a preset signal threshold. The preset signal threshold may be 3 to 5 times of the set noise power value. And then, when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal. And when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is a valid signal, and continuing the following decoding operation of the return signal.
And 140, determining the actual oversampling number of the data to be decoded and the single pilot tone in the complex signal according to the return frequency, the preset sampling frequency, the preset frequency deviation range and the coding type of the return signal.
And determining that the data to be decoded in the complex signal is actually a preamble for capturing a real part in the complex signal, and removing the preamble to obtain the data to be decoded. When the preamble is acquired, the coefficients of the preamble matching filter need to be determined, i.e., the preamble acquisition coefficients need to be determined. Different coding types correspond to different preamble acquisition coefficients. If the encoding type is MILLER encoding, the preamble capture coefficient may be a coefficient formed by leading the preamble "010111" through MILLER encoding or a coefficient formed by leading the preamble part through MILLER encoding; if the encoding type is FM0 encoding, the preamble capture coefficient may be part of the FM0 preamble "1010 v 1" or "1010 v 1". And the lead code capturing adopts a time domain matched filter to process the received signal, and the output time of the correlation peak is the lead code appearance time of the received signal.
First, the preamble acquisition coefficients need to be determined. According to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSFor the preset sampling frequency, ± r% is the preset deviation range of the frequency determined according to the encoding protocol. Obtaining the value range (H) of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling numberl,Hh). When the oversampling number is calculated, a decimal value exists, and the oversampling number in the value range of the oversampling number is obtained after rounding. In order to cover the frequency deviation range of the return frequency, oversampling a plurality of preamble matching filters are required to be arranged in parallel for preamble acquisition, and the coefficient of each preamble matching filter is a preamble acquisition coefficient. And according to the value range of the oversampling number and the coding type of the return signal, the preamble capture coefficient corresponding to each oversampling number in the value range of the oversampling number can be determined. And then, matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number. And comparing a plurality of over-sampled matched output values, and taking the over-sampled number corresponding to the maximum value in the matched output values as the actual over-sampled number of the single pilot tone in the complex signal. The actual return frequency of the return signal can also be determined from the actual oversampling number, i.e., the ratio of the preset sampling frequency to the actual oversampling number is the actual return frequency. And then, according to the coding protocol corresponding to the coding type, determining the lead code corresponding to the actual oversampling number, and taking the data without the lead code in the complex signal as the data to be decoded.
Taking FM0 encoding type as an example to describe the execution process of step 104, assuming that the return frequency of the return signal is 320KHz and the preset sampling frequency is 6400K, and the frequency preset deviation range is ± 15% according to the encoding protocol, the value range of the oversampling number of the single pilot tone in the complex signal is (6400/(320: 1.15), 6400/(320: 0.85)), that is, the oversampling number includes 8 oversampling numbers in total, that is, the oversampling number includes 17, 18, 19, 20, 21, 22, 23, 24, and 8 preamble matching filters are also arranged in parallel for preamble acquisition.
Then, according to an encoding protocol of the FM0 encoding type, preamble acquisition coefficients corresponding to 8 oversampling numbers are obtained, that is, coefficients of 8 preamble matched filters:
1) the oversampling number of the single pilot tone is 17 for the coefficients of the corresponding preamble matched filter:
11111111111111111_00000000000000000_00000000111111111_00000000000000000_11111111100000000_11111111111111111
2) the oversampling number of the single pilot tone is 18 coefficients of the corresponding preamble matched filter:
111111111111111111_000000000000000000_000000000111111111_000000000000000000_111111111000000000_111111111111111111
3) the oversampling number of the single pilot tone is 19 coefficients of the corresponding preamble matched filter:
1111111111111111111_0000000000000000000_0000000001111111111_0000000000000000000_1111111111000000000_1111111111111111111
4) the oversampling number of the single pilot tone is 20 for the coefficients of the corresponding preamble matched filter:
11111111111111111111_00000000000000000000_00000000001111111111_00000000000000000000_11111111110000000000_11111111111111111111
5) the oversampling number of the single pilot tone is 21, and the coefficient of the corresponding preamble matched filter is:
111111111111111111111_000000000000000000000_000000000011111111111_000000000000000000000_111111111110000000000_111111111111111111111
6) the oversampling number of the single pilot tone is 22 coefficients of the corresponding preamble matched filter:
1111111111111111111111_0000000000000000000000_0000000000011111111111_0000000000000000000000_1111111111100000000000_1111111111111111111111
7) the oversampling number of the single pilot tone is 23 coefficients of the corresponding preamble matched filter:
11111111111111111111111_00000000000000000000000_00000000000011111111111_00000000000000000000000_11111111111100000000000_11111111111111111111111
8) the oversampling number of the single pilot tone is 24 coefficients of the corresponding preamble matched filter:
111111111111111111111111_000000000000000000000000_000000000000011111111111_000000000000000000000000_111111111111000000000000_111111111111111111111111
in addition, in a specific implementation, 0 in the preamble acquisition coefficient is represented by-1.
After the coefficients of the 8 preamble matched filters are determined, the real part of the complex signal can be matched with the 8 preamble matched filters. As shown in fig. 2, a schematic structural diagram of preamble capture and actual oversampling number determination is shown, where 8 preamble matched filters are set in parallel, each preamble matched filter is followed by a corresponding matched output detector, a matched output value corresponding to each oversampling number is obtained by the corresponding matched output detector, a maximum value in the matched output values is obtained by the maximum matched output detector, and the oversampling number corresponding to the maximum value is used as the actual oversampling number of a single pilot tone in the complex signal. Then, according to the coding protocol corresponding to the coding type, the preamble corresponding to the actual oversampling number may be determined, and the data from which the preamble in the complex signal is removed may be used as the data to be decoded.
Step 150, determining a decoding result corresponding to the data to be decoded in the correlation period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number.
After obtaining the actual oversampling number, sample values of the first waveform and the second waveform in the correlation period, that is, sample values of waveform 0 and waveform 1 in the correlation period, may be determined according to the coding type of the return signal and the actual oversampling number, where the correlation period is a time period of multiply-accumulate, that is, the time period of multiply-accumulate in fig. 3 and 4.
For the FM0 coding type, the number of sampling point values of one relevant period is the actual oversampling number; for the MILLER2 coding type, the number of sampling point values of one relevant period is 2 times of the actual oversampling number; for the MILLER4 coding type, the number of sampling point values of one relevant period is 4 times of the actual oversampling number; for the MILLER8 coding type, the number of sampling points in a relevant period is 8 times of the actual oversampling number.
In addition, to decode the data to be decoded, the sample values corresponding to the waveform 0 and the waveform 1 are firstly known.
The method for generating the waveform 0 and the waveform 1 will be described by taking FM0 encoding as an example. Let the actual oversampling number of a correlation period be N, if N is an even number, the waveform 1 in a correlation period: the N data sampling point values are all '1'; waveform 0 in one correlation period: the first half of the relevant period has N/2 '1's, and the second half of the relevant period has N/2 '-1's. If N is odd, waveform 1 in one correlation period: the N data sampling point values are all '1'; waveform 0 in one correlation period: the first half of the correlation period has (N-1)/2 "1", and the second half of the correlation period has (N + 1)/2 "-1".
The generation of waveform 0 and waveform 1 is illustrated by using miller2 code as an example. Let the actual number of oversamples for one correlation period be N,
1) if N is even and N/2 is even, waveform 1 in one correlation period: the first 1/4 portion of the correlation period has N/4 "1 s", the second 1/4 portion of the correlation period has N/4 "-1 s", the third 1/4 portion of the correlation period has N/4 "-1 s", and the fourth 1/4 portion of the correlation period has N/4 "1 s"; waveform 0 in one correlation period: the first 1/4 portion of the associated cycle has N/4 "1 s", the second 1/4 portion of the associated cycle has N/4 "-1 s", the third 1/4 portion of the associated cycle has N/4 "1 s", and the fourth 1/4 portion of the associated cycle has N/4 "-1 s".
2) If N is even and N/2 is odd, waveform 1 in one correlation period: the first 1/4 portion of the correlation period has (N-2)/4 "1", the second 1/4 portion of the correlation period has (N + 2)/4 "-1", the third 1/4 portion of the correlation period has (N-2)/4 "-1", the fourth 1/4 portion of the correlation period has (N + 2)/4 "1"; waveform 0 in one correlation period: there are (N-2)/4 "1" s in the first 1/4 portion of the associated cycle, (N + 2)/4 "-1" s in the second 1/4 portion of the associated cycle, (N-2)/4 "1" s in the third 1/4 portion of the associated cycle, and (N + 2)/4 "-1" s in the fourth 1/4 portion of the associated cycle.
3) If N is odd and (N-1)/2 is even, waveform 1 in one correlation period: the first 1/4 portion of the correlation period has (N-1)/4 "1", the second 1/4 portion of the correlation period has (N-1)/4 "-1", the third 1/4 portion of the correlation period has (N-1)/4 "-1", the fourth 1/4 portion of the correlation period has (N + 3)/4 "1"; waveform 0 in one correlation period: there are (N-1)/4 "1" s in the first 1/4 portion of the associated cycle, (N-1)/4 "-1" s in the second 1/4 portion of the associated cycle, (N-1)/4 "1" s in the third 1/4 portion of the associated cycle, and (N + 3)/4 "-1" s in the fourth 1/4 portion of the associated cycle.
4) If N is odd and (N-1)/2 is odd, waveform 1 in one correlation period: the first 1/4 portion of the correlation period has (N-3)/4 "1", the second 1/4 portion of the correlation period has (N + 1)/4 "-1", the third 1/4 portion of the correlation period has (N + 1)/4 "-1", the fourth 1/4 portion of the correlation period has (N + 1)/4 "1"; waveform 0 in one correlation period: there are (N-3)/4 "1" s in the first 1/4 portion of the associated cycle, (N + 1)/4 "-1" s in the second 1/4 portion of the associated cycle, (N + 1)/4 "1" s in the third 1/4 portion of the associated cycle, and (N + 1)/4 "-1" s in the fourth 1/4 portion of the associated cycle.
Similarly, the generation methods of waveform 0 and waveform 1 encoded by miller4 and miller8 can also be obtained under the condition that the actual oversampling number of a correlation period is determined, and will not be described herein again.
After the sampling point values of the first waveform and the second waveform corresponding to each coding type are obtained, correlation matching can be performed on the waveform data in the correlation period in the data to be decoded.
And respectively carrying out multiplication and accumulation operation on the waveform data and the sampling point values of the first waveform and the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform.
Specifically, the correlation processing structure for the first waveform and the correlation processing structure for the second waveform are shown in fig. 3 and 4.
As shown in fig. 3, the waveform data without delay, the waveform data delayed by one sampling point, and the waveform data delayed by two sampling points are multiplied and accumulated with the sampling point value of the first waveform, so as to obtain a first early correlation result, a first current correlation result, and a first late correlation result corresponding to the first waveform, respectively. Then, the absolute values corresponding to the first type of leading correlation result, the first type of current correlation result and the first type of delaying correlation result corresponding to the first type of waveform are obtained, and the maximum absolute value is taken as the first type of correlation result corresponding to the first type of waveform.
As shown in fig. 4, the waveform data without delay, the waveform data delayed by one sampling point, and the waveform data delayed by two sampling points are multiplied and accumulated with the sampling point value of the second waveform, so as to obtain a second advanced correlation result, a second current correlation result, and a second delayed correlation result corresponding to the second waveform, respectively. Then, the absolute values corresponding to the second type of leading correlation result, the second type of current correlation result and the second type of delaying correlation result corresponding to the second type of waveform are obtained, and the maximum absolute value is used as the second type of correlation result corresponding to the second type of waveform.
Since there are "1" and "-1" at the sample point in the waveform, there may be negative values after the multiplication and accumulation, and therefore the absolute value of the correlation result is taken so that the data in the subsequent comparison are all positive values.
And then, taking the maximum value of the first correlation result and the second correlation result as a signal judgment result, and determining a waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the correlation period. That is, the decision of data 0 or data 1 is made depending on the first correlation result (corresponding to waveform 0) and the second correlation result (corresponding to waveform 1). If the first correlation result is greater than the second correlation result, the decoding result corresponding to the data to be decoded in the correlation period is determined to be 0, otherwise, if the second correlation result is greater than the first correlation result, the decoding result corresponding to the data to be decoded in the correlation period is determined to be 1, that is, the decoding result of the data to be decoded in the first correlation period after the preamble is obtained. Then, the decoding process is continued again with the data to be decoded in the next correlation period through step 105.
However, due to the accumulated error and the data rate jitter, when the data to be decoded in the correlation period is decoded, the error starting point and the accumulated error may cause data decoding errors, and therefore, after the data to be decoded in each correlation period is decoded, it is necessary to perform error calibration on the actual starting point of the next correlation period.
The structure of implementing the error calibration at the actual starting point is shown in fig. 5, where the absolute value corresponding to the first type of the advanced correlation result corresponding to the first waveform (i.e., the absolute value corresponding to the first type of the advanced correlation result of waveform 0) is compared with the absolute value corresponding to the second type of the advanced correlation result corresponding to the second waveform (i.e., the absolute value corresponding to the second type of the advanced correlation result of waveform 1), and the maximum absolute value is used as the advanced correlation result absolute value, for example, if the absolute value corresponding to the first type of the advanced correlation result of waveform 0 is greater than the absolute value corresponding to the second type of the advanced correlation result of waveform 1, the advanced correlation result absolute value is the absolute value corresponding to the first type of the advanced correlation result of waveform 0, and vice versa.
Comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform (i.e., the absolute value corresponding to the first current correlation result of waveform 0) with the absolute value corresponding to the second current correlation result corresponding to the second waveform (i.e., the absolute value corresponding to the second current correlation result of waveform 1), and taking the largest absolute value as the absolute value of the current correlation result.
Comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform (i.e., the absolute value corresponding to the first type of delayed correlation result of waveform 0) with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform (i.e., the absolute value corresponding to the second type of delayed correlation result of waveform 1), and taking the maximum absolute value as the absolute value of the delayed correlation result.
And then, determining a read address mark according to the maximum value of the advance correlation result absolute value, the current correlation result absolute value and the delay correlation result absolute value, wherein the read address mark takes a value of 0 when the advance correlation result absolute value is maximum, the read address mark takes a value of 1 when the current correlation result absolute value is maximum, and the read address mark takes a value of 2 when the delay correlation result absolute value is maximum. The read address flag shown serves as an input parameter for the generation of the actual starting point. Obtaining the actual starting point of the data to be decoded of the next relevant period according to any one of the following formulas:
An=Ao+2-flag, or An=Ao+3-2*flag,
Wherein A isnFor the actual starting point, AoAnd the flag is the reading address mark as the end point of the current relevant period.
Then, the data to be decoded in the next correlation period is extracted from the actual starting point, and the decoding operation is continued, that is, step 105 is executed to perform correlation matching on the sample value of the first waveform and the sample value of the second waveform corresponding to the data to be decoded in the next correlation period and the encoding type, respectively, so as to determine the decoding result of the data to be decoded in the next correlation period through the matching result.
By the embodiment of the invention, the decoding signal-to-noise ratio of the RFID reader-writer can be greatly improved. Particularly, when the RFID reader is in a scene with serious environmental interference, large multipath fading and the like, the RFID reader has extremely high-sensitivity signal detection capability and excellent decoding capability. In the embodiment of the invention, the sampling deviation can be dynamically adjusted in the decoding stage, so that the decoding error caused by the jitter of the frequency of the return signal of the electronic tag is avoided, and the sampling deviation is dynamically adjusted by changing the read address of the waveform correlation processing structure at the end of one correlation period, so as to determine the actual starting point of the next correlation period. In addition, decoding of data of different encoding types (FM 0/miller2/miller4/miller 8) can be realized by the embodiment of the invention, which is convenient for saving processing resources. And estimating the oversampling number by using a time domain matched filtering technology to provide parameters for the related demodulation. In addition, a signal lead code is captured by using a time domain matched filtering technology to obtain data to be decoded, and the method has strong weak signal detection capability. In the decoding process, the embodiment of the invention utilizes the in-phase signal and the orthogonal signal to perform phase calculation and rotation to generate a complex signal, thereby improving the signal-to-noise ratio, saving processing resources and overcoming the problem of fast strong signal conversion caused by relative movement of the RFID reader and the electronic tag.
Correspondingly, fig. 6 is a schematic structural diagram of a decoding device for an RFID reader according to an embodiment of the present invention. As shown in fig. 6, the apparatus 60 includes: a receiving unit 61 for receiving a return signal of the electronic tag; a signal sampling unit 62, configured to obtain an in-phase signal and a quadrature signal from the return signal at a preset sampling frequency, where the preset sampling frequency is a preset multiple of a return frequency of the return signal; a phase calculation unit 63, configured to obtain a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal; a to-be-decoded data determining unit 64, configured to determine, according to the return frequency, the preset sampling frequency, a frequency preset deviation range, and the coding type of the return signal, an actual oversampling number of the to-be-decoded data and the single pilot tone in the complex signal; and a decoding unit 65, configured to determine, according to the encoding type of the return signal and the actual oversampling number, a decoding result corresponding to the data to be decoded in a correlation period corresponding to the actual oversampling number.
Further, the signal sampling unit is further configured to convert an in-phase signal and a quadrature signal in the return signal from an analog domain to a digital domain by sampling through an analog-to-digital converter (ADC); and respectively filtering the in-phase signal and the quadrature signal of the digital domain at the preset sampling frequency.
Further, the phasesThe bit calculation unit is further configured to calculate the bit value based on F = (I + j Q) × e(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
Further, as shown in fig. 7, the apparatus further includes: a threshold comparing unit 66, configured to compare the real part of the complex signal with a preset signal threshold; when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal; and when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is an effective signal, and continuing the decoding operation of the return signal.
Further, the unit for determining data to be decoded is also configured to determine the data to be decoded according to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSSetting the preset sampling frequency as the preset deviation range of the frequency +/-r%; obtaining the value range of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling number; determining a lead code capture coefficient corresponding to each oversampling number in the oversampling number value range according to the oversampling number value range and the coding type of the return signal; taking the lead code capture coefficient corresponding to each oversampling number as the coefficient of the lead code matched filter corresponding to each oversampling number; matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number; taking the oversampling number corresponding to the maximum value in the matching output values as the actual oversampling number of the single pilot tone in the complex signal; and determining a lead code corresponding to the actual oversampling number according to a coding protocol corresponding to the coding type, and taking the data from which the lead code in the complex signal is removed as data to be decoded.
Further, the decoding unit is further configured to determine sampling point values of the first waveform and the second waveform in the correlation period according to the coding type of the return signal and the actual oversampling number; extracting waveform data in the relevant period from the data to be decoded; respectively multiplying and accumulating the waveform data with the sampling point value of the first waveform and the sampling point value of the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform; taking the maximum value of the first type of correlation result and the second type of correlation result as a signal decision result; and determining the waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the relevant period.
Further, the decoding unit is further configured to perform a multiply-accumulate operation on the waveform data without delay, the waveform data delayed by one sampling point, and the waveform data delayed by two sampling points, and the sampling point values of the first waveform, so as to obtain a first early correlation result, a first current correlation result, and a first late correlation result corresponding to the first waveform, respectively; acquiring absolute values corresponding to a first type of leading correlation result, a first type of current correlation result and a first type of delaying correlation result corresponding to the first waveform, and taking the maximum absolute value as the first type of correlation result corresponding to the first waveform; respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and the sampling point value of the second waveform to respectively obtain a second advanced correlation result, a second current correlation result and a second delayed correlation result corresponding to the second waveform; and acquiring absolute values corresponding to a second type of leading correlation result, a second type of current correlation result and a second type of delaying correlation result corresponding to the second type of waveform, and taking the maximum absolute value as the second type of correlation result corresponding to the second type of waveform.
Further, as shown in fig. 8, the apparatus further includes: initial point calibration sheetElement 67, configured to compare an absolute value corresponding to a first type of advanced correlation result corresponding to the first waveform with an absolute value corresponding to a second type of advanced correlation result corresponding to the second waveform, and use a maximum absolute value as an advanced correlation result absolute value; comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform with the absolute value corresponding to the second current correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the current correlation result; comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the delayed correlation result; determining the absolute value of the advanced correlation result, the absolute value of the current correlation result and the absolute value of the delayed correlation result as a read address mark; obtaining the actual starting point of the data to be decoded of the next relevant period according to any one of the following formulas: a. then=Ao+2-flag, or An=Ao+3-2 flag, wherein AnFor the actual starting point, AoA flag is the read address mark at the end point of the current correlation period, the value of the flag is 0 when the absolute value of the advanced correlation result is maximum, the value of the flag is 1 when the absolute value of the current correlation result is maximum, and the value of the flag is 2 when the absolute value of the delayed correlation result is maximum; and extracting the data to be decoded of the next relevant period from the actual starting point for decoding operation.
The specific implementation process of the decoding device for the RFID reader-writer refers to the processing process of the decoding method for the RFID reader-writer.
Correspondingly, an embodiment of the present invention further provides an RFID reader, where the system includes: the decoding device for the RFID reader as described above.
Accordingly, the embodiment of the present invention also provides a machine-readable storage medium, which stores instructions for causing a machine to execute the decoding method for the RFID reader-writer described above.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (18)

1. A decoding method for an RFID reader, the method comprising:
receiving a return signal of the electronic tag;
obtaining an in-phase signal and a quadrature signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal;
obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal;
determining actual oversampling numbers of data to be decoded and single pilot tones in the complex signal according to the return frequency, the preset sampling frequency, a frequency preset deviation range and the coding type of the return signal;
and determining a decoding result corresponding to the data to be decoded in the relevant period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number.
2. The decoding method for an RFID reader/writer according to claim 1, wherein the deriving the in-phase signal and the quadrature signal from the return signal at the preset sampling frequency comprises:
sampling through an analog-to-digital converter (ADC), and converting an in-phase signal and a quadrature signal in the return signal from an analog domain to a digital domain;
and respectively filtering the in-phase signal and the quadrature signal of the digital domain at the preset sampling frequency.
3. The decoding method for an RFID reader/writer according to claim 1, wherein the obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal comprises:
according to F = (I + j Q) < e >(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
4. The decoding method for an RFID reader/writer according to claim 1, characterized in that after the obtaining of the complex signal corresponding to the return signal according to the data phase of the in-phase signal and the quadrature signal, the method further comprises:
comparing the real part of the complex signal with a preset signal threshold;
when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal;
and when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is an effective signal, and continuing the decoding operation of the return signal.
5. The decoding method for the RFID reader/writer according to claim 1, wherein the determining the actual oversampling number of the data to be decoded and the single pilot tone in the complex signal according to the return frequency, the preset sampling frequency, the preset deviation range of the frequency, and the encoding type of the return signal comprises:
according to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSSetting the preset sampling frequency as the preset deviation range of the frequency +/-r%;
obtaining the value range of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling number;
determining a lead code capture coefficient corresponding to each oversampling number in the oversampling number value range according to the oversampling number value range and the coding type of the return signal;
taking the lead code capture coefficient corresponding to each oversampling number as the coefficient of the lead code matched filter corresponding to each oversampling number;
matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number;
taking the oversampling number corresponding to the maximum value in the matching output values as the actual oversampling number of the single pilot tone in the complex signal;
and determining a lead code corresponding to the actual oversampling number according to a coding protocol corresponding to the coding type, and taking the data from which the lead code in the complex signal is removed as data to be decoded.
6. The decoding method for the RFID reader/writer according to claim 1, wherein the determining, according to the encoding type of the return signal and the actual oversampling number, the decoding result corresponding to the data to be decoded in the correlation period corresponding to the actual oversampling number includes:
determining sampling point values of a first waveform and a second waveform in the correlation period according to the coding type of the return signal and the actual oversampling number;
extracting waveform data in the relevant period from the data to be decoded;
respectively multiplying and accumulating the waveform data with the sampling point value of the first waveform and the sampling point value of the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform;
taking the maximum value of the first type of correlation result and the second type of correlation result as a signal decision result;
and determining the waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the relevant period.
7. The decoding method for an RFID reader/writer according to claim 6, wherein the obtaining a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform by multiplying and accumulating the waveform data with the sample value of the first waveform and the sample value of the second waveform respectively comprises:
respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and sampling point values of the first waveform to respectively obtain a first leading correlation result, a first current correlation result and a first delaying correlation result corresponding to the first waveform;
acquiring absolute values corresponding to a first type of leading correlation result, a first type of current correlation result and a first type of delaying correlation result corresponding to the first waveform, and taking the maximum absolute value as the first type of correlation result corresponding to the first waveform;
respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and the sampling point value of the second waveform to respectively obtain a second advanced correlation result, a second current correlation result and a second delayed correlation result corresponding to the second waveform;
and acquiring absolute values corresponding to a second type of leading correlation result, a second type of current correlation result and a second type of delaying correlation result corresponding to the second type of waveform, and taking the maximum absolute value as the second type of correlation result corresponding to the second type of waveform.
8. The decoding method for the RFID reader-writer according to claim 7, wherein after the determining the decoding result corresponding to the data to be decoded in the correlation period corresponding to the actual oversampling number, the method further comprises:
comparing the absolute value corresponding to the first type of advanced correlation result corresponding to the first waveform with the absolute value corresponding to the second type of advanced correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the advanced correlation result;
comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform with the absolute value corresponding to the second current correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the current correlation result;
comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the delayed correlation result;
determining a read address mark according to the maximum value of the absolute value of the advanced correlation result, the absolute value of the current correlation result and the absolute value of the delayed correlation result;
obtaining the actual starting point of the data to be decoded of the next relevant period according to any one of the following formulas:
An=Ao+2-flag,
or An=Ao+3-2*flag,
Wherein A isnFor the actual starting point, AoA flag is the read address mark at the end point of the current correlation period, the value of the flag is 0 when the absolute value of the advanced correlation result is maximum, the value of the flag is 1 when the absolute value of the current correlation result is maximum, and the value of the flag is 2 when the absolute value of the delayed correlation result is maximum;
and extracting the data to be decoded of the next relevant period from the actual starting point for decoding operation.
9. A decoding apparatus for an RFID reader, the apparatus comprising:
the receiving unit is used for receiving a return signal of the electronic tag;
the signal sampling unit is used for obtaining an in-phase signal and an orthogonal signal from the return signal at a preset sampling frequency, wherein the preset sampling frequency is a preset multiple of the return frequency of the return signal;
the phase calculation unit is used for obtaining a complex signal corresponding to the return signal according to the data phase of the in-phase signal and the orthogonal signal;
the data to be decoded determining unit is used for determining the actual oversampling number of the data to be decoded and the single pilot tone in the complex signal according to the return frequency, the preset sampling frequency, the preset frequency deviation range and the coding type of the return signal;
and the decoding unit is used for determining a decoding result corresponding to the data to be decoded in the relevant period corresponding to the actual oversampling number according to the encoding type of the return signal and the actual oversampling number.
10. The decoding device for the RFID reader/writer according to claim 9, wherein the signal sampling unit is further configured to convert the in-phase signal and the quadrature signal in the return signal from analog domain to digital domain by sampling through an analog-to-digital converter ADC; and respectively filtering the in-phase signal and the quadrature signal of the digital domain at the preset sampling frequency.
11. The decoding device for an RFID reader/writer according to claim 9, wherein the phase calculation unit is further configured to calculate the phase by F = (I + j × Q) × e(-j*Φ)And obtaining a complex signal F corresponding to the return signal, wherein I is the in-phase signal, Q is the quadrature signal, and phi is a channel phase calculation value, wherein phi is approximately equal to atan (Q/I).
12. The decoding device for an RFID reader/writer according to claim 9, characterized in that the device further comprises: the threshold comparison unit is used for comparing the real part of the complex signal with a preset signal threshold; when the real part of the complex signal is lower than the preset signal threshold, determining that the return signal of the electronic tag is an invalid signal, and ending the decoding operation of the return signal; and when the real part of the complex signal is not lower than the preset signal threshold, determining that the return signal of the electronic tag is an effective signal, and continuing the decoding operation of the return signal.
13. The decoding device for an RFID reader/writer according to claim 9, wherein the data to be decoded determining unit is further configured to determine the decoding device according to Hl=FS/[F0*(1+r)],Hh=FS/[F0*(1-r)]Obtaining the lower limit value H of the oversampling number of the single pilot tone in the complex signallAnd an upper limit value HhWherein F is0For said return frequency, FSIs the preset sampling frequency of +/-r%Presetting a deviation range for the frequency; obtaining the value range of the oversampling number of the single pilot tone in the complex signal according to the lower limit value and the upper limit value of the oversampling number; determining a lead code capture coefficient corresponding to each oversampling number in the oversampling number value range according to the oversampling number value range and the coding type of the return signal; taking the lead code capture coefficient corresponding to each oversampling number as the coefficient of the lead code matched filter corresponding to each oversampling number; matching the real part of the complex signal with a lead code matched filter corresponding to each oversampling number to obtain a matched output value corresponding to each oversampling number; taking the oversampling number corresponding to the maximum value in the matching output values as the actual oversampling number of the single pilot tone in the complex signal; and determining a lead code corresponding to the actual oversampling number according to a coding protocol corresponding to the coding type, and taking the data from which the lead code in the complex signal is removed as data to be decoded.
14. The decoding device for the RFID reader/writer according to claim 9, wherein the decoding unit is further configured to determine sampling values of the first waveform and the second waveform in the correlation period according to the coding type of the return signal and the actual oversampling number; extracting waveform data in the relevant period from the data to be decoded; respectively multiplying and accumulating the waveform data with the sampling point value of the first waveform and the sampling point value of the second waveform to respectively obtain a first correlation result corresponding to the first waveform and a second correlation result corresponding to the second waveform; taking the maximum value of the first type of correlation result and the second type of correlation result as a signal decision result; and determining the waveform corresponding to the signal judgment result as a decoding result corresponding to the data to be decoded in the relevant period.
15. The decoding device for an RFID reader/writer according to claim 14, wherein the decoding unit is further configured to multiply and accumulate the waveform data without delay, the waveform data delayed by one sampling point, and the waveform data delayed by two sampling points with the sampling point value of the first waveform to obtain a first early correlation result, a first current correlation result, and a first late correlation result corresponding to the first waveform; acquiring absolute values corresponding to a first type of leading correlation result, a first type of current correlation result and a first type of delaying correlation result corresponding to the first waveform, and taking the maximum absolute value as the first type of correlation result corresponding to the first waveform; respectively carrying out multiplication and accumulation operations on the waveform data without delay, the waveform data delayed by a sampling point and the waveform data delayed by two sampling points and the sampling point value of the second waveform to respectively obtain a second advanced correlation result, a second current correlation result and a second delayed correlation result corresponding to the second waveform; and acquiring absolute values corresponding to a second type of leading correlation result, a second type of current correlation result and a second type of delaying correlation result corresponding to the second type of waveform, and taking the maximum absolute value as the second type of correlation result corresponding to the second type of waveform.
16. The decoding device for an RFID reader/writer according to claim 15, characterized in that the device further comprises: a starting point calibration unit, configured to compare an absolute value corresponding to a first type of advanced correlation result corresponding to the first waveform with an absolute value corresponding to a second type of advanced correlation result corresponding to the second waveform, and use a maximum absolute value as an advanced correlation result absolute value; comparing the absolute value corresponding to the first current correlation result corresponding to the first waveform with the absolute value corresponding to the second current correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the current correlation result; comparing the absolute value corresponding to the first type of delayed correlation result corresponding to the first waveform with the absolute value corresponding to the second type of delayed correlation result corresponding to the second waveform, and taking the maximum absolute value as the absolute value of the delayed correlation result; according to the absolute value of the advanced correlation result, the absolute value of the current correlation result and the delayed correlation resultDetermining a read address flag for a maximum value of the absolute values; obtaining the actual starting point of the data to be decoded of the next relevant period according to any one of the following formulas: a. then=Ao+2-flag, or An=Ao+3-2 flag, wherein AnFor the actual starting point, AoA flag is the read address mark at the end point of the current correlation period, the value of the flag is 0 when the absolute value of the advanced correlation result is maximum, the value of the flag is 1 when the absolute value of the current correlation result is maximum, and the value of the flag is 2 when the absolute value of the delayed correlation result is maximum; and extracting the data to be decoded of the next relevant period from the actual starting point for decoding operation.
17. An RFID reader, characterized in that the RFID reader comprises: decoding device for an RFID reader according to any of claims 9 to 16.
18. A machine-readable storage medium having stored thereon instructions for causing a machine to execute the decoding method for an RFID reader/writer according to any one of claims 1 to 8.
CN202010405234.XA 2020-05-14 2020-05-14 Decoding method and device for RFID reader-writer Active CN111310506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010405234.XA CN111310506B (en) 2020-05-14 2020-05-14 Decoding method and device for RFID reader-writer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010405234.XA CN111310506B (en) 2020-05-14 2020-05-14 Decoding method and device for RFID reader-writer

Publications (2)

Publication Number Publication Date
CN111310506A true CN111310506A (en) 2020-06-19
CN111310506B CN111310506B (en) 2020-08-04

Family

ID=71147564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010405234.XA Active CN111310506B (en) 2020-05-14 2020-05-14 Decoding method and device for RFID reader-writer

Country Status (1)

Country Link
CN (1) CN111310506B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102582A (en) * 2022-08-24 2022-09-23 北京智芯微电子科技有限公司 Decoding method and device for RFID reader-writer, storage medium and RFID reader-writer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070098089A (en) * 2006-03-31 2007-10-05 엘지이노텍 주식회사 Radio frequency identification reader
CN101320419A (en) * 2008-06-26 2008-12-10 桂林瀚特信息产业有限公司 Ultrahigh frequency RFID label reader-writer
CN102222246A (en) * 2011-06-25 2011-10-19 深圳市远望谷信息技术股份有限公司 Carrier inhibiting method for radio frequency identification reader-writer and radio frequency device
CN106374932A (en) * 2016-09-30 2017-02-01 湘潭大学 Decoder and decoding method of dual-mode UHF-RFID reader-writer
CN108256370A (en) * 2016-12-29 2018-07-06 航天信息股份有限公司 A kind of coding/decoding method of RFID reader and decoding system
CN108268807A (en) * 2017-12-22 2018-07-10 中国电子科技集团公司第三十研究所 A kind of demodulation method to ultrahigh frequency RFID signal under low signal-to-noise ratio

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070098089A (en) * 2006-03-31 2007-10-05 엘지이노텍 주식회사 Radio frequency identification reader
CN101320419A (en) * 2008-06-26 2008-12-10 桂林瀚特信息产业有限公司 Ultrahigh frequency RFID label reader-writer
CN102222246A (en) * 2011-06-25 2011-10-19 深圳市远望谷信息技术股份有限公司 Carrier inhibiting method for radio frequency identification reader-writer and radio frequency device
CN106374932A (en) * 2016-09-30 2017-02-01 湘潭大学 Decoder and decoding method of dual-mode UHF-RFID reader-writer
CN108256370A (en) * 2016-12-29 2018-07-06 航天信息股份有限公司 A kind of coding/decoding method of RFID reader and decoding system
CN108268807A (en) * 2017-12-22 2018-07-10 中国电子科技集团公司第三十研究所 A kind of demodulation method to ultrahigh frequency RFID signal under low signal-to-noise ratio

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102582A (en) * 2022-08-24 2022-09-23 北京智芯微电子科技有限公司 Decoding method and device for RFID reader-writer, storage medium and RFID reader-writer
CN115102582B (en) * 2022-08-24 2023-01-24 北京智芯微电子科技有限公司 Decoding method and device for RFID reader-writer, storage medium and RFID reader-writer
WO2024040650A1 (en) * 2022-08-24 2024-02-29 北京智芯微电子科技有限公司 Decoding method and apparatus for rfid reader/writer, storage medium, and rfid reader/writer

Also Published As

Publication number Publication date
CN111310506B (en) 2020-08-04

Similar Documents

Publication Publication Date Title
CN110690931B (en) Digital signal adaptive code rate estimation method and device based on multi-wavelet-base combination
WO2018082356A1 (en) Method for demodulating frequency modulation signal of pma standard wireless charging device
CN111310506B (en) Decoding method and device for RFID reader-writer
CN115102582B (en) Decoding method and device for RFID reader-writer, storage medium and RFID reader-writer
CN105515753B (en) A kind of RFID lead code detecting method based on FPGA
CN103634263A (en) Continuous-phase frequency-shift keying digital demodulation device and demodulation method implemented by same
KR20120025747A (en) Method and apparatus of a passive radio frequency identification reader digital demodulation for manchester subcarrier signal
CN116366092A (en) Doppler capturing method, device and storage medium
US8724761B2 (en) Symbol synchronization apparatus and method of passive RFID reader
CN111641420B (en) Signal detection and acquisition method, device, receiver and storage medium
KR100957700B1 (en) Apparatus and method for demodulating sub-carrier tag signal in rfid reader
JP4779986B2 (en) Wireless tag reader
CN115347978B (en) Method, device and storage medium for identifying AIS frame header data
US8942278B2 (en) Systems and methods for detecting data collisions for a near field communication system
CN114266264A (en) Signal demodulation method, apparatus, receiver and computer readable storage medium
CN108933748B (en) Method and system for demodulating frequency-modulated signal capable of locking frequency change
Zeng et al. A Physical‐Layer UHF RFID Tag Collision Resolution Based on Miller Code
KR20170002288A (en) Frame bit detector in near field communications
CN115642937B (en) Baseband signal processing system and method in frequency division multiplexing type RFID reader-writer
CN117240675B (en) Demodulation method for NFC signal, NFC device and storage medium
CN110401608B (en) Bit synchronization for on/off keying (OOK) communications
KR100943766B1 (en) Method for excluding offset noise, method and apparatus for receiving tag signal
CN114759680B (en) Method and system for identifying topology of station area
CN109698804B (en) Demodulation module, demodulation circuit and high-frequency card reader
CN104639483A (en) Digital correlation demodulation circuit based on 14443-BPSK (binary phase shift keying) subcarriers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Zhao Dongyan

Inventor after: Wang Yubo

Inventor after: Li Dejian

Inventor after: Chen Jiaguo

Inventor after: Zhang Xiaoyi

Inventor after: Ma Yan

Inventor after: Zhang Zhe

Inventor after: Feng Xi

Inventor after: Tang Xiaoke

Inventor before: Wang Yubo

Inventor before: Li Dejian

Inventor before: Tang Xiaoke

Inventor before: Chen Jiaguo

Inventor before: Ma Yan

Inventor before: Zhang Zhe

Inventor before: Feng Xi

CB03 Change of inventor or designer information
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200619

Assignee: Beijing thinking Semiconductor Technology Co.,Ltd.

Assignor: BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Contract record no.: X2022990000698

Denomination of invention: Decoding method and device for RFID reader writer

Granted publication date: 20200804

License type: Common License

Record date: 20220923

Application publication date: 20200619

Assignee: RIZHAO SHANCHUAN ELECTRONIC INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Contract record no.: X2022990000697

Denomination of invention: Decoding method and device for RFID reader writer

Granted publication date: 20200804

License type: Common License

Record date: 20220923

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200619

Assignee: CHINA GRIDCOM Co.,Ltd.

Assignor: BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Contract record no.: X2022980018383

Denomination of invention: Decoding method and device for RFID reader writer

Granted publication date: 20200804

License type: Common License

Record date: 20221019

EE01 Entry into force of recordation of patent licensing contract