CN113536060A - 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
CN113536060A
CN113536060A CN202110698748.3A CN202110698748A CN113536060A CN 113536060 A CN113536060 A CN 113536060A CN 202110698748 A CN202110698748 A CN 202110698748A CN 113536060 A CN113536060 A CN 113536060A
Authority
CN
China
Prior art keywords
sampling
data
module
data acquisition
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110698748.3A
Other languages
Chinese (zh)
Other versions
CN113536060B (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

Images

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 sampling module is used for connecting to equipment to be sampled through each switching device, the sampling module is further connected to the display module, the control module can control each switching device to be connected or disconnected with a frequency larger 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 each switching device in a connected state. According to the sampling frequency control method and device, the sampling frequency of the sampling module is not controlled through software any more, but is indirectly controlled through controlling the switch device which is convenient to control, the sampling frequency is greatly improved, and the real-time performance of displaying sampling data is improved.

Description

Data acquisition device and method, electronic device, and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to data acquisition equipment and method, electronic equipment and a computer storage medium.
Background
In the research process, researchers usually need to detect relevant data of some objects or equipment under some special working conditions, for example, electrical performance test data of an automobile which is collided in the high-speed running process needs to be detected, the time of the automobile which is collided in the high-speed running process is short, but the acquisition frequency of the existing acquisition equipment is low, and the requirement of acquiring the data under the special working conditions is difficult to achieve.
Disclosure of Invention
Embodiments of the present invention provide a data acquisition device and method, an electronic device, and a computer storage medium, and provide a high-speed data acquisition device with a sampling frequency greater than a preset threshold.
In order to solve the above technical problem, an embodiment of the present invention provides a data acquisition device, including: 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 to the control end of each switching device; 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 a visual interface; the sampling module is used for acquiring sampling data of the equipment to be sampled in real time through each switching element in a conducting state; the display module is used for displaying the sampling data on a 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 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 to the control end of each switching device; the method comprises the following steps: after receiving a high-speed sampling instruction sent by a user through a visual interface, controlling the on/off of each switching device at a frequency greater than a preset threshold value; sampling data of equipment to be sampled are collected in real time through each switching element in a conducting state; and displaying the sampled data on a visual interface.
An embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute 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 is executed by a processor to realize the data acquisition method.
Compared with the related art, the embodiment of the invention has lower sampling frequency in the related art, mainly because a method for controlling the sampling frequency of the sampling module by software is adopted, since the software processing is often periodic, the sampling frequency of the sampling module is limited by the processing capability of the software, in the application, whether the sampling module is electrically connected with the equipment to be sampled is controlled by controlling the on-off state of the switching device, when the sampling module is electrically connected with the equipment to be sampled, sampling is carried out in real time to obtain sampling data, the sampling frequency of a sampling module is not controlled by software any more, but indirectly controls the sampling frequency of the sampling module by controlling a switching device which is convenient to control, can greatly improve the sampling frequency, and furthermore, the real-time performance of the display module for displaying the sampling data on the visual interface can be improved, and the user experience is improved.
In addition, the data acquisition equipment also comprises a processing module, and the sampling module is connected to the display module through 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 further used for acquiring the 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 can be greatly increased by transmitting the compressed data, and the time spent on acquiring the sampled data according to the compressed data is less than the time shortened by transmitting the compressed data, so that the real-time performance of the display module in displaying the sampled data on a visual interface can be improved, and further the user experience is improved.
In addition, the bit number of the time stamp of each frame data of the compressed data is smaller than a preset value. In this embodiment, the present application provides a specific implementation form of compressed data. The digit of the time stamp of each frame data is 64 bits usually, and this application discovers when high-speed data collection, and the digit of the time stamp of each frame data need not use so much usually, so this application reduces the size of each frame data to being less than the default through the digit that reduces the time stamp of each frame data, and then the compressed data to improve the display module and show the real-time of sampling data at visual interface.
In addition, the processing module is also used for processing the sampling data and transmitting the compressed data in parallel in at least two buffer areas of the data acquisition equipment. In this embodiment, compared with the method for processing and transmitting the sampled data in the hard disk database of the data acquisition device, the processing module has a faster speed for processing and transmitting the data in the cache regions, and the processing unit also processes and transmits the data in parallel in at least two cache regions, so that the independence of processing the 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 speed advantage of processing and transmitting the data from the cache regions becomes more and more obvious with the continuous increase of the data volume.
In addition, the sampling module is also used for collecting the switching state of each switching element in real time, and the switching state is a conducting state or a disconnecting state; and sending sampling data after determining that the switching states of the switching devices with the number larger than the preset number change within the preset time according to the switching states. In this embodiment, the sampling module is specifically after being in the on-state more than the switching device of predetermined quantity, can think that data acquisition equipment is in the state of high-speed data collection, and the sampling module sends the effectively sampled data of gathering again for other modules this moment, can avoid appearing when data acquisition equipment has not started the high-speed data collection state, just begin to acquire the invalid data of sampling module collection as the sampled data, lead to the not accurate phenomenon of the sampled data of gathering this moment, this application has improved the accuracy of the data that data acquisition equipment gathered and showed.
In addition, the data acquisition equipment also 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 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 a high speed, and a user can send a query request to the display module through the visual interface and play back and display the sampled data of a past sampling time on the visual interface, instead of only viewing the sampled data in real time, thereby improving the operation experience of the user.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
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 schematic block diagram of a buffer area of a data acquisition device according to an embodiment of the present application;
FIG. 3 is a flow chart of a data collection method provided according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make 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 with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in various embodiments of the invention, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
One embodiment of the invention relates to data acquisition equipment, which is used for acquiring data at a high speed, particularly for detecting relevant data of certain objects or equipment under some special working conditions, such as electrical performance test data of an automobile in collision in a high-speed running process.
Referring to fig. 1, the data acquisition apparatus includes: 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 a control end of each switching device 1, the sampling module 3 is connected to a device to be sampled 5 through each switching device 1, the sampling module 3 is further connected to the display module 4, and fig. 1 illustrates that 2 switching devices 1 are provided.
The control module 2 controls the on/off of each switching device 1 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 3 collects sampling data of the device to be sampled 5 in real time through each switching device 1 in an 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 correlation technique is lower, mainly because the method that the sampling frequency of software control sampling module is adopted, because software processing often has periodicity, so the sampling frequency of sampling module can receive the restriction of the throughput of software, and this application is through the on-off state of control switch device, whether control sampling module has carried out the electricity with waiting to sample the equipment and be connected, sampling module can be when the electricity is connected to waiting to sample the equipment, sample in real time and obtain the sampling data, this application no longer through the sampling frequency of software control sampling module, but through the switch device of control be convenient for, come indirect control sampling frequency of sampling module, can improve the sampling frequency greatly, and then can improve the display module and show the real-time of sampling data at visual interface, user experience has been improved.
Specifically, at least one switching device 1 may be integrated on an acquisition card, the acquisition card is provided with digital I/O channels, the switching devices 1 correspond to the digital I/O channels one to one, each digital I/O channel corresponds to one valve channel, the acquisition card can simultaneously acquire multiple channels of signals through each digital I/O channel, for example, 480 channels of signals can be acquired simultaneously, a technician can control the rate of updating the sampling data of the data acquisition device by selecting the switching performance of the switching device 1 and controlling the on/off frequency of the switching device 1 by the control unit 2, for example, by selecting a proper switching device 1 and control unit 2, the rate of updating the sampling data of the data acquisition device is not less than 1KHz, that is, the time resolution is not less than 1 ms.
In an embodiment, the sampling module 3 may further collect the switch states of the switching devices 1 in real time, where the switch states specifically refer to on states or off states of the switching devices 1, specifically, the sampling module 3 triggers the interruption periodically through an internal clock cycle, collects the switch states of the switching devices 1 when the interruption occurs, and sends sampling data to other modules after determining that the switch states of more than a preset number of the switching devices 1 change within a preset time according to the switch states, specifically, the sampling module 3 receives the switch states of the switching devices 1 with the preset time as a cycle, before updating the switch states of the switching devices 1, compares the switch states of the switching devices 1 received this time with the switch states of the switching devices 1 before updating, and records the switching devices 1 whose switch states change and the time for collecting the switch states (the data collecting device may use beijing time as a base) The foundation can be set by itself), after the switch states of the switch devices 1 which are more than the preset number are determined to be changed, for example, after the switch states of the switch devices 1 which are more than 60% are determined to be changed, the data acquisition equipment can be considered to be started to the state of acquiring data at a high speed, then the sampling data is sent to other modules, and the time for acquiring the switch states at this time is recorded to be used as the experiment starting time.
In this embodiment, the sampling module is specifically after being in the on-state more than the switching device of predetermined quantity, can think that data acquisition equipment is in the state of high-speed data collection, and the sampling module sends the effectively sampled data of gathering again for other modules this moment, can avoid appearing when data acquisition equipment has not started the high-speed data collection state, just begin to acquire the invalid data of sampling module collection as the sampled data, lead to the not accurate phenomenon of the sampled data of gathering this moment, this application has improved the accuracy of the data that data acquisition equipment gathered and showed.
In one embodiment, referring to fig. 1, the data acquisition device further includes a storage module 6, and the storage module 6 is respectively connected to the sampling module 3 and the display module 4.
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 inquires and acquires the sampling data containing the sampling time from the storage module 6 according to the sampling time in the inquiry request after receiving an inquiry request sent by a user through a 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 inquiry 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 inquiry request.
In this embodiment, the storage module stores the sampled data acquired at a high speed, and a user can send a query request to the display module through the visual interface and play back and display the sampled data of a past sampling time on the visual interface, instead of only viewing the sampled data in real time, thereby improving the operation experience of the user.
In an embodiment, a user may back up, delete, and restore each sample data in the storage module 6 through a visual interface, and may further set the storage module 6 to automatically store the sample data once every a period of time, and package the sample data received in the period of time into a batch of data, so that the user may back up, delete, and restore a certain batch of data, thereby improving the operation experience of the user.
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.
The processing module 7 compresses the sampled data into compressed data by using a data compression technology after receiving the sampled data, and sends the compressed data to the display module 4, and the display module 4 acquires the sampled data according to the compressed data and then displays the sampled data on a visual interface.
In this embodiment, the data acquisition device further includes a processing module capable of compressing the sampled data, the transmission speed can be greatly increased by transmitting the compressed data, and the time spent on acquiring the sampled data according to the compressed data is less than the time shortened by transmitting the compressed data, so that the real-time performance of the display module in 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, the number of bits of the timestamp of each frame of data of the compressed data is less than a preset value, for example, the number of bits of the timestamp 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 64 bits usually, and this application finds that when data are gathered at a high speed, the number of bits of the timestamp of each frame of data does not need to use so much usually, so this application reduces the size of each frame of data to being less than the preset value through the number of bits that reduce the timestamp of each frame of data, and then the compressed data to improve the display module and show the real-time of sampling data at visual interface.
In an embodiment, since the compressed data is actually a storage space in which only the timestamp of each frame data is changed, it can be considered that the compressed data has almost no influence on the transmitted data, so that the display module 4 can be adjusted to enable the visual interface to directly display the compressed data, the time for the display module to convert the compressed data into the sample data is saved, and the real-time performance of the display module to display the sample data on the visual interface can be further improved.
In one embodiment, the processing module 7 may also process the sampled data and transmit the compressed data in a buffer of the data acquisition device, and in particular, may process the sampled data and transmit the compressed data in parallel in at least two buffers.
In this embodiment, compared with the method for processing and transmitting the sampled data in the hard disk database of the data acquisition device, the processing module has a faster speed for processing and transmitting the data in the cache regions, and the processing unit also processes and transmits the data in parallel in at least two cache regions, so that the independence of processing the 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 speed advantage of processing and transmitting the data from the cache regions becomes more and more obvious with the continuous increase of the data volume.
In an embodiment, the data acquisition device includes four buffer areas, please refer to fig. 2, a first buffer area 8 is used for separately buffering the sample data acquired by the sampling module 3, a second buffer area 9 is used for separately processing the sample data buffered in the first buffer area 8, that is, used for compressing the sample 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 required data from the storage module 6 through a visual interface.
The third buffer area 10 is used for separately buffering the on-off states of the switching devices 1 collected by the sampling module 3 and collecting the time of the corresponding on-off states, and the fourth buffer area 11 is used for separately processing the on-off states buffered in the third buffer area 10, that is, for judging whether the on-off states of the switching devices 1 are changed, and the on-off states of the switching devices 1 and the time of collecting the corresponding on-off states can be stored in the storage module 6, so that a user can check the on-off state change information of the switching devices 1 through a visual interface.
In this embodiment, the four divided cache regions are respectively used for parallel caching of different data or parallel processing of different data, and priority levels of processing of different data in the same cache region do not need to be divided, which is more beneficial for data acquisition equipment to cache and process data.
In one embodiment, there is also at least one monitoring device connected to the data acquisition device, which may in particular be connected to the monitoring device via a standard ethernet interface, so as to communicate with the monitoring equipment, the operator who actually performs the experiment has the authority to operate the data acquisition equipment, the monitoring equipment is operated in another set of large system, the monitoring device is also used for collecting the data collected by the data collecting device and carrying out subsequent analysis according to the data, the monitoring device is also provided with a visual interface, the data acquisition equipment can be directly operated through the visual interface, for example, the data acquisition equipment or the compressed data in the storage module can be backed up, deleted and played back, these operations may be substantially the same as the operation flow performed directly on the data acquisition device by the operator. In order to avoid interruption of a program for acquiring and displaying data due to communication faults between the data acquisition equipment and the monitoring equipment, the monitoring equipment can perform analog communication with the data acquisition equipment at 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 data can be remotely terminated, and the data acquisition equipment is restarted, so that the data acquisition equipment can recover normal functions, and the data before restarting can be recovered, so that the integrity of the data acquired and recorded in the whole detection process is ensured, and the data acquisition equipment is high in reliability and strong in fault tolerance.
An embodiment of the present invention relates to a data acquisition method applied to a data acquisition device, and referring to fig. 1, the data acquisition device includes: at least a switching device 1, control module 2, sampling module 3 and display module 4, control module 2 connects respectively in the control end of each switching device 1, and sampling module 3 is used for connecting in waiting to sample equipment 5 through each switching device 1, and sampling module 3 still connects in display module 4.
The specific flow of the data acquisition method of the present embodiment is shown in fig. 3.
Step 101, after receiving a high-speed sampling instruction sent by a user through a visual interface, a control module controls each switching device to be switched on or switched off at a frequency greater than a preset threshold value.
And step 102, the sampling module collects sampling data of the equipment to be sampled in real time through each switching element in a conducting state.
And 103, displaying the sampling data on a visual interface by a display module.
In this embodiment, the sampling frequency in the correlation technique is lower, mainly because the method that the sampling frequency of software control sampling module is adopted, because software processing often has periodicity, so the sampling frequency of sampling module can receive the restriction of the throughput of software, and this application is through the on-off state of control switch device, whether control sampling module has carried out the electricity with waiting to sample the equipment and be connected, sampling module can be when the electricity is connected to waiting to sample the equipment, sample in real time and obtain the sampling data, this application no longer through the sampling frequency of software control sampling module, but through the switch device of control be convenient for, come indirect control sampling frequency of sampling module, can improve the sampling frequency greatly, and then can improve the display module and show the real-time of sampling data at visual interface, user experience has been improved.
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 concretely can be after receiving the high-speed sampling instruction that the user sent through visual interface, the on-off state of each switching device of real-time collection to according to the on-off state of each switching device of real-time collection, confirm that the switching device that is greater than predetermined quantity is in the on-state, send the sample data, processing module is after receiving the sample data, compress the sample data into compressed data, and send the compressed data for display module, display module can be with the received compressed data convert the sample data back into, show on visual interface.
In the embodiment, the transmission speed can be greatly increased by transmitting the compressed data, and the time spent on 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 a visual interface can be improved, and the user experience is further improved. Moreover, the embodiment also provides a specific implementation form of compressed data, the number of bits of the timestamp of each frame of data is usually 64 bits, and the present application finds that when data is acquired at a high speed, the number of bits of the timestamp of each frame of data does not need to be used so much, so that 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 less than a preset value, and further compresses the data, so as to improve the real-time performance of the display module in displaying the sampled data on the visual interface.
It should be understood that this embodiment is a method embodiment corresponding to the system embodiment shown in fig. 1, and this embodiment may be implemented in cooperation with the system embodiment shown in fig. 1. The related technical details mentioned in the embodiment corresponding to fig. 1 are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the embodiment corresponding to fig. 1.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
It should be noted that, all the modules involved in this embodiment are logic modules, and in practical application, one logic unit may be one physical unit, may also be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but this does not indicate that there is no other unit 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 to enable the at least one processor 401 to perform the data acquisition method.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect 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 provides an interface between the bus and the transceiver. The transceiver may be one element or 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 a wireless medium via an 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 the 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 realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and 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 embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

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 to the control end of each switching device, the sampling module is used for being connected to equipment to be sampled through each switching device, and the sampling module is also connected to 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 a visual interface;
the sampling module is used for acquiring sampling data of the equipment to be sampled in real time through each switching element in a conducting state;
the display module is used for displaying the sampling data on the visual interface.
2. The data acquisition device of claim 1, further comprising a processing module, the sampling module being connected to the display module through 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 further configured to obtain the sampling data according to the compressed data.
3. The data acquisition device according to claim 2, wherein the number of bits of the time stamp of each frame data of the compressed data is smaller than a preset value.
4. The data acquisition device according to any one of claims 2 to 3,
the processing module is further configured to process the sampled data and transmit the compressed data in parallel in at least two buffer areas of the data acquisition device.
5. The data acquisition device of claim 1,
the sampling module is also used for acquiring the switching state of each switching device in real time, and the switching state is a conducting state or a disconnecting state; and sending the sampling data after determining that the switching states of the switching devices with the number larger than the preset number change within the preset time according to the switching states.
6. The data acquisition device of claim 1, further comprising a storage module, the storage module being 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 that the sampling data is displayed on the visual interface.
7. A data acquisition method is applied to data acquisition equipment, and the data acquisition equipment comprises the following steps: 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 to the control end of each switching device, the sampling module is used for being connected to equipment to be sampled through each switching device, and the sampling module is also connected to the display module;
the method comprises the following steps:
after receiving a high-speed sampling instruction sent by a user through a visual interface, the control module controls the switching devices to be switched on or switched off at a frequency greater than a preset threshold value;
the sampling module collects sampling data of the equipment to be sampled in real time through each switching element in a conducting state;
the display module displays the sampled data on the visual interface.
8. The data acquisition device of claim 7, further comprising a processing module, wherein the sampling module is connected to the display module through the processing module;
before the displaying module displays the sampling data on the visualization interface, the displaying module further includes:
the sampling module is used for sending the sampling data after determining that more than a preset number of the switching devices are in a conducting state according to the switching states of the switching devices acquired in real time;
the processing module is used for compressing the sampling data into compressed data and then sending the compressed data to the display module, wherein the bit number of the timestamp of each frame data of the compressed data is smaller than a preset value;
the display module displays the sampling data on the visual interface, and comprises:
and acquiring the sampling data according to the compressed data, and displaying the sampling data on the visual interface.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a data acquisition method as claimed in any one of claims 7 to 8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the data acquisition method of any one of claims 7 to 8.
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 true CN113536060A (en) 2021-10-22
CN113536060B 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), 22 October 2019 (2019-10-22) *

