CN113612567B - Alignment method and device for data collected by multiple sensors of equipment and electronic equipment - Google Patents

Alignment method and device for data collected by multiple sensors of equipment and electronic equipment Download PDF

Info

Publication number
CN113612567B
CN113612567B CN202111178992.3A CN202111178992A CN113612567B CN 113612567 B CN113612567 B CN 113612567B CN 202111178992 A CN202111178992 A CN 202111178992A CN 113612567 B CN113612567 B CN 113612567B
Authority
CN
China
Prior art keywords
data
target
time
reported
time window
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
CN202111178992.3A
Other languages
Chinese (zh)
Other versions
CN113612567A (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.)
Rootcloud Technology Co Ltd
Original Assignee
Rootcloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rootcloud Technology Co Ltd filed Critical Rootcloud Technology Co Ltd
Priority to CN202111178992.3A priority Critical patent/CN113612567B/en
Publication of CN113612567A publication Critical patent/CN113612567A/en
Application granted granted Critical
Publication of CN113612567B publication Critical patent/CN113612567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention provides an alignment method and device for data collected by multiple sensors of equipment and electronic equipment, wherein the alignment method comprises the following steps: acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data; filling the collected data serving as the collected data to be reported into a target data chain corresponding to a target time window; judging whether the data to be reported in the target data chain is completely filled; if the filling is complete, reporting all the to-be-reported collected data in the target data chain to a data management layer; if the padding is incomplete, the target data chain is saved. According to the method, waiting for the acquired data is not needed, the subsequent data processing process can be continued after the acquired data is filled into the target data chain, the timeliness of data processing is improved, meanwhile, when the acquired data to be reported in the target data chain is incomplete, the target data chain is stored, the data chains corresponding to a plurality of time windows can be simultaneously reserved, the data cannot be lost, and the integrity of the data is improved.

Description

