[go: up one dir, main page]

CN111078466B - Sensor data loss analysis method and system - Google Patents

Sensor data loss analysis method and system Download PDF

Info

Publication number
CN111078466B
CN111078466B CN201911109248.0A CN201911109248A CN111078466B CN 111078466 B CN111078466 B CN 111078466B CN 201911109248 A CN201911109248 A CN 201911109248A CN 111078466 B CN111078466 B CN 111078466B
Authority
CN
China
Prior art keywords
sensor data
serial number
time stamp
preset threshold
quotient
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
CN201911109248.0A
Other languages
Chinese (zh)
Other versions
CN111078466A (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.)
Fujian Helios Technologies Co ltd
Original Assignee
Fujian Helios Technologies 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 Fujian Helios Technologies Co ltd filed Critical Fujian Helios Technologies Co ltd
Priority to CN201911109248.0A priority Critical patent/CN111078466B/en
Publication of CN111078466A publication Critical patent/CN111078466A/en
Application granted granted Critical
Publication of CN111078466B publication Critical patent/CN111078466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)

Abstract

The invention provides a sensor data loss analysis method and a system, wherein the method comprises the steps of obtaining sensor data, wherein the sensor data comprises a timestamp and a serial number which are added during transmission among nodes; sorting the sensor data according to the time stamps, calculating a serial number difference value of two adjacent sensor data according to a sorting result, and judging whether the serial number difference value is equal to a first preset threshold value or not; if the serial number difference value is not equal to the first preset threshold value, judging that an interruption point exists between the previous sensor data and the next sensor data, and dividing the absolute value of the serial number difference value by the serial number of the next sensor data to calculate a quotient; comparing the quotient value with a second preset threshold value to judge the type of the interruption point; therefore, the data loss point can be quickly found from the break point by analyzing the break point, so that the efficiency of data statistics is improved.

Description

传感器数据丢失分析方法及系统Sensor data loss analysis method and system

技术领域technical field

本发明涉及数据处理技术领域,特别涉及一种传感器数据丢失方法、一种计算机可读存储介质、一种计算机设备和一种传感器数据丢失分析系统。The invention relates to the technical field of data processing, in particular to a sensor data loss method, a computer-readable storage medium, a computer device and a sensor data loss analysis system.

背景技术Background technique

相关技术中,传感器数据一般通过网络传输协议进行传输,但是在传输过程中任何一个环节异常都有可能引发数据丢失,影响系统可靠性,如何快速找到丢失数据的位置就显得尤为重要;现有的采用在数据中仅添加一条时间戳和序列号,通过对时间戳进行排序,当数据丢失时通过排序寻找数据中断点并人工判断该中断点是否为丢失点,以进行丢失量统计,由于通过人工判断中断点是否为丢失点费时费力,从而导致统计效率低下。In related technologies, sensor data is generally transmitted through network transmission protocols, but any abnormal link in the transmission process may cause data loss and affect system reliability. How to quickly find the location of lost data is particularly important; the existing Only one timestamp and serial number are added to the data, and by sorting the timestamps, when the data is lost, the data interruption point is found by sorting and manually judged whether the interruption point is a loss point, so as to calculate the loss amount. It is time-consuming and laborious to judge whether the interruption point is a lost point, resulting in low statistical efficiency.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决上述技术中的技术问题之一。为此,本发明的一个目的在于提出一种传感器数据丢失分析方法,通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。The present invention aims to solve one of the technical problems in the above-mentioned technologies at least to a certain extent. Therefore, an object of the present invention is to propose a sensor data loss analysis method, which can quickly find the data loss point from the interruption point by analyzing the interruption point, thereby improving the efficiency of data statistics.

本发明的第二个目的在于提出一种计算机可读存储介质。A second object of the present invention is to propose a computer-readable storage medium.

本发明的第三个目的在于提出一种计算机设备。A third object of the present invention is to propose a computer device.

为达到上述目的,本发明第一方面实施例提出了一种传感器数据丢失分析方法,包括以下步骤:获取传感器数据,其中,所述传感器数据包括在节点间传输时添加的时间戳和序列号;将所述传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断所述序列号差值是否等于第一预设阈值;如果所述序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间存在中断点,并将所述序列号差值取绝对值后除以所述后一条传感器数据的序列号,以计算商值;将所述商值与第二预设阈值进行比较,以判断所述中断点的类型。In order to achieve the above purpose, the embodiment of the first aspect of the present invention proposes a sensor data loss analysis method, including the following steps: acquiring sensor data, wherein the sensor data includes a time stamp and a serial number added during transmission between nodes; Sorting the sensor data according to the time stamp, and calculating the serial number difference between two adjacent sensor data according to the sorting result, and judging whether the serial number difference is equal to a first preset threshold; if the serial number difference is value is not equal to the first preset threshold, then it is judged that there is an interruption point between the previous sensor data and the subsequent sensor data, and the serial number difference is taken as an absolute value and divided by the serial number of the latter sensor data, to calculate a quotient; and comparing the quotient with a second preset threshold to determine the type of the interruption point.

