CN115333654B - Frequency offset detection method, system and electronic equipment - Google Patents

Frequency offset detection method, system and electronic equipment Download PDF

Info

Publication number
CN115333654B
CN115333654B CN202211255118.XA CN202211255118A CN115333654B CN 115333654 B CN115333654 B CN 115333654B CN 202211255118 A CN202211255118 A CN 202211255118A CN 115333654 B CN115333654 B CN 115333654B
Authority
CN
China
Prior art keywords
frequency
signal power
power strength
strength values
sum
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.)
Active
Application number
CN202211255118.XA
Other languages
Chinese (zh)
Other versions
CN115333654A (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.)
Chengdu Aich Technology Co Ltd
Original Assignee
Chengdu Aich 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 Chengdu Aich Technology Co Ltd filed Critical Chengdu Aich Technology Co Ltd
Priority to CN202211255118.XA priority Critical patent/CN115333654B/en
Publication of CN115333654A publication Critical patent/CN115333654A/en
Application granted granted Critical
Publication of CN115333654B publication Critical patent/CN115333654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The invention discloses a frequency deviation detection method, a frequency deviation detection system and electronic equipment, and relates to the field of automatic testing of wireless radio frequency signal quality. The method comprises the following steps: the control equipment acquires a single-frequency control signal with the initial frequency, which is sent by the equipment to be tested; the control device acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies; the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values; the control equipment determines the frequency deviation based on the initial frequency and the actual frequency so as to be separated from a professional testing instrument and finish the automatic measurement of the frequency deviation, the process is simple, the frequency deviation result is accurate, the efficiency is improved, and further, the reliability and the stability of the frequency deviation detection method are improved.

Description