Alignment method and device for data collected by multiple sensors of equipment and electronic equipment
Technical Field
The invention relates to the technical field of Internet of things, in particular to an alignment method and device for data collected by multiple sensors of equipment and electronic equipment.
Background
In the field of industrial internet of things, the system is generally divided into two aspects of data acquisition and data management, wherein a data acquisition layer is responsible for butt joint of sensors through various protocols, acquiring and summarizing sensor data and reporting the sensor data to a data management layer, and the data management layer is responsible for unified management of the acquired data, providing data analysis capability and application enable and completing closed loop of industrial data from equipment to application.
In the process of acquiring the equipment data, because the data of the equipment controller can not completely reflect the running condition of the equipment, a sensor is additionally arranged according to the requirement of business analysis. For example: in order to analyze the use state of the equipment cutter, the use state cannot be analyzed only according to the data of the equipment cutter, and the equipment cutter is also required to be externally connected with a vibration sensor and a motor load monitoring sensor. At this time, a data alignment algorithm is used to align the legal data (i.e. the collected data of the sensors and the controller) within a certain time deviation range, so as to ensure the integrity of the reported data.
At present, the data alignment is implemented by caching certain collected data after the data reaches the collection system, then waiting for a certain time, and reporting all the collected data within a time deviation range to a data management layer if other collected data within the time deviation range also reaches the collection system within the certain time; and if the other collected data in the time deviation range do not reach the collection system completely after waiting for the certain time, discarding the collected data with the waiting time exceeding the certain time, not reporting the data, continuing waiting until all the collected data in the time deviation range are complete, and then reporting the data. The implementation mode of data alignment can cause the processing time of data to be longer, and because the acquired data is in a waiting state, the acquired data cannot execute the subsequent data processing process, thereby affecting the timeliness of data processing; in addition, discarding the collected data may result in data loss, affecting the integrity of the collected data, and both may affect the business processing of the upper layer application. For example, in an industrial pipeline operation, a certain service index is judged together by data of a sensor and data of a sensor B, and if the processing time of the data of the sensor A and the data of the sensor B is prolonged, the timeliness of data processing of upper-layer application is affected; in addition, if the data of the sensor a and the data of the sensor B are incomplete, and the upper layer application needs to calculate the continuous values of the sensors, the data calculation of the application is affected, and the production is affected.
In conclusion, the existing alignment method for the data acquired by the multiple sensors of the equipment has the technical problems that the data acquisition processing time is long and the acquired data is incomplete.
Disclosure of Invention
In view of this, the present invention aims to provide an alignment method and apparatus for acquiring data by multiple sensors of a device, and an electronic device, so as to solve the technical problems of long processing time of acquired data and incomplete acquired data in the existing alignment method for acquiring data by multiple sensors of a device.
In a first aspect, an embodiment of the present invention provides an alignment method for data collected by multiple sensors of a device, including:
acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data;
filling the collected data serving as the collected data to be reported into a target data chain corresponding to the target time window, wherein the target data chain is a data chain table defined according to the integrity of the collected data to be reported, and the collection time of all the collected data to be reported in the target data chain meets the preset time deviation of the target time window;
judging whether the data to be reported in the target data chain is completely filled;
if the filling is complete, reporting all the to-be-reported collected data in the target data chain to a data management layer;
and if the filling is incomplete, saving the target data chain.
Further, determining a target time window corresponding to the acquired data according to the acquisition time of the acquired data includes:
judging whether a target reasonable time interval to which the acquisition time belongs exists;
if so, taking a time window corresponding to the target reasonable time interval as the target time window;
and if the target time window does not exist, generating a new time window according to the acquisition time and the preset time deviation, and taking the new time window as the target time window.
Further, generating a new time window according to the acquisition time and the preset time deviation includes:
taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of the reasonable time interval of the new time window, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the reasonable time interval of the new time window to obtain the reasonable time interval of the new time window;
and generating the new time window according to the reasonable time interval of the new time window and the preset time deviation.
Further, filling the collected data serving as the collected data to be reported into a target data chain corresponding to the target time window, including:
and filling the identification information of the acquired data, the acquisition time and the acquired data value of the acquired data into the target data chain as the acquired data to be reported.
Further, after the collected data is filled into a target data chain corresponding to the target time window as data to be reported, the method further includes:
and updating the reasonable time interval of the target time window according to the acquisition time and the preset time deviation to obtain an updated reasonable time interval, and taking the updated reasonable time interval as the reasonable time interval of the target time window.
Further, updating the reasonable time interval of the target time window according to the acquisition time and the preset time deviation includes:
taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of a first reasonable time interval, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the first reasonable time interval to obtain the first reasonable time interval;
performing intersection calculation on the first reasonable time interval and the reasonable time interval of the target time window to obtain an intersection time interval;
and taking the intersection time interval as the updated reasonable time interval.
Further, the method further comprises:
when the collected data is filled into a target data chain corresponding to the target time window as data to be reported, if target data to be reported which is the same as the identification information of the collected data exists in the target data chain, covering the target data to be reported by adopting a data covering algorithm, wherein the data covering algorithm comprises any one of the following steps: an algorithm covering according to the acquisition sequence and an algorithm covering according to the acquisition time.
In a second aspect, an embodiment of the present invention further provides an alignment apparatus for acquiring data by multiple sensors of a device, including:
the determining unit is used for acquiring the acquired data and determining a target time window corresponding to the acquired data according to the acquisition time of the acquired data;
a filling unit, configured to fill the collected data as to-be-reported collected data into a target data chain corresponding to the target time window, where the target data chain is a data chain table defined according to integrity of the to-be-reported collected data, and preset time deviations of the target time window are satisfied between collection times of all to-be-reported collected data in the target data chain;
the judging unit is used for judging whether the to-be-reported collected data in the target data chain is completely filled;
the reporting unit is used for reporting all the to-be-reported collected data in the target data chain to a data management layer if the filling is complete;
and the storage unit is used for storing the target data chain if the filling is incomplete.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to any one of the above first aspects when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to perform the method of any of the first aspect.
In an embodiment of the present invention, an alignment method for acquiring data by multiple sensors of a device is provided, including: acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data; then, filling the collected data serving as the collected data to be reported into a target data chain corresponding to a target time window; judging whether the data to be reported in the target data chain is completely filled; if the data link is complete, reporting all the to-be-reported collected data in the target data link to a data management layer; if not, the target data chain is saved. According to the above description, the alignment method of the collected data forms a complete target data chain by the collected data to be reported according to the dimension of the target time window, and when the target data chain is completely filled, all the collected data to be reported in the target data chain are taken away for reporting. The process does not need to wait for the collected data, after the collected data are filled into the target data chain, the subsequent data processing process can be continued, the timeliness of data processing is improved, meanwhile, when the collected data to be reported in the target data chain are incomplete, the target data chain is stored, namely, the data chains corresponding to a plurality of time windows can be kept simultaneously, the data cannot be lost, the integrity of the data is improved, and the technical problems that the collected data processing time is prolonged and the collected data are incomplete in the existing alignment method for collecting the data by multiple sensors of the equipment are solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an alignment method for acquiring data by multiple sensors of a device according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating determining a target time window corresponding to collected data according to a collection time of the collected data according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for updating a reasonable time interval according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an operation of updating a reasonable time interval according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an operation process and a result for updating a reasonable time interval according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a processing result of filling the collected data A, B into a data chain corresponding to a time window according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a processing result of filling the collected data C into a data chain corresponding to a time window according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a processing result of filling the acquired data D into a data chain corresponding to a time window according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a processing result of filling the acquired data E into a data chain corresponding to a time window according to an embodiment of the present invention;
fig. 10 is a schematic diagram of processing results of data chains corresponding to the time windows filled with the collected data with time stamps 30, and 32 according to the embodiment of the present invention;
FIG. 11 is a schematic diagram of an alignment apparatus for acquiring data by multiple sensors of a device according to an embodiment of the present invention;
fig. 12 is a schematic view of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the current alignment method of the collected data, after the collected data reaches the collection system, the collected data is firstly cached, then, after all the other collected data within the time deviation range reach the collection system, all the collected data are reported, and after the collected data is waited for a certain time, if all the other collected data within the time deviation range do not reach the collection system, the waited collected data are discarded. In the above process, because the collected data is in a waiting state, it cannot execute the subsequent data processing process, which affects the timeliness of data processing, and in addition, discarding the collected data may cause data loss, which affects the integrity of the collected data.
Therefore, the embodiment provides an alignment method for data collected by multiple sensors of equipment, the method does not need to wait for the collected data, the collected data can continue to be processed in the subsequent data processing process after being filled into a target data chain, the timeliness of data processing is improved, meanwhile, when the collected data to be reported in the target data chain is incomplete, the target data chain is stored, namely, the data chains corresponding to multiple time windows can be simultaneously reserved, data cannot be lost, and the integrity of the data is improved.
Embodiments of the present invention are further described below with reference to the accompanying drawings.
The first embodiment is as follows:
in accordance with an embodiment of the present invention, there is provided an embodiment of an alignment method for acquiring data by multiple sensors of a device, it is noted that the steps illustrated in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be executed in an order different than that illustrated herein.
Fig. 1 is a flow chart of an alignment method for acquiring data by multiple sensors of a device according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data;
in the embodiment of the present invention, a time window refers to a preset time deviation allowed when reporting a data chain corresponding to the time window, and the time window has two attributes, one is a window size and the other is a reasonable time interval, where the window size is the preset time deviation, and a minimum time endpoint of the reasonable time interval is: the difference between the maximum acquisition time of the data to be reported and acquired in the data chain corresponding to the time window and the preset time deviation, and the maximum time endpoint of the reasonable time interval is as follows: and the sum of the minimum acquisition time of the data to be reported and acquired in the data chain corresponding to the time window and the preset time deviation.
The target time window corresponding to the acquired data is the time window corresponding to the reasonable time interval to which the acquisition time of the acquired data belongs. The reasonable time interval aims at quickly positioning a time window corresponding to a data point (namely, a data point of collected data), and when the collection time of the collected data is within the reasonable time interval, the collection time of the collected data must meet the preset time deviation of the current time window.
Step S104, filling the collected data serving as the collected data to be reported into a target data chain corresponding to a target time window, wherein the target data chain is a data chain table defined according to the integrity of the collected data to be reported, and the collection time of all the collected data to be reported in the target data chain meets the preset time deviation of the target time window;
in the embodiment of the invention, the data chain is a data chain table defined according to the integrity of the collected data to be reported. In order to more clearly understand the method of the present embodiment, a detailed description is given below by taking a specific application scenario as an example.
The device is externally connected with two sensors, namely a sensor C1 and a sensor C2, wherein a data point of acquired data of the sensor C1 is A, B, C, a data point of acquired data of the sensor C2 is D, E, when the acquired data to be reported are reported, a data point A, B, C, D, E needs to be reported simultaneously, and the maximum time deviation of the acquisition time of all the data points cannot be more than 10 milliseconds (preset time deviation); therefore, the target data chain corresponding to the application scenario is: the collected data of the data point A, B, C, D, E, where the index of the data chain is the collection time of the collected data to be reported therein, and each element thereof is data point information (at least, it needs to contain the unique identifier and the collected data value of the collected data).
Step S106, judging whether the data to be reported in the target data chain is completely filled; if the filling is complete, executing step S108; if the filling is not complete, executing step S110;
as in the above example, it is determined whether the target data chain includes the collected data of the data point A, B, C, D, E, and if the target data chain includes the collected data of the data point A, B, C, D, E, it is determined that the target data chain is completely filled; if the collected data for data point A, B, C, D, E is not included, then the target data chain is determined to be unfilled.
Step S108, reporting all the collected data to be reported in the target data chain to a data management layer;
step S110, saving the target data chain.
In an embodiment of the present invention, an alignment method for acquiring data by multiple sensors of a device is provided, including: acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data; then, filling the collected data serving as the collected data to be reported into a target data chain corresponding to a target time window; judging whether the data to be reported in the target data chain is completely filled; if the data link is complete, reporting all the to-be-reported collected data in the target data link to a data management layer; if not, the target data chain is saved. According to the above description, the alignment method of the collected data forms a complete target data chain by the collected data to be reported according to the dimension of the target time window, and when the target data chain is completely filled, all the collected data to be reported in the target data chain are taken away for reporting. The process does not need to wait for the collected data, after the collected data are filled into the target data chain, the subsequent data processing process can be continued, the timeliness of data processing is improved, meanwhile, when the collected data to be reported in the target data chain are incomplete, the target data chain is stored, namely, the data chains corresponding to a plurality of time windows can be kept simultaneously, the data cannot be lost, the integrity of the data is improved, and the technical problems that the collected data processing time is prolonged and the collected data are incomplete in the existing alignment method for collecting the data by multiple sensors of the equipment are solved.
The foregoing briefly describes the alignment method of the multi-sensor data acquisition of the apparatus of the present invention, and the details thereof are described in detail below.
In an optional embodiment of the present invention, referring to fig. 2, in the step S102, determining the target time window corresponding to the acquired data according to the acquisition time of the acquired data specifically includes the following steps:
step S201, judging whether a target reasonable time interval to which the acquisition time belongs exists; if so, executing step S202; if not, executing step S203-step S205;
step S202, taking a time window corresponding to the target reasonable time interval as a target time window;
step S203, taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of the reasonable time interval of the new time window, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the reasonable time interval of the new time window to obtain the reasonable time interval of the new time window;
step S204, generating a new time window according to the reasonable time interval and the preset time deviation of the new time window;
step S205, the new time window is set as the target time window.
In an optional embodiment of the present invention, in the step S104, filling the collected data serving as the collected data to be reported into the target data chain corresponding to the target time window, specifically includes: and filling the identification information of the acquired data, the acquisition time and the acquired data value of the acquired data into a target data chain as the acquired data to be reported.
In an optional embodiment of the present invention, after filling the collected data as data to be reported into the target data chain corresponding to the target time window, the method further includes:
and updating the reasonable time interval of the target time window according to the acquisition time and the preset time deviation to obtain an updated reasonable time interval, and taking the updated reasonable time interval as the reasonable time interval of the target time window.
Referring to fig. 3, the specific process of updating the reasonable time interval is as follows:
step S301, taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of the first reasonable time interval, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the first reasonable time interval to obtain the first reasonable time interval;
step S302, performing intersection calculation on the first reasonable time interval and the reasonable time interval of the target time window to obtain an intersection time interval;
and step S303, taking the intersection time interval as an updated reasonable time interval.
The reasonable time interval is updated to ensure that all the collected data in the time window are within the specified preset time deviation. The principle of the update reasonable time interval is as follows: when the corresponding time window is found in the acquired data, the self reasonable time interval of the acquired data is obtained by calculating the acquisition time of the acquired data, and the intersection operation is carried out on the reasonable time interval and the original reasonable time interval of the time window to obtain an intersection time interval containing the acquired data, wherein the intersection time interval is the updated reasonable time interval.
The operation principle is shown in fig. 4, and the operation process and the result are shown in fig. 5.
As can be seen from fig. 4, if the preset time deviation (i.e., the size of the time window) is 10, and if the acquisition time is 20, there is no reasonable time interval (i.e., a reasonable interval in the figure) to which 20 belongs, the difference 10 between the acquisition time 20 and the preset time deviation 10 is taken as the minimum time endpoint of the reasonable time interval of the new time window, and the sum 30 between the acquisition time 20 and the preset time deviation 10 is taken as the maximum time endpoint of the reasonable time interval of the new time window, so as to obtain the reasonable time interval (10-30) of the new time window; generating a new time window according to the reasonable time interval (10-30) of the new time window and the preset time deviation 10, wherein the new time window is as follows: presetting a time window with a time deviation of 10 and a reasonable time interval of 10-30; when the acquisition time of the second acquired data is 22 and the second acquired data belongs to a reasonable time interval of 10-30, filling the second acquired data into a target data chain corresponding to the new time window, and updating the reasonable time interval of the new time window at the same time, specifically, taking the difference 12 between the acquisition time 22 and the preset time deviation 10 as the minimum time endpoint of the first reasonable time interval, and taking the sum 32 between the acquisition time 22 and the preset time deviation 10 as the maximum time endpoint of the first reasonable time interval to obtain the first reasonable time interval (12-32); performing intersection calculation on the first reasonable time interval 12-32 and the reasonable time interval 10-30 of the new time window to obtain an intersection time interval 12-30; and taking the intersection time interval 12-30 as a reasonable time interval after updating.
If the reasonable time interval is not updated, the reasonable time interval is always 10-30, the acquisition time of the first acquired data is 20, the acquisition time of the second acquired data is 22, the acquisition time of the first acquired data and the acquisition time of the second acquired data are within the preset time deviation range, if the acquisition time of the third acquired data is 11, the data belong to the reasonable time interval 10-30, but the time deviation between the data chain and the acquired data with the acquisition time of 11 and the acquisition time of 22 is 11, the preset time deviation is not met, but the data chain is entered, obviously unreasonable, therefore, the reasonable time interval needs to be updated, so that the method is more accurate when the reasonable time interval is used as a target time window corresponding to the judgment acquisition data, and then the requirement of the preset time deviation of the corresponding time window can be met between the acquisition time of all the to-be-reported acquired data in the data chain.
In an optional embodiment of the invention, the method further comprises: when the collected data is filled into a target data chain corresponding to a target time window as data to be reported, if the target data chain has the collected data to be reported, which is the same as the identification information of the collected data, a data coverage algorithm is adopted to cover the collected data to be reported, wherein the data coverage algorithm comprises any one of the following steps: an algorithm covering according to the acquisition sequence and an algorithm covering according to the acquisition time.
Specifically, when repeated data (i.e., collected data to be reported with the same identification information) appears in a data chain of the same time window, the repeated data needs to be processed, and the processing strategy can be customized according to an actual scene. When covering according to the acquisition sequence, directly covering after each acquisition; when the data is covered according to the acquisition time, after each acquisition, the acquisition time of the data to be reported in the data chain needs to be compared with the acquisition time of the current acquisition data, and the acquisition data with the old acquisition time is covered by the new acquisition time.
The following description will proceed with the method of the present invention by taking the above application scenario as an example:
for example, in the application scenario mentioned in the present invention, when the sensor C1 acquires data A, B, C, and the acquisition times are 20, and 22 in sequence, a time window corresponding to the timestamp 20 is first found, at this time, because the corresponding time window cannot be found, a time window with a preset time deviation of 10 based on the timestamp 20 is created, a reasonable time interval receivable by the time window is the maximum timestamp 20 minus the preset time deviation 10 to the minimum timestamp 20 plus the preset time deviation 10, that is, 10 to 30, and the acquired data A, B is filled into a data chain corresponding to the time window (the processing result is shown in fig. 6). Then, the time window corresponding to the timestamp 22 is searched, and at this time, an existing time window meeting the condition is found, the collected data C is filled into the data chain corresponding to the time window meeting the condition, and the reasonable time interval of the time window is updated, in the same manner as above, that is, 12 to 30 (the processing result is shown in fig. 7). When the sensor C2 acquires the acquired data D, E, the acquisition time stamps are 18 and 25 in sequence, at this time, a time window corresponding to the time stamp 18 is searched first, and data chain filling and time window interval updating are performed, and the time window interval after updating is 12 to 28 (the process is the same as above, and the processing result is shown in fig. 8). And processing the acquired data of the timestamp 25, wherein the time window interval after processing is 15-28 (the processing result is shown in fig. 9). At this time, all the data in the time window (i.e., the to-be-reported collected data in the data chain) is filled, and the to-be-reported collected data in the time window needs to be taken out and reported. When the sensor C1 has collected the data point A, B, C again and the timestamps are 30, and 32 in this order, the above steps are repeated, and at this time, a new time window is generated because a legal time window cannot be found, and the processing result is as shown in fig. 10, and so on.
The alignment method for the data collected by the multiple sensors of the equipment can reserve the data chains corresponding to the multiple time windows within the preset time deviation, and can report the data once the reporting condition is met, so that the integrity and the continuity of the data are improved.
Example two:
the embodiment of the invention also provides an aligning device for data acquired by multiple sensors of equipment, which is mainly used for executing the aligning method for data acquired by multiple sensors of equipment provided by the first embodiment of the invention.
Fig. 11 is a schematic diagram of an alignment apparatus for acquiring data by multiple sensors of a device according to an embodiment of the present invention, as shown in fig. 11, the apparatus mainly includes: the device comprises a determining unit 10, a filling unit 20, a judging unit 30, a reporting unit 40 and a storing unit 50, wherein:
the determining unit is used for acquiring the acquired data and determining a target time window corresponding to the acquired data according to the acquisition time of the acquired data;
the device comprises a filling unit, a processing unit and a processing unit, wherein the filling unit is used for filling collected data serving as to-be-reported collected data into a target data chain corresponding to a target time window, the target data chain is a data chain table defined according to the integrity of the to-be-reported collected data, and the collection time of all the to-be-reported collected data in the target data chain meets the preset time deviation of the target time window;
the judging unit is used for judging whether the to-be-reported collected data in the target data chain is completely filled;
the reporting unit is used for reporting all the to-be-reported collected data in the target data chain to the data management layer if the filling is complete;
and the storage unit is used for storing the target data chain if the filling is incomplete.
In an embodiment of the present invention, an alignment apparatus for acquiring data by multiple sensors of a device is provided, including: acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data; then, filling the collected data serving as the collected data to be reported into a target data chain corresponding to a target time window; judging whether the data to be reported in the target data chain is completely filled; if the data link is complete, reporting all the to-be-reported collected data in the target data link to a data management layer; if not, the target data chain is saved. According to the above description, the alignment device for the collected data forms a complete target data chain from the collected data to be reported according to the dimension of the target time window, and when the target data chain is completely filled, all the collected data to be reported in the target data chain are taken away for reporting. The process does not need to wait for the collected data, after the collected data are filled into the target data chain, the subsequent data processing process can be continued, the timeliness of data processing is improved, meanwhile, when the collected data to be reported in the target data chain are incomplete, the target data chain is stored, namely, the data chains corresponding to a plurality of time windows can be kept simultaneously, the data cannot be lost, the integrity of the data is improved, and the technical problems that the collected data processing time is prolonged and the collected data are incomplete in the existing alignment method for collecting the data by multiple sensors of the equipment are solved.
Optionally, the determining unit is further configured to: judging whether a target reasonable time interval to which the acquisition time belongs exists; if so, taking a time window corresponding to the target reasonable time interval as a target time window; and if the target time window does not exist, generating a new time window according to the acquisition time and the preset time deviation, and taking the new time window as the target time window.
Optionally, the determining unit is further configured to: taking the difference between the deviation of the acquisition time and the preset time as the minimum time endpoint of the reasonable time interval of the new time window, and taking the sum of the deviation of the acquisition time and the preset time as the maximum time endpoint of the reasonable time interval of the new time window to obtain the reasonable time interval of the new time window; and generating a new time window according to the reasonable time interval of the new time window and the preset time deviation.
Optionally, the filling unit is further configured to: and filling the identification information of the acquired data, the acquisition time and the acquired data value of the acquired data into a target data chain as the acquired data to be reported.
Optionally, the apparatus is further configured to: and updating the reasonable time interval of the target time window according to the acquisition time and the preset time deviation to obtain an updated reasonable time interval, and taking the updated reasonable time interval as the reasonable time interval of the target time window.
Optionally, the apparatus is further configured to: taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of the first reasonable time interval, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the first reasonable time interval to obtain the first reasonable time interval; performing intersection calculation on the first reasonable time interval and the reasonable time interval of the target time window to obtain an intersection time interval; and taking the intersection time interval as the updated reasonable time interval.
Optionally, the apparatus is further configured to: when the collected data is filled into a target data chain corresponding to a target time window as data to be reported, if the target data chain has the collected data to be reported, which is the same as the identification information of the collected data, a data coverage algorithm is adopted to cover the collected data to be reported, wherein the data coverage algorithm comprises any one of the following steps: an algorithm covering according to the acquisition sequence and an algorithm covering according to the acquisition time.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
As shown in fig. 12, an electronic device 600 provided in an embodiment of the present application includes: the device comprises a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601, when the electronic device runs, the processor 601 and the memory 602 communicate through the bus, and the processor 601 executes the machine-readable instructions to execute the steps of the alignment method for acquiring data by multiple sensors of the device.
Specifically, the memory 602 and the processor 601 can be general-purpose memory and processor, and are not limited to specific embodiments, and when the processor 601 runs a computer program stored in the memory 602, the alignment method for acquiring data by multiple sensors of the device can be executed.
The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
Corresponding to the alignment method for the multi-sensor data acquisition of the equipment, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores machine executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to execute the steps of the alignment method for the multi-sensor data acquisition of the equipment.
The alignment device for acquiring data by multiple sensors of the equipment provided by the embodiment of the application can be specific hardware on the equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the vehicle marking method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An alignment method for data collected by multiple sensors of equipment is characterized by comprising the following steps:
acquiring collected data, and determining a target time window corresponding to the collected data according to the collection time of the collected data;
filling the collected data serving as the collected data to be reported into a target data chain corresponding to the target time window, wherein the target data chain is a data chain table defined according to the integrity of the collected data to be reported, and the collection time of all the collected data to be reported in the target data chain meets the preset time deviation of the target time window;
judging whether the data to be reported in the target data chain is completely filled;
if the filling is complete, reporting all the to-be-reported collected data in the target data chain to a data management layer;
and if the filling is incomplete, saving the target data chain.
2. The method of claim 1, wherein determining the target time window corresponding to the acquired data according to the acquisition time of the acquired data comprises:
judging whether a target reasonable time interval to which the acquisition time belongs exists;
if so, taking a time window corresponding to the target reasonable time interval as the target time window;
and if the target time window does not exist, generating a new time window according to the acquisition time and the preset time deviation, and taking the new time window as the target time window.
3. The method of claim 2, wherein generating a new time window based on the acquisition time and the preset time offset comprises:
taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of the reasonable time interval of the new time window, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the reasonable time interval of the new time window to obtain the reasonable time interval of the new time window;
and generating the new time window according to the reasonable time interval of the new time window and the preset time deviation.
4. The method of claim 1, wherein filling the collected data as collected data to be reported into a target data chain corresponding to the target time window comprises:
and filling the identification information of the acquired data, the acquisition time and the acquired data value of the acquired data into the target data chain as the acquired data to be reported.
5. The method according to claim 1, wherein after the collecting data is filled into a target data chain corresponding to the target time window as data to be reported, the method further comprises:
and updating the reasonable time interval of the target time window according to the acquisition time and the preset time deviation to obtain an updated reasonable time interval, and taking the updated reasonable time interval as the reasonable time interval of the target time window.
6. The method of claim 5, wherein updating the reasonable time interval of the target time window according to the acquisition time and the preset time offset comprises:
taking the difference between the acquisition time and the preset time deviation as the minimum time endpoint of a first reasonable time interval, and taking the sum of the acquisition time and the preset time deviation as the maximum time endpoint of the first reasonable time interval to obtain the first reasonable time interval;
performing intersection calculation on the first reasonable time interval and the reasonable time interval of the target time window to obtain an intersection time interval;
and taking the intersection time interval as the updated reasonable time interval.
7. The method of claim 1, further comprising:
when the collected data is filled into a target data chain corresponding to the target time window as data to be reported, if target data to be reported which is the same as the identification information of the collected data exists in the target data chain, covering the target data to be reported by adopting a data covering algorithm, wherein the data covering algorithm comprises any one of the following steps: an algorithm covering according to the acquisition sequence and an algorithm covering according to the acquisition time.
8. An alignment device for collecting data by multiple sensors of equipment, comprising:
the determining unit is used for acquiring the acquired data and determining a target time window corresponding to the acquired data according to the acquisition time of the acquired data;
a filling unit, configured to fill the collected data as to-be-reported collected data into a target data chain corresponding to the target time window, where the target data chain is a data chain table defined according to integrity of the to-be-reported collected data, and preset time deviations of the target time window are satisfied between collection times of all to-be-reported collected data in the target data chain;
the judging unit is used for judging whether the to-be-reported collected data in the target data chain is completely filled;
the reporting unit is used for reporting all the to-be-reported collected data in the target data chain to a data management layer if the filling is complete;
and the storage unit is used for storing the target data chain if the filling is incomplete.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of the preceding claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any of claims 1 to 7.
CN202111178992.3A 2021-10-11 2021-10-11 Alignment method and device for data collected by multiple sensors of equipment and electronic equipment Active CN113612567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111178992.3A CN113612567B (en) 2021-10-11 2021-10-11 Alignment method and device for data collected by multiple sensors of equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111178992.3A CN113612567B (en) 2021-10-11 2021-10-11 Alignment method and device for data collected by multiple sensors of equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN113612567A CN113612567A (en) 2021-11-05
CN113612567B true CN113612567B (en) 2021-12-14

