CN113568343A - Method, device, equipment and storage medium for capturing arbitrary data - Google Patents

Method, device, equipment and storage medium for capturing arbitrary data Download PDF

Info

Publication number
CN113568343A
CN113568343A CN202110821351.9A CN202110821351A CN113568343A CN 113568343 A CN113568343 A CN 113568343A CN 202110821351 A CN202110821351 A CN 202110821351A CN 113568343 A CN113568343 A CN 113568343A
Authority
CN
China
Prior art keywords
data
reference data
sample
measured object
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110821351.9A
Other languages
Chinese (zh)
Other versions
CN113568343B (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.)
Suzhou Weichuang Electrical Technology Co ltd
Original Assignee
Suzhou Weichuang Electrical 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 Suzhou Weichuang Electrical Technology Co ltd filed Critical Suzhou Weichuang Electrical Technology Co ltd
Priority to CN202110821351.9A priority Critical patent/CN113568343B/en
Publication of CN113568343A publication Critical patent/CN113568343A/en
Application granted granted Critical
Publication of CN113568343B publication Critical patent/CN113568343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, surveillance

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for capturing arbitrary data. The method comprises the following steps: acquiring first sample measured object data and second sample measured object data in a measured object data sequence; acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence; and calculating to obtain target measured object data corresponding to the target reference data according to the data corresponding relation of the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data. The method and the device are used for solving the problems of inflexible capture mode and resource waste when the embedded system adopts a fixed data capture mode.

Description

