CN114706448A - Signal sampling method, signal sampling device and storage medium - Google Patents

Signal sampling method, signal sampling device and storage medium Download PDF

Info

Publication number
CN114706448A
CN114706448A CN202011497740.2A CN202011497740A CN114706448A CN 114706448 A CN114706448 A CN 114706448A CN 202011497740 A CN202011497740 A CN 202011497740A CN 114706448 A CN114706448 A CN 114706448A
Authority
CN
China
Prior art keywords
sampling
signal
temperature
phase
preset
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.)
Pending
Application number
CN202011497740.2A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202011497740.2A priority Critical patent/CN114706448A/en
Priority to PCT/CN2021/138278 priority patent/WO2022127815A1/en
Publication of CN114706448A publication Critical patent/CN114706448A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/08Clock generators with changeable or programmable clock frequency
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks

Abstract

The embodiment of the invention discloses a signal sampling method, a signal sampling device and a storage medium, and the embodiment of the invention can acquire the current temperature of a preset sampling point; acquiring a sampling position set corresponding to a signal to be sampled in a clock period; acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature; and moving the sampling clock to the optimal sampling position to sample the signal. According to the invention, the optimal sampling position under the current temperature is obtained according to the current temperature of the sampling point, and the sampling clock is moved according to the optimal sampling position, so that the condition that the sampling clock is deviated due to temperature change is effectively avoided, and the signal to be sampled can be more accurately sampled.

Description

