CN111078622A - Multi-channel data acquisition and screening method and device - Google Patents

Multi-channel data acquisition and screening method and device Download PDF

Info

Publication number
CN111078622A
CN111078622A CN201811214563.5A CN201811214563A CN111078622A CN 111078622 A CN111078622 A CN 111078622A CN 201811214563 A CN201811214563 A CN 201811214563A CN 111078622 A CN111078622 A CN 111078622A
Authority
CN
China
Prior art keywords
data
data frames
storage
screening
digital signals
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
CN201811214563.5A
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.)
Wuhan Optical Valley Aerospace Sanjiang Laser Industry Technology Research Institute Co Ltd
Original Assignee
Wuhan Optical Valley Aerospace Sanjiang Laser Industry Technology Research Institute 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 Wuhan Optical Valley Aerospace Sanjiang Laser Industry Technology Research Institute Co Ltd filed Critical Wuhan Optical Valley Aerospace Sanjiang Laser Industry Technology Research Institute Co Ltd
Priority to CN201811214563.5A priority Critical patent/CN111078622A/en
Publication of CN111078622A publication Critical patent/CN111078622A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for acquiring and screening multi-channel data, which are used for acquiring multi-channel analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment. The technical problem that the data acquisition and storage system in the prior art does not screen data and cannot meet the operation requirements of users on data sections in the storage equipment is solved. The technical effects of collecting, selectively inputting, downloading and deleting the multi-channel data and storing the data according to the sequence are achieved by using the time as a reference standard and using the processing device on the upper computer control panel.

Description