Also Published As

Publication number Publication date
CN113536060B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN101778307B (en) Device for testing functions of set top box
CN108737689A (en) A kind of splicing display method and display control apparatus of video
CN101711350B (en) System and method for testing wireless devices
CN110133338B (en) Double-core electric energy meter and display method
US20210345009A1 (en) Method and device, equipment, and storage medium for data processing
CN103024453B (en) Non-immediate obtains Video Applications occasion splicing audio video synchronization player method and device
CN113536060A (en) Data acquisition device and method, electronic device, and computer storage medium
CN104104568A (en) Method, device and system for acquiring data from communication bus
CN111859630B (en) Image compression simulation verification method, device, equipment and readable storage medium
CN106302760A (en) Desktop screenshotss control method and system
CN116708511B (en) Method, equipment and medium based on microcontroller integrated vehicle-machine interconnection technology
CN112286450A (en) Data remote copying method and system
US7031882B2 (en) Information collecting apparatus and information collecting/analyzing system
CN108259492B (en) Traffic data retention method and device and computer readable storage medium
CN116303173A (en) Method, device and system for reducing RDMA engine on-chip cache and chip
CN115514590B (en) Electric vehicle component, electric vehicle data collection system and electric vehicle data collection method
CN107066421B (en) Oscilloscope and collected data reporting method thereof
CN113238911B (en) Alarm processing method and device
CN115866331A (en) Video frame extraction analysis method, device, equipment and storage medium
CN112764673B (en) Hyperspectral linear array data storage rate optimization method, device and storage medium
CN210428491U (en) Simulation test device for parking lot license plate recognition system
CN112650597A (en) Processing system and method for high-concurrency acquired data
CN106603730B (en) A kind of method for real-time monitoring and its device for cloud platform
CN116582772B (en) Electric energy data acquisition method, system, electronic equipment and medium
CN111935237B (en) Log processing method and system, electronic device and storage medium

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