根据本发明实施例的传感器数据丢失分析方法,通过获取传感器数据,其中,传感器数据包括在节点间传输时添加的时间戳和序列号;接着将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值;如果序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值;然后将商值与第二预设阈值进行比较,以判断中断点的类型;由此,通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。According to the sensor data loss analysis method of the embodiment of the present invention, by acquiring the sensor data, wherein the sensor data includes the time stamp and serial number added when transmitting between nodes; then sorting the sensor data according to the time stamp, and calculating The serial number difference between two adjacent sensor data, and judge whether the serial number difference is equal to the first preset threshold; if the serial number difference is not equal to the first preset threshold, then judge the previous sensor data and the next sensor data There is an interruption point between them, and the serial number difference is taken as the absolute value and divided by the serial number of the next sensor data to calculate the quotient value; then the quotient value is compared with the second preset threshold to determine the type of the interruption point; Therefore, by analyzing the interruption point, the data loss point can be quickly found from the interruption point, thereby improving the efficiency of data statistics.

另外,根据本发明上述实施例提出的传感器数据丢失分析方法还可以具有如下附加的技术特征:In addition, the sensor data loss analysis method proposed according to the above-mentioned embodiments of the present invention may also have the following additional technical features:

可选地,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号。Optionally, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added.

可选地,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号,具体为:采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;将所述传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;将所述传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部。Optionally, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added, specifically: collecting sensor data, and adding a corresponding time stamp and serial number for each piece of sensor data, adding The time stamp and serial number are put together at the end of the sensor data; the sensor data is transmitted to the main control board, and a corresponding time stamp and serial number are added for each piece of sensor data, and the time stamp and the serial number are put together At the end of the sensor data; transmit the sensor data to the platform, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data.

可选地,将所述商值与第二预设阈值进行比较,以判断所述中断点的类型,包括:如果所述商值大于所述第二预设阈值,则判断所述中断点为重启点;如果所述商值小于等于所述第二预设阈值,则判断所述中断点为丢失点。Optionally, comparing the quotient with a second preset threshold to determine the type of the interruption point includes: if the quotient is greater than the second preset threshold, judging that the interruption point is A restart point; if the quotient is less than or equal to the second preset threshold, it is judged that the interruption point is a lost point.

为达到上述目的,本发明第二方面实施例提出了一种计算机可读存储介质,其上存储有传感器数据丢失分析程序,该传感器数据丢失分析程序被处理器执行时实现如上述的传感器数据丢失分析方法。In order to achieve the above purpose, the embodiment of the second aspect of the present invention proposes a computer-readable storage medium, on which is stored a sensor data loss analysis program, and when the sensor data loss analysis program is executed by a processor, the sensor data loss as described above can be realized Analytical method.

根据本发明实施例的计算机可读存储介质,通过存储传感器数据丢失分析程序,以便处理器在执行该传感器数据丢失分析程序时实现如上述的传感器数据丢失分析方法,从而通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。According to the computer-readable storage medium of the embodiment of the present invention, by storing the sensor data loss analysis program, so that the processor implements the sensor data loss analysis method as described above when executing the sensor data loss analysis program, so that by analyzing the interruption point, To quickly find the data loss point from the interruption point, so as to improve the efficiency of data statistics.

为达到上述目的,本发明第三方面实施例提出了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如上述的传感器数据丢失分析方法。In order to achieve the above object, the embodiment of the third aspect of the present invention proposes a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the computer program , realizing the sensor data loss analysis method as described above.

根据本发明实施例的计算机设备,通过存储器存储可在处理器上运行的计算机程序,以便处理器在执行该计算机程序时,实现如上述的传感器数据丢失分析方法,从而通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。According to the computer device of the embodiment of the present invention, the computer program that can be run on the processor is stored in the memory, so that when the processor executes the computer program, the sensor data loss analysis method as described above is implemented, so that by analyzing the interruption point, To quickly find the data loss point from the interruption point, so as to improve the efficiency of data statistics.

为达到上述目的,本发明第四方面实施例提出了一种传感器数据丢失分析系统,包括:提取模块,用于获取传感器数据,其中,所述传感器数据包括在节点间传输时添加的时间戳和序列号;第一计算模块,用于将所述传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断所述序列号差值是否等于第一预设阈值;第二计算模块,用于在所述序列号差值不等于第一预设阈值时判断前一条传感器数据与后一条传感器数据之间存在中断点,并将所述序列号差值取绝对值后除以所述后一条传感器数据的序列号,以计算商值,以及将所述商值与第二预设阈值进行比较,以判断所述中断点的类型。In order to achieve the above purpose, the embodiment of the fourth aspect of the present invention proposes a sensor data loss analysis system, including: an extraction module for acquiring sensor data, wherein the sensor data includes time stamps and time stamps added during transmission between nodes Serial number; the first calculation module is used to sort the sensor data according to the time stamp, and calculate the serial number difference between two adjacent sensor data according to the sorting result, and judge whether the serial number difference is equal to the first Preset threshold; a second calculation module, configured to judge that there is an interruption point between the previous sensor data and the next sensor data when the serial number difference is not equal to the first preset threshold, and calculate the serial number difference Taking the absolute value and dividing it by the sequence number of the next piece of sensor data to calculate a quotient, and comparing the quotient with a second preset threshold to determine the type of the interruption point.