Method, device, equipment and storage medium for capturing arbitrary data
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, a device, and a storage medium for capturing arbitrary data.
Background
In an embedded system, when an external signal is triggered, the embedded system needs to store the signal at a high speed. In the process, the embedded system is required to capture data of the external signal, and the accuracy of the captured data determines the high-speed performance of the embedded system.
In the prior art, in order to ensure the accuracy of capturing data by an embedded system, a fixed data capturing mode is generally adopted. In particular, embedded systems capture fixed types of data. If the embedded system needs to capture various different types of data, the embedded system needs to recognize different data types and then capture the data, which causes great waste of resources of the embedded system. The method can not flexibly capture the required data, and reduces the efficiency of data capture of the embedded system.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for capturing any data, which are used for solving the problems of inflexible capturing mode and resource waste when an embedded system adopts a fixed data capturing mode.
In a first aspect, an embodiment of the present application provides a method for capturing arbitrary data, which is applied to a second chip, and includes: acquiring first sample measured object data and second sample measured object data in a measured object data sequence; acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence; calculating and obtaining target measured object data corresponding to the target reference data according to the data corresponding relation between the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
Optionally, the acquiring the first sample measured object data and the second sample measured object data in the measured object data sequence includes: when a first time trigger signal transmitted by a timer is received, capturing the first sample measured object data in the measured object data sequence; when a second moment trigger signal transmitted by the timer is received, capturing the second sample measured object data in the measured object data sequence; the target reference data is reference data captured in the reference data sequence when the first chip receives a data capture trigger signal transmitted from the outside; the first sample reference data is reference data captured in the reference data sequence when the first chip receives the first time trigger signal; the second sample reference data is the reference data captured in the reference data sequence when the first chip receives the trigger signal at the second time.
Optionally, the calculating, according to the data correspondence between the measured object data sequence and the reference data sequence, to obtain target measured object data corresponding to the target reference data according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data, includes: acquiring a preset data calculation formula according to the data corresponding relation between the measured object data sequence and the reference data sequence, wherein the data calculation formula is as follows:
Figure BDA0003172076630000021
and calculating to obtain the target measured object data corresponding to the target reference data according to the data calculation formula.
Optionally, the first time trigger signal and the second time trigger signal are respectively time trigger signals generated by the timer in adjacent cycles, where the time trigger signals are generated by the timer with a preset duration as the cycle; the first time trigger signal is sent to the first chip and the second chip through the timer at the same time; and the second moment trigger signal is simultaneously sent to the first chip and the second chip through the timer.
In a second aspect, an embodiment of the present application provides a method for capturing arbitrary data, applied to a first chip, including: acquiring first sample reference data, second sample reference data and target reference data in a reference data sequence; transmitting the first sample reference data, the second sample reference data and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to a data corresponding relation between a measured object data sequence and the reference data sequence according to first sample measured object data, second sample measured object data, the target reference data, the first sample reference data and the second sample reference data; wherein the first sample reference data and the second sample reference data belong to the sequence of measured object data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
Optionally, the obtaining first sample reference data, second sample reference data and target reference data in the reference data sequence includes: capturing the first sample reference data in the reference data sequence upon receiving a first time trigger signal of a timer transmission; capturing the second sample reference data in the reference data sequence when receiving a second time trigger signal transmitted by the timer; capturing the target reference data in the reference data sequence when an externally transmitted data capture trigger signal is received.
In a third aspect, an embodiment of the present application provides a second chip apparatus for capturing arbitrary data, including: the first acquisition module is used for acquiring first sample measured object data and second sample measured object data in the measured object data sequence; the second acquisition module is used for acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence; a processing module, configured to calculate and obtain target measured object data corresponding to the target reference data according to the data correspondence between the measured object data sequence and the reference data sequence, according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
In a fourth aspect, an embodiment of the present application provides a first chip apparatus for capturing arbitrary data, including: the third acquisition module is used for acquiring the first sample reference data, the second sample reference data and the target reference data in the reference data sequence; a transmission module, configured to transmit the first sample reference data, the second sample reference data, and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to a data correspondence between a measured object data sequence and the reference data sequence, based on first sample measured object data, second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; wherein the first sample reference data and the second sample reference data belong to the sequence of measured object data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus; the memory for storing a computer program; the processor is configured to execute the program stored in the memory to implement the method for capturing arbitrary data according to the first aspect; alternatively, the method of capturing arbitrary data according to the second aspect is implemented.
In a sixth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method for capturing arbitrary data according to the first aspect; alternatively, the method of capturing arbitrary data according to the second aspect is implemented.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: in the method provided by the embodiment of the application, the second chip obtains the first sample measured object data and the second sample measured object data in the measured object data sequence, and then the second chip obtains the first sample reference data, the second sample reference data and the target reference data in the reference data sequence transmitted by the first chip. Each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence data. The first sample measured object data and the first sample reference data are corresponding, and the second sample measured object data and the second sample reference data are corresponding. Through the corresponding relation between the measured object data sequence and the reference data sequence, the second chip can calculate the target measured object data corresponding to the target reference data through the obtained data, namely the capture of the measured object data is completed.
According to the method, the target reference data is determined in the reference data sequence, and the target measured object data corresponding to the target reference data can be determined according to the corresponding relation between the measured object data sequence and the reference data sequence. In the process, the type of the data of the object to be measured does not need to be determined, and any one datum data is captured in the datum data sequence to be used as the target datum data, so that the target data of the object to be measured corresponding to the target datum data in the data sequence of the object to be measured can be determined, namely, the process of capturing any one datum of the object to be measured in the data sequence of the object to be measured is realized. Compared with the method for capturing fixed data, the method is more flexible in capturing mode, the specific type of the data of the detected object does not need to be detected, the data capturing precision is guaranteed, meanwhile, the diversity of data capturing is improved, an embedded system does not need to waste more resources, and the data capturing efficiency of the embedded system is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic connection diagram of a part of an embedded system structure provided in an embodiment of the present application;
FIG. 2 is a flow chart of the implementation steps of a method for capturing arbitrary data provided in an embodiment of the present application;
FIG. 3 is a schematic diagram showing a comparison between a measured object data sequence and a reference data sequence provided in an embodiment of the present application;
FIG. 4 is a schematic structural connection diagram of a second chip device for capturing arbitrary data provided in the embodiments of the present application;
FIG. 5 is a schematic diagram of a first chip device structure for capturing arbitrary data according to an embodiment of the present disclosure;
fig. 6 is a schematic structural connection diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
The method for capturing any data provided in the embodiment of the application is applied to an embedded system. The embedded system comprises a first chip, a second chip and a timer, wherein as shown in fig. 1, the timer can complete a high-precision timing function, the timer can simultaneously send signals to the first chip and the second chip, and the first chip can transmit data to the second chip. The first chip is a processing center which can independently realize the functions of data acquisition, processing, transmission and the like; meanwhile, the second chip is a processing center which can independently realize the functions of data acquisition, processing, transmission and the like. The first chip and the second chip are two independent processing centers, for example, the first chip is a first Micro Control Unit (MCU), and the second chip is a second MCU, where the protection scope of the present application is not limited by the implementation form of the first chip and the second chip.
In one embodiment, with the second chip as the execution subject, as shown in fig. 2, the specific steps of the method for capturing arbitrary data are as follows:
step 201, the second chip obtains a first sample measured object data and a second sample measured object data in the measured object data sequence.
In this embodiment, the data sequence of the object to be measured is a series of data to be captured arranged in time series. The data sequence of the measured object comprises at least one type of data. The second chip obtains the first sample measured object data and the second sample measured object data in the measured object data sequence. The first sample measured data and the second sample measured data correspond to different moments in the measured object data sequence.
In step 202, the second chip obtains first sample reference data, second sample reference data and target reference data transmitted by the first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence.
In this embodiment, the reference data sequence is arranged in advance in time series, and a series of data of an arbitrary one-bit data can be captured by the first chip. Preferably, the reference data sequence contains only one type of data. The reference data sequence is preset according to actual conditions and/or needs, and the application is not limited by the setting principle and specific setting content of the reference data sequence.
The first chip acquires first sample reference data, second sample reference data, and target reference data in a reference data sequence. The first sample reference data and the second sample reference data correspond to different time instants of the reference data sequence, respectively. The target reference data is the reference data captured by the first chip at the moment when the data of the measured object needs to be captured. After the first chip acquires the first sample reference data, the second sample reference data and the target data, the first chip transmits the first sample reference data, the second sample reference data and the target data to the second chip.
In this embodiment, each bit of measured object data in the measured object data sequence corresponds to each bit of reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data. That is, the first sample measured object data and the first sample reference data are data captured in the measured object data sequence and the reference data sequence by the second chip and the first chip respectively at the same time; the second sample measured object data and the second sample reference data are data captured in the measured object data sequence and the reference data sequence respectively by the second chip and the first chip at the same time. The first sample reference data and the second sample reference data are different at the time of capture.
And step 203, the second chip calculates and obtains target measured object data corresponding to the target reference data according to the data corresponding relation between the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data.
In this embodiment, since the data sequence of the object to be measured and the reference data sequence have an object relationship, after the first chip transmits the first sample reference data, the second sample reference data and the target reference data to the second chip, the second chip can calculate and obtain the target object to be measured corresponding to the target reference data according to the data correspondence between the data sequence of the object to be measured and the reference data sequence, according to the first sample object to be measured, the second sample object to be measured, the target reference data, the first sample reference data and the second sample reference data. Because the first chip can capture the reference data at any time as the target reference data, the process of capturing the data of the tested object at any time is equivalently realized, the data capturing precision is ensured, the data capturing diversity is improved, and the data capturing efficiency of the embedded system is improved.
In one embodiment, the first chip and the second chip respectively provide the trigger signal by a timer when acquiring data in the reference data sequence and the data sequence of the object to be tested. The second chip obtains a first sample measured object data and a second sample measured object data in the measured object data sequence, and the specific process is as follows: when receiving a first time trigger signal transmitted by a timer, the second chip captures first sample measured object data in a measured object data sequence; and when receiving a second time trigger signal transmitted by the timer, the second chip captures second sample measured object data in the measured object data sequence.
For the reference data sequence, the target reference data is the reference data captured in the reference data sequence when the first chip receives a data capture trigger signal transmitted from the outside; the first sample reference data is reference data captured in a reference data sequence when the first chip receives a first time trigger signal; the second sample reference data is reference data captured in the reference data sequence when the first chip receives the second time trigger signal.
In this embodiment, the first sample measured object data and the first sample reference data are captured when the first time trigger signal is received, so that it is ensured that the first sample measured object data captured by the second chip in the measured object data sequence corresponds to the first sample reference data captured by the first chip in the reference data sequence.
The second sample measured object data and the second sample reference data are captured when the trigger signal at the second moment is received, so that the second sample measured object data captured by the second chip in the measured object data sequence is ensured to correspond to the second sample reference data captured by the first chip in the reference data sequence.
In this embodiment, when any data in the data sequence of the object to be tested needs to be captured, the external device transmits a data capture trigger signal to the first chip. After receiving the data capture trigger signal, the first chip captures target reference data in a reference data sequence. And then the second chip calculates to obtain target measured object data corresponding to the target reference data.
In one embodiment, the first time trigger signal and the second time trigger signal are respectively time trigger signals generated by a timer in adjacent periods, wherein the time trigger signals are generated by the timer with a preset time length as a period; a first time trigger signal is sent to the first chip and the second chip through the timer at the same time; and the second moment trigger signal is simultaneously sent to the first chip and the second chip through the timer.
In this embodiment, the timer generates the time trigger signal with a preset time length as a period, and the first time trigger signal and the second time trigger signal are time trigger signals generated in adjacent periods. After the timer generates the first time trigger signal, the timer simultaneously sends the first time trigger signal to the first chip and the second chip to ensure that the first chip and the second chip can simultaneously receive the first time trigger signal, or ensure that the first chip and the second chip receive the first time trigger signal within an allowable time error range, so that the first sample reference data captured by the first chip corresponds to the first sample measured object data captured by the second chip.
Correspondingly, after the timer generates the second time trigger signal, the timer simultaneously sends the second time trigger signal to the first chip and the second chip to ensure that the first chip and the second chip can simultaneously receive the second time trigger signal, or ensure that the first chip and the second chip receive the second time trigger signal within the allowable time error range, so that the second sample reference data captured by the first chip corresponds to the second sample measured object data captured by the second chip.
In this embodiment, the timer is set as the preset duration of the period according to actual conditions and/or needs, and the protection scope of the present application is not limited by the setting principle and the setting content of the preset duration.
In a particular embodiment, the target reference data is arranged in the reference data sequence intermediate the first sample reference data and the second sample reference data. That is, after the first chip captures target reference data according to the externally transmitted data capture trigger signal, the first chip uses the previously captured sample reference data as the first sample reference data when capturing the target reference data, and transmits the next captured sample reference data as the second sample reference data when capturing the target reference data to the second chip.
And transmitting the two sample reference data closest to the target reference data capturing moment to the second chip so as to calculate and obtain the finally required target measured object data, thereby avoiding the error caused by the sample data being too large from the target data and further improving the data capturing precision.
In one embodiment, the second chip calculates and obtains target measured object data corresponding to the target reference data according to the data correspondence between the measured object data sequence and the reference data sequence, based on the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data, and the specific process is as follows:
acquiring a preset data calculation formula according to the data corresponding relation between the measured object data sequence and the reference data sequence, wherein the data calculation formula is as follows:
Figure BDA0003172076630000111
and calculating to obtain target measured object data corresponding to the target reference data according to a data calculation formula.
In this embodiment, each bit of measured object data in the measured object data sequence corresponds to each bit of reference data in the reference data sequence one by one according to the sequence order, and the target measured object data corresponding to the target reference data is linearly calculated by the data calculation formula. The data calculation formula has simple logic, is beneficial to improving the calculation speed of the second chip, and further improves the overall efficiency of data capture.
In a specific embodiment, as shown in fig. 3, two straight lines respectively represent a measured object data sequence and a reference data sequence, b (i) is first sample reference data, b (i +1) is second sample reference data, p (i) is first sample measured object data, p (i +1) is second sample measured object data, b (T) is target reference data captured by a first chip at time T, p (T) is target measured object data, and T is a preset duration of a timer as a period, where i is an integer greater than or equal to 1.
The timer transmits a first time trigger signal to the first chip and the second chip at the time t1, the first chip captures a first sample reference data b (i) in the reference data sequence, and the second chip captures a first sample measured object data p (i) in the measured object data sequence. And the timer simultaneously transmits a second time trigger signal to the first chip and the second chip at the time t2, the first chip captures second sample reference data b (i +1) in the reference data sequence, and the second chip captures second sample measured object data p (i +1) in the measured object data sequence. When the first chip receives a data capture trigger signal transmitted from the outside at time t, target reference data b (t) is captured in the reference data sequence.
Applying the data calculation formula in the above embodiment can obtain the following formula:
Figure BDA0003172076630000112
converting the formula to obtain a calculation formula of the target measured object data p (t), wherein the calculation formula comprises the following steps:
Figure BDA0003172076630000121
in this embodiment, the first chip may receive a data capture trigger signal transmitted from outside at any time to capture any data in the reference data sequence. Through the above process, the present embodiment can calculate and obtain the target measured object data corresponding to the target reference data, that is, capture of any data in the measured object data sequence is achieved.
According to the method for capturing any data, the second chip obtains first sample measured object data and second sample measured object data in a measured object data sequence, and then the second chip obtains first sample reference data, second sample reference data and target reference data in a reference data sequence transmitted by the first chip. Each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence data. The first sample measured object data and the first sample reference data are corresponding, and the second sample measured object data and the second sample reference data are corresponding. Through the corresponding relation between the measured object data sequence and the reference data sequence, the second chip can calculate the target measured object data corresponding to the target reference data through the obtained data, namely the capture of the measured object data is completed.
According to the method, the target reference data is determined in the reference data sequence, and the target measured object data corresponding to the target reference data can be determined according to the corresponding relation between the measured object data sequence and the reference data sequence. In the process, the type of the data of the object to be measured does not need to be determined, and any one datum data is captured in the datum data sequence to be used as the target datum data, so that the target data of the object to be measured corresponding to the target datum data in the data sequence of the object to be measured can be determined, namely, the process of capturing any one datum of the object to be measured in the data sequence of the object to be measured is realized.
For the method of capturing fixed data, when the main frequency of the processing chip is 100Mhz (Mhz for short), the error of the method in capturing data is within 10 nanoseconds (ns for short). According to the method for capturing the arbitrary data, when the arbitrary data in the data sequence of the object to be measured is captured through the reference data sequence, and when the main frequencies of the first chip and the second chip are both 100Mhz, the method for capturing the arbitrary data can also ensure that the error in data capturing is within 10 ns. That is, the method for capturing arbitrary data provided by the present application can ensure the same accuracy as the method for capturing fixed data. The method provided by the application does not sacrifice the accuracy of data capture.
Compared with the method for capturing fixed data, the method for capturing the arbitrary data is more flexible in capture mode, specific types of the data of the tested object do not need to be detected, the data capture precision is guaranteed, meanwhile, the diversity of data capture is improved, more resources are not wasted by an embedded system, and the efficiency of capturing the data by the embedded system is improved.
Based on the same concept, the method for capturing any data when the first chip is taken as the execution subject has the following implementation flow:
the method comprises the steps that a first chip obtains first sample reference data, second sample reference data and target reference data in a reference data sequence; the first chip transmits the first sample reference data, the second sample reference data and the target reference data to the second chip, so that the second chip calculates and obtains the target measured object data corresponding to the target reference data according to the data corresponding relation between the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data.
The first sample reference data and the second sample reference data belong to a data sequence of a measured object; each bit of measured object data in the measured object data sequence corresponds to each bit of reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
In one embodiment, a first chip acquires first sample reference data, second sample reference data, and target reference data in a reference data sequence, and the specific implementation process is as follows:
the first chip captures first sample reference data in a reference data sequence when receiving a first time trigger signal transmitted by a timer; when receiving a second moment trigger signal transmitted by the timer, the first chip captures second sample reference data in the reference data sequence; the first chip captures target reference data in a reference data sequence when receiving an externally transmitted data capture trigger signal.
The specific implementation part of the method for capturing any data implemented by using the first chip as the execution subject can refer to the process for implementing the method by using the second chip as the execution subject, and repeated details are not repeated.
Based on the same concept, the embodiment of the present application provides a second chip device for capturing any data, and the specific implementation of the device may refer to the description of the method embodiment section, and repeated descriptions are omitted, as shown in fig. 4, the device mainly includes:
a first obtaining module 401, configured to obtain first sample measured object data and second sample measured object data in a measured object data sequence;
a second obtaining module 402, configured to obtain first sample reference data, second sample reference data, and target reference data transmitted by a first chip, where the first sample reference data, the second sample reference data, and the target reference data belong to a reference data sequence;
a processing module 403, configured to calculate and obtain target measured object data corresponding to the target reference data according to the data correspondence between the measured object data sequence and the reference data sequence, based on the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; wherein, each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
Based on the same concept, the embodiment of the present application provides a first chip device for capturing arbitrary data, and the specific implementation of the device may refer to the description of the method embodiment section, and repeated descriptions are omitted, as shown in fig. 5, the device mainly includes:
a third obtaining module 501, configured to obtain first sample reference data, second sample reference data, and target reference data in a reference data sequence;
a transmission module 502, configured to transmit the first sample reference data, the second sample reference data, and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to a data correspondence between a measured object data sequence and a reference data sequence, based on the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; the first sample reference data and the second sample reference data belong to a data sequence of a measured object; each bit of measured object data in the measured object data sequence corresponds to each bit of reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 6, the electronic device mainly includes: a processor 601, a memory 602, and a communication bus 603, wherein the processor 601 and the memory 602 communicate with each other via the communication bus 603. The memory 602 stores a program executable by the processor 601, and the processor 601 executes the program stored in the memory 602 to implement the following steps: acquiring first sample measured object data and second sample measured object data in a measured object data sequence; acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence; calculating to obtain target measured object data corresponding to the target reference data according to the data corresponding relation of the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data; wherein, each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data;
alternatively, the first and second electrodes may be,
acquiring first sample reference data, second sample reference data and target reference data in a reference data sequence; transmitting the first sample reference data, the second sample reference data and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to the data corresponding relation between the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data; the first sample reference data and the second sample reference data belong to a data sequence of a measured object; each bit of measured object data in the measured object data sequence corresponds to each bit of reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
The communication bus 603 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 603 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The Memory 602 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one storage device located remotely from the processor 601.
The Processor 601 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to perform the method of capturing arbitrary data described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially 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 instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). 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, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for capturing arbitrary data, applied to a second chip, comprising:
acquiring first sample measured object data and second sample measured object data in a measured object data sequence;
acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence;
calculating and obtaining target measured object data corresponding to the target reference data according to the data corresponding relation between the measured object data sequence and the reference data sequence according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data and the second sample reference data;
each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence;
the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
2. The method of capturing arbitrary data as set forth in claim 1, wherein the acquiring a first sample measurand data and a second sample measurand data in a measurand data sequence includes:
when a first time trigger signal transmitted by a timer is received, capturing the first sample measured object data in the measured object data sequence;
when a second moment trigger signal transmitted by the timer is received, capturing the second sample measured object data in the measured object data sequence;
the target reference data is reference data captured in the reference data sequence when the first chip receives a data capture trigger signal transmitted from the outside;
the first sample reference data is reference data captured in the reference data sequence when the first chip receives the first time trigger signal;
the second sample reference data is reference data captured in the reference data sequence when the first chip receives the second time trigger signal.
3. The method of capturing arbitrary data according to claim 1, wherein the calculating, based on the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data, target measured object data corresponding to the target reference data in a data correspondence relationship between the measured object data series and the reference data series includes:
acquiring a preset data calculation formula according to the data corresponding relation between the measured object data sequence and the reference data sequence, wherein the data calculation formula is as follows:
Figure FDA0003172076620000021
and calculating to obtain the target measured object data corresponding to the target reference data according to the data calculation formula.
4. The method for capturing arbitrary data according to claim 2, wherein the first time trigger signal and the second time trigger signal are respectively time trigger signals generated by the timer in adjacent cycles, wherein the time trigger signals are generated by the timer for the cycles with a preset time length;
the first time trigger signal is sent to the first chip and the second chip through the timer at the same time;
and the second moment trigger signal is simultaneously sent to the first chip and the second chip through the timer.
5. A method for capturing arbitrary data, applied to a first chip, comprising:
acquiring first sample reference data, second sample reference data and target reference data in a reference data sequence;
transmitting the first sample reference data, the second sample reference data and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to a data corresponding relation between a measured object data sequence and the reference data sequence according to first sample measured object data, second sample measured object data, the target reference data, the first sample reference data and the second sample reference data;
wherein the first sample reference data and the second sample reference data belong to the sequence of measured object data;
each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order;
the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
6. The method of capturing arbitrary data as set forth in claim 5, wherein said obtaining first sample reference data, second sample reference data, and target reference data in a sequence of reference data comprises:
capturing the first sample reference data in the reference data sequence upon receiving a first time trigger signal of a timer transmission;
capturing the second sample reference data in the reference data sequence when receiving a second time trigger signal transmitted by the timer;
capturing the target reference data in the reference data sequence when an externally transmitted data capture trigger signal is received.
7. A second chip apparatus for capturing arbitrary data, comprising:
the first acquisition module is used for acquiring first sample measured object data and second sample measured object data in the measured object data sequence;
the second acquisition module is used for acquiring first sample reference data, second sample reference data and target reference data transmitted by a first chip, wherein the first sample reference data, the second sample reference data and the target reference data belong to a reference data sequence;
a processing module, configured to calculate and obtain target measured object data corresponding to the target reference data according to the data correspondence between the measured object data sequence and the reference data sequence, according to the first sample measured object data, the second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
8. A first chip apparatus for capturing arbitrary data, comprising:
the third acquisition module is used for acquiring the first sample reference data, the second sample reference data and the target reference data in the reference data sequence;
a transmission module, configured to transmit the first sample reference data, the second sample reference data, and the target reference data to a second chip, so that the second chip calculates and obtains target measured object data corresponding to the target reference data according to a data correspondence between a measured object data sequence and the reference data sequence, based on first sample measured object data, second sample measured object data, the target reference data, the first sample reference data, and the second sample reference data; wherein the first sample reference data and the second sample reference data belong to the sequence of measured object data; each measured object data in the measured object data sequence corresponds to each reference data in the reference data sequence one by one according to the sequence order; the first sample measured object data corresponds to the first sample reference data, and the second sample measured object data corresponds to the second sample reference data.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, executing a program stored in the memory, implementing the method of capturing arbitrary data of any of claims 1 to 4;
alternatively, the first and second electrodes may be,
implementing the method of capturing arbitrary data of any of claims 5 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method of capturing arbitrary data of any one of claims 1 to 4;
alternatively, the first and second electrodes may be,
implementing the method of capturing arbitrary data of any of claims 5 to 6.
CN202110821351.9A 2021-07-20 2021-07-20 Method, device, equipment and storage medium for capturing arbitrary data Active CN113568343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110821351.9A CN113568343B (en) 2021-07-20 2021-07-20 Method, device, equipment and storage medium for capturing arbitrary data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110821351.9A CN113568343B (en) 2021-07-20 2021-07-20 Method, device, equipment and storage medium for capturing arbitrary data