Family

ID=78343494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111178992.3A Active CN113612567B (en) 2021-10-11 2021-10-11 Alignment method and device for data collected by multiple sensors of equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN113612567B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114241749B (en) * 2021-11-26 2022-12-13 深圳市戴升智能科技有限公司 Video beacon data association method and system based on time sequence
CN114490465A (en) * 2021-12-28 2022-05-13 北京奕斯伟计算技术有限公司 Data transmission method and device for direct memory access

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819799A (en) * 2016-09-13 2018-03-20 北京百度网讯科技有限公司 Data capture method and device for automatic driving vehicle
US10565171B1 (en) * 2014-12-23 2020-02-18 EMC IP Holding Company LLC Decision processing applied to data analytics workflow
CN112465646A (en) * 2021-01-21 2021-03-09 深圳华锐金融技术股份有限公司 Security data monitoring method and device, computer equipment and storage medium
CN112711614A (en) * 2021-01-15 2021-04-27 腾讯科技(深圳)有限公司 Service data management method and device
CN112733907A (en) * 2020-12-31 2021-04-30 上海商汤临港智能科技有限公司 Data fusion method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10565171B1 (en) * 2014-12-23 2020-02-18 EMC IP Holding Company LLC Decision processing applied to data analytics workflow
CN107819799A (en) * 2016-09-13 2018-03-20 北京百度网讯科技有限公司 Data capture method and device for automatic driving vehicle
CN112733907A (en) * 2020-12-31 2021-04-30 上海商汤临港智能科技有限公司 Data fusion method and device, electronic equipment and storage medium
CN112711614A (en) * 2021-01-15 2021-04-27 腾讯科技(深圳)有限公司 Service data management method and device
CN112465646A (en) * 2021-01-21 2021-03-09 深圳华锐金融技术股份有限公司 Security data monitoring method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于数据链估计和时间窗口重排的坏数据检测;沈涛等;《科技通报》;20151231(第12期);全文 *