根据本发明实施例的一种传感器数据丢失分析系统,通过提取模块获取传感器数据,其中,传感器数据包括在节点间传输时添加的时间戳和序列号;再通过第一计算模块将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值;如果序列号差值不等于第一预设阈值,则通过第二计算模块判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值,以及将商值与第二预设阈值进行比较,以判断中断点的类型。According to a sensor data loss analysis system according to an embodiment of the present invention, the sensor data is obtained through an extraction module, wherein the sensor data includes a time stamp and a serial number added during transmission between nodes; According to the sorting results, calculate the serial number difference between two adjacent sensor data, and judge whether the serial number difference is equal to the first preset threshold; if the serial number difference is not equal to the first preset threshold, pass The second calculation module judges that there is an interruption point between the previous sensor data and the next sensor data, and divides the serial number difference by taking the absolute value of the serial number of the next sensor data to calculate the quotient value, and the quotient value and the second sensor data Two preset thresholds are compared to determine the type of interruption point.

另外,根据本发明上述实施例提出的传感器数据丢失分析系统还可以具有如下附加的技术特征:In addition, the sensor data loss analysis system proposed according to the above-mentioned embodiments of the present invention may also have the following additional technical features:

可选地,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号。Optionally, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added.

可选地,所述传感器数据丢失分析系统还包括采集模块,用于采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;第一传输模块,用于将所述传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;第二传输模块,用于将所述传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部。Optionally, the sensor data loss analysis system also includes a collection module, configured to collect sensor data, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number on the sensor Data tail; the first transmission module is used to transmit the sensor data to the main control board, and add a corresponding time stamp and serial number for each piece of sensor data, and put the time stamp and serial number together in the sensor data Tail: the second transmission module is used to transmit the sensor data to the platform, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data.

可选地,所述第二计算模块还用于,如果所述商值大于所述第二预设阈值,则判断所述中断点为重启点;如果所述商值小于等于所述第二预设阈值,则判断所述中断点为丢失点。Optionally, the second calculating module is further configured to judge that the interruption point is a restart point if the quotient is greater than the second preset threshold; if the quotient is less than or equal to the second preset If a threshold is set, it is judged that the interruption point is a lost point.

附图说明Description of drawings

图1为根据本发明实施例的传感器数据丢失分析流程示意图;FIG. 1 is a schematic diagram of a sensor data loss analysis process according to an embodiment of the present invention;

图2为根据本发明实施例的传感器数据处理流程示意图;2 is a schematic diagram of a sensor data processing flow according to an embodiment of the present invention;

图3为根据本发明实施例的传感器数据丢失分析系统的方框示意图;3 is a schematic block diagram of a sensor data loss analysis system according to an embodiment of the present invention;

图4为根据本发明实施例的传感器数据处理方框示意图。FIG. 4 is a schematic block diagram of sensor data processing according to an embodiment of the present invention.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

现有的采用在数据中仅添加一条时间戳和序列号,通过对时间戳进行排序,当数据丢失时通过排序寻找数据中断点并人工判断该中断点是否为丢失点,以进行丢失量统计,由于通过人工判断中断点是否为丢失点费时费力,从而导致统计效率低下;为此,根据本发明提出的一种传感器数据丢失分析方法,通过分析大量数据重启点和数据丢失点发现,通常重启点的前后数据序列号变化量大于后一条数据序列号;而且设备重启通常发生在设备运行了一段时间之后,此时设备采集到的数据所带的序列号与初始序列号的差值较初始序列号如“1”来说更大;设备重启之后采集到的数据所携带的序列号会从序列号的初始值如“1”开始,因此重启后的第一条数据序列号远小于重启前最后一条数据的序列号与重启后第一条数据序列号的差,据此方法可以准确的找到数据中断点中的丢失点,进而进行准确的数据丢失量统计。The existing method only adds a time stamp and serial number to the data, sorts the time stamps, and when the data is lost, finds the interruption point of the data by sorting and manually judges whether the interruption point is a loss point, so as to calculate the amount of loss. Due to manually judging whether the interruption point is a lost point, it is time-consuming and laborious, resulting in low statistical efficiency; for this reason, according to a sensor data loss analysis method proposed by the present invention, it is found by analyzing a large number of data restart points and data loss points, usually the restart point The change of the data serial number before and after is greater than that of the last data serial number; and the device restart usually occurs after the device has been running for a period of time. At this time, the difference between the serial number of the data collected by the device and the initial serial number For example, "1" is bigger; the serial number carried by the data collected after the device restarts will start from the initial value of the serial number such as "1", so the serial number of the first piece of data after the restart is much smaller than the last one before the restart. The difference between the serial number of the data and the serial number of the first piece of data after restarting, according to this method can accurately find the loss point in the data interruption point, and then carry out accurate statistics on the amount of data loss.

为了更好的理解上述技术方案,下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。In order to better understand the above technical solutions, the following will describe exemplary embodiments of the present invention in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above-mentioned technical solution, the above-mentioned technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

图1为根据本发明实施例的传感器数据丢失分析流程示意图;如图1所示,本发明实施例的分析方法包括以下步骤:FIG. 1 is a schematic diagram of a sensor data loss analysis process according to an embodiment of the present invention; as shown in FIG. 1 , the analysis method of the embodiment of the present invention includes the following steps:

步骤101,获取传感器数据,其中,传感器数据包括在节点间传输时添加的时间戳和序列号。Step 101, acquiring sensor data, wherein the sensor data includes a time stamp and a sequence number added during transmission between nodes.

也就是说,传感器数据在任意两个节点之间进行传输时均需要添加时间戳和序列号。That is to say, when sensor data is transmitted between any two nodes, time stamp and sequence number need to be added.

作为一个实施例,获取传感器设备模块上的一个时段的传感器数据,以对该数据段进行分析,其中该数据段上的每个数据对应有时间戳和序列号。As an embodiment, the sensor data of a period of time on the sensor device module is acquired to analyze the data segment, wherein each data on the data segment corresponds to a time stamp and a serial number.

需要说明的是,时间戳是指传感器设备模块或者节点接收到数据时的时间,并将该当前时间添加给每一条数据;序列号是指当传感器设备模块或者节点接收到数据时,给每一条数据按顺序添加的一个序列标签,该序列号从初始值到最大值之间循环使用,当模块或者节点重启时,重启后添加的序列号将从起始值重新循环,其中最大值可自行定义。It should be noted that the time stamp refers to the time when the sensor device module or node receives the data, and the current time is added to each piece of data; the serial number refers to the time when the sensor device module or node receives the data A sequence label added to the data in order. The sequence number is used cyclically from the initial value to the maximum value. When the module or node restarts, the sequence number added after the restart will recycle from the initial value, and the maximum value can be defined by yourself. .

步骤102,将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值。Step 102, sort the sensor data according to the time stamp, and calculate the serial number difference between two adjacent sensor data according to the sorting result, and judge whether the serial number difference is equal to the first preset threshold.

也就是说,在获取传感器数据之后,将该获取的传感器数据按传感器设备模块或者节点接收到该传感器数据时添加的时间戳进行排序,并根据排序结果计算相邻两条传感器数据对应的序列号之间的差值,从而判断该差值是否等于第一预设阈值。That is to say, after acquiring the sensor data, sort the acquired sensor data according to the timestamp added when the sensor device module or node receives the sensor data, and calculate the serial numbers corresponding to two adjacent sensor data according to the sorting result The difference between them, so as to determine whether the difference is equal to the first preset threshold.

作为一个实施例,假设该序列号的初始值设置为1,且两个相邻传感器数据添加的序列号之间的差值也为1,则计算相邻两条传感器数据对应的序列号之间的差值时,如果通过前一条传感器数据的序列号减去后一条传感器数据的序列号,则第一预设阈值为-1,如果通过后一条传感器数据的序列号减去前一条传感器数据的序列号,则第一预设阈值为1。As an example, assuming that the initial value of the serial number is set to 1, and the difference between the serial numbers added by two adjacent sensor data is also 1, then calculate the difference between the serial numbers corresponding to two adjacent sensor data. When subtracting the serial number of the next sensor data from the serial number of the previous sensor data, the first preset threshold is -1, and if the serial number of the latter sensor data is subtracted from the serial number, the first preset threshold is 1.

步骤103,如果序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值。Step 103, if the serial number difference is not equal to the first preset threshold, it is judged that there is an interruption point between the previous sensor data and the next sensor data, and the absolute value of the serial number difference is divided by the sequence of the next sensor data number to calculate the quotient value.

也就是说,如果序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间不连续,存在中断点,则将该序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值。That is to say, if the serial number difference is not equal to the first preset threshold, it is judged that there is a discontinuity between the previous sensor data and the next sensor data, and there is an interruption point, then the serial number difference is divided by the absolute value Serial number of a piece of sensor data to calculate the quotient.

需要说明的是,作为一个实施例,也可以将该序列号差值除以后一条传感器数据的序列号之后再取绝对值,从而计算出商值。It should be noted that, as an embodiment, the serial number difference may also be divided by the serial number of the next piece of sensor data, and then take the absolute value, so as to calculate the quotient.

作为一个实施例,假设该序列号的初始值设置为1,且两个相邻传感器数据添加的序列号之间的差值也为1,则如果通过前一条传感器数据的序列号减去后一条传感器数据的序列号的序列号差值不等于-1时,判断前一条传感器数据与后一条传感器数据之间存在中断点,则将该序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值;如果通过后一条传感器数据的序列号减去前一条传感器数据的序列号的序列号差值不等于1时,判断前一条传感器数据与后一条传感器数据之间存在中断点,则将该序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值。As an example, assuming that the initial value of the serial number is set to 1, and the difference between the serial numbers added by two adjacent sensor data is also 1, then if the serial number of the previous sensor data is subtracted from the next When the serial number difference of the serial number of the sensor data is not equal to -1, it is judged that there is a break point between the previous sensor data and the next sensor data, then the absolute value of the serial number difference is divided by the sequence of the next sensor data number to calculate the quotient value; if the serial number difference between the serial number of the next sensor data minus the serial number of the previous sensor data is not equal to 1, it is judged that there is an interruption point between the previous sensor data and the next sensor data , then take the absolute value of the serial number difference and divide it by the serial number of the next piece of sensor data to calculate the quotient.

步骤104,将商值与第二预设阈值进行比较,以判断中断点的类型。Step 104, comparing the quotient with a second preset threshold to determine the type of the interruption point.