Signal sampling method, signal sampling device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a signal sampling method, a signal sampling apparatus, and a storage medium.
Background
When a signal is transmitted on a transmission path, the propagation speed of the signal is influenced by the properties of a signal carrier and surrounding media, so that time delay exists when the signal reaches a sampling point, particularly when the signal of a high-speed circuit is sampled, and if the time delay calculation in the signal propagation process is inaccurate, the sampled signal data is inaccurate.
For example, the clock may be shifted due to temperature variation, so that the clock acquisition and the data are misaligned in the transmission process of the data, which may cause signal data acquisition errors.
Therefore, it is necessary to provide a signal sampling method to solve the deficiencies of the prior art.
Disclosure of Invention
The embodiments of the present invention mainly aim to provide a signal sampling method, a signal sampling apparatus, and a storage medium, and aim to solve the problem of inaccurate signal sampling caused by temperature variation.
In a first aspect, an embodiment of the present invention provides a signal sampling method, including: acquiring the current temperature of a preset sampling point; acquiring a sampling position set corresponding to a signal to be sampled in one clock period; acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature; and moving the sampling clock to the optimal sampling position to sample the signal.
In a second aspect, an embodiment of the present invention further provides a signal sampling apparatus, where the signal sampling apparatus includes a memory and a processor; the memory is used for storing a signal sampling program executable by a computer; the processor is used for calling the computer-executable signal sampling program to realize the signal sampling method provided by the specification of the invention.
In a third aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the signal sampling method provided in the present specification.
According to the signal sampling method, the signal sampling device and the storage medium, the current temperature of the preset sampling point is obtained; acquiring a sampling position set corresponding to a signal to be sampled in one clock period; acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature; and moving the sampling clock to the optimal sampling position to sample the signal. By adjusting the sampling clock according to the current temperature information, the problem of sampling clock offset caused by temperature change is effectively solved, and data can be sampled more accurately.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a signal sampling method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a sampling position set acquisition step of the signal sampling method of FIG. 1;
fig. 3 is a schematic view of a scene for implementing the signal sampling method provided in this embodiment;
fig. 4 is a schematic view of another scenario of a signal sampling method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating an optimal sampling position acquisition step of the signal sampling method of FIG. 1;
fig. 6 is a schematic diagram of another scenario of a signal sampling method according to an embodiment of the present invention;
fig. 7 is a block diagram schematically illustrating a structure of a signal sampling apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flowchart illustrating a signal sampling method according to an embodiment of the present invention.
The signal sampling method is applied to a signal sampling device, and the signal sampling device may be installed at a signal receiving end or a signal transmitting end, which is not limited herein.
As shown in fig. 1, the signal sampling method includes steps S101 to S104.
And S101, acquiring the current temperature of a preset sampling point.
In this embodiment, the signal sampling method is applied to a signal sampling device, and the signal sampling device is installed at a signal receiving end as an example for explanation.
In this embodiment, the signal to be sampled is a high-speed signal, that is, the frequency of the signal is greater than a preset frequency value, and the preset frequency is set according to needs, for example, the frequency of the signal is greater than or equal to 50 MHz.
The preset sampling point can be set according to needs, in the embodiment, the preset sampling point is a sampling point correspondingly set in the signal receiving terminal, the signal receiving terminal is provided with a temperature sensor at the preset sampling point, the current temperature of the preset sampling point is obtained by reading the temperature sensor, and the current temperature is used as the current working environment temperature of the signal receiving terminal.
In one embodiment, obtaining the current temperature of the preset sampling point includes: periodically acquiring the temperature value of the preset sampling point to acquire a temperature set corresponding to the preset sampling point; judging whether the difference value of the highest temperature and the lowest temperature of the temperature set is smaller than a preset difference value or not; and when the difference is smaller than the preset difference, taking the temperature value obtained last time in the temperature set as the current temperature.
Specifically, temperature values of a temperature sensor of a preset sampling point are acquired and recorded once at preset time intervals, all the recorded temperature values are used as a temperature set after preset times are acquired, then, the difference value between the highest temperature and the lowest temperature in the temperature set is calculated, if the difference value is smaller than the preset difference value, the temperature of the preset sampling point is in a stable state when the temperature set is acquired, and the situation that the temperature value is acquired wrongly does not occur, the temperature value acquired last time in the temperature set is used as the current temperature. For example, the preset difference is 3 degrees celsius, the temperature values of the temperature sensor are read and recorded every 1s, and a temperature set including 10 temperature values is obtained after 10 times of continuous reading, wherein the highest temperature is 32 degrees celsius and the lowest temperature is 30 degrees celsius, and the temperature read for the last time is 30 degrees celsius, and then the difference between the highest temperature and the lowest temperature is 2 degrees celsius, that is, the difference is less than the preset difference of 3 degrees celsius, so that the temperature value obtained for the last time is taken as the current temperature, that is, the current temperature is 30 degrees celsius.
Step S102, acquiring a sampling position set corresponding to a signal to be sampled in one clock period.
The method comprises the steps of obtaining a sampling position set of a signal to be sampled in one clock cycle, wherein all sampling positions in the sampling position set are far away from a signal edge, and the signal to be sampled can be more accurately sampled through the sampling positions far away from the signal edge.
Referring to fig. 2, in an embodiment, the position of the sampling clock is shifted to perform signal sampling, and a sampling position set corresponding to a clock cycle of a signal transmitted by the signal transmitting end is obtained by analyzing the sampled signal, specifically, step S102 includes: step S1021 to step S1025.
As shown in fig. 2, in step S1021, the clock period of the signal to be sampled transmitted by the signal transmitting end is obtained.
In one embodiment, acquiring a clock cycle of a signal to be sampled transmitted by the signal transmitting end includes: and acquiring the signal frequency corresponding to the signal to be sampled transmitted by the signal transmitting terminal so as to acquire the clock period according to the signal frequency. Because the frequencies of the signals of the signal transmitting end and the signal receiving end are consistent and one clock period is equal to the reciprocal of the frequency, the corresponding clock period can be calculated through the frequency of the signal transmitting end.
Step S1022, moving the phase of the sampling clock within the clock cycle according to a preset phase shift precision.
After the clock period is obtained, confirming the preset phase-shifting precision according to the clock period, and then shifting the phase of the sampling clock according to the preset phase-shifting precision, wherein the preset phase-shifting precision is as small as possible. For example, a clock period of T and a predetermined phase shift precision of T/n are obtained, where n is greater than or equal to 40 in order to make the predetermined phase shift precision sufficiently small.
And S1023, sampling the signal to be sampled according to the phase of the shifted sampling clock to acquire a sampling signal of a corresponding phase.
The sampling clock performs phase shifting operation according to the preset phase shifting precision, and after the sampling clock moves a phase with the preset phase shifting precision, the signal to be sampled is sampled at the moved phase so as to acquire a sampling signal of the corresponding phase.
And step S1024, judging whether the phase point corresponding to the phase after the movement is an effective phase point or not according to the sampling signal.
In an embodiment, the determining, according to the sampling signal, whether the phase point corresponding to the phase after the shifting is an effective phase point includes: judging whether the sampling signal is a hopping signal; when the sampling signal is a jump signal, judging whether the number of phase points between adjacent jump signals is greater than a preset number of phase points; and when the phase number between the adjacent hopping signals is larger than the preset phase number, judging that the phase point between the adjacent hopping signals is an effective phase point.
Shifting the phase of the sampling clock, after sampling the phase of the signal, judging whether the sampled signal is a jump signal, namely whether the signal is a signal edge, when the signal is the jump signal, recording a corresponding phase point after the phase shift of the subsequent sampling clock, judging whether the signal sampled by the corresponding phase point is the jump signal, when the jump signal is sampled again, judging the number of the phase points recorded between the adjacent jump signals, and when the number of the phase points is greater than the preset number of the phase points, judging that the phase points recorded between the adjacent jump signals are effective phase points. By the method, whether the interval between the two signal edges is enough or not is judged, the condition that the signal is unstable in the edge state is filtered, and the sampling position in the obtained sampling position set is better.
For example, as shown in fig. 3, the sampling clock is shifted by a predetermined shift precision T/n, the signal is sampled once every T/n shift, when the sampled signal is a transition signal, namely sampling a low level signal A and then sampling a high level signal B, wherein the signal B is a jump signal and recording a phase point after the phase shift of a subsequent sampling clock, and judges whether the signal sampled by the corresponding phase point is a jump signal, when the jump signal is sampled again, that is, after sampling the high level signal C, sampling the low level signal D, then D is the jump signal, the number of the phase points recorded between the adjacent jump signals B and D is 50, and the preset number of the phase points is 5, therefore, the number of phase points recorded between adjacent jump signals is greater than the preset number of phase points, i.e., the phase points recorded between jump signals B and D are all valid phase points.
And S1025, constructing the sampling position set according to the effective phase points.
And shifting the phase of the sampling clock according to the preset phase shifting precision, judging whether the sampled signal is a stable signal or not after the signal is sampled at the phase, and if the signal is the stable signal, sampling the phase point corresponding to the signal to be the effective phase point. A plurality of effective phase points are selected at preset positions in one clock period to serve as a sampling position set, namely all sampling positions in the sampling position set can sample stable signals.
In one embodiment, said constructing said set of sampling positions from said valid phase points comprises: determining a screening position of the effective phase point; and selecting a plurality of adjacent effective phase points according to the screening position to construct the sampling position set.
And (3) sampling the signal once every time the T/n is shifted by presetting a phase shift precision T/n shifting sampling clock, recording all effective phase points in one clock cycle, wherein the screening position is specifically in the middle position in one clock cycle, namely the effective phase point of the sampling set in the middle position is also in the middle position of the clock cycle. For example, 50 valid phase points exist in one clock cycle, all valid phase points are sorted according to the sampling sequence, and the valid phase points 21 to 29 are selected as a sampling position set, wherein the valid phase point 25 is simultaneously positioned in the middle of the sampling position set and the clock cycle. By selecting the effective phase point at the middle position of the clock period as the sampling position set, all sampling positions in the sampling position set are far away from the signal edge, and the fault-tolerant capability of the subsequent mobile sampling clock is improved.
And S103, acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature.
Specifically, according to the value of the current temperature, a corresponding sampling position is selected from the sampling position set as the optimal sampling position. As shown in FIG. 4, FIG. 4 is a schematic diagram of Clock skew caused by temperature variation, which is based on Clock2, i.e. Clock2 has no Clock skew phenomenon. As the temperature increases, the delay of the signal increases relative to the sample Clock, causing the sample position to move to the left, i.e., Clock3 shifts to the left compared to Clock 2; as the temperature decreases, the delay of the signal decreases relative to the sample Clock, causing the sample position to shift to the right, i.e., Clock1 shifts to the right compared to Clock 2. By selecting a corresponding sampling position from the sampling position set as the optimal sampling position according to the current temperature, clock offset caused by temperature change is compensated, and the accuracy of signal sampling is ensured.
Referring to fig. 5, in an embodiment, each sampling position in the sampling position set corresponds to one temperature value, and then the corresponding optimal sampling position is obtained according to the current temperature and the temperature value corresponding to each sampling position, specifically, step S103 includes: step S1031 to step S1033.
And S1031, acquiring a working environment temperature set of the preset sampling points, wherein a plurality of working environment temperatures in the working environment temperature set correspond to a plurality of sampling positions in the sampling position set.
Corresponding each sampling position in the sampling position set to one temperature value, for example, as shown in fig. 6, the sampling position set includes 9 sampling positions 1 to 9 ordered according to a sampling precedence order, and the operating environment temperature set includes 9 operating environment temperatures Temp1 to Temp9 from small to large. The highest working environment temperature Temp9 corresponds to sampling position 1, the lowest working environment temperature Temp1 corresponds to sampling position 9, and the middle working environment temperature and the sampling positions correspond in sequence.
In one embodiment, the acquiring the set of working environment temperatures of the preset sampling points includes: determining a preset working environment temperature interval; determining a working environment temperature interval according to the number of sampling positions in the sampling position set and the preset working environment temperature interval; and acquiring the working environment temperature set according to the working environment temperature interval and the preset working environment temperature interval.
The preset working environment temperature interval is obtained through testing and then is obtained according to (T)a-T1) /(a-1) calculating to obtain the working environment temperature interval, wherein, TaIs the highest temperature T in the preset working environment temperature range1The minimum temperature of the working environment temperature interval is preset, a is the number of sampling positions in the sampling position set, for example, the working environment temperature of the CPU is tested, the working environment temperature interval is-20 ℃ to 60 ℃, then 9 sampling positions in the sampling position set are obtained, the working environment temperature interval is 10 ℃, and the working environment temperature set is obtained and comprises-20 ℃, 10 ℃, 0 ℃, 10 ℃, 20 ℃, 30 ℃, 40 ℃, 50 ℃ and 60 ℃.
S1032, respectively subtracting the current temperature and the plurality of working environment temperatures to obtain corresponding temperature difference values, and selecting the working environment temperature corresponding to the minimum temperature difference value as a reference temperature.
For example, the current temperature is 42 degrees celsius, the working environment temperature set includes-20 degrees celsius, -10 degrees celsius, 0 degrees celsius, 10 degrees celsius, 20 degrees celsius, 30 degrees celsius, 40 degrees celsius, 50 degrees celsius, and 60 degrees celsius, then the previous temperature and a plurality of working environment temperatures are respectively subtracted, the obtained minimum temperature difference value is 2 degrees celsius, the corresponding working environment temperature is 40 degrees celsius, and then the reference temperature is 40 degrees celsius.
And S1033, acquiring a sampling position corresponding to the reference temperature as an optimal sampling position according to the reference temperature.
For example, if the reference temperature is 40 degrees celsius, and as shown in fig. 6, the temperature of 40 degrees celsius is Temp7, the corresponding sampling position is sampling position 3, i.e., sampling position 3 is the optimal sampling position.
And step S104, moving the sampling clock to the optimal sampling position, and sampling the signal.
And moving the sampling clock to the optimal sampling position according to the calculated optimal sampling position to perform subsequent signal sampling.
According to the signal sampling method provided by the embodiment, the phase shift operation is performed on the sampling clock according to the temperature change, so that the clock offset phenomenon caused by the temperature change is solved. As shown in FIG. 4, as the temperature increases, the delay of the signal increases relative to the sample Clock, causing the sample position to move to the left, i.e., Clock3 is shifted to the left compared to Clock 2; when the temperature is reduced, the delay of the signal is reduced relative to the sampling Clock, which causes the sampling position to move rightwards, that is, Clock1 shifts rightwards compared with Clock2, as shown in fig. 6, the sampling Clock is correspondingly phase-shifted according to the current temperature, the signal delay caused by the temperature change is compensated by moving the sampling position, the Clock drift problem caused by the temperature change is effectively solved, and the optimal sampling position is selected from the sampling position set in the Clock cycle, so that the optimal sampling position is far away from the signal edge, and the accuracy of the signal sampled after the sampling Clock is moved is ensured.
Referring to fig. 7, fig. 7 is a schematic block diagram of a signal sampling apparatus according to an embodiment of the present invention.
As shown in fig. 7, the signal sampling apparatus 300 specifically includes a processor 301, a memory 302, a temperature sensor 303, and a sampler 304, and the processor 301 and the memory 302, the temperature sensor 303, and the sampler 304 are connected by a bus 305, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 301 is used to provide computational and control capabilities that support the operation of the overall signal sampling apparatus. The Processor 301 may be a Central Processing Unit (CPU), and the Processor 301 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 302 may be a Flash chip, a Read-Only Memory (ROM) magnetic disk, an optical disk, a usb disk, or a removable hard disk.
Specifically, the temperature sensor 303 is used to acquire the ambient temperature of the signal sampling device.
In particular, sampler 304 is used to sample the signal to be sampled and phase shift the sampling clock. The sampler 304 may be an fpga (field Programmable Gate array) or an asic (application specific).
It will be understood by those skilled in the art that the structure shown in fig. 7 is a block diagram of only a portion of the structure associated with an embodiment of the present invention, and does not constitute a limitation on the signal sampling apparatus to which an embodiment of the present invention is applied, and a particular server may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In an embodiment, the processor 301 is configured to run a computer program stored in the memory 302 and when executing the computer program to perform the following steps:
acquiring the current temperature of the temperature sensor 303 at a preset sampling point; acquiring a sampling position set corresponding to a signal to be sampled in one clock period; acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature; the sampler 304 moves the sampling clock to the optimal sampling position for signal sampling.
In some embodiments, the processor 301 obtains the current temperature of the preset sampling point, including:
periodically acquiring the temperature value of the temperature sensor 303 at the preset sampling point to acquire a temperature set corresponding to the preset sampling point; judging whether the difference value of the highest temperature and the lowest temperature of the temperature set is smaller than a preset difference value or not; and when the difference is smaller than the preset difference, taking the temperature value obtained last time in the temperature set as the current temperature.
In some embodiments, the processor 301 obtains a corresponding sampling position set of the signal to be sampled in one clock cycle, including:
acquiring the clock period of a signal to be sampled transmitted by the signal transmitting terminal; shifting the phase of the sampling clock within the clock cycle according to a preset phase shift precision sampler 304; sampling the signal to be sampled according to the shifted phase sampler 304 of the sampling clock to obtain a sampling signal of a corresponding phase; judging whether the phase point corresponding to the phase after moving is an effective phase point or not according to the sampling signal; and constructing the sampling position set according to the effective phase points.
In some embodiments, the processor 301 obtains a clock cycle of the signal to be sampled transmitted by the signal transmitting terminal, including:
and acquiring the signal frequency corresponding to the signal to be sampled transmitted by the signal transmitting terminal so as to acquire the clock period according to the signal frequency.
In some embodiments, the determining, by the processor 301, whether the phase point corresponding to the phase is a valid phase point according to the sampling signal includes:
judging whether the sampling signal is a hopping signal; when the sampling signal is a jump signal, judging whether the number of phase points between adjacent jump signals is greater than a preset number of phase points; and when the phase number between the adjacent hopping signals is larger than the preset phase number, judging that the phase point between the adjacent hopping signals is an effective phase point.
In some embodiments, the processor 301 constructs the set of sampling positions from the valid phase points, including:
determining a screening position of the effective phase point;
and selecting a plurality of adjacent effective phase points according to the screening position to construct the sampling position set.
In some embodiments, the processor 301, according to the current temperature, obtains a corresponding optimal sampling position from the sampling position set, including:
acquiring a working environment temperature set of the preset sampling points, wherein a plurality of working environment temperatures in the working environment temperature set correspond to a plurality of sampling positions in the sampling position set; respectively subtracting the current temperature and the plurality of working environment temperatures to obtain corresponding temperature difference values, and selecting the working environment temperature corresponding to the minimum temperature difference value as a reference temperature; and acquiring a sampling position corresponding to the reference temperature as an optimal sampling position according to the reference temperature.
In some embodiments, the processor 301 obtains the set of operating environment temperatures of the preset sampling points, including:
determining a preset working environment temperature interval; determining a working environment temperature interval according to the number of sampling positions in the sampling position set and the preset working environment temperature interval; and acquiring the working environment temperature set according to the working environment temperature interval and the preset working environment temperature interval.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the signal sampling apparatus described above may refer to the corresponding process in the foregoing signal sampling method embodiment, and is not described herein again.
Embodiments of the present invention also provide a storage medium for computer-readable storage, the storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of any of the methods for signal sampling provided in the description of the embodiments of the present invention.
The storage medium may be an internal storage unit of the signal sampling apparatus described in the foregoing embodiment, for example, a hard disk or a memory of the signal sampling apparatus. The storage medium may also be an external storage device of the signal sampling apparatus, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the signal sampling apparatus.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware embodiment, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
It should be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of sampling a signal, the method comprising:
acquiring the current temperature of a preset sampling point;
acquiring a sampling position set corresponding to a signal to be sampled in one clock period;
acquiring a corresponding optimal sampling position from the sampling position set according to the current temperature;
and moving the sampling clock to the optimal sampling position to sample the signal.
2. The method of claim 1, wherein the obtaining the current temperature of the preset sampling point comprises:
periodically acquiring the temperature value of the preset sampling point to acquire a temperature set corresponding to the preset sampling point;
judging whether the difference value of the highest temperature and the lowest temperature of the temperature set is smaller than a preset difference value or not;
and when the difference is smaller than the preset difference, taking the temperature value obtained last time in the temperature set as the current temperature.
3. The method of claim 1, wherein obtaining a corresponding sampling position set of the signal to be sampled in one clock cycle comprises:
acquiring the clock period of the signal to be sampled transmitted by the signal transmitting terminal;
moving the phase of the sampling clock within the clock period according to a preset phase shift precision;
sampling the signal to be sampled according to the phase of the shifted sampling clock to obtain a sampling signal with a corresponding phase;
judging whether the phase point corresponding to the phase after moving is an effective phase point or not according to the sampling signal;
and constructing the sampling position set according to the effective phase points.
4. The method of claim 3, wherein the obtaining the clock period of the signal to be sampled transmitted by the signal transmitting terminal comprises:
and acquiring the signal frequency corresponding to the signal to be sampled transmitted by the signal transmitting terminal so as to acquire the clock period according to the signal frequency.
5. The method according to claim 3, wherein the determining whether the phase point corresponding to the shifted phase is a valid phase point according to the sampling signal comprises:
judging whether the sampling signal is a hopping signal;
when the sampling signal is a jump signal, judging whether the number of phase points between adjacent jump signals is greater than a preset phase number;
and when the phase number between the adjacent hopping signals is larger than the preset phase number, judging that the phase point between the adjacent hopping signals is an effective phase point.
6. The method of claim 3, wherein constructing the set of sampling locations from the valid phase points comprises:
determining a screening position of the effective phase point;
and selecting a plurality of adjacent effective phase points according to the screening position to construct the sampling position set.
7. The method of claim 1, wherein the obtaining a corresponding optimal sampling location from within the set of sampling locations based on the current temperature comprises:
acquiring a working environment temperature set of the preset sampling points, wherein a plurality of working environment temperatures in the working environment temperature set correspond to a plurality of sampling positions in the sampling position set;
respectively subtracting the current temperature and the plurality of working environment temperatures to obtain corresponding temperature difference values, and selecting the working environment temperature corresponding to the minimum temperature difference value as a reference temperature;
and acquiring a sampling position corresponding to the reference temperature as an optimal sampling position according to the reference temperature.
8. The method according to claim 7, wherein the obtaining of the set of working environment temperatures of the preset sampling points comprises:
determining a preset working environment temperature interval;
determining a working environment temperature interval according to the number of sampling positions in the sampling position set and the preset working environment temperature interval;
and acquiring the working environment temperature set according to the working environment temperature interval and the preset working environment temperature interval.
9. A signal sampling apparatus, comprising:
a memory and a processor;
the memory is used for storing a signal sampling program executable by a computer;
the processor is used for calling the computer-executable signal sampling program to realize the signal sampling method according to any one of claims 1 to 8.
10. A storage medium having stored thereon a computer program, wherein the computer program is loaded by a processor to perform the signal sampling method according to any one of claims 1 to 8.
CN202011497740.2A 2020-12-17 2020-12-17 Signal sampling method, signal sampling device and storage medium Pending CN114706448A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011497740.2A CN114706448A (en) 2020-12-17 2020-12-17 Signal sampling method, signal sampling device and storage medium
PCT/CN2021/138278 WO2022127815A1 (en) 2020-12-17 2021-12-15 Signal sampling method, signal sampling apparatus and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011497740.2A CN114706448A (en) 2020-12-17 2020-12-17 Signal sampling method, signal sampling device and storage medium

