CN113536060B - Data acquisition device and method, electronic device and computer storage medium - Google Patents

Data acquisition device and method, electronic device and computer storage medium Download PDF

Info

Publication number
CN113536060B
CN113536060B CN202110698748.3A CN202110698748A CN113536060B CN 113536060 B CN113536060 B CN 113536060B CN 202110698748 A CN202110698748 A CN 202110698748A CN 113536060 B CN113536060 B CN 113536060B
Authority
CN
China
Prior art keywords
data
sampling
module
data acquisition
display module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110698748.3A
Other languages
Chinese (zh)
Other versions
CN113536060A (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.)
SHANGHAI INSTITUTE OF COMPUTING TECHNOLOGY
Original Assignee
SHANGHAI INSTITUTE OF COMPUTING TECHNOLOGY
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 SHANGHAI INSTITUTE OF COMPUTING TECHNOLOGY filed Critical SHANGHAI INSTITUTE OF COMPUTING TECHNOLOGY
Priority to CN202110698748.3A priority Critical patent/CN113536060B/en
Publication of CN113536060A publication Critical patent/CN113536060A/en
Application granted granted Critical
Publication of CN113536060B publication Critical patent/CN113536060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor

Abstract

The embodiment of the invention relates to the technical field of computers, and discloses data acquisition equipment and method, electronic equipment and a computer storage medium. The data acquisition device includes: the control module is respectively connected to the control ends of the switching devices, the sampling module is used for being connected to equipment to be sampled through the switching devices, the sampling module is also connected to the display module, the control module can control the switching devices to be conducted or disconnected at a frequency greater than a preset threshold value after receiving a high-speed sampling instruction sent by a user through a visual interface, and the sampling module can collect sampling data of the equipment to be sampled in real time through the switching devices in a conducting state. The sampling frequency of the sampling module is not controlled through software, but is indirectly controlled through controlling the switching device which is convenient to control, so that the sampling frequency is greatly improved, and the instantaneity of displaying sampling data is further improved.

Description