需要说明的是,如果商值大于第二预设阈值,则判断中断点为重启点;如果商值小于等于第二预设阈值,则判断中断点为丢失点。It should be noted that, if the quotient value is greater than the second preset threshold, it is judged that the interruption point is a restart point; if the quotient value is less than or equal to the second preset threshold, it is judged that the interruption point is a lost point.

作为一个实施例,将第二预设阈值设置为1,如果商值大于1,则判断该中断点为重启点;如果商值小于等于1,则判断中断点为丢失点。As an embodiment, the second preset threshold is set to 1, and if the quotient value is greater than 1, it is judged that the interrupt point is a restart point; if the quotient value is less than or equal to 1, it is judged that the interrupt point is a lost point.

综上所述,根据本发明实施例的传感器数据丢失分析方法,通过获取传感器数据,其中,传感器数据包括在节点间传输时添加的时间戳和序列号;接着将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值;如果序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值;然后将商值与第二预设阈值进行比较,以判断中断点的类型;由此,通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。To sum up, according to the sensor data loss analysis method of the embodiment of the present invention, by acquiring sensor data, wherein the sensor data includes the time stamp and serial number added when transmitting between nodes; and then sorting the sensor data by time stamp, And calculate the serial number difference between two adjacent sensor data according to the sorting result, and judge whether the serial number difference is equal to the first preset threshold; if the serial number difference is not equal to the first preset threshold, then judge the previous sensor data There is an interruption point between the sensor data and the next sensor data, and the serial number difference is taken as the absolute value and divided by the serial number of the next sensor data to calculate the quotient value; then compare the quotient value with the second preset threshold to judge The type of interruption point; thus, by analyzing the interruption point, the data loss point can be quickly found from the interruption point, thereby improving the efficiency of data statistics.

另外,作为一个实施例,如图2所示,传感器数据在采集和传输的任意两个节点之间均需添加时间戳和序列号,包括以下步骤:In addition, as an example, as shown in Figure 2, a time stamp and a serial number need to be added between any two nodes of sensor data collection and transmission, including the following steps:

步骤201,采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部。Step 201, collect sensor data, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data.

步骤202,将传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部。In step 202, the sensor data is transmitted to the main control board, and a corresponding time stamp and serial number are added to each piece of sensor data, and the time stamp and serial number are put together at the end of the sensor data.

步骤203,将传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部。In step 203, the sensor data is transmitted to the platform, and a corresponding time stamp and serial number are added to each piece of sensor data, and the time stamp and serial number are put together at the end of the sensor data.

需要说明的是,在数据采集、传输和处理的关键阶段均需添加时间戳和序列号,以增加数据丢失时的排查线索,进而便于对数据丢失的具体阶段进行定位。It should be noted that time stamps and serial numbers need to be added at key stages of data collection, transmission, and processing to increase troubleshooting clues when data is lost, thereby facilitating the location of specific stages of data loss.

另外,本发明实施例还提出了一种计算机可读存储介质,其上存储有传感器数据丢失分析程序,该传感器数据丢失分析程序被处理器执行时实现如上述的传感器数据丢失分析方法。In addition, the embodiment of the present invention also proposes a computer-readable storage medium on which a sensor data loss analysis program is stored, and when the sensor data loss analysis program is executed by a processor, the above sensor data loss analysis method is implemented.

根据本发明实施例的计算机可读存储介质,通过存储传感器数据丢失分析程序,以便处理器在执行该传感器数据丢失分析程序时实现如上述的传感器数据丢失分析方法,从而通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。According to the computer-readable storage medium of the embodiment of the present invention, by storing the sensor data loss analysis program, so that the processor implements the sensor data loss analysis method as described above when executing the sensor data loss analysis program, so that by analyzing the interruption point, To quickly find the data loss point from the interruption point, so as to improve the efficiency of data statistics.

另外,本发明实施例还提出了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如上述的传感器数据丢失分析方法。In addition, an embodiment of the present invention also proposes a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the above-mentioned Sensor data loss analysis method.

根据本发明实施例的计算机设备,通过存储器存储可在处理器上运行的计算机程序,以便处理器在执行该计算机程序时,实现如上述的传感器数据丢失分析方法,从而通过对中断点进行分析,以快速从中断点中寻找到数据丢失点,从而提高数据统计的效率。According to the computer device of the embodiment of the present invention, the computer program that can be run on the processor is stored in the memory, so that when the processor executes the computer program, the sensor data loss analysis method as described above is implemented, so that by analyzing the interruption point, To quickly find the data loss point from the interruption point, so as to improve the efficiency of data statistics.

图3为根据本发明实施例的传感器数据丢失分析系统的方框示意图;如图3所示,本实施例的传感器数据丢失分析系统包括:提取模块301、第一计算模块302和第二计算模块303;Fig. 3 is a schematic block diagram of a sensor data loss analysis system according to an embodiment of the present invention; as shown in Fig. 3 , the sensor data loss analysis system of this embodiment includes: an extraction module 301, a first calculation module 302 and a second calculation module 303;

其中,提取模块301,用于获取传感器数据,传感器数据包括在节点间传输时添加的时间戳和序列号;Wherein, the extraction module 301 is used to obtain sensor data, and the sensor data includes a time stamp and a serial number added during transmission between nodes;