Multi-channel data acquisition and screening method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for acquiring and screening multi-channel data.
Background
The traditional data acquisition and storage system is mainly based on a single processor, and data acquisition and recording are effectively completed through the control of an acquisition device and storage equipment. However, such systems do not have a data screening function, and cannot reasonably utilize the space of the storage device in some application occasions with high real-time requirements and large data volume, and especially if data is not screened, the requirement on the capacity of the device is relatively high, so that enough storage space is ensured; in addition, the prior art also proposes a framework of utilizing an upper computer and a lower computer, but the functions of the upper computer are often limited to simpler functions such as acquisition, recording, display and the like.
However, in the process of implementing the technical solution in the embodiment of the present application, the applicant of the present invention finds that the above prior art has at least the following technical problems:
the data acquisition and storage system in the prior art does not screen data, and cannot meet the technical problem of user operation requirements on data segments in the storage equipment.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring and screening multi-channel data, which solve the technical problem that a data acquisition and storage system in the prior art cannot meet the operation requirement of a user on a data segment in storage equipment because the data is not screened.
In view of the above problems, the embodiments of the present application are provided to provide a method and an apparatus for multi-channel data collection and screening.
In a first aspect, the present invention provides a method for multi-channel data acquisition and screening, the method comprising: obtaining a plurality of paths of analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
Preferably, the screening the multiple data frames according to the time stamp information and the control command, and sequentially writing the multiple data frames meeting the storage requirement into the storage device includes: obtaining a preset time threshold; judging whether the time scale information of the data frame is within the preset time threshold value or not; if the time scale information of the data frame is within the preset time threshold, a write-in instruction from an upper computer is obtained; and writing the data frame needing to be written into the storage equipment according to the writing instruction.
Preferably, after determining whether the multiple data frames meet the storage requirement, the method further includes: and if the time mark information of the data frame is not in the preset time threshold, writing or abandoning the data frame according to the time mark information, and deleting the data frame which does not need to be written.
Preferably, the screening the multiple data frames according to the time stamp information and the control command, and sequentially writing the multiple data frames meeting the storage requirement into the storage device includes: acquiring an instruction for starting to log in; according to the instruction for starting the recording, the data frames are continuously recorded and written into the storage device; obtaining an instruction of stopping recording; and stopping continuous recording and writing of the data frames according to the recording stopping instruction.
Preferably, after the screening the data frames according to the time stamp information and the control command and sequentially writing the multiple data frames meeting the storage requirement into the storage device, the method includes: judging whether the storage equipment is fully written; if the storage equipment is fully written, obtaining prompt information, wherein the prompt information is used for prompting that the storage space of the storage equipment is insufficient; and deleting the subsequent data frames according to the prompt information.
Preferably, after determining whether the storage device is fully written, the method further includes: and if the storage equipment is not fully written, screening the data frames according to the time mark information and the control command, and sequentially writing the multi-channel data frames meeting the storage requirement into the storage equipment.
In a second aspect, the present invention provides a multi-channel data collecting and screening apparatus, comprising:
a first obtaining unit, configured to obtain multiple paths of analog signals;
a first conversion unit for converting the plurality of analog signals into a plurality of digital signals;
a second obtaining unit, configured to perform framing on the multiple paths of digital signals, and add time mark information and a frame header to the multiple paths of digital signals to obtain a data frame;
and the first execution unit is used for screening the data frames according to the time mark information and the control command and sequentially writing the multi-channel data frames meeting the storage requirement into the storage device.
Preferably, the apparatus further comprises:
a third obtaining unit configured to obtain a preset time threshold;
a first judging unit, configured to judge whether time scale information of the data frame is within the preset time threshold;
a fourth obtaining unit, configured to obtain a write instruction from an upper computer if the time scale information of the data frame is within the preset time threshold;
and the second execution unit is used for writing the data frame needing to be written into the storage equipment according to the writing instruction.
Preferably, the apparatus further comprises:
and a fifth obtaining unit, configured to, if the time stamp information of the data frame is not within the preset time threshold, perform a write-in or discard operation on the data frame according to the time stamp information, and delete a data frame that does not need to be written in.
Preferably, the apparatus further comprises:
a sixth obtaining unit configured to obtain a start instruction of admission;
a third execution unit, configured to perform continuous recording on the data frame according to the recording start instruction and write the data frame into the storage device;
a seventh obtaining unit, configured to obtain a recording stop instruction;
and the fourth execution unit is used for stopping continuous recording and writing of the data frame according to the recording stopping instruction.
Preferably, the apparatus further comprises:
a second determination unit configured to determine whether the storage device is fully written;
an eighth obtaining unit, configured to obtain a prompt message if the storage device is full, where the prompt message is used to prompt that the storage space of the storage device is insufficient;
and the first deleting unit is used for deleting the subsequent data frames according to the prompt information.
Preferably, the apparatus further comprises:
and the fifth execution unit is used for screening the data frames according to the time mark information and the control command and sequentially writing the multi-channel data frames meeting the storage requirement into the storage equipment if the storage equipment is not fully written.
In a third aspect, the present invention provides a multi-channel data collecting and screening apparatus, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the following steps when executing the program: obtaining a plurality of paths of analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: obtaining a plurality of paths of analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides a multi-channel data acquisition and screening method and a device, which can obtain multi-channel analog signals through multi-channel acquisition hardware, can be suitable for various multi-channel parallel working environments, convert the multi-channel analog signals into multi-channel digital signals, frame the multi-channel digital signals, add time mark information and a frame header to the multi-channel digital signals to obtain data frames for facilitating data transmission, wherein the time mark information is the acquisition time of the data frames, the frame header is a string of bytes with fixed length and fixed content and is used for indicating the arrival of new frame data, and finally, according to the time mark information and a control command, the data frames are screened according to the acquisition time of time mark information reaction, the multi-channel data frames meeting the storage requirement are sequentially written into a storage device, so that the time is taken as a reference, the technical effects of collecting, selectively inputting, downloading and deleting the multi-path data and effectively storing the multi-path data are achieved, and therefore the technical problem that the data collection and storage system in the prior art does not screen the data and cannot meet the operation requirement of a user on the data section in the storage device is solved. The technical effects that the data frame structure is clear, the processor can conveniently identify and analyze the data, the data is screened according to the time mark information, the effective data is stored, the multi-channel data is collected and selectively input, downloaded, deleted and stored, and the operation requirements of a user on the data section in the storage device are met are achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
FIG. 1 is a schematic flow chart of a method for multi-channel data collection and screening according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a data acquisition and screening apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a multi-channel data collecting and screening apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another multi-channel data collecting and screening apparatus according to an embodiment of the present invention.
Description of reference numerals: the device comprises a two-way ADC chip 1, a posture and time service chip 2, a network interface 3, a storage device 4, a first obtaining unit 11, a first conversion unit 12, a second obtaining unit 13, a first execution unit 14, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304 and a bus interface 306.
Detailed Description
The embodiment of the invention provides a method and a device for acquiring and screening multi-channel data, which are used for solving the technical problem that a data acquisition and storage system in the prior art cannot meet the operation requirement of a user on a data segment in storage equipment because the data is not screened.
The technical scheme provided by the invention has the following general idea:
obtaining a plurality of paths of analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment. The technical effects of collecting, selectively inputting, downloading and deleting the multi-channel data and storing the data according to the sequence are achieved by using the time as a reference standard and using the processing device on the upper computer control panel.
It should be understood that the FPGA in the embodiment of the present invention is an abbreviation of Field-Programmable Gate Array, i.e. Field-Programmable Gate Array, which is a product of further development on the basis of Programmable devices such as PAL, GAL, CPLD, etc. The circuit is a semi-custom circuit in the field of Application Specific Integrated Circuits (ASIC), not only overcomes the defects of the custom circuit, but also overcomes the defect that the number of gate circuits of the original programmable device is limited. The FPGA adopts a concept of a Logic cell array lca (Logic cell array), and includes three parts, namely, a configurable Logic module clb (configurable Logic block), an input-Output module iob (input Output block), and an internal connection (Interconnect). A Field Programmable Gate Array (FPGA) is a programmable device that has a different structure than traditional logic circuits and gate arrays (such as PAL, GAL and CPLD devices). The FPGA utilizes small lookup tables (16 × 1RAM) to realize combinational logic, each lookup table is connected to the input end of a D flip-flop, and the flip-flops drive other logic circuits or drive I/O (input/output) circuits, so that basic logic unit modules capable of realizing both combinational logic functions and sequential logic functions are formed, and the modules are connected with each other or connected to an I/O (input/output) module by utilizing metal connecting wires. The logic of the FPGA is implemented by loading programming data into the internal static memory cells, the values stored in the memory cells determine the logic function of the logic cells and the way of the connections between the modules or between the modules and the I/O and finally the functions that can be implemented by the FPGA, which allows an unlimited number of programming.
It should be understood that the ADC is an a/D converter in the embodiment of the present invention, and the analog signal is converted into a digital signal by the a/D converter.
It should be understood that, in the embodiment of the present invention, the DSP performs digital signal processing, and is english: digital signal processing, abbreviated as DSP, is a professional basic course oriented to electronic information discipline, and the professional course is first repaired into a signal and system. A DSP chip, also known as a digital signal processor, is a microprocessor particularly suitable for performing digital signal processing operations, and is mainly applied to rapidly implement various digital signal processing algorithms in real time. According to the requirements of digital signal processing, a DSP chip generally has the following main characteristics: (1) one multiplication and one addition can be completed in one instruction cycle; (2) the program and the data space are separated, and the instruction and the data can be accessed simultaneously; (3) the chip is provided with a fast RAM which can be accessed in two blocks at the same time through independent data buses; (4) hardware support with low or no overhead loops and jumps; (5) fast interrupt handling and hardware I/O support; (6) having a plurality of hardware address generators operating in a single cycle; (7) multiple operations may be performed in parallel; (8) and pipeline operation is supported, so that the operations of fetching, decoding, executing and the like can be executed in an overlapping way. In a broad sense, digital signal processing is a technical discipline that studies signals to be analyzed, transformed, filtered, detected, modulated, demodulated and rapidly calculated by digital methods. But many believe that: the digital signal processing is mainly used for researching a digital filtering technology, a discrete transform fast algorithm and a spectrum analysis method. With the development of digital circuit and system technology and computer technology, digital signal processing technology has been developed accordingly, and its application field is very wide.
It should be understood that the EMIF Interface in the embodiment of the present invention is an External Memory Interface (EMIF), an external memory Interface, which is an Interface on a TMS DSP device, and may be specifically divided into EMIFA and EMIFB. Generally, EMIF can implement the connection of DSP and different types of memories (SRAM, Flash RAM, DDR-RAM, etc.). Typically, EMIFs are connected to FPGAs, thereby enabling the FPGA platform to act as a co-processor, high-speed data processor, or high-speed data transfer interface. The design interface provides a seamless connection of the FPGA blocks to the RAM. In read/write, FIFO or memory mode, one side of the dual port block RAM is used to enable communication with the DSP. And the other side is used for realizing the communication with an internal FPGA logic circuit or a platform-FPGA embedded processor. In the process of using the DSP, the TMS320XX dspextra Memory Interface (EMIF) Reference Guide of TI may be referred to when designing the external Memory Interface. Where XX represents a particular dsp processor.
It should be understood that, in the embodiment of the present invention, the upp (universal phone processor) is a core processing module of the mobile phone. The DSP is responsible for the conversion of digital signals and analog signals. An interface exists between the UPP and the UEM through which communications between the UPP and the UEM are conducted. The UPP is responsible for the operation of the devices of the mobile phone itself, such as the headset, microphone, display, etc., in addition to the operating system of the whole mobile phone. Besides, the system is also responsible for the operation of cache and Flash (equivalent to a hard disk).
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
Fig. 1 is a schematic flow chart of a method for multi-channel data acquisition and screening according to an embodiment of the present invention. As shown in fig. 1 and fig. 2, an embodiment of the present invention provides a method for acquiring and screening multiple channels of data, where the method is based on a data acquisition and screening apparatus, and the method includes:
step 110: multiple analog signals are obtained.
Specifically, analog signals are acquired in a multi-path mode through an analog/digital conversion chip on a circuit board in the data acquisition and screening device, and the multi-path analog signals are obtained, wherein the data acquisition and screening device in the embodiment of the invention is mainly composed of four double-path ADC chips 1, and eight analog signals can be converted into digital signals in parallel. The acquisition module realizes multi-path acquisition, and can achieve the technical effect of being suitable for various multi-path parallel working environments.
Step 120: and converting the multi-path analog signals into multi-path digital signals.
Specifically, the analog/digital conversion chip converts the multiple analog signals into multiple digital signals, which facilitates data transmission.
Step 130: framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames.
Specifically, framing is performed on the acquired multiple paths of digital signals in an FPGA in the data acquisition and screening device, time mark information and a frame header are added to form a data frame, and network data transmission is performed, wherein the time mark information forming the data frame is provided by a posture and time service chip 3 in the data acquisition and screening device, and the posture and time service chip 3 is used for acquiring standard time signals and transmitting the information to equipment needing time information in a system through various interface types, so that time synchronization of the whole system can be achieved. The time mark information is used for recording the acquisition time of the frame data, and the frame header is a string of bytes with fixed length and fixed content and is used for informing the main control device of the arrival of new frame data.
Step 140: and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage device 4.
Further, the screening the multiple data frames according to the time stamp information and the control command, and sequentially writing the multiple data frames meeting the storage requirement into the storage device 4 includes: obtaining a preset time threshold; judging whether the time scale information of the data frame is within the preset time threshold value or not; if the time scale information of the data frame is within the preset time threshold, a write-in instruction from an upper computer is obtained; and writing the data frame needing to be written into the storage device 4 according to the writing instruction.
Further, after determining whether the multiple data frames meet the storage requirement, the method further includes: and if the time mark information of the data frame is not in the preset time threshold, writing or abandoning the data frame according to the time mark information, and deleting the data frame which does not need to be written.
Further, the screening the multiple data frames according to the time stamp information and the control command, and sequentially writing the multiple data frames meeting the storage requirement into the storage device 4 includes: acquiring an instruction for starting to log in; according to the instruction for starting the recording, the data frames are continuously recorded and written into the storage device 4; obtaining an instruction of stopping recording; and stopping continuous recording and writing of the data frames according to the recording stopping instruction.
Specifically, data screening and storage are performed according to the composed data frames, under the control of an upper computer, the data frames are screened according to time scale information and control commands in the data frames according to instructions of the upper computer, the data frames meeting storage requirements are sequentially written into a storage device 4, a hardware circuit receives control signals sent by the upper computer mainly through a network interface 3 on the DSP, and the control signals transmitted by the upper computer mainly comprise: the storage "start time" and "end time" in the time scale judgment mode, and "start enrollment" and "end enrollment" in the forced enrollment mode. The command is transmitted to the FPGA through an EMIF interface in the data acquisition and screening device, the FPGA screens data frames through time scale information and a control command, during screening, the data frames with the time scale information meeting a set time range are downloaded, the numerical value frames not meeting the time range requirement are deleted, and the data frames meeting the requirement are transmitted to the DSP through a UPP interface. The DSP, in addition to communicating with the upper computer, also manages the storage device 4, and is capable of sequentially writing data frames into the storage device 4 and extracting the time stamp information in the data frames, after which the user can acquire "observing the time information of the data frames stored in the storage device 4 by means of the" time stamp "of the" storage device status "in the upper computer. After the time information of the data exists, the DSP can also arbitrarily select a time period to delete the data frame in the time period. If the upper computer is in the time mark judging mode and learns that the time mark of the current data frame is in a preset time period, recording the current data frame and writing the current data frame into the storage device 4; if the instruction of 'start recording' is received in the forced recording mode, the judgment on the time mark information is ignored, and the data frame is continuously recorded and written into the storage device 4 until the main control device receives the instruction of 'end recording' sent by the upper computer. In addition, the upper computer may also perform a downloading or deleting operation on the data frame in the storage device 4 with the acquisition time period as a standard. The data screening can be controlled by an upper computer in real time, the screening precision of time mark information can reach millisecond level in a time mark judging mode, and meanwhile, the data can be manually recorded under artificial control, so that the recording process has stronger controllability; the data frame structure is clear, and the core processor can be conveniently identified and analyzed. The method provided by the embodiment of the invention is suitable for recording radar echo data, and when a false alarm detection phenomenon occurs in a radar and then a target is judged to be wrong, data containing effective information of the moving target can be completely recorded as long as the approximate measured period of the moving target is predicted in advance. According to the time scale information and manual recording control, under the condition that interference equipment exists around the radar, the data containing the effective information of the detected moving target can be still acquired and recorded. The technical problem that a data acquisition and storage system in the prior art does not screen data and cannot meet the operation requirements of a user on data sections in the storage device 4 is solved, and the technical effects of acquiring, selectively inputting, downloading and deleting multi-path data and storing the data according to the sequence by taking time as a reference through a processing device on an upper computer control panel are achieved.
Further, after the screening the data frames according to the time stamp information and the control command and sequentially writing the multiple data frames meeting the storage requirement into the storage device 4, the method includes: judging whether the storage device 4 is full; if the storage device 4 is full, obtaining prompt information, wherein the prompt information is used for prompting that the storage space of the storage device 4 is insufficient; and deleting the subsequent data frames according to the prompt information.
Further, after determining whether the storage device 4 is fully written, the method further includes: and if the storage equipment 4 is not fully written, screening the data frames according to the time mark information and the control command, and sequentially writing the multi-channel data frames meeting the storage requirement into the storage equipment 4.
Specifically, in either mode, if the storage device 4 is full, the host computer will present information such as "insufficient storage device space" on the display panel, and when insufficient storage device 4 space occurs, the subsequent data frame will be discarded directly. The state that the upper computer can check the data frames stored in the storage device 4 in real time is achieved, so that the data frames in the storage device 4 can be stored or deleted according to the time period, all the data frames in the storage device 4 can be directly operated, and the technical effect of effectively utilizing the storage space is ensured.
Example two
Based on the same inventive concept as the multi-channel data acquisition and screening method in the foregoing embodiment, the present invention further provides a multi-channel data acquisition and screening apparatus, as shown in fig. 3, the apparatus includes:
a first obtaining unit 11, where the first obtaining unit 11 is configured to obtain multiple analog signals;
a first conversion unit 12, wherein the first conversion unit 12 is configured to convert the multiple analog signals into multiple digital signals;
a second obtaining unit 13, where the second obtaining unit 13 is configured to perform framing on the multiple paths of digital signals, and add time mark information and a frame header to the multiple paths of digital signals to obtain data frames;
and the first execution unit 14 is configured to filter the data frames according to the time stamp information and the control command, and sequentially write multiple data frames meeting the storage requirement into the storage device 4.
Further, the apparatus further comprises:
a third obtaining unit configured to obtain a preset time threshold;
a first judging unit, configured to judge whether time scale information of the data frame is within the preset time threshold;
a fourth obtaining unit, configured to obtain a write instruction from an upper computer if the time scale information of the data frame is within the preset time threshold;
and the second execution unit is used for writing the data frame needing to be written into the storage device 4 according to the writing instruction.
Further, the apparatus further comprises:
and a fifth obtaining unit, configured to, if the time stamp information of the data frame is not within the preset time threshold, perform a write-in or discard operation on the data frame according to the time stamp information, and delete a data frame that does not need to be written in.
Further, the apparatus further comprises:
a sixth obtaining unit configured to obtain a start instruction of admission;
a third execution unit, configured to perform continuous recording on the data frame according to the recording start instruction and write the data frame into the storage device 4;
a seventh obtaining unit, configured to obtain a recording stop instruction;
and the fourth execution unit is used for stopping continuous recording and writing of the data frame according to the recording stopping instruction.
Further, the apparatus further comprises:
a second determination unit configured to determine whether the storage device 4 is fully written;
an eighth obtaining unit, configured to obtain prompt information if the storage device 4 is full, where the prompt information is used to prompt that the storage space of the storage device 4 is insufficient;
and the first deleting unit is used for deleting the subsequent data frames according to the prompt information.
Further, the apparatus further comprises:
and the fifth execution unit is used for screening the data frames according to the time mark information and the control command and sequentially writing the multi-channel data frames meeting the storage requirement into the storage device 4 if the storage device 4 is not fully written.
Various variations and embodiments of the aforementioned multi-channel data collecting and screening method in the first embodiment of fig. 1 are also applicable to the multi-channel data collecting and screening apparatus of this embodiment, and a method for implementing the multi-channel data collecting and screening apparatus in this embodiment is clear to those skilled in the art from the foregoing detailed description of the multi-channel data collecting and screening method, so for the sake of brevity of the description, detailed descriptions thereof are omitted here.
EXAMPLE III
Based on the same inventive concept as the multi-channel data collecting and screening method in the foregoing embodiments, the present invention further provides a multi-channel data collecting and screening apparatus, on which a computer program is stored, which when executed by a processor implements the steps of any one of the foregoing methods of the network right authentication method.
Where in fig. 4 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Example four
Based on the same inventive concept as the multi-channel data collecting and screening method in the foregoing embodiments, the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, implements the following steps:
obtaining a plurality of paths of analog signals; converting the multi-path analog signals into multi-path digital signals; framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames; and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage device 4.
In a specific implementation, when the program is executed by a processor, any method step in the first embodiment may be further implemented.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides a multi-channel data acquisition and screening method and a device, which can obtain multi-channel analog signals through multi-channel acquisition hardware, can be suitable for various multi-channel parallel working environments, convert the multi-channel analog signals into multi-channel digital signals, frame the multi-channel digital signals, add time mark information and a frame header to the multi-channel digital signals to obtain data frames for facilitating data transmission, wherein the time mark information is the acquisition time of the data frames, the frame header is a string of bytes with fixed length and fixed content and is used for indicating the arrival of new frame data, and finally, according to the time mark information and a control command, the data frames are screened according to the acquisition time of time mark information reaction, the multi-channel data frames meeting the storage requirement are sequentially written into a storage device, so that the time is taken as a reference, the technical effects of collecting, selectively inputting, downloading and deleting the multi-path data and effectively storing the multi-path data are achieved, and therefore the technical problem that the data collection and storage system in the prior art does not screen the data and cannot meet the operation requirement of a user on the data section in the storage device is solved. The technical effects that the data frame structure is clear, the processor can conveniently identify and analyze the data, the data is screened according to the time mark information, the effective data is stored, the multi-channel data is collected and selectively input, downloaded, deleted and stored, and the operation requirements of a user on the data section in the storage device are met are achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A multi-channel data acquisition and screening method is characterized by comprising the following steps:
obtaining a plurality of paths of analog signals;
converting the multi-path analog signals into multi-path digital signals;
framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames;
and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
2. The method of claim 1, wherein the screening the plurality of data frames according to the time stamp information and the control command, and sequentially writing the plurality of data frames meeting the storage requirement into the storage device comprises:
obtaining a preset time threshold;
judging whether the time scale information of the data frame is within the preset time threshold value or not;
if the time scale information of the data frame is within the preset time threshold, a write-in instruction from an upper computer is obtained;
and writing the data frame needing to be written into the storage equipment according to the writing instruction.
3. The method of claim 2, wherein after determining whether the plurality of data frames meet the storage requirement, further comprising:
and if the time mark information of the data frame is not in the preset time threshold, writing or abandoning the data frame according to the time mark information, and deleting the data frame which does not need to be written.
4. The method of claim 2, wherein the screening the plurality of data frames according to the time stamp information and the control command, and sequentially writing the plurality of data frames meeting the storage requirement into the storage device comprises:
acquiring an instruction for starting to log in;
according to the instruction for starting the recording, the data frames are continuously recorded and written into the storage device;
obtaining an instruction of stopping recording;
and stopping continuous recording and writing of the data frames according to the recording stopping instruction.
5. The method as claimed in claim 1, wherein said screening said data frames according to said time stamp information and said control command, and after sequentially writing a plurality of data frames meeting a storage requirement into a storage device, comprises:
judging whether the storage equipment is fully written;
if the storage equipment is fully written, obtaining prompt information, wherein the prompt information is used for prompting that the storage space of the storage equipment is insufficient;
and deleting the subsequent data frames according to the prompt information.
6. The method of claim 5, wherein determining whether the storage device is full further comprises:
and if the storage equipment is not fully written, screening the data frames according to the time mark information and the control command, and sequentially writing the multi-channel data frames meeting the storage requirement into the storage equipment.
7. The utility model provides a multichannel data acquisition and sieving mechanism which characterized in that, the device includes:
a first obtaining unit, configured to obtain multiple paths of analog signals;
a first conversion unit for converting the plurality of analog signals into a plurality of digital signals;
a second obtaining unit, configured to perform framing on the multiple paths of digital signals, and add time mark information and a frame header to the multiple paths of digital signals to obtain a data frame;
and the first execution unit is used for screening the data frames according to the time mark information and the control command and sequentially writing the multi-channel data frames meeting the storage requirement into the storage device.
8. A multipath data acquisition and screening device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and is characterized in that the processor executes the program to realize the following steps:
obtaining a plurality of paths of analog signals;
converting the multi-path analog signals into multi-path digital signals;
framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames;
and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
9. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the steps of:
obtaining a plurality of paths of analog signals;
converting the multi-path analog signals into multi-path digital signals;
framing the multi-channel digital signals, and adding time mark information and a frame header to the multi-channel digital signals to obtain data frames;
and screening the data frames according to the time mark information and the control command, and sequentially writing the multiple paths of data frames which meet the storage requirement into the storage equipment.
CN201811214563.5A 2018-10-18 2018-10-18 Multi-channel data acquisition and screening method and device Pending CN111078622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811214563.5A CN111078622A (en) 2018-10-18 2018-10-18 Multi-channel data acquisition and screening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811214563.5A CN111078622A (en) 2018-10-18 2018-10-18 Multi-channel data acquisition and screening method and device