Data acquisition device and method, electronic device and computer storage medium
Technical Field
Embodiments of the present invention relate to the field of computer technologies, and in particular, to a data acquisition device and method, an electronic device, and a computer storage medium.
Background
In the research process, researchers generally need to detect relevant data of some objects or equipment under some special working conditions, such as electric performance test data of collision of automobiles in the high-speed running process, the time of collision of automobiles in the high-speed running process is short, but the acquisition frequency of the current acquisition equipment is low, and the requirement of acquiring data under the special working conditions is difficult to achieve.
Disclosure of Invention
An embodiment of the invention aims to provide a data acquisition device and method, an electronic device and a computer storage medium, and provides a high-speed data acquisition device with a sampling frequency larger than a preset threshold value.
To solve the above technical problem, an embodiment of the present invention provides a data acquisition device, including: the device comprises at least one switching device, a control module, a sampling module and a display module, wherein the control module is respectively connected with the control end of each switching device, the sampling module is used for being connected with equipment to be sampled through each switching device, and the sampling module is also connected with the display module; the control module is used for controlling the on/off of each switching device at a frequency greater than a preset threshold value after receiving a high-speed sampling instruction sent by a user through the visual interface; the sampling module is used for collecting sampling data of the equipment to be sampled in real time through each switching device in a conducting state; the display module is used for displaying the sampling data on the visual interface.
The embodiment of the invention also provides a data acquisition method which is applied to data acquisition equipment, wherein the data acquisition equipment comprises the following steps: the device comprises at least one switching device, a control module, a sampling module and a display module, wherein the control module is respectively connected with the control end of each switching device, the sampling module is used for being connected with equipment to be sampled through each switching device, and the sampling module is also connected with the display module; the method comprises the following steps: after receiving a high-speed sampling instruction sent by a user through a visual interface, controlling the on or off of each switching device at a frequency greater than a preset threshold value; collecting sampling data of equipment to be sampled in real time through each switching device in a conducting state; and displaying the sampled data on a visual interface.
The embodiment of the invention also provides electronic equipment, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data acquisition method.
The embodiment of the invention also provides a computer readable storage medium which stores a computer program, and the computer program realizes the data acquisition method when being executed by a processor.
Compared with the related art, the embodiment of the invention has lower sampling frequency, mainly because the method of controlling the sampling frequency of the sampling module by software is adopted, the sampling frequency of the sampling module is limited by the processing capacity of the software because the software is usually periodic in processing, and the application controls whether the sampling module is electrically connected with the equipment to be sampled or not by controlling the switching state of the switching device, and the sampling module can acquire sampling data by real-time sampling when being electrically connected with the equipment to be sampled.
In addition, the data acquisition equipment also comprises a processing module, and the sampling module is connected with the display module through the processing module; the processing module is used for compressing the sampling data into compressed data and then transmitting the compressed data to the display module; the display module is also used for acquiring sampling data according to the compressed data. In this embodiment, the data acquisition device further includes a processing module capable of compressing the sampled data, the transmission speed of the compressed data can be greatly improved, and the time spent for acquiring the sampled data according to the compressed data is shorter than the time spent for transmitting the compressed data, so that the instantaneity of the display module for displaying the sampled data on the visual interface can be improved, and further the user experience is improved.
In addition, the number of bits of the time stamp of each frame data of the compressed data is smaller than a preset value. In this embodiment, a specific implementation form of compressed data is provided. The number of bits of the time stamp of each frame of data is generally 64 bits, and the present application finds that when data is collected at high speed, the number of bits of the time stamp of each frame of data is generally not needed to be as large as possible, so the present application reduces the size of each frame of data by reducing the number of bits of the time stamp of each frame of data to be smaller than a preset value, and further compresses the data, so as to improve the real-time performance of the display module for displaying the sampled data on the visual interface.
In addition, the processing module is also used for processing the sampled data and transmitting the compressed data in parallel in at least two buffer areas of the data acquisition device. In this embodiment, compared with processing and transmitting sampled data in a hard disk database of the data acquisition device, the processing module processes and transmits data in the buffer areas more quickly, the processing unit processes and transmits data in at least two buffer areas in parallel, the independence of processing data is strong, the delay is low, the real-time performance of the display module for displaying the sampled data on the visual interface is further improved, and the advantages of the processing and transmitting speed of the data from the buffer areas are more and more obvious along with the continuous increase of the data quantity.
In addition, the sampling module is also used for collecting the switching state of each switching device in real time, wherein the switching state is in an on state or an off state; and transmitting the sampling data after determining that the switching states of more than the preset number of switching devices change in the preset time according to the switching states. In this embodiment, the sampling module specifically is that after the switching devices larger than the preset number are in the on state, the data acquisition device can be considered to be in a state of collecting data at a high speed, and at this time, the sampling module sends the effectively collected sampling data to other modules, so that the phenomenon that invalid data collected by the sampling module is obtained as sampling data when the data acquisition device is not started to collect data at a high speed, and the sampled data collected at this time is inaccurate is caused.
In addition, the data acquisition equipment further comprises a storage module, and the storage module is respectively connected with the sampling module and the display module; the sampling module is also used for storing the sampling data in the storage module; the display module is also used for acquiring sampling data containing the sampling time from the storage module according to the sampling time of the query request after receiving the query request sent by the user through the visual interface so as to display the sampling data on the visual interface. In this embodiment, the storage module stores the sampled data acquired at high speed, and the user can send a query request to the display module through the visual interface, and play back and display the sampled data of a certain past sampling time on the visual interface, so that the user can only view the sampled data in real time, and the operation experience of the user is improved.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a block schematic diagram of a data acquisition device provided in accordance with one embodiment of the present application;
FIG. 2 is a block diagram of a buffer area of a data acquisition device according to one embodiment of the present application;
FIG. 3 is a flow chart of a method of data acquisition provided in accordance with one embodiment of the present application;
fig. 4 is a block schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
One embodiment of the present invention relates to a data acquisition device for high-speed data acquisition, and in particular, for detecting data related to certain objects or devices under certain specific conditions, such as electrical performance test data for detecting collisions of an automobile during high-speed operation, in which case researchers may simulate these specific conditions using electromagnetic simulation devices, in which case the data acquisition device of the present application may also be used to acquire the related data at high speed under certain simulation conditions for subsequent analysis.
Referring to fig. 1, the data acquisition device includes: the device comprises at least one switching device 1, a control module 2, a sampling module 3 and a display module 4, wherein the control module 2 is respectively connected to the control ends of the switching devices 1, the sampling module 3 is used for being connected to equipment 5 to be sampled through the switching devices 1, the sampling module 3 is also connected to the display module 4, and 2 switching devices 1 are used as an example in fig. 1.
After receiving a high-speed sampling instruction sent by a user through a visual interface, the control module 2 controls the switching devices 1 to be turned on or off at a frequency greater than a preset threshold value, the sampling module 3 can acquire sampling data of the equipment 5 to be sampled in real time through the switching devices 1 in a turned-on state, and the display module 4 displays the sampling data on the visual interface after receiving the sampling data.
In this embodiment, the sampling frequency in the related art is lower mainly because a method of controlling the sampling frequency of the sampling module by software is adopted, and because the software is often periodic in processing, the sampling frequency of the sampling module can be limited by the processing capability of the software.
Specifically, at least one switching device 1 may be integrated on an acquisition card, a digital I/O channel is provided on the acquisition card, the switching device 1 corresponds to the digital I/O channel one by one, each digital I/O channel corresponds to one valve channel, the acquisition card can simultaneously acquire multiple paths of signals through each digital I/O channel, for example, 480 paths of signals can be simultaneously acquired, a technician can control the rate of updating sampled data of the data acquisition device by selecting the switching performance of the switching device 1 and controlling the frequency of on or off of the switching device 1 by the control module 2, for example, by selecting the appropriate switching device 1 and the control module 2, the rate of updating sampled data of the data acquisition device is not less than 1KHz, that is, the resolution of time is not less than 1ms.
In one embodiment, the sampling module 3 further collects the switch states of the switch devices 1 in real time, where the switch states specifically refer to the on state or the off state of the switch devices 1, specifically, the sampling module 3 triggers an interrupt through an internal clock period, collects the switch states of the switch devices 1 during the interrupt, and sends sampling data to other modules after determining that the switch states of more than a preset number of the switch devices 1 change within a preset time according to the switch states, specifically, the sampling module 3 receives the switch states of the switch devices 1 with the preset time as a period, compares the switch states of the switch devices 1 received this time with the switch states of the switch devices 1 before updating, records the switch states of the switch devices 1 and the time for collecting the switch states (the data collecting device may be based on the Beijing time, and may be set by itself), and sends the sampling data to other modules after determining that the switch states of the switch devices 1 change within the preset number, for example, determines that the switch states of the switch devices 1 change within the preset number of more than 60%, and sends the sampling data to the other modules as the initial data.
In this embodiment, the sampling module specifically is that after the switching devices larger than the preset number are in the on state, the data acquisition device can be considered to be in a state of collecting data at a high speed, and at this time, the sampling module sends the effectively collected sampling data to other modules, so that the phenomenon that invalid data collected by the sampling module is obtained as sampling data when the data acquisition device is not started to collect data at a high speed, and the sampled data collected at this time is inaccurate is caused.
In one embodiment, referring to fig. 1, the data acquisition device further includes a storage module 6, where the storage module 6 is connected to the sampling module 3 and the display module 4, respectively.
The sampling module 3 sends sampling data to the storage module 6, the storage module 6 stores the sampling data in the storage module 6 after receiving the sampling data, the display module 4 queries and obtains the sampling data containing the sampling time from the storage module 6 according to the sampling time in the query request after receiving the query request sent by the user through the visual interface, so as to display the sampling data on the visual interface, specifically, the user can select the sampling time of the sampling data to be checked through the visual interface, the data acquisition device generates the query request according to the sampling time, and the display module 4 searches the sampling data containing the sampling time according to the sampling time in the query request.
In this embodiment, the storage module stores the sampled data acquired at high speed, and the user can send a query request to the display module through the visual interface, and play back and display the sampled data of a certain past sampling time on the visual interface, so that the user can only view the sampled data in real time, and the operation experience of the user is improved.
In one embodiment, the user can backup, delete and restore each sampled data in the storage module 6 through the visual interface, and can also set the storage module 6 to automatically store the sampled data once at intervals, and package the sampled data received in the period into a batch of data, so that the user can backup, delete and restore a batch of data, and the operation experience of the user is improved.
In one embodiment, referring to fig. 1, the data acquisition device further includes a processing module 7, and the sampling module 3 is specifically connected to the display module 4 through the processing module 7.
After receiving the sampled data, the processing module 7 compresses the sampled data into compressed data by using a data compression technology, and sends the compressed data to the display module 4, and the display module 4 obtains the sampled data according to the compressed data and then displays the sampled data on the visual interface.
In this embodiment, the data acquisition device further includes a processing module capable of compressing the sampled data, so that the transmission speed can be greatly improved by transmitting the compressed data, and the time taken for acquiring the sampled data according to the compressed data is shorter than the time shortened by transmitting the compressed data, so that the instantaneity of the display module for displaying the sampled data on the visual interface can be improved, and further the user experience is improved.
In one embodiment, a specific implementation form of the compressed data is provided, where the number of bits of the time stamp of each frame of data of the compressed data is smaller than a preset value, for example, the number of bits of the time stamp of each frame of data of the compressed data may be set to 32 bits.
In this embodiment, the number of bits of the timestamp of each frame of data is generally 64 bits, and the present application finds that when data is collected at high speed, the number of bits of the timestamp of each frame of data is generally not required to be used as much, so the present application reduces the size of each frame of data by reducing the number of bits of the timestamp of each frame of data to be smaller than a preset value, and further compresses the data, so as to improve the real-time performance of the display module for displaying the sampled data on the visual interface.
In one embodiment, since the compressed data actually only changes the storage space of the time stamp of each frame of data, it can be considered that the compressed data has little effect on the transmitted data, so that the compressed data can be directly displayed on the visual interface by adjusting the display module 4, the time for converting the compressed data into the sampled data by the display module is saved, and the real-time performance of the display module for displaying the sampled data on the visual interface can be further improved.
In an embodiment the processing module 7 may also process the sampled data and transmit the compressed data in a buffer of the data acquisition device, in particular the sampled data and transmit the compressed data may be processed in parallel in at least two buffers.
In this embodiment, compared with processing and transmitting sampled data in a hard disk database of the data acquisition device, the processing module processes and transmits data in the buffer areas more quickly, the processing unit processes and transmits data in at least two buffer areas in parallel, the independence of processing data is strong, the delay is low, the real-time performance of the display module for displaying the sampled data on the visual interface is further improved, and the advantages of the processing and transmitting speed of the data from the buffer areas are more and more obvious along with the continuous increase of the data quantity.
In one embodiment, referring to fig. 2, the data collection device includes four buffers, the first buffer 8 is used for individually buffering the sampled data collected by the sampling module 3, the second buffer 9 is used for individually processing the sampled data buffered in the first buffer 8, that is, compressing the sampled data into compressed data and transmitting the compressed data to the display module 4, and the processing module 7 may also be connected to the storage module 6 to directly store the compressed data in the storage module 6, so that a user can obtain the required data from the storage module 6 through a visual interface.
The third buffer area 10 is used for separately buffering the switching state of each switching device 1 collected by the sampling module 3 and collecting the time of the corresponding switching state, and the fourth buffer area 11 is used for separately processing the switching state buffered in the third buffer area 10, namely, for judging whether the switching state of each switching device 1 changes, and can store the switching state of each switching device 1 and the time of collecting the corresponding switching state into the storage module 6 for a user to check the switching state change information of each switching device 1 through a visual interface.
In this embodiment, the divided four buffers are respectively used for buffering different data in parallel, or processing different data in parallel, so that priority levels of processing different data do not need to be divided in the same buffer, which is more beneficial to data acquisition equipment buffering and processing data.
In one embodiment, there is at least one monitoring device connected to the data acquisition device, where the data acquisition device may be specifically connected to the monitoring device through a standard ethernet interface to communicate with the monitoring device, where an operator actually performing an experiment has authority to operate the data acquisition device, where the monitoring device is operated in another set of large system, where the monitoring device is configured to configure relevant parameters of the data acquisition device, for example, may configure a control unit to control a frequency of a switching device, where the monitoring device is further configured to collect data collected by the data acquisition device, and perform subsequent analysis according to the data, where the monitoring device also has a visual interface, where operations may be directly performed on the data acquisition device through the visual interface, for example, operations such as backup, deletion, playback, and so on collected data or compressed data in the storage module, where the operations may also be approximately the same as the operation procedure that the operator directly performs on the data acquisition device. In order to avoid communication faults between the data acquisition equipment and the monitoring equipment and interrupt the program for acquiring and displaying the data, the monitoring equipment can perform analog communication with the data acquisition equipment for each period of time, if the communication faults between the data acquisition equipment and the monitoring equipment are found, the program for acquiring and displaying the data can be remotely stopped, and the data acquisition equipment is restarted, so that the data acquisition equipment can recover normal functions and recover the data before restarting, the integrity of the data acquired and recorded in the whole detection process is guaranteed, the reliability is high, and the fault tolerance is strong.
One embodiment of the present invention relates to a data acquisition method applied to a data acquisition device, please refer to fig. 1, the data acquisition device includes: the device comprises at least one switching device 1, a control module 2, a sampling module 3 and a display module 4, wherein the control module 2 is respectively connected to the control ends of the switching devices 1, the sampling module 3 is used for being connected to equipment 5 to be sampled through the switching devices 1, and the sampling module 3 is also connected to the display module 4.
The specific flow of the data acquisition method of this embodiment is shown in fig. 3.
Step 101, after receiving a high-speed sampling instruction sent by a user through a visual interface, the control module controls on or off of each switching device at a frequency greater than a preset threshold value.
Step 102, the sampling module collects sampling data of the equipment to be sampled in real time through each switching device in a conducting state.
Step 103, the display module displays the sampling data on the visual interface.
In this embodiment, the sampling frequency in the related art is lower mainly because a method of controlling the sampling frequency of the sampling module by software is adopted, and because the software is often periodic in processing, the sampling frequency of the sampling module can be limited by the processing capability of the software.
In one embodiment, referring to fig. 1, the data acquisition device further includes a processing module 7, and the sampling module 3 is connected to the display module 4 through the processing module 7.
The sampling module specifically receives a high-speed sampling instruction sent by a user through the visual interface, acquires the switching states of all the switching devices in real time, sends sampling data after determining that more than a preset number of switching devices are in a conducting state according to the switching states of all the switching devices acquired in real time, compresses the sampling data into compressed data after receiving the sampling data, sends the compressed data to the display module, and displays the compressed data on the visual interface after converting the received compressed data into the sampling data.
In this embodiment, the transmission speed can be greatly improved by transmitting the compressed data, and the time taken for acquiring the sampled data according to the compressed data is shorter than the time shortened by transmitting the compressed data, so that the real-time performance of the display module for displaying the sampled data on the visual interface can be improved, and further the user experience is improved. In addition, the embodiment also provides a specific implementation form of compressed data, the number of bits of the time stamp of each frame of data is generally 64 bits, and the application finds that when the data is collected at high speed, the number of bits of the time stamp of each frame of data is generally not needed to be used so much, so the application reduces the size of each frame of data by reducing the number of bits of the time stamp of each frame of data to be smaller than a preset value, and further compresses the data, so that the real-time performance of the display module for displaying the sampled data on a visual interface is improved.
It is to be noted that this embodiment is a method embodiment corresponding to the system embodiment corresponding to fig. 1, and this embodiment may be implemented in cooperation with the embodiment corresponding to fig. 1. The related technical details mentioned in the corresponding embodiment of fig. 1 are still valid in this embodiment, and are not repeated here for reducing repetition. Accordingly, the related technical details mentioned in the present embodiment can also be applied to the corresponding embodiment of fig. 1.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
It should be noted that, each module involved in this embodiment is a logic module, and in practical application, one logic unit may be one physical unit, or may be a part of one physical unit, or may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, units less closely related to solving the technical problem presented by the present invention are not introduced in the present embodiment, but it does not indicate that other units are not present in the present embodiment.
One embodiment of the invention relates to an electronic device, as shown in FIG. 4, comprising at least one processor 401; and a memory 402 communicatively coupled to the at least one processor 401; the memory 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401, so that the at least one processor 401 can perform the data acquisition method.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
One embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (9)