Publications (1)

Publication Number Publication Date
CN114706448A true CN114706448A (en) 2022-07-05

Family

ID=82060071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011497740.2A Pending CN114706448A (en) 2020-12-17 2020-12-17 Signal sampling method, signal sampling device and storage medium

Country Status (2)

Country Link
CN (1) CN114706448A (en)
WO (1) WO2022127815A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115877914A (en) * 2023-01-17 2023-03-31 北京象帝先计算技术有限公司 Signal control method, sampling method, device, system and electronic equipment
CN117407346A (en) * 2023-12-13 2024-01-16 芯能量集成电路(上海)有限公司 Sampling point adjusting system and method for FLASH outside vehicle-gauge chip
CN117767846B (en) * 2024-02-22 2024-04-19 上海利氪科技有限公司 Automobile wire control motor stator temperature estimation method and system and automobile

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578166B (en) * 2023-07-12 2023-09-22 国仪量子(合肥)技术有限公司 Synchronous trigger data acquisition method, storage medium and acquisition equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567767B (en) * 2009-05-19 2011-12-28 华为技术有限公司 Window sampling control method and device
US9988056B2 (en) * 2015-12-15 2018-06-05 Octo Telematics Spa Systems and methods for controlling sensor-based data acquisition and signal processing in vehicles
JP6697990B2 (en) * 2016-09-16 2020-05-27 ルネサスエレクトロニクス株式会社 Semiconductor device
KR20180061560A (en) * 2016-11-29 2018-06-08 삼성전자주식회사 Electronic circuit adjusting delay depending on communication condition

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115877914A (en) * 2023-01-17 2023-03-31 北京象帝先计算技术有限公司 Signal control method, sampling method, device, system and electronic equipment
CN115877914B (en) * 2023-01-17 2024-02-20 北京象帝先计算技术有限公司 Signal control method, sampling method, device, system and electronic equipment
CN117407346A (en) * 2023-12-13 2024-01-16 芯能量集成电路(上海)有限公司 Sampling point adjusting system and method for FLASH outside vehicle-gauge chip
CN117407346B (en) * 2023-12-13 2024-04-05 芯能量集成电路(上海)有限公司 Sampling point adjusting system and method for FLASH outside vehicle-gauge chip
CN117767846B (en) * 2024-02-22 2024-04-19 上海利氪科技有限公司 Automobile wire control motor stator temperature estimation method and system and automobile