Also Published As

Publication number Publication date
CN113612567A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
CN113612567B (en) Alignment method and device for data collected by multiple sensors of equipment and electronic equipment
CN112235326B (en) Internet of things equipment data analysis method and device and electronic equipment
CN110489391B (en) Data processing method and related equipment
US20110172879A1 (en) Vehicle repair/replacement information management system, and vehicle abnormality cause information management system
CN112434039A (en) Data storage method, device, storage medium and electronic device
CN111368172A (en) Sensor data processing method and device, computer equipment and storage medium
CN110826606B (en) Element matching method, device, server and readable storage medium
CN108650134B (en) Network fault positioning method and device and electronic equipment
CN111680104A (en) Data synchronization method and device, computer equipment and readable storage medium
CN108957397A (en) The localization method and device of crusing robot
CN113408828A (en) Production line optimization method and device based on intelligent manufacturing and server
CN111639053A (en) Authorization file expiration alarm prompting method and device and computer equipment
CN111193631B (en) Information processing method, system, and computer-readable storage medium
CN104216814B (en) Log compression monitoring method and log compression monitoring device
CN115544120A (en) Multi-sensor event generation system, method, electronic device and storage medium
CN115221218A (en) Quality evaluation method and device for vehicle data, computer equipment and storage medium
CN114138771A (en) Abnormal data processing method and device and electronic equipment
CN114199274A (en) Vehicle travel determining method, device and equipment and readable storage medium
CN113806343A (en) Assessment method and system for data quality of Internet of vehicles
CN103942261B (en) A kind of configuration input method for onboard system fault dictionary
CN103023701B (en) The analytical method of performance parameter and device in network management system
CN112436989B (en) Signal identification method and device for CAN data frame
CN116089437B (en) Data processing method and server
US11870659B1 (en) Industrial equipment diagnostic system
CN112953786A (en) Information processing method, device, system and computer readable 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
GR01 Patent grant
GR01 Patent grant