1. A data acquisition device, comprising: the sampling device comprises at least one switching device, a control module, a sampling module and a display module, wherein the control module is respectively connected with the control end of each switching device, the sampling module is used for being connected with equipment to be sampled through each switching device, and the sampling module is also connected with the display module;
the control module is used for controlling the on or off of each switching device at a frequency greater than a preset threshold value after receiving a high-speed sampling instruction sent by a user through a visual interface;
the sampling module is used for collecting sampling data of the equipment to be sampled in real time through each switching device in a conducting state;
the display module is used for displaying the sampling data on the visual interface;
the sampling module is also used for collecting the switching state of each switching device in real time, wherein the switching state is in an on state or an off state; and transmitting the sampling data after determining that the switch states of more than the preset number of the switch devices change within the preset time according to the switch states.
2. The data acquisition device of claim 1, further comprising a processing module, the sampling module being connected to the display module by the processing module;
the processing module is used for compressing the sampling data into compressed data and then sending the compressed data to the display module;
the display module is also used for acquiring the sampling data according to the compressed data.
3. The data acquisition device of claim 2, wherein the number of bits of the time stamp of each frame of data of the compressed data is less than a preset value.
4. A data acquisition device according to any one of claims 2 to 3, characterized in that,
the processing module is further configured to process the sampled data and transmit the compressed data in parallel in at least two buffers of the data acquisition device.
5. The data acquisition device of claim 1, further comprising a memory module connected to the sampling module and the display module, respectively;
the sampling module is also used for sending the sampling data to the storage module;
the storage module is used for storing the sampling data;
the display module is further used for acquiring the sampling data containing the sampling time from the storage module according to the sampling time of the query request after receiving the query request sent by the user through the visual interface, so as to display the sampling data on the visual interface.
6. A data acquisition method, characterized by being applied to a data acquisition device, the data acquisition device comprising: the sampling device comprises at least one switching device, a control module, a sampling module and a display module, wherein the control module is respectively connected with the control end of each switching device, the sampling module is used for being connected with equipment to be sampled through each switching device, and the sampling module is also connected with the display module;
the method comprises the following steps:
the control module controls the on or off of each switching device at a frequency greater than a preset threshold after receiving a high-speed sampling instruction sent by a user through a visual interface;
the sampling module acquires sampling data of the equipment to be sampled in real time through each switching device in a conducting state;
the display module displays the sampling data on the visual interface;
the display module, before the visual interface displays the sampled data, further includes:
the sampling module sends the sampling data after determining that more than a preset number of switching devices are in a conducting state according to the switching states of the switching devices acquired in real time.
7. The data acquisition method of claim 6, wherein the data acquisition device further comprises a processing module, the sampling module being connected to the display module through the processing module;
the processing module is used for transmitting the compressed data to the display module after compressing the sampled data into the compressed data, wherein the number of bits of the time stamp of each frame of data of the compressed data is smaller than a preset value;
the display module displays the sampling data on the visual interface, including:
and acquiring the sampling data according to the compressed data, and displaying the sampling data on the visual interface.
8. An electronic device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data acquisition method of any one of claims 6 to 7.
9. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the data acquisition method of any one of claims 6 to 7.
CN202110698748.3A 2021-06-23 2021-06-23 Data acquisition device and method, electronic device and computer storage medium Active CN113536060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110698748.3A CN113536060B (en) 2021-06-23 2021-06-23 Data acquisition device and method, electronic device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110698748.3A CN113536060B (en) 2021-06-23 2021-06-23 Data acquisition device and method, electronic device and computer storage medium