Publications (2)

Publication Number Publication Date
CN113568343A true CN113568343A (en) 2021-10-29
CN113568343B CN113568343B (en) 2023-04-07

Family

ID=78165869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110821351.9A Active CN113568343B (en) 2021-07-20 2021-07-20 Method, device, equipment and storage medium for capturing arbitrary data

Country Status (1)

Country Link
CN (1) CN113568343B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0614763D0 (en) * 2005-07-28 2006-09-06 Agilent Technologies Inc Imaging serial interface ROM
US20090113286A1 (en) * 2007-10-26 2009-04-30 Flemming Boegelund System for processing mixed-format files
CN109947812A (en) * 2018-07-09 2019-06-28 平安科技(深圳)有限公司 Consecutive miss value fill method, data analysis set-up, terminal and storage medium
CN110147367A (en) * 2019-05-14 2019-08-20 中国科学院深圳先进技术研究院 A kind of temperature missing data complementing method, system and electronic equipment
CN110309161A (en) * 2019-06-06 2019-10-08 新华三大数据技术有限公司 A kind of method of data synchronization, device and server
CN112182500A (en) * 2019-07-01 2021-01-05 深圳车之问科技有限公司 Method and device for acquiring accumulated data of electric control unit of motor vehicle and computing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0614763D0 (en) * 2005-07-28 2006-09-06 Agilent Technologies Inc Imaging serial interface ROM
US20090113286A1 (en) * 2007-10-26 2009-04-30 Flemming Boegelund System for processing mixed-format files
CN109947812A (en) * 2018-07-09 2019-06-28 平安科技(深圳)有限公司 Consecutive miss value fill method, data analysis set-up, terminal and storage medium
CN110147367A (en) * 2019-05-14 2019-08-20 中国科学院深圳先进技术研究院 A kind of temperature missing data complementing method, system and electronic equipment
CN110309161A (en) * 2019-06-06 2019-10-08 新华三大数据技术有限公司 A kind of method of data synchronization, device and server
CN112182500A (en) * 2019-07-01 2021-01-05 深圳车之问科技有限公司 Method and device for acquiring accumulated data of electric control unit of motor vehicle and computing equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴琼: "适用于光学运动捕捉数据校正的拟合算法", 《计算机工程》 *
徐继财: "汽车间歇性故障数据捕捉记录仪开发设计", 《设计研究》 *