第一计算模块302,用于将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值;The first calculation module 302 is configured to sort the sensor data according to the time stamp, calculate the serial number difference between two adjacent sensor data according to the sorting result, and judge whether the serial number difference is equal to the first preset threshold;

第二计算模块303,用于在序列号差值不等于第一预设阈值时判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值,以及将商值与第二预设阈值进行比较,以判断中断点的类型。The second calculation module 303 is used to judge that there is a break point between the previous sensor data and the next sensor data when the serial number difference is not equal to the first preset threshold, and divide the serial number difference by the absolute value after taking the absolute value The serial number of the sensor data is used to calculate the quotient value, and the quotient value is compared with a second preset threshold value to determine the type of the interruption point.

作为一个实施例,传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号。As an example, when sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added.

作为一个实施例,如图4所示,传感器数据丢失分析系统,还包括:采集模块401、第一传输模块402和第二传输模块403;As an embodiment, as shown in FIG. 4, the sensor data loss analysis system further includes: an acquisition module 401, a first transmission module 402 and a second transmission module 403;

其中采集模块401,用于采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部;The collection module 401 is used to collect sensor data, and add a corresponding time stamp and serial number for each piece of sensor data, and put the time stamp and serial number at the end of the sensor data;

第一传输模块402,用于将传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部;The first transmission module 402 is used to transmit the sensor data to the main control board, and add a corresponding time stamp and serial number for each piece of sensor data, and put the time stamp and serial number at the end of the sensor data;

第二传输模块403,用于将传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将时间戳和序列号拼在传感器数据尾部。The second transmission module 403 is configured to transmit the sensor data to the platform, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data.

作为一个实施例,第二计算模块303还用于,如果商值大于第二预设阈值,则判断中断点为重启点;如果商值小于等于第二预设阈值,则判断中断点为丢失点。As an embodiment, the second calculation module 303 is also used to determine that the interruption point is a restart point if the quotient value is greater than a second preset threshold; if the quotient value is less than or equal to the second preset threshold value, then determine that the interruption point is a lost point .

需要说明的是,前述对于传感器数据丢失分析方法的实施例的解释说明同样适用于本实施例的传感器数据丢失分析系统,此处不再赘述。It should be noted that the foregoing explanations about the embodiment of the sensor data loss analysis method are also applicable to the sensor data loss analysis system of this embodiment, and will not be repeated here.

根据本发明实施例的一种传感器数据丢失分析系统,通过提取模块获取传感器数据,其中,传感器数据包括在节点间传输时添加的时间戳和序列号;再通过第一计算模块将传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断序列号差值是否等于第一预设阈值;如果序列号差值不等于第一预设阈值,则通过第二计算模块判断前一条传感器数据与后一条传感器数据之间存在中断点,并将序列号差值取绝对值后除以后一条传感器数据的序列号,以计算商值,以及将商值与第二预设阈值进行比较,以判断中断点的类型。According to a sensor data loss analysis system according to an embodiment of the present invention, the sensor data is obtained through an extraction module, wherein the sensor data includes a time stamp and a serial number added during transmission between nodes; According to the sorting results, calculate the serial number difference between two adjacent sensor data, and judge whether the serial number difference is equal to the first preset threshold; if the serial number difference is not equal to the first preset threshold, pass The second calculation module judges that there is an interruption point between the previous sensor data and the next sensor data, and divides the serial number difference by taking the absolute value of the serial number of the next sensor data to calculate the quotient value, and the quotient value and the second sensor data Two preset thresholds are compared to determine the type of interruption point.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

应当注意的是,在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的部件或步骤。位于部件之前的单词“一”或“一个”不排除存在多个这样的部件。本发明可以借助于包括有若干不同部件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that, in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present invention, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediary, and it can be the internal communication of two components or the interaction relationship between two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.

在本发明中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present invention, unless otherwise clearly specified and limited, the first feature may be in direct contact with the first feature or the first and second feature may be in direct contact with the second feature through an intermediary. touch. Moreover, "above", "above" and "above" the first feature on the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. "Below", "beneath" and "beneath" the first feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is less horizontally than the second feature.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不应理解为必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms should not be understood as necessarily referring to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (10)