Publications (2)

Publication Number Publication Date
CN113536060A CN113536060A (en) 2021-10-22
CN113536060B true CN113536060B (en) 2024-04-16

Family

ID=78096521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110698748.3A Active CN113536060B (en) 2021-06-23 2021-06-23 Data acquisition device and method, electronic device and computer storage medium

Country Status (1)

Country Link
CN (1) CN113536060B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562453A (en) * 2008-11-27 2009-10-21 西安电子科技大学 Analog sampling switch and analog-to-digital converter
CN101930479A (en) * 2010-08-27 2010-12-29 中国科学院上海微系统与信息技术研究所 Peripheral-component interface express (PCIE)-based multi-channel data acquisition unit
CN102497189A (en) * 2011-11-30 2012-06-13 华为技术有限公司 Signal sampling method, controllable switch and device
CN102589545A (en) * 2012-01-12 2012-07-18 中国兵器工业第二0五研究所 Zero-position self-calibrating voltage frequency conversion device of inertial measurement unit
CN104297543A (en) * 2013-07-16 2015-01-21 苏州普源精电科技有限公司 Hybrid oscilloscope with channel synchronization function
CN105241370A (en) * 2015-10-19 2016-01-13 桂林电子科技大学 Cubic press health monitoring method and system
CN111800133A (en) * 2020-06-30 2020-10-20 珠海全志科技股份有限公司 Synchronous acquisition method and device for audio analog-to-digital conversion chip array
CN111835700A (en) * 2019-12-04 2020-10-27 北京嘀嘀无限科技发展有限公司 Data processing method and device, electronic equipment and storage medium
CN112180896A (en) * 2020-09-25 2021-01-05 广州小鹏汽车科技有限公司 OBD test auxiliary device, tester and test equipment
CN112491996A (en) * 2020-11-18 2021-03-12 深圳前海微众银行股份有限公司 Method and device for generating service request

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562453A (en) * 2008-11-27 2009-10-21 西安电子科技大学 Analog sampling switch and analog-to-digital converter
CN101930479A (en) * 2010-08-27 2010-12-29 中国科学院上海微系统与信息技术研究所 Peripheral-component interface express (PCIE)-based multi-channel data acquisition unit
CN102497189A (en) * 2011-11-30 2012-06-13 华为技术有限公司 Signal sampling method, controllable switch and device
CN102589545A (en) * 2012-01-12 2012-07-18 中国兵器工业第二0五研究所 Zero-position self-calibrating voltage frequency conversion device of inertial measurement unit
CN104297543A (en) * 2013-07-16 2015-01-21 苏州普源精电科技有限公司 Hybrid oscilloscope with channel synchronization function
CN105241370A (en) * 2015-10-19 2016-01-13 桂林电子科技大学 Cubic press health monitoring method and system
CN111835700A (en) * 2019-12-04 2020-10-27 北京嘀嘀无限科技发展有限公司 Data processing method and device, electronic equipment and storage medium
CN111800133A (en) * 2020-06-30 2020-10-20 珠海全志科技股份有限公司 Synchronous acquisition method and device for audio analog-to-digital conversion chip array
CN112180896A (en) * 2020-09-25 2021-01-05 广州小鹏汽车科技有限公司 OBD test auxiliary device, tester and test equipment
CN112491996A (en) * 2020-11-18 2021-03-12 深圳前海微众银行股份有限公司 Method and device for generating service request

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于不确定性、宽边界的汽车开关信号处理系统设计及应用;谭小刚等;2019中国汽车工程学会年会论文集(4);20191022;全文 *