Frequency offset detection method, system and electronic equipment
Technical Field
The invention relates to the field of wireless radio frequency signal quality automatic testing, in particular to a frequency deviation detection method, a frequency deviation detection system and electronic equipment.
Background
With the wide application of wireless communication protocols such as wifi, bluetooth and ZigBee, a large number of wireless products need to be tested for hardware signal quality, especially frequency offset, and the influence on the signal quality and data accuracy of wireless communication is large.
However, the frequency offset test of the current wireless device usually depends on a plurality of professional test instruments, so that the cost is high, the professional requirements on the testers are high, the test efficiency is low, and the reliability and stability of the frequency offset test are reduced.
Disclosure of Invention
The invention aims to provide a frequency offset detection method, a frequency offset detection system and electronic equipment, and aims to solve the problems that the frequency offset test of the existing wireless equipment usually depends on a plurality of professional test instruments, the cost is high, the professional requirements on testers are high, the test efficiency is low, and the reliability and the stability of the frequency offset test are reduced.
In a first aspect, the present invention provides a frequency offset detection method, which is applied to a frequency offset detection system including a control device, and a device to be detected and a frequency offset measurement device, which are connected to the control device, respectively, wherein the device to be detected is connected to the frequency offset measurement device; the method comprises the following steps:
the control equipment acquires a single-frequency control signal with the initial frequency, which is sent by the equipment to be tested;
the control device acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies;
the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values;
the control device determines a frequency offset based on the initial frequency and the actual frequency.
Under the condition of adopting the technical scheme, the control equipment acquires a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested; the control equipment acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring equipment to work under a plurality of different preset frequencies; the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values; the control equipment determines the frequency deviation based on the initial frequency and the actual frequency, can be separated from a professional testing instrument, completes the automatic measurement of the frequency deviation, has simple process and accurate frequency deviation result, improves the efficiency, and further improves the reliability and the stability of the frequency deviation detection method.
In a possible implementation manner, the obtaining, by the control device, a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies includes:
the control device determines a plurality of received signal power strength values corresponding to the single-frequency control signal under the condition that the frequency deviation measuring device works under a plurality of preset frequencies, and obtains a first sampling data set which comprises the plurality of preset frequencies and a plurality of corresponding received signal power strength values in a one-to-one correspondence mode.
In a possible implementation manner, the determining, by the control device, the actual frequency of the device under test based on a plurality of different preset frequencies and a plurality of received signal power strength values includes:
the control device performs zeroing processing on two signal power strength values corresponding to frequencies at two ends of a plurality of different preset frequencies, and determines a second sampling data set comprising corresponding relations between the preset frequencies and corresponding received signal power strength values based on the first sampling data set;
acquiring center frequency points of a plurality of preset frequencies in the second sampling data set;
determining a sum of first signal power strength values in the second set of sampled data that are less than the center frequency point;
determining a sum of second signal power strength values of the second set of sampled data that is greater than or equal to the center frequency point;
and determining the actual frequency of the device to be tested based on the sum of the first signal power strength values and the sum of the second signal power strength values.
In one possible implementation manner, the determining the actual frequency of the device under test based on the sum of the first signal power strength value and the sum of the second signal power strength value includes:
and under the condition that the sum of the first signal power strength values is equal to the sum of the second signal power strength values, determining the frequency corresponding to the central frequency point as the actual frequency of the equipment to be tested.
In a possible implementation manner, the determining an actual frequency of the device under test based on the sum of the first signal power strength value and the sum of the second signal power strength value further includes:
and under the condition that the sum of the first signal power strength values is smaller than the sum of the second signal power strength values, performing right shift processing on the center frequency point according to a right shift preset condition to obtain a right shift center frequency point until the right shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the right shift center frequency point is the actual frequency of the equipment to be tested.
In a possible implementation manner, the determining an actual frequency of the device under test based on the sum of the first signal power strength value and the sum of the second signal power strength value further includes:
and under the condition that the sum of the first signal power strength values is greater than the sum of the second signal power strength values, performing left shift processing on the center frequency point according to a left shift preset condition to obtain a left shift center frequency point until the left shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the left shift center frequency point is the actual frequency of the equipment to be tested.
In a possible implementation manner, after the controlling device obtains a single-frequency control signal with an initial frequency sent by the device to be tested, the controlling device further includes:
the control device sends a configuration command to the frequency deviation measurement device, so that the frequency deviation measurement device responds to the configuration command, is in a modulation mode, and enters a signal receiving mode.
In a possible implementation manner, the plurality of different preset frequencies are a plurality of frequencies which increase sequentially according to a preset frequency increment.
In a second aspect, the present invention further provides a frequency offset detection system, including a control device, and a device to be tested and a frequency offset measurement device, which are respectively connected to the control device, wherein the device to be tested is connected to the frequency offset measurement device;
the control equipment is used for acquiring a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested;
the control device is further configured to obtain a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies;
the control equipment is further used for determining the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values;
the control apparatus is further configured to determine a frequency offset based on the initial frequency and the actual frequency.
The beneficial effect of the frequency offset detection system provided in the second aspect is the same as that of the frequency offset detection method described in the first aspect or any possible implementation manner of the first aspect, and is not described herein again.
In a third aspect, the present invention also provides an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of frequency offset detection described in any of the possible implementations of the first aspect.
The beneficial effect of the electronic device provided in the third aspect is the same as that of the frequency offset detection method described in the first aspect or any possible implementation manner of the first aspect, and details are not repeated here.
Drawings
The accompanying drawings, which are included to provide a further understanding 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 invention and do not limit the invention. In the drawings:
fig. 1 is a schematic structural diagram illustrating a frequency offset detection system according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating frequency response characteristics of band-pass filtering of a frequency deviation measuring apparatus according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a method for detecting frequency offset according to an embodiment of the present application;
fig. 4 is a schematic flow chart illustrating another frequency offset detection method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a chip according to an embodiment of the present invention.
Reference numerals:
101-a control device; 102-a device under test; 103-a frequency offset measurement device; 400-an electronic device; 410-a processor; 420-a communication interface; 430-a memory; 440-a communication line; 500-chip; 540-bus system.
Detailed Description
In order to facilitate clear description of technical solutions of the embodiments of the present invention, in the embodiments of the present invention, terms such as "first" and "second" are used to distinguish the same items or similar items having substantially the same functions and actions. For example, the first threshold and the second threshold are only used for distinguishing different thresholds, and the sequence order of the thresholds is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It is to be understood that the terms "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "such as" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a and b combination, a and c combination, b and c combination, or a, b and c combination, wherein a, b and c can be single or multiple.
Fig. 1 shows a schematic structural diagram of a frequency offset detection system provided in an embodiment of the present application, as shown in fig. 1, including a control device 101, and a device under test 102 and a frequency offset measurement device 103 respectively connected to the control device 101, where the device under test 102 is connected to the frequency offset measurement device 103;
the control equipment is used for acquiring a single-frequency control signal which is sent by the equipment to be tested and has the frequency as the initial frequency;
the control device is further configured to obtain a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies;
the control equipment is further used for determining the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values;
the control device is further configured to determine a frequency offset based on the initial frequency and the actual frequency.
In the application, the device to be tested is a wireless radio frequency device which needs to perform frequency offset measurement, the frequency offset measurement device is a device which can receive wireless signals and measure the signal power intensity, and the control device has flow control and calculation capabilities and can complete all control flows and calculation processes. The signal transmitted by the device to be measured is transmitted to the frequency deviation measuring device through the communication link, and the control device is connected with the device to be measured and the frequency deviation measuring device through the control interface respectively.
Specifically, the frequency offset measuring apparatus has a frequency response characteristic of bandpass filtering, and fig. 2 shows a schematic diagram of the frequency response characteristic of bandpass filtering of the frequency offset measuring apparatus provided in this embodiment of the present application, as shown in fig. 2, when the operating frequency of the frequency offset measuring apparatus is within a bandwidth B of a received signal frequency f0, the received signal power strength measured by the frequency offset measuring apparatus is substantially maintained at a maximum value, and when the operating frequency of the frequency offset measuring apparatus exceeds the bandwidth B, the received signal power strength is substantially maintained at a minimum value.
For example, the device under test may provide a UART (universal asynchronous serial interface) for other devices to perform communication control, the frequency offset measurement device provides an SPI (serial peripheral interface) for other devices to perform communication control, an MCU (single chip microcomputer) may be selected as the control device, the DUT device under test and the frequency offset measurement device are connected through the UART and the SPI, respectively, and the DUT device under test and the frequency offset measurement device may be connected through an RF radio frequency connection line.
To sum up, the frequency offset detection system provided in the embodiment of the present application includes a control device, and a device to be tested and a frequency offset measurement device that are respectively connected to the control device, where the device to be tested is connected to the frequency offset measurement device; the control equipment is used for acquiring a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested; the control device is further configured to obtain a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies; the control equipment is further used for determining the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values; the control equipment is also used for determining frequency deviation based on the initial frequency and the actual frequency, so that a professional testing instrument can be separated, and automatic measurement of the frequency deviation of the wireless radio frequency signal is completed by adopting low-cost frequency deviation measuring equipment, so that the cost is reduced, and the efficiency is improved.
Fig. 3 shows a schematic flow diagram of a frequency offset detection method provided in an embodiment of the present application, and as shown in fig. 3, the method is applied to a frequency offset detection system including a control device and a device to be tested and a frequency offset measurement device respectively connected to the control device, where the device to be tested is connected to the frequency offset measurement device, and the frequency offset detection method includes:
step 201: and the control equipment acquires a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested.
In this application, the control device may configure the sending frequency of the device under test as the initial frequency f 0 A single frequency signal of (a).
Step 202: the control device obtains a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies.
In this application, the control device determines that the frequency offset measurement device works under a plurality of preset frequencies, the single-frequency control signal corresponds to a plurality of received signal power strength values, and a first sampling data set including the plurality of preset frequencies and a plurality of received signal power strength values corresponding to the plurality of preset frequencies in a one-to-one correspondence manner is obtained.
In this application, the plurality of different preset frequencies are a plurality of frequencies that increase sequentially according to a preset frequency increment.
Step 203: and the control equipment determines the actual frequency of the equipment to be tested based on the plurality of different preset frequencies and the plurality of received signal power strength values.
The specific implementation process of step 203 may include the following sub-steps:
substep A1: the control device performs zeroing processing on two signal power strength values corresponding to frequencies at two ends of the preset frequencies, and determines a second sampling data set including corresponding relations between the preset frequencies and the corresponding received signal power strength values based on the first sampling data set.
Substep A2: acquiring center frequency points of a plurality of preset frequencies in the second sampling data set;
substep A3: determining a sum of first signal power strength values in the second set of sampled data that are less than the center frequency point;
substep A4: determining a sum of second signal power strength values of the second set of sampled data that is greater than or equal to the center frequency point;
substep A5: and determining the actual frequency of the equipment to be tested based on the sum of the first signal power strength value and the second signal power strength value.
Step 204: the control device determines a frequency offset based on the initial frequency and the actual frequency.
In the application, after the actual frequency of the received signal is obtained through the calculation in the above process, the frequency offset of the DUT to-be-tested device signal can be obtained.
According to the method and the device, the actual frequency of the received signal is obtained through the calculation process through the power intensity of the received signal sampled by the frequency deviation measuring device, the process is simple, and the result is accurate.
To sum up, in the frequency offset detection method provided in the embodiment of the present application, the control device obtains a single-frequency control signal with an initial frequency, where the frequency is sent by the device to be detected; the control device acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies; the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values; the control equipment determines the frequency deviation based on the initial frequency and the actual frequency, can be separated from a professional testing instrument, completes the automatic measurement of the frequency deviation, has simple process and accurate frequency deviation result, improves the efficiency, and further improves the reliability and the stability of the frequency deviation detection method.
Fig. 4 shows a schematic flowchart of another frequency offset detection method provided in an embodiment of the present application, and as shown in fig. 4, the frequency offset detection method includes:
step 301: and the control equipment acquires a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested.
In this application, the control device may configure the sending frequency of the device under test as the initial frequency f 0 A single frequency signal of (a).
Step 302: the control device sends a configuration command to the frequency deviation measurement device, so that the frequency deviation measurement device responds to the configuration command, is in a modulation mode, and enters a signal receiving mode.
Step 303: the control device determines a plurality of received signal power strength values corresponding to the single-frequency control signal under the condition that the frequency deviation measuring device works under a plurality of preset frequencies, and obtains a first sampling data set which comprises the plurality of preset frequencies and a plurality of corresponding received signal power strength values in a one-to-one correspondence mode.
In this application, the plurality of different preset frequencies are a plurality of frequencies that increase in sequence according to a preset frequency increment.
OptionalThe plurality of preset frequencies may include f 1 、f 2 、f 3 、...、f N
Specifically, the frequency deviation measuring devices can be set to work at f respectively 1 、f 2 、f 3 、...、f N Obtaining the received signal power strength P corresponding to the working frequency point 1 、P 2 、P 3 、...、P N Thus, N sample data sets (f) are obtained 1 ,P 1 )、(f 2 ,P 2 )、(f 3 ,P 3 ),...、(f N ,P N ) (ii) a Wherein f is 1 For the initial operating frequency, f, of the frequency deviation measuring apparatus 1 =f 0 -△B,f 2 =f 1 +δ,f 3 =f 2 +δ,...,f N =f N-1 +δ,f N To the final operating frequency, f N =f 0 +. DELTA B, where. DELTA B>(BW/2), BW is the bandwidth, delta B is the difference value of the leftmost sampling frequency point and the rightmost sampling frequency point from the central frequency point, and delta is the sampling interval frequency (the delta value is far less than Delta B, delta x (N-1) =2 Delta B).
Step 304: and the control equipment determines the actual frequency of the equipment to be tested based on the plurality of different preset frequencies and the plurality of received signal power strength values.
The specific implementation process of step 304 may include the following sub-steps:
substep A1: the control device performs zeroing processing on two signal power strength values corresponding to frequencies at two ends of the preset frequencies, and determines a second sampling data set including corresponding relations between the preset frequencies and the corresponding received signal power strength values based on the first sampling data set.
Substep A2: acquiring center frequency points of a plurality of preset frequencies in the second sampling data set;
substep A3: determining a sum of first signal power strength values in the second set of sampled data that are less than the center frequency point;
substep A4: determining a sum of second signal power strength values of the second set of sampled data that is greater than or equal to the center frequency point;
substep A5: and determining the actual frequency of the device to be tested based on the sum of the first signal power strength values and the sum of the second signal power strength values.
For example, the received signal power strength values of the frequencies at the two ends of the sample are first zeroed, and the received signal power strength values corresponding to the frequencies at the two ends of the sample should be 0, for example, P 1 And P N However, in practice, due to the difference of the error or the measurement unit, the value is also a non-zero value, so that the accuracy of the algorithm can be ensured by performing the zero-returning process on the received signal power strength value of the frequency at the two ends of the sampling, that is, converting the N sampling data sets into (f) 1 ,0)、(f 2 ,P 2 -P 1 ),(f 3 ,P 3 -P 1 ),...,(f N ,P N -P 1 ) Relabel as (f) 1 ,P 1 ’)、(f 2 ,P 2 ’),(f 3 ,P 3 ’),...,(f N ,P N ') wherein, P 1 ’=0,P 2 ’=P 2 -P 1 ,P 3 ’=P 3 -P 1 ,...,P N ’=P N -P 1
The specific implementation process of the sub-step A5 may include the following three scenarios:
scene 1: and under the condition that the sum of the first signal power strength values is equal to the sum of the second signal power strength values, determining the frequency corresponding to the central frequency point as the actual frequency of the equipment to be tested.
Scene 2: and under the condition that the sum of the first signal power strength values is smaller than the sum of the second signal power strength values, performing right shift processing on the center frequency point according to a right shift preset condition to obtain a right shift center frequency point until the right shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the right shift center frequency point is the actual frequency of the equipment to be tested.
Scene 3: and under the condition that the sum of the first signal power strength values is greater than the sum of the second signal power strength values, performing left shift processing on the center frequency point according to a left shift preset condition to obtain a left shift center frequency point until the left shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the left shift center frequency point is the actual frequency of the equipment to be tested.
According to the symmetry of the frequency characteristic curve of the frequency deviation measuring equipment, acquiring the central frequency point of the sampled data as fN/2, and respectively calculating the sum S of the received signal power intensities of all the left sampling frequency points L =∑P i ’(0≤ i <N/2) is the sum of the first signal power strength values in the present application and the sum S of the received signal power strengths of all the sampling frequency points on the right R =∑P i ’(N/2 <i ≦ N), i.e. the sum of the second signal power strength values in the present application, according to S L And S R The relationship of (c) is divided into the following three scenarios:
scene one: if S is L Is equal to S R Then f is N/2 Is the actual received signal frequency fa;
scene two: if S is L Is less than S R Then, the frequency of the actual signal is indicated as f N/2 Right side of (1), right shifted by one sampling frequency point, resetting the center frequency point to fc = f N/2+1 Recalculating S L And S R In which S is L =∑P i ’(0≤ i < N/2+1),S R =∑P i ’(N/2+1 <i is less than or equal to N), and S is compared again L And S R Until S is satisfied, the process is repeated L Is equal to S R Or S L Greater than S R The process is stopped, the center frequency point fc at this time being the actual received signal frequency fa;
scene three: if S is L Greater than S R Then, the frequency of the actual signal is indicated as f N/2 Left side of (2), left shifted by one sampling frequencyRate point, resetting center frequency point to fc = f N/2-1 Recalculating S L And S R In which S is L =∑P i ’(0≤ i < N/2-1),S R =∑P i ’(N/2-1 <i is less than or equal to N), and S is compared again L And S R Until S is satisfied, the process is repeated L Is equal to S R Or S L Less than S R The process is stopped, and the center frequency point fc is the actual received signal frequency fa.
Step 305: the control device determines a frequency offset based on the initial frequency and the actual frequency.
In the present application, after the actual frequency fa of the received signal is obtained through the above calculation, the frequency offset of the DUT device-under-test signal is obtained as Δ f = fa-f0.
According to the method and the device, the actual frequency of the received signal is obtained through the calculation process through the power intensity of the received signal sampled by the frequency deviation measuring device, the process is simple, and the result is accurate.
For example, the device under test may provide a UART (universal asynchronous serial interface) for other devices to perform communication control, the frequency offset measurement device provides an SPI (serial peripheral interface) for other devices to perform communication control, an MCU (single chip microcomputer) may be selected as the control device, the DUT device under test and the frequency offset measurement device are connected through the UART and the SPI, respectively, and the DUT device under test and the frequency offset measurement device may be connected through an RF radio frequency connection line.
After the measurement is started, firstly, the MCU singlechip sends a command to the DUT equipment to be tested through the UART interface, so that the DUT equipment to be tested always sends the frequency f 0 Single frequency signal of 2440 MHz;
the MCU singlechip sends a command to the frequency measurement equipment through the SPI interface, configures the working mode of the frequency measurement equipment as a GFSK modulation mode, and enters a signal receiving mode, wherein the working bandwidth is BW =300 KHz;
the MCU singlechip sends a command to the frequency measuring equipment through the SPI interface, and the working frequency of the frequency measuring equipment is configured to be f 1 = 2439.500MHz, receive of corresponding operating frequency point is acquiredSignal power strength of P 1 Then the working frequency of the frequency measuring equipment is configured to be f 2 = 2439.601MHz, and the received signal power strength of the corresponding working frequency point is acquired as P again 2 . Repeating the steps, increasing 1KHz to the working frequency point configured each time until the working frequency f is finally obtained 801 Received signal power strength P801 at 2440.400 MHz. That is, the leftmost and rightmost sampling frequency points are spaced from the center frequency point f 0 The difference value delta B =400KHz, the sampling interval frequency delta =1KHz, and N =801 sampling point data are collected; according to the frequency offset detection method, data obtained by sampling are calculated, and the frequency fa =2440.004MHz of an actual received signal can be determined; then the frequency deviation of the DUT device to be tested is Δ f = fa-f0 =2440.004 MHz-2440 MHz = 4KHz; and ending the frequency offset measurement process of the DUT equipment to be measured.
To sum up, in the frequency offset detection method provided in the embodiment of the present application, the control device obtains a single-frequency control signal with an initial frequency, where the frequency is sent by the device to be detected; the control equipment acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring equipment to work under a plurality of different preset frequencies; the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values; the control equipment determines the frequency deviation based on the initial frequency and the actual frequency, can be separated from a professional testing instrument, completes the automatic measurement of the frequency deviation, has simple process and accurate frequency deviation result, improves the efficiency, and further improves the reliability and the stability of the frequency deviation detection method.
The electronic device in the embodiment of the present invention may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
The electronic device in the embodiment of the present invention may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Fig. 5 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device 400 includes a processor 410.
As shown in fig. 5, the processor 410 may be a general processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ics for controlling the execution of programs according to the present invention.
As shown in fig. 5, the electronic device 400 may further include a communication line 440. Communication link 440 may include a path that conveys information between the aforementioned components.
Optionally, as shown in fig. 5, the electronic device may further include a communication interface 420. The communication interface 420 may be one or more. Communication interface 420 may use any transceiver or the like for communicating with other devices or a communication network.
Optionally, as shown in fig. 5, the electronic device may further include a memory 430. The memory 430 is used to store computer-executable instructions for performing aspects of the present invention and is controlled for execution by the processor. The processor is used for executing the computer execution instructions stored in the memory, thereby realizing the method provided by the embodiment of the invention.
As shown in fig. 5, memory 430 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disk read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disks, laser disks, optical disks, digital versatile disks, blu-ray disks, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 430 may be separate and coupled to the processor 410 via a communication link 440. The memory 430 may also be integrated with the processor 410.
Optionally, the computer-executable instructions in the embodiment of the present invention may also be referred to as application program codes, which is not specifically limited in this embodiment of the present invention.
In one implementation, as shown in FIG. 5, processor 410 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 5, for example.
In one embodiment, as shown in fig. 5, the terminal device may include a plurality of processors, such as the processor in fig. 5. Each of these processors may be a single core processor or a multi-core processor.
Fig. 6 is a schematic structural diagram of a chip according to an embodiment of the present invention. As shown in fig. 6, the chip 500 includes one or more than two (including two) processors 410.
Optionally, as shown in fig. 6, the chip further includes a communication interface 420 and a memory 430, and the memory 430 may include a read-only memory and a random access memory and provide operating instructions and data to the processor. The portion of memory may also include non-volatile random access memory (NVRAM).
In some embodiments, as shown in FIG. 6, memory 430 stores elements, execution modules or data structures, or a subset thereof, or an expanded set thereof.
In the embodiment of the present invention, as shown in fig. 6, by calling an operation instruction stored in the memory (the operation instruction may be stored in the operating system), a corresponding operation is performed.
As shown in fig. 6, the processor 410 controls the processing operation of any one of the terminal devices, and the processor 410 may also be referred to as a Central Processing Unit (CPU).
As shown in FIG. 6, memory 430 may include both read-only memory and random access memory, and provides instructions and data to the processor. A portion of the memory 430 may also include NVRAM. For example, in applications where the memory, communication interface, and memory are coupled together by a bus system that may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in FIG. 6.
As shown in fig. 6, the method disclosed in the above embodiments of the present invention may be applied to a processor, or may be implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an ASIC, an FPGA (field-programmable gate array) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
In one aspect, a computer-readable storage medium is provided, in which instructions are stored, and when executed, the instructions implement the functions performed by the terminal device in the above embodiments.
In one aspect, a chip is provided, where the chip is applied in a terminal device, and the chip includes at least one processor and a communication interface, where the communication interface is coupled to the at least one processor, and the processor is configured to execute instructions to implement the functions performed by the frequency offset detection method in the foregoing embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the procedures or functions described in the embodiments of the present invention are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a terminal, a user device, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; or optical media such as Digital Video Disks (DVDs); it may also be a semiconductor medium, such as a Solid State Drive (SSD).
While the invention has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed invention, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
While the invention has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the invention. Accordingly, the specification and figures are merely exemplary of the invention as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A frequency deviation detection method is characterized in that the method is applied to a frequency deviation detection system comprising a control device and a device to be detected and a frequency deviation measurement device which are respectively connected with the control device, wherein the device to be detected is connected with the frequency deviation measurement device; the method comprises the following steps:
the control equipment acquires a single-frequency control signal with the initial frequency, which is sent by the equipment to be tested;
the control device acquires a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies;
the control equipment determines the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values;
the control device determines a frequency offset based on the initial frequency and the actual frequency;
the control device obtains a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measuring device to work under a plurality of different preset frequencies, and the method comprises the following steps:
the control device determines a plurality of received signal power strength values corresponding to the single-frequency control signal under the condition that the frequency offset measurement device works under a plurality of preset frequencies, and obtains a first sampling data set which comprises the plurality of preset frequencies and a plurality of corresponding received signal power strength values in a one-to-one correspondence manner;
the control device determines the actual frequency of the device to be tested based on the plurality of different preset frequencies and the plurality of received signal power strength values, and the method includes:
the control device performs zeroing processing on two signal power strength values corresponding to frequencies at two ends of a plurality of different preset frequencies, and determines a second sampling data set comprising corresponding relations between the preset frequencies and corresponding received signal power strength values based on the first sampling data set;
acquiring center frequency points of a plurality of preset frequencies in the second sampling data set;
determining a sum of first signal power strength values in the second set of sampled data that are less than the center frequency point;
determining a sum of second signal power strength values of the second set of sampled data that is greater than or equal to the center frequency point;
and determining the actual frequency of the device to be tested based on the sum of the first signal power strength values and the sum of the second signal power strength values.
2. The method of frequency deviation detection according to claim 1, wherein said determining an actual frequency of the device under test based on the sum of the first signal power strength value and the sum of the second signal power strength value comprises:
and under the condition that the sum of the first signal power strength values is equal to the sum of the second signal power strength values, determining the frequency corresponding to the central frequency point as the actual frequency of the equipment to be tested.
3. The method of frequency deviation detection according to claim 2, wherein said determining an actual frequency of said device under test based on a sum of said first signal power strength value and a sum of said second signal power strength value further comprises:
and under the condition that the sum of the first signal power strength values is smaller than the sum of the second signal power strength values, performing right shift processing on the center frequency point according to a right shift preset condition to obtain a right shift center frequency point until the right shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the right shift center frequency point is the actual frequency of the equipment to be tested.
4. The method of frequency deviation detection according to claim 3, wherein said determining the actual frequency of the device under test based on the sum of the first signal power strength value and the sum of the second signal power strength value further comprises:
and under the condition that the sum of the first signal power strength values is greater than the sum of the second signal power strength values, performing left shift processing on the center frequency point according to a left shift preset condition to obtain a left shift center frequency point until the left shift center frequency point determines that the sum of the corresponding first signal power strength values is equal to the sum of the second signal power strength values, and determining that the frequency corresponding to the left shift center frequency point is the actual frequency of the equipment to be tested.
5. The method for detecting frequency deviation according to claim 1, wherein after the control device obtains the single frequency control signal with the initial frequency sent by the device under test, the method further comprises:
the control device sends a configuration command to the frequency deviation measurement device, so that the frequency deviation measurement device responds to the configuration command, is in a modulation mode, and enters a signal receiving mode.
6. The frequency offset detection method according to any of claims 1-5, wherein said plurality of different preset frequencies are a plurality of frequencies that increase sequentially according to preset frequency increments.
7. A frequency offset detection system is characterized by comprising a control device, and a device to be detected and a frequency offset measuring device which are respectively connected with the control device, wherein the device to be detected is connected with the frequency offset measuring device;
the control equipment is used for acquiring a single-frequency control signal with the frequency as the initial frequency, which is sent by the equipment to be tested;
the control device is further configured to obtain a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies;
the control equipment is further used for determining the actual frequency of the equipment to be tested based on a plurality of different preset frequencies and a plurality of received signal power strength values;
the control device is further configured to determine a frequency offset based on the initial frequency and the actual frequency;
the control device is further configured to obtain a plurality of received signal power strength values corresponding to the single-frequency control signal by configuring the frequency offset measurement device to operate at a plurality of different preset frequencies, including:
the control device is further configured to determine multiple received signal power strength values corresponding to the single-frequency control signal under the condition that the frequency offset measurement device operates at multiple preset frequencies, and obtain a first sampling data set including the multiple preset frequencies and the multiple corresponding received signal power strength values in a one-to-one correspondence manner;
the control device is further configured to determine an actual frequency of the device under test based on the plurality of different preset frequencies and the plurality of received signal power strength values, and includes:
the control device is configured to perform zeroing processing on two signal power strength values corresponding to frequencies at two ends of a plurality of different preset frequencies, and determine, based on the first sampled data set, a second sampled data set including a correspondence between the preset frequencies and corresponding received signal power strength values;
the control device is used for acquiring a central frequency point of a plurality of preset frequencies in the second sampling data set;
the control device is configured to determine a sum of first signal power strength values in the second set of sampled data that are less than the center frequency point;
the control device is configured to determine a sum of second signal power strength values of the second set of sampled data that are greater than or equal to the center frequency point;
the control device is used for determining the actual frequency of the device to be tested based on the sum of the first signal power strength values and the sum of the second signal power strength values.
8. An electronic device, comprising: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause performance of the frequency offset detection method of any of claims 1-6.
CN202211255118.XA 2022-10-13 2022-10-13 Frequency offset detection method, system and electronic equipment Active CN115333654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211255118.XA CN115333654B (en) 2022-10-13 2022-10-13 Frequency offset detection method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211255118.XA CN115333654B (en) 2022-10-13 2022-10-13 Frequency offset detection method, system and electronic equipment

Publications (2)

Publication Number Publication Date
CN115333654A CN115333654A (en) 2022-11-11
CN115333654B true CN115333654B (en) 2023-02-03

Family

ID=83914530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211255118.XA Active CN115333654B (en) 2022-10-13 2022-10-13 Frequency offset detection method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN115333654B (en)

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3271504B2 (en) * 1996-02-02 2002-04-02 三菱電機株式会社 Frequency estimation circuit and AFC circuit using the same
KR100399054B1 (en) * 2001-12-28 2003-09-26 한국전자통신연구원 Method and Apparatus of Compensating Carrier Frequency Offset Comparing the Power of Signal Spectrum Edges
WO2004010719A1 (en) * 2002-07-24 2004-01-29 Motorola, Inc., A Corporation Of The State Of Delaware Method and apparatus for acquiring a carrier frequency in a cdma communication system
TWI373944B (en) * 2008-04-09 2012-10-01 Mstar Semiconductor Inc Apparatus for estimating frequency offset and estimating method thereof
CN101674440B (en) * 2008-09-12 2012-03-21 深圳Tcl新技术有限公司 Method for processing digital television signal offset
CN102045286B (en) * 2009-10-12 2014-03-12 联芯科技有限公司 Method and device for evaluating frequency offset, and method and device for detecting master synchronization sequences
US8781029B2 (en) * 2010-06-17 2014-07-15 Nippon Telegraph And Telephone Corporation Frequency offset estimation apparatus, reception apparatus, frequency offset estimation method, and reception method
CN105337916B (en) * 2014-07-11 2019-05-31 上海东软载波微电子有限公司 The compensation method of carrier wave frequency deviation and device receive system
WO2016165132A1 (en) * 2015-04-17 2016-10-20 华为技术有限公司 Signal processing method, node and device
CN106254289B (en) * 2016-09-09 2020-01-21 锐捷网络股份有限公司 Frequency offset estimation method, transmitter, receiver and communication system
CN107979557A (en) * 2016-10-25 2018-05-01 晨星半导体股份有限公司 Carrier wave frequency deviation estimation device and carrier wave frequency deviation estimation method
CN110855590A (en) * 2019-11-18 2020-02-28 紫光展锐(重庆)科技有限公司 Frequency offset compensation method, system, electronic device and computer readable storage medium
CN111416918B (en) * 2020-03-31 2021-03-12 高拓讯达(北京)科技有限公司 Method and device for estimating frequency offset of analog television
CN112350786B (en) * 2020-10-28 2022-09-02 深圳市汇顶科技股份有限公司 Calibration method, system, related equipment and medium for radio frequency receiver
CN115052307A (en) * 2021-03-08 2022-09-13 深圳市豪恩声学股份有限公司 Radio frequency test method, device, test terminal and storage medium
CN113271152B (en) * 2021-04-29 2022-12-09 广东工业大学 Frequency offset processing method and system for digital subcarrier multiplexing signal
CN114745240A (en) * 2022-04-08 2022-07-12 展讯通信(上海)有限公司 Method and device for determining frequency offset value of signal
CN114584228B (en) * 2022-05-05 2022-07-08 成都爱旗科技有限公司 Wifi production test calibration system and method and electronic equipment

Also Published As

Publication number Publication date
CN115333654A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
CN111766509B (en) Chip testing method and related equipment
CN114584228B (en) Wifi production test calibration system and method and electronic equipment
US11696159B2 (en) Method, apparatus, and non-transitory computer readable medium for testing terminals
US6542838B1 (en) System and method for performing autoranging in a measurement device
CN114924119A (en) Clock chip and frequency measuring method
CN112115047A (en) Delay testing method and system for hard real-time operating system
CN111381150B (en) Chip automatic verification system and method thereof
CN115333654B (en) Frequency offset detection method, system and electronic equipment
CN110362434B (en) Object testing method and device
CN114740329A (en) Data comparison device, data comparison method and chip tester
CN111190089B (en) Method and device for determining jitter time, storage medium and electronic equipment
US20160254872A1 (en) Systems and methods for measurement of electrical channel loss
JP2018529242A (en) Method for testing a radio frequency (RF) data packet signal transceiver using implicit synchronization
CN103220370A (en) Method and device for achieving single wire protocol (SWP) interface and SWP system
CN102546040B (en) Method and system for testing channel delay difference
CN111258828A (en) I2C bus test method, test device and computer readable storage medium
CN110927583A (en) Battery power detection device and battery power test method
CN116362176A (en) Circuit simulation verification method, verification device, electronic device and readable storage medium
CN115290165A (en) Detection method, system and device of ultrasonic water meter
US10554509B2 (en) Information processing system and delay measurement method
CN113886164A (en) Bluetooth product testing method and device and electronic equipment
JP2023509602A (en) CAST IRON PRODUCTION SAFETY MONITORING METHOD, APPARATUS AND SERVER
CN115576765B (en) Test method, test device, electronic equipment and storage medium
CN116482509B (en) Radio frequency circuit testing method and device and related equipment
CN104796687A (en) Testing device for frequency mixer of distributed cable mode termination system

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