1.一种传感器数据丢失分析方法,其特征在于,包括以下步骤:1. A sensor data loss analysis method, is characterized in that, comprises the following steps: 获取传感器数据,其中,所述传感器数据包括在节点间传输时添加的时间戳和序列号;Acquiring sensor data, wherein the sensor data includes a time stamp and a serial number added during transmission between nodes; 将所述传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断所述序列号差值是否等于第一预设阈值;sorting the sensor data according to the time stamp, and calculating the serial number difference between two adjacent sensor data according to the sorting result, and judging whether the serial number difference is equal to a first preset threshold; 如果所述序列号差值不等于第一预设阈值,则判断前一条传感器数据与后一条传感器数据之间存在中断点,并将所述序列号差值取绝对值后除以所述后一条传感器数据的序列号,以计算商值;If the serial number difference is not equal to the first preset threshold, it is judged that there is an interruption point between the previous sensor data and the subsequent sensor data, and the absolute value of the serial number difference is divided by the latter serial number of the sensor data to calculate the quotient value; 将所述商值与第二预设阈值进行比较,以判断所述中断点的类型。Comparing the quotient with a second preset threshold to determine the type of the interruption point. 2.如权利要求1所述的传感器数据丢失分析方法,其特征在于,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号。2. The sensor data loss analysis method according to claim 1, characterized in that, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added. 3.如权利要求2所述的传感器数据丢失分析方法,其特征在于,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号,具体为:3. The sensor data loss analysis method as claimed in claim 2, wherein, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added, specifically: 采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;Collect sensor data, and add a corresponding time stamp and serial number for each piece of sensor data, and put the time stamp and serial number at the end of the sensor data; 将所述传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;The sensor data is transmitted to the main control board, and a corresponding time stamp and serial number are added to each piece of sensor data, and the time stamp and serial number are put together at the end of the sensor data; 将所述传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部。The sensor data is transmitted to the platform, and a corresponding time stamp and serial number are added to each piece of sensor data, and the time stamp and serial number are put together at the end of the sensor data. 4.如权利要求1-3中任一项所述的传感器数据丢失分析方法,其特征在于,将所述商值与第二预设阈值进行比较,以判断所述中断点的类型,包括:4. The sensor data loss analysis method according to any one of claims 1-3, wherein comparing the quotient with a second preset threshold to determine the type of the interruption point includes: 如果所述商值大于所述第二预设阈值,则判断所述中断点为重启点;If the quotient is greater than the second preset threshold, then judging that the interruption point is a restart point; 如果所述商值小于等于所述第二预设阈值,则判断所述中断点为丢失点。If the quotient is less than or equal to the second preset threshold, it is determined that the interruption point is a lost point. 5.一种计算机可读存储介质,其特征在于,其上存储有传感器数据丢失分析程序,该传感器数据丢失分析程序被处理器执行时实现如权利要求1-4中任一项所述的传感器数据丢失分析方法。5. A computer-readable storage medium, characterized in that a sensor data loss analysis program is stored thereon, and when the sensor data loss analysis program is executed by a processor, the sensor according to any one of claims 1-4 is realized Data loss analysis method. 6.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时,实现如1-4中任一项所述的传感器数据丢失分析方法。6. A computer device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the computer program, any A method for analyzing loss of sensor data. 7.一种传感器数据丢失分析系统,其特征在于,包括:7. A sensor data loss analysis system, characterized in that, comprising: 提取模块,用于获取传感器数据,其中,所述传感器数据包括在节点间传输时添加的时间戳和序列号;An extraction module, configured to acquire sensor data, wherein the sensor data includes a time stamp and a serial number added during transmission between nodes; 第一计算模块,用于将所述传感器数据按时间戳进行排序,并根据排序结果计算相邻两条传感器数据的序列号差值,以及判断所述序列号差值是否等于第一预设阈值;The first calculation module is used to sort the sensor data according to the time stamp, calculate the serial number difference between two adjacent sensor data according to the sorting result, and judge whether the serial number difference is equal to the first preset threshold ; 第二计算模块,用于在所述序列号差值不等于第一预设阈值时判断前一条传感器数据与后一条传感器数据之间存在中断点,并将所述序列号差值取绝对值后除以所述后一条传感器数据的序列号,以计算商值,以及将所述商值与第二预设阈值进行比较,以判断所述中断点的类型。The second calculation module is used to determine that there is a break point between the previous sensor data and the next sensor data when the serial number difference is not equal to the first preset threshold, and take the absolute value of the serial number difference dividing by the sequence number of the last piece of sensor data to calculate a quotient, and comparing the quotient with a second preset threshold to determine the type of the interruption point. 8.如权利要求7所述的传感器数据丢失分析系统,其特征在于,所述传感器数据在任意两个节点之间进行传输时均需添加时间戳和序列号。8. The sensor data loss analysis system according to claim 7, characterized in that, when the sensor data is transmitted between any two nodes, a time stamp and a serial number need to be added. 9.如权利要求8所述的传感器数据丢失分析系统,其特征在于,还包括:9. The sensor data loss analysis system as claimed in claim 8, further comprising: 采集模块,用于采集传感器数据,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;The acquisition module is used to collect sensor data, and add a corresponding time stamp and serial number for each piece of sensor data, and put the time stamp and serial number at the end of the sensor data; 第一传输模块,用于将所述传感器数据传输至主控板,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部;The first transmission module is used to transmit the sensor data to the main control board, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data; 第二传输模块,用于将所述传感器数据传输至平台,并为每一条传感器数据添加对应的时间戳和序列号,将所述时间戳和序列号拼在所述传感器数据尾部。The second transmission module is configured to transmit the sensor data to the platform, and add a corresponding time stamp and serial number to each piece of sensor data, and put the time stamp and serial number at the end of the sensor data. 10.如权利要求7-9中任一项所述的传感器数据丢失分析系统,其特征在于,所述第二计算模块还用于,10. The sensor data loss analysis system according to any one of claims 7-9, wherein the second calculation module is also used for: 如果所述商值大于所述第二预设阈值,则判断所述中断点为重启点;If the quotient is greater than the second preset threshold, then judging that the interruption point is a restart point; 如果所述商值小于等于所述第二预设阈值,则判断所述中断点为丢失点。If the quotient is less than or equal to the second preset threshold, it is determined that the interruption point is a lost point.
CN201911109248.0A 2019-11-13 2019-11-13 Sensor data loss analysis method and system Active CN111078466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911109248.0A CN111078466B (en) 2019-11-13 2019-11-13 Sensor data loss analysis method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911109248.0A CN111078466B (en) 2019-11-13 2019-11-13 Sensor data loss analysis method and system