Also Published As

Publication number Publication date
CN113536060A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN100365994C (en) Method and system for regulating ethernet
CN109639690B (en) Vehicle-mounted monitoring terminal and remote monitoring method and system thereof
CN112947372A (en) Remote diagnosis method based on active reporting of fault codes
CN110133338B (en) Double-core electric energy meter and display method
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN111782486A (en) Alarm implementation method and system based on dynamic configuration
CN103856364A (en) Bus signal monitoring device and method
CN113536060B (en) Data acquisition device and method, electronic device and computer storage medium
CN109375146B (en) Supplementary collection method and system for electricity consumption data and terminal equipment
CN104104568A (en) Method, device and system for acquiring data from communication bus
CN113092130A (en) Method for simulating conformance test of electric automobile and vehicle-mounted terminal
US8578212B2 (en) Remote communication system and method
US20170356960A1 (en) Logic analyzer, method of retrieving data of the same, and method of performance testing
CN115880811A (en) Method and device for controlling the acquisition of vehicle data
CN115514590B (en) Electric vehicle component, electric vehicle data collection system and electric vehicle data collection method
US7031882B2 (en) Information collecting apparatus and information collecting/analyzing system
CN113238911B (en) Alarm processing method and device
CN115032973A (en) Data transmission system, method, device, equipment and medium
CN114826818A (en) CAN message data processing method and device
CN116841815A (en) Operation monitoring method, device, electronic equipment and storage medium
CN110750531B (en) Data processing method and related equipment
CN108037942B (en) Adaptive data recovery and update method and device for embedded equipment
CN112839075A (en) Data transmission method applied to acquisition equipment and related device
CN111307280A (en) Converter valve base electronic equipment optical power online monitoring system and monitoring method
CN112650597A (en) Processing system and method for high-concurrency acquired data

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
CB02 Change of applicant information

Country or region after: China

Address after: 200040 No. 546 Yuyuan Road, Shanghai, Jingan District

Applicant after: Shanghai Institute of Computing Technology

Address before: 200040 No. 546 Yuyuan Road, Shanghai, Jingan District

Applicant before: SHANGHAI INSTITUTE OF COMPUTING TECHNOLOGY

Country or region before: China

CB02 Change of applicant information
GR01 Patent grant