Also Published As

Publication number Publication date
WO2022127815A1 (en) 2022-06-23

Similar Documents

Publication Publication Date Title
CN114706448A (en) Signal sampling method, signal sampling device and storage medium
JP6903849B2 (en) Time measurement circuit, time measurement chip, laser detection / ranging system, automation device, and time measurement method
US7876246B1 (en) Photonic analog-to-digital converter
US10552278B2 (en) Non-destructive analysis to determine use history of processor
CN102385913B (en) Sampling phase correcting host controller, semiconductor device and correction method
WO2014138345A1 (en) High-resolution link-path delay estimator and method for estimating a signal-path delay
CN114024549B (en) Time domain interleaving analog-to-digital converter synchronization device and method
CN109213703B (en) Data detection method and data detection device
US9246668B1 (en) Unified control for digital timing recovery and packet processing
US11096193B2 (en) Working wireless communication channel selection based on spectral estimation
US11010333B2 (en) Ideal age vector based file retention in a software testing system
CN110441599B (en) Detection method and device for frequency spectrograph and readable storage medium
CN109710172B (en) Parameter configuration method, device and system of multi-channel high-speed analog-to-digital conversion chip
CN112399550A (en) Method, device and equipment for determining time delay compensation value and storage medium
JP6896189B2 (en) Frequency detection circuit
CN113708758A (en) Phase detection method, device and equipment thereof
US9614701B2 (en) Communication device and method for reproducing data
CN111309475B (en) Detection task execution method and equipment
CN112838858A (en) Clock frequency deviation determination method and device, storage medium and processor
CN112332885B (en) Periodic signal peak searching method, device, equipment and readable storage medium
CN107846697B (en) SRS scheduling method and system
CN117319161B (en) Chirp signal demodulation method and device, computer equipment and storage medium
CN113904957B (en) Sampling point testing method and system and main control equipment thereof
US20230422062A1 (en) Variable arbitrary resampler method for base station test system
US11036657B2 (en) Writing block for a receiver

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