Publications (2)

Publication Number Publication Date
CN111078466A CN111078466A (en) 2020-04-28
CN111078466B true CN111078466B (en) 2023-04-07

Family

ID=70310925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911109248.0A Active CN111078466B (en) 2019-11-13 2019-11-13 Sensor data loss analysis method and system

Country Status (1)

Country Link
CN (1) CN111078466B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860817B (en) * 2021-02-03 2025-02-11 广州地铁设计研究院股份有限公司 Three-dimensional visual operation and maintenance management method and related device applied to rail transit
CN113836199B (en) * 2021-09-22 2024-04-09 芜湖雄狮汽车科技有限公司 Method and device for processing sensing data of vehicle, electronic equipment and storage medium
CN115883028A (en) * 2022-11-27 2023-03-31 中国航空无线电电子研究所 Communication method based on ARINC661 standard

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101529771A (en) * 2006-08-17 2009-09-09 杜比实验室特许公司 Transient analysis of packet queuing loss in a broadcast network
CN101651517A (en) * 2008-08-13 2010-02-17 中兴通讯股份有限公司 Method and device for detecting loss of burst sequences
JP2014179791A (en) * 2013-03-14 2014-09-25 Fujitsu Telecom Networks Ltd Transmission system and transmitter and transmission quality detection method
CN104618922A (en) * 2015-01-21 2015-05-13 杭州华三通信技术有限公司 Measuring result matching method and device for RTT measurement positioning system
CN107171771A (en) * 2017-07-20 2017-09-15 哈尔滨工业大学 Monitoring structural health conditions wireless sensor data loses Distortionless Embedded algorithm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4891392B2 (en) * 2006-04-13 2012-03-07 ドルビー ラボラトリーズ ライセンシング コーポレイション Estimation of queue length of wireless processing system equipment and estimation of signal reception quality in wireless network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101529771A (en) * 2006-08-17 2009-09-09 杜比实验室特许公司 Transient analysis of packet queuing loss in a broadcast network
CN101651517A (en) * 2008-08-13 2010-02-17 中兴通讯股份有限公司 Method and device for detecting loss of burst sequences
JP2014179791A (en) * 2013-03-14 2014-09-25 Fujitsu Telecom Networks Ltd Transmission system and transmitter and transmission quality detection method
CN104618922A (en) * 2015-01-21 2015-05-13 杭州华三通信技术有限公司 Measuring result matching method and device for RTT measurement positioning system
CN107171771A (en) * 2017-07-20 2017-09-15 哈尔滨工业大学 Monitoring structural health conditions wireless sensor data loses Distortionless Embedded algorithm

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯宏伟.存在时延和数据丢包时网络控制系统分析及设计.《中国优秀硕士学位论文全文数据库(信息科技辑)》.2009,全文. *

Also Published As

Publication number Publication date
CN111078466A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111078466B (en) Sensor data loss analysis method and system
US20220121641A1 (en) Multi-sensor-based state estimation method and apparatus and terminal device
CN110601900A (en) Network fault early warning method and device
CN107223257B (en) Test method, test server and test system
CN112214394B (en) Memory leakage detection method, device and equipment
CN107102929A (en) The detection method and device of failure
CN109697247B (en) Method and device for detecting data accuracy
CN108039960B (en) Configuration information issuing method and server
CN110580220A (en) Method and terminal device for measuring execution time of code segment
JP3937341B2 (en) Transaction profile generation system for computer system performance measurement analysis, its generation method and program
CN113612567B (en) Alignment method and device for data collected by multiple sensors of equipment and electronic equipment
CN108446162B (en) Method and system for monitoring JVM Full GC event
CN110417621B (en) A Lightweight Embedded System Abnormal Running State Detection Method
CN109101354B (en) Fault information monitoring method and device
CN112069168B (en) Cloud storage method for equipment operation data
CN111064637B (en) NetFlow data duplicate removal method and device
CN111125193B (en) Method, device, equipment and storage medium for identifying abnormal multimedia comments
CN112422369A (en) Method and device for determining offline time, storage medium, and electronic device
CN117220812A (en) Data processing method, device, equipment and storage medium based on time correction
CN116991724A (en) Interface testing method and device based on monitoring log, electronic equipment and storage medium
CN110868335B (en) End-to-end service monitoring method and device
CN112615920B (en) Abnormality detection method, abnormality detection device, electronic apparatus, storage medium, and program product
CN111858293B (en) A detection method, a detection device, an electronic device and a readable storage medium
CN115269519A (en) Log detection method and device and electronic equipment
CN113672426B (en) Storage device abnormality determination method and device, storage medium, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Sensor data loss analysis method and system

Granted publication date: 20230407

Pledgee: Xiamen Jianfa Financing Guarantee Co.,Ltd.

Pledgor: FUJIAN HELIOS TECHNOLOGIES CO.,LTD.

Registration number: Y2025980033530