Publications (1)

Publication Number Publication Date
CN111078622A true CN111078622A (en) 2020-04-28

Family

ID=70308631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811214563.5A Pending CN111078622A (en) 2018-10-18 2018-10-18 Multi-channel data acquisition and screening method and device

Country Status (1)

Country Link
CN (1) CN111078622A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925704A (en) * 2021-02-04 2021-06-08 湖北三江航天红峰控制有限公司 Multi-path ignition time sequence testing method and system and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4928246A (en) * 1988-10-21 1990-05-22 Iowa State University Research Foundation, Inc. Multiple channel data acquisition system
CN103455509A (en) * 2012-05-31 2013-12-18 阿里巴巴集团控股有限公司 Method and system for acquiring time window model parameter
CN103593376A (en) * 2012-08-17 2014-02-19 阿里巴巴集团控股有限公司 Method and device for collecting user behavior data
CN105550136A (en) * 2015-12-12 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 AFDX collection recorder based receiving circuit
CN205265739U (en) * 2015-12-12 2016-05-25 中国航空工业集团公司西安航空计算技术研究所 AFDX data acquisition recording system
CN105893583A (en) * 2016-04-01 2016-08-24 北京鼎泰智源科技有限公司 Data acquisition method and system based on artificial intelligence
CN105989032A (en) * 2015-01-31 2016-10-05 华为技术有限公司 Mass data information processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4928246A (en) * 1988-10-21 1990-05-22 Iowa State University Research Foundation, Inc. Multiple channel data acquisition system
CN103455509A (en) * 2012-05-31 2013-12-18 阿里巴巴集团控股有限公司 Method and system for acquiring time window model parameter
CN103593376A (en) * 2012-08-17 2014-02-19 阿里巴巴集团控股有限公司 Method and device for collecting user behavior data
CN105989032A (en) * 2015-01-31 2016-10-05 华为技术有限公司 Mass data information processing method and device
CN105550136A (en) * 2015-12-12 2016-05-04 中国航空工业集团公司西安航空计算技术研究所 AFDX collection recorder based receiving circuit
CN205265739U (en) * 2015-12-12 2016-05-25 中国航空工业集团公司西安航空计算技术研究所 AFDX data acquisition recording system
CN105893583A (en) * 2016-04-01 2016-08-24 北京鼎泰智源科技有限公司 Data acquisition method and system based on artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张永平,程荣龙,周华茂: "《电工电子技术(第二版)》", 31 August 2017, 武汉:华中科技大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925704A (en) * 2021-02-04 2021-06-08 湖北三江航天红峰控制有限公司 Multi-path ignition time sequence testing method and system and computer equipment