Also Published As

Publication number Publication date
CN113568343B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN108401445B (en) Circuit, method and related chip, system and equipment for measuring time
CN102420719B (en) Apparatus for testing PCIe bus bandwidth and method thereof
JP5669853B2 (en) Improved clock offset measurement techniques
CN112463700B (en) Method and device for controlling AXI bus bandwidth
CN108052473B (en) Serial communication device
CN111082887B (en) System, method, device, equipment and medium for signal transmission delay compensation
CN114826542B (en) Data transmission method, device, equipment and medium based on asynchronous serial communication
CN109408309A (en) The test method and device of multiple terminals
CN113726592B (en) Transmission delay test method, system and related components of edge server
US9634777B2 (en) Systems and methods for measurement of electrical channel loss
CN113568343B (en) Method, device, equipment and storage medium for capturing arbitrary data
CN117388673A (en) ATE equipment and chip testing method thereof, electronic equipment and storage medium
CN113946480A (en) Detection device and method for I2C bus
CN114443537B (en) PCIE signal transmitting end parameter configuration method, device, equipment and medium
US7454543B2 (en) Early high speed serializer-deserializer (HSS)internal receive (Rx) interface for data sampling clock signals on parallel bus
Champion et al. TiCkS: A flexible White-Rabbit based time-stamping board
CN113468095B (en) High-speed serial transmission data phase alignment method, storage medium and terminal equipment
CN111077531B (en) UWB communication method, medium, terminal and device based on time division multiple access
WO2018002717A1 (en) Signal processing apparatus and method, and electronic device comprising the apparatus
CN108605026A (en) A kind of method for transmitting signals, device and terminal device
CN111371453A (en) Signal period measuring circuit and method
US20200158764A1 (en) Voltage detection system and method
CN116226027B (en) Data transmission system, method, device, communication equipment and storage medium
CN115459897B (en) Step length synchronous calibration method and device in power real-time simulation and related equipment
CN109471663B (en) Method and device for executing single chip microcomputer program

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