Similar Documents

Publication Publication Date Title
CN104483959A (en) Fault simulation and test system
CN108763094A (en) Method for generating test case, device, equipment and storage medium
CN101923440A (en) High-speed asynchronous data acquisition system
CN106294056A (en) Chip adjustment method and device
CN111078622A (en) Multi-channel data acquisition and screening method and device
CN110221261B (en) Radar waveform generation module test analysis method and device
CN107783934A (en) A kind of airborne multichannel ARINC429 buses gather in real time and data filtering method
CN109375146A (en) A kind of filling mining method, system and the terminal device of electricity consumption data
CN207718361U (en) PCM signal harvester and system
CN108282260A (en) Coding method and encoder
CN209690897U (en) A kind of interrupt response test device
CN114327065A (en) Data acquisition system and method for human-computer interaction perception
CN106154893B (en) A kind of parallel data high speed acquisition device and application
CN106650006B (en) Debugging method and system of programmable logic device and electronic design automation terminal
CN106990302A (en) A kind of wave filter debugging system and adjustment method
CN201368860Y (en) Flaw detection system
CN116049292B (en) Environment sensing method, system, device and medium based on conversion linkage
CN105486829A (en) Control method and electronic apparatus
CN204790423U (en) Multichannel shortwave / ultrashort wave signal processing system based on FPGA
CN110850758A (en) Telemetry system and method with configurable frame structure
CN104699220B (en) Sleep mode measuring method
CN216871051U (en) On-vehicle intelligent control ware IO mouth expander circuit
CN204808037U (en) Ecu test system
CN109238480A (en) A kind of multi-photon coincidence counting method and device
CN215264805U (en) FPGA-based signal real-time processing and data storage device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200428

RJ01 Rejection of invention patent application after publication