CN115567939A - Data integrity detection method, device, equipment and medium - Google Patents

Data integrity detection method, device, equipment and medium Download PDF

Info

Publication number
CN115567939A
CN115567939A CN202211163343.0A CN202211163343A CN115567939A CN 115567939 A CN115567939 A CN 115567939A CN 202211163343 A CN202211163343 A CN 202211163343A CN 115567939 A CN115567939 A CN 115567939A
Authority
CN
China
Prior art keywords
data frame
data
frame
interval
scale interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211163343.0A
Other languages
Chinese (zh)
Inventor
唐婷
方科
杜瑜
张波
刘洋
兰霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CETC 10 Research Institute
Original Assignee
CETC 10 Research Institute
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 CETC 10 Research Institute filed Critical CETC 10 Research Institute
Priority to CN202211163343.0A priority Critical patent/CN115567939A/en
Publication of CN115567939A publication Critical patent/CN115567939A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/10Integrity
    • H04W12/106Packet or message integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a data integrity detection method, a device, equipment and a medium.A demodulator receives a data frame and arranges at least one time mark information in the data frame, then calculates an average time mark interval of the whole data frame, respectively calculates adjacent time mark intervals according to adjacent time mark information of the data frame, and finally judges whether the received data frame is complete according to the average time mark interval and the adjacent time mark intervals and executes corresponding operation. The method judges the integrity of the data frame in a mode of obtaining the adjacent time scale interval by utilizing the time scale information of the data frame, avoids the problems of low reliability and difficult realization caused by verifying the integrity by utilizing the data content in the prior art, and can be applied to more scenes compared with the prior art, thereby expanding the application range of detecting the data integrity.

Description

数据完整性检测方法、装置、设备及介质Data integrity detection method, device, equipment and medium

技术领域technical field

本发明涉及无线通信领域,具体而言,涉及一种数据完整性检测方法、装置、设备及介质。The present invention relates to the field of wireless communication, in particular to a data integrity detection method, device, equipment and medium.

背景技术Background technique

解调器是一种计算机硬件,把计算机的数字信号翻译成可沿普通电话线传送的模拟信号,而这些模拟信号又可被线路另一端的另一个解调器接收,并译成计算机可懂的语言。其在各个领域都有广泛的应用,采集装置通过无线信号发送采集的信息,解调器在接收到无线信号之后将数据传输至后端完成数据分析,但是解调器在数据接收和传输过程中会出现各种情况导致解调数据丢失从而产生一系列问题。A demodulator is a piece of computer hardware that translates the computer's digital signals into analog signals that can be transmitted along ordinary telephone lines, and these analog signals can be received by another demodulator at the other end of the line and translated into language. It has a wide range of applications in various fields. The acquisition device sends the collected information through wireless signals. After receiving the wireless signal, the demodulator transmits the data to the backend to complete the data analysis. However, the demodulator in the process of data reception and transmission Various situations can arise that cause demodulated data to be lost creating a host of problems.

在现有技术中,解调器是通过利用数据中的帧计数信息来检测接收的数据是否完整,帧计数信息是在调制业务数据时添加的,与数据内容密切相关,通过对数据内容的检测来进行数据完整性分析。然而,在数据的解调过程中还会出现信噪比过低、解扰错误、帧计数错误或者未能解析帧计数信息这类解调数据出现错误的情况,此时通过帧计数信息并不能够有效的保证数据是否连续并且没有误码,从而导致了通过帧计数信息来检测的可信度不高的问题。因此,如何避免利用数据内容来检测数据的完整性成为本领域技术人员必须要考虑的问题。In the prior art, the demodulator detects whether the received data is complete by using the frame count information in the data. The frame count information is added when modulating the service data and is closely related to the data content. By detecting the data content for data integrity analysis. However, in the process of data demodulation, there may be errors in the demodulated data such as low signal-to-noise ratio, descrambling error, frame count error, or failure to parse the frame count information. At this time, the frame count information does not It can effectively ensure whether the data is continuous and has no bit errors, which leads to the problem that the reliability of detection through the frame count information is not high. Therefore, how to avoid using data content to detect data integrity has become a problem that those skilled in the art must consider.

发明内容Contents of the invention

本发明的目的在于,为了克服现有的技术缺陷,提供了一种数据完整性检测方法、装置、设备及介质,通过利用时标信息来对数据帧的完整性进行验证,避免了通过数据内容验证数据帧的完整性所带来的可信度不高的问题。The purpose of the present invention is to provide a data integrity detection method, device, equipment and medium in order to overcome the existing technical defects, by using the time stamp information to verify the integrity of the data frame, avoiding the The problem of low credibility caused by verifying the integrity of the data frame.

本发明目的通过下述技术方案来实现:The object of the invention is achieved through the following technical solutions:

一种数据完整性检测方法,应用于解调器,所述方法包括:A data integrity detection method applied to a demodulator, the method comprising:

接收数据帧并将至少一个时标信息设置于所述数据帧中;receiving a data frame and setting at least one time stamp information in said data frame;

计算所述数据帧的平均时标间隔;calculating the average time-scale interval of the data frame;

根据所述时标信息分别计算所述数据帧的相邻时标间隔;respectively calculating adjacent time scale intervals of the data frames according to the time scale information;

通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作。Whether the data frame is complete is judged according to the average time scale interval and the adjacent time scale interval, and a corresponding operation is performed.

进一步地,所述计算所述数据帧的平均时标间隔的步骤,包括:Further, the step of calculating the average time scale interval of the data frame includes:

所述平均时标间隔的计算公式为:ΔT=L/RbThe formula for calculating the average time-scale interval is: ΔT=L/R b ;

其中,ΔT是所述数据帧的平均时标间隔,L是所述数据帧的帧长,Rb是数据传输速率。Wherein, ΔT is the average time scale interval of the data frame, L is the frame length of the data frame, and R b is the data transmission rate.

进一步地,所述通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作的步骤,包括:Further, the step of judging whether the data frame is complete through the average time-scale interval and the adjacent time-scale interval, and performing corresponding operations includes:

将所述平均时标间隔分别与各个所述相邻时标间隔进行比较得到比较结果;Comparing the average time-scale interval with each of the adjacent time-scale intervals to obtain a comparison result;

根据所述比较结果判断所述数据帧是否完整,并执行相应的操作的步骤。Judging whether the data frame is complete according to the comparison result, and performing corresponding operation steps.

进一步地,所述根据所述比较结果判断所述数据帧是否完整,并执行相应的操作的步骤,包括:Further, the step of judging whether the data frame is complete according to the comparison result, and performing corresponding operations includes:

若比较结果为所述平均时标间隔与各个所述相邻时标间隔一致,则判断所述数据帧完整;If the comparison result is that the average time-scale interval is consistent with each of the adjacent time-scale intervals, it is judged that the data frame is complete;

若比较结果为所述平均时标间隔与至少一个所述相邻时标间隔不一致,则判断所述数据帧不完整,计算丢失的数据帧并将所有丢失的数据帧累加。If the comparison result is that the average time-scale interval is inconsistent with at least one of the adjacent time-scale intervals, it is judged that the data frame is incomplete, and the lost data frames are calculated and all the lost data frames are accumulated.

进一步地,所述计算丢失的数据帧的步骤包括:Further, the step of calculating the lost data frame includes:

所述丢失的数据帧的计算公式为MN=(ΔtN-ΔT)/ΔT,The formula for calculating the lost data frame is M N =(Δt N -ΔT)/ΔT,

其中,ΔT是所述数据帧的平均时标间隔,ΔtN是所述数据帧的第N帧与第N+1帧的时标信息的间隔,MN是丢失的数据帧。Wherein, ΔT is the average time stamp interval of the data frame, Δt N is the time stamp information interval between the Nth frame and the N+1th frame of the data frame, and M N is the lost data frame.

另一方面,本发明还提供了一种数据完整性检测装置,应用于解调器,所述装置包括:On the other hand, the present invention also provides a data integrity detection device, which is applied to a demodulator, and the device includes:

接收模块,用于接收数据帧并将至少一个时标信息设置于所述数据帧中;A receiving module, configured to receive a data frame and set at least one time stamp information in the data frame;

第一计算模块,用于计算所述数据帧的平均时标间隔;The first calculation module is used to calculate the average time scale interval of the data frame;

第二计算模块,用于根据所述时标信息分别计算所述数据帧的相邻时标间隔;The second calculation module is used to respectively calculate the adjacent time scale intervals of the data frames according to the time scale information;

执行模块,用于通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作。An execution module, configured to judge whether the data frame is complete according to the average time-scale interval and the adjacent time-scale interval, and perform corresponding operations.

可选地,所述第一计算模块用于:Optionally, the first computing module is used for:

所述平均时标间隔的计算公式为:ΔT=L/RbThe formula for calculating the average time-scale interval is: ΔT=L/R b ;

其中,ΔT是所述数据帧的平均时标间隔,L是所述数据帧的帧长,Rb是数据传输速率。Wherein, ΔT is the average time scale interval of the data frame, L is the frame length of the data frame, and R b is the data transmission rate.

可选地,所述执行模块用于将所述平均时标间隔分别与各个所述相邻时标间隔进行比较得到比较结果;Optionally, the execution module is configured to respectively compare the average time-scale interval with each of the adjacent time-scale intervals to obtain a comparison result;

根据所述比较结果判断所述数据帧是否完整,并执行相应的操作的步骤。Judging whether the data frame is complete according to the comparison result, and performing corresponding operation steps.

可选地,所述执行模块还用于若比较结果为所述平均时标间隔与各个所述相邻时标间隔一致,则判断所述数据帧完整;Optionally, the execution module is further configured to judge that the data frame is complete if the comparison result is that the average time-scale interval is consistent with each of the adjacent time-scale intervals;

若比较结果为所述平均时标间隔与至少一个所述相邻时标间隔不一致,则判断所述数据帧不完整,计算丢失的数据帧并将所有丢失的数据帧累加。If the comparison result is that the average time-scale interval is inconsistent with at least one of the adjacent time-scale intervals, it is judged that the data frame is incomplete, and the lost data frames are calculated and all the lost data frames are accumulated.

另一方面,本发明还提供了一种计算机设备,计算机设备包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现上述的任意一种数据完整性检测方法。On the other hand, the present invention also provides a computer device, the computer device includes a processor and a memory, and a computer program is stored in the memory, and the computer program is loaded and executed by the processor to realize any of the above-mentioned Data integrity detection method.

另一方面,本发明还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述的任意一种数据完整性检测方法。On the other hand, the present invention also provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to implement any one of the above data integrity detection methods.

上述本发明主方案及其各进一步选择方案可以自由组合以形成多个方案,均为本发明可采用并要求保护的方案;且本发明,(各非冲突选择)选择之间以及和其他选择之间也可以自由组合。本领域技术人员在了解本发明方案后根据现有技术和公知常识可明了有多种组合,均为本发明所要保护的技术方案,在此不做穷举。The above-mentioned main scheme of the present invention and its further selection schemes can be freely combined to form multiple schemes, which are all schemes that can be adopted and claimed in the present invention; can also be combined freely. After understanding the solution of the present invention, those skilled in the art can understand that there are various combinations based on the prior art and common knowledge, all of which are technical solutions to be protected by the present invention, and are not exhaustive here.

本发明的有益效果在于:The beneficial effects of the present invention are:

(1)通过利用时标信息来对数据帧的完整性进行验证,避免了通过数据帧的内容验证数据帧的完整性所带来的可信度不高的问题。(1) By using the time stamp information to verify the integrity of the data frame, the problem of low credibility caused by verifying the integrity of the data frame through the content of the data frame is avoided.

(2)利用帧计数信息验证数据帧的完整性会受到解调数据的制约,而利用时标信息则没有这种问题,无论解调数据是否正确都能够适用,使得本发明限制条件更少、稳定性更强并且适用范围更广。(2) Utilizing the frame counting information to verify the integrity of the data frame will be restricted by the demodulation data, but using the time stamp information does not have this problem, and it can be applied regardless of whether the demodulation data is correct, so that the present invention has fewer restrictive conditions, Stronger stability and wider application range.

(3)本发明适用于在数据内容不能准确判断数据帧的完整性的环境。(3) The present invention is applicable to the environment where the integrity of the data frame cannot be accurately judged by the data content.

附图说明Description of drawings

图1示出了本发明实施例提供的数据完整性检测方法流程示意图。Fig. 1 shows a schematic flowchart of a data integrity detection method provided by an embodiment of the present invention.

图2示出了本发明实施例提供的时标信息平均分布于数据帧的示意图。FIG. 2 shows a schematic diagram of time stamp information evenly distributed in data frames provided by an embodiment of the present invention.

图3示出了本发明实施例提供的时标信息位于数据帧的头部的示意图。Fig. 3 shows a schematic diagram in which the time stamp information provided by the embodiment of the present invention is located at the head of the data frame.

图4示出了本发明实施例提供的数据完整性检测方法中步骤S140的流程示意图。Fig. 4 shows a schematic flowchart of step S140 in the method for detecting data integrity provided by an embodiment of the present invention.

图5示出了本发明实施例提供的数据完整性检测方法中步骤S142的流程示意图。FIG. 5 shows a schematic flowchart of step S142 in the data integrity detection method provided by the embodiment of the present invention.

图6示出了本发明实施例提供的数据完整性检测装置结构框图。Fig. 6 shows a structural block diagram of a device for detecting data integrity provided by an embodiment of the present invention.

具体实施方式detailed description

以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征可以相互组合。Embodiments of the present invention are described below through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

在现有技术中,解调器是通过利用数据中的帧计数信息来检测接收的数据是否完整,帧计数信息是在调制业务数据时添加的,与数据内容密切相关,通过对数据内容的检测来进行数据完整性分析。然而,在数据的解调过程中还会出现信噪比过低、解扰错误、帧计数错误或者未能解析帧计数信息这类解调数据出现错误的情况,此时通过帧计数信息并不能够有效的保证数据是否连续并且没有误码,从而导致了通过帧计数信息来检测的可信度不高的问题。In the prior art, the demodulator detects whether the received data is complete by using the frame count information in the data. The frame count information is added when modulating the service data and is closely related to the data content. By detecting the data content for data integrity analysis. However, in the process of data demodulation, there may be errors in the demodulated data such as low signal-to-noise ratio, descrambling error, frame count error, or failure to parse the frame count information. At this time, the frame count information does not It can effectively ensure whether the data is continuous and has no bit errors, which leads to the problem that the reliability of detection through the frame count information is not high.

此外,当解调器有时需要接收一些数据格式不明确的信号时,由于这类型信号并没有明确的数据格式,此时解调器只能完成载波同步、时钟同步,而并不能进行帧同步、解扰、译码等数据处理,因此解调器无法获取到帧计数信息,也就不能检测该类型解调数据的完整性。因此,如何避免利用数据内容来检测数据的完整性成为本领域技术人员必须要考虑的问题。In addition, when the demodulator sometimes needs to receive some signals with unclear data format, since this type of signal does not have a clear data format, the demodulator can only complete carrier synchronization and clock synchronization at this time, but cannot perform frame synchronization, Data processing such as descrambling and decoding, so the demodulator cannot obtain the frame count information, and cannot detect the integrity of this type of demodulated data. Therefore, how to avoid using data content to detect data integrity has become a problem that those skilled in the art must consider.

为了解决上述技术问题了,本发明提出了一种数据完整性检测方法、装置、设备及介质的下述实施例。In order to solve the above technical problems, the present invention proposes the following embodiments of a data integrity detection method, device, equipment and medium.

实施例1Example 1

本实施例提供的数据完整性检测方法避免了通过数据内容验证数据帧的完整性所带来的可信度不高的问题。The data integrity detection method provided in this embodiment avoids the problem of low credibility caused by verifying the integrity of the data frame through the data content.

请参照图1,图1示出了本发明实施例提供的数据完整性检测方法流程示意图,该方法应用于解调器,该解调器可以为外置式解调器、内置式解调器、ISDN调制解调器或者ADSL调制解调器,本发明实施例对此不作任何限定。数据完整性检测方法具体包括以下步骤:Please refer to FIG. 1. FIG. 1 shows a schematic flowchart of a data integrity detection method provided by an embodiment of the present invention. The method is applied to a demodulator, and the demodulator can be an external demodulator, a built-in demodulator, An ISDN modem or an ADSL modem, which is not limited in this embodiment of the present invention. The data integrity detection method specifically includes the following steps:

步骤S110、接收数据帧并将至少一个时标信息设置于数据帧中。Step S110, receiving a data frame and setting at least one piece of time stamp information in the data frame.

其中,时标信息为当前时刻的时间信息,在解调器接收到数据帧时会将时标信息添加至该数据帧中,指的说明的是,时标信息可以平均分布于数据帧中,请参考图2,图2示出了本发明实施例提供的时标信息平均分布于数据帧的示意图。如图,时标信息将整个数据帧平均分成多个小的数据帧。此外,也可以将时标信息添加在每帧数据的头部或者尾部,并伴随着解调数据输出。请参考图3,图3示出了本发明实施例提供的时标信息位于数据帧的头部的示意图。如图,时标信息位于数据帧的头部,而每个数据帧都有与其对应的时标信息。此外,将时标信息添加至数据帧的方式可以是采用与标准时间源同步的脉冲信号作为时间基准,获取累加器计数值来对数据帧上的各个点来添加时标信息。而数据帧为传输业务数据的载体,主要用来承载业务数据。Among them, the time stamp information is the time information of the current moment, and the demodulator will add the time stamp information to the data frame when it receives the data frame, which means that the time stamp information can be evenly distributed in the data frame, Please refer to FIG. 2 . FIG. 2 shows a schematic diagram in which time scale information is evenly distributed in data frames provided by an embodiment of the present invention. As shown in the figure, the time scale information divides the entire data frame into multiple small data frames on average. In addition, time stamp information can also be added to the head or tail of each frame of data, and is output along with the demodulated data. Please refer to FIG. 3 . FIG. 3 shows a schematic diagram in which time stamp information provided by an embodiment of the present invention is located at a header of a data frame. As shown in the figure, the time stamp information is located at the head of the data frame, and each data frame has its corresponding time stamp information. In addition, the method of adding time stamp information to the data frame may be to use a pulse signal synchronized with a standard time source as a time reference, and obtain the count value of the accumulator to add time stamp information to each point on the data frame. The data frame is a carrier for transmitting service data, and is mainly used to carry service data.

解调器在完成译码、解扰等所有数据处理之后,最终得到了带有时标信息的数据帧,该数据帧便是解调数据,通过对该时标信息进行处理从而完成验证解调数据的完整性的目的。After the demodulator completes all data processing such as decoding and descrambling, it finally obtains a data frame with time stamp information, which is the demodulated data. By processing the time stamp information, the demodulated data is verified. for the purpose of integrity.

步骤S120、计算数据帧的平均时标间隔。Step S120, calculating the average time scale interval of the data frame.

进一步的,平均时标间隔的计算公式为:ΔT=L/Rb,其中,ΔT是数据帧的平均时标间隔,L是数据帧的帧长,其单位为比特(bit),Rb是数据传输速率,其单位为比特每秒(bit/s)。Further, the calculation formula of the average time scale interval is: ΔT=L/R b , wherein, ΔT is the average time scale interval of the data frame, L is the frame length of the data frame, and its unit is bit (bit), and R b is Data transfer rate in bits per second (bit/s).

步骤S130、根据时标信息分别计算数据帧的相邻时标间隔。Step S130, respectively calculating the adjacent time scale intervals of the data frames according to the time scale information.

在得到数据帧的平均时标间隔之后,解调器便提取数据帧中的各个时标信息,再次参考图3,第一帧数据帧的时标信息记为t1,第N帧数据帧的时标信息记为tN,而第N+1帧数据帧的时标信息记为tN+1,以此类推,然后再通过提取的时标信息得出相邻数据帧的时标间隔,即相邻时标间隔,示例地,第N帧数据与第N+1帧数据的时标间隔记为ΔtN=tN+1-tN,以此类推便能计算出所有数据帧的相邻时标间隔,本发明实施例在此不再赘述。After obtaining the average time stamp interval of the data frame, the demodulator extracts each time stamp information in the data frame, referring to Fig. 3 again, the time stamp information of the first frame data frame is marked as t 1 , and the time stamp information of the Nth frame data frame The time stamp information is marked as t N , and the time stamp information of the N+1th frame data frame is marked as t N+1 , and so on, and then the time scale interval of adjacent data frames is obtained through the extracted time scale information, That is, the interval between adjacent time scales. For example, the time mark interval between the Nth frame data and the N+1th frame data is marked as Δt N =t N+1 -t N , and by analogy, the phase of all data frames can be calculated. The adjacent time scale interval will not be described again in this embodiment of the present invention.

步骤S140、通过平均时标间隔和相邻时标间隔判断数据帧是否完整,并执行相应的操作。Step S140 , judging whether the data frame is complete according to the average time scale interval and the adjacent time scale interval, and performing corresponding operations.

解调器用来判断接收到的数据帧的完整性其实质就是比较平均时标间隔与相邻时标间隔,判断其是否符合要求,再根据判断的结果执行对应的操作,该操作可以是发送数据帧完整的信息、将数据帧发送至下一个装置或者执行下一步操作。The demodulator is used to judge the integrity of the received data frame. The essence is to compare the average time scale interval with the adjacent time scale interval, judge whether it meets the requirements, and then perform the corresponding operation according to the result of the judgment. The operation can be sending data frame complete information, send the data frame to the next device, or perform the next operation.

在图1的基础上,请参照图4,图4示出了本发明实施例提供的数据完整性检测方法中步骤S140的流程示意图。下面对步骤S140进行详细介绍,步骤S140可以包括:On the basis of FIG. 1 , please refer to FIG. 4 , which shows a schematic flowchart of step S140 in the data integrity detection method provided by the embodiment of the present invention. Step S140 is described in detail below, and step S140 may include:

步骤S141、将平均时标间隔分别与各个相邻时标间隔进行比较得到比较结果。Step S141 , comparing the average time-scale interval with each adjacent time-scale interval to obtain a comparison result.

步骤S142、根据比较结果判断数据帧是否完整,并执行相应的操作的步骤。Step S142 , judging whether the data frame is complete according to the comparison result, and performing corresponding operation steps.

在得到平均时标间隔和多个相邻时标间隔之后,将平均时标间隔ΔT与第一个相邻时标间隔Δt1相比较,比完之后再将平均时标间隔ΔT与下一个相邻时标间隔Δt2相比较,以此类推,直至与最后一个相邻时标间隔ΔtN相比较,整个过程才结束,最后得到了比较结果,该比较结果则分为两种情况,一种情况是平均时标间隔和各个相邻时标间隔均一致,此时表示接收到的数据帧未出现错误,保障了数据帧的安全性。还有一种情况是平均时标间隔与至少一个相邻时标间隔不一致,此时数据帧并不完整,在传输中出现了数据的丢失,使得数据不连续。After obtaining the average time-scale interval and multiple adjacent time-scale intervals, compare the average time-scale interval ΔT with the first adjacent time-scale interval Δt 1 , and then compare the average time-scale interval ΔT with the next phase Adjacent time scale interval Δt 2 is compared, and so on, until compared with the last adjacent time scale interval Δt N , the whole process is ended, and finally the comparison result is obtained, and the comparison result is divided into two situations, one The situation is that the average time scale interval is consistent with each adjacent time scale interval, which means that no error occurs in the received data frame, which ensures the security of the data frame. Another situation is that the average time-scale interval is inconsistent with at least one adjacent time-scale interval. At this time, the data frame is not complete, and data loss occurs during transmission, making the data discontinuous.

接下来请参照图5,图5示出了本发明实施例提供的数据完整性检测方法中步骤S142的流程示意图。Next, please refer to FIG. 5 , which shows a schematic flowchart of step S142 in the data integrity detection method provided by the embodiment of the present invention.

步骤S142-a、若比较结果为平均时标间隔与各个相邻时标间隔一致,则判断数据帧完整。Step S142-a, if the comparison result is that the average time scale interval is consistent with each adjacent time scale interval, it is determined that the data frame is complete.

若比较结果为平均时标间隔与至少一个相邻时标间隔不一致,则判断数据帧不完整,计算丢失的数据帧并将所有丢失的数据帧累加。If the comparison result is that the average time-scale interval is inconsistent with at least one adjacent time-scale interval, it is judged that the data frame is incomplete, and the lost data frames are calculated and all the lost data frames are accumulated.

在解调器得到数据的比较结果之后,会对比较结果做一个评估,而数据完整性的表现则是平均时标间隔与各个相邻时标间隔全部一致,此时整个数据帧才是完整并且连续的数据帧,然而只要有一个相邻时标间隔与平均时标间隔匹配不上,就会被解调器认为数据帧不完整、出现了丢失的情况,此时数据帧会统计有多少个相邻时标间隔与平均时标间隔匹配不上,并且将匹配不上的数据帧进行累加,将累加过后的数据发送给工作人员看,这样便能够准确统计整个数据帧中丢失数据帧数量。After the demodulator gets the comparison result of the data, it will make an evaluation of the comparison result, and the performance of data integrity is that the average time scale interval is consistent with each adjacent time scale interval, at this time the entire data frame is complete and Continuous data frames, however, as long as there is an adjacent time scale interval that does not match the average time scale interval, it will be considered by the demodulator to be incomplete and lost. At this time, the data frame will count how many Adjacent time scale intervals do not match the average time scale interval, and the data frames that do not match are accumulated, and the accumulated data is sent to the staff for viewing, so that the number of missing data frames in the entire data frame can be accurately counted.

丢失的数据帧的计算公式为MN=(ΔtN-ΔT)/ΔT,The formula for calculating the lost data frame is M N =(Δt N -ΔT)/ΔT,

其中,ΔT是数据帧的平均时标间隔,ΔtN是数据帧的第N帧与第N+1帧的时标信息的间隔,MN是丢失的数据帧。将所有的丢失数据帧数量累积相加,即可得到整段数据的总丢失数据帧数量。Wherein, ΔT is the average time stamp interval of the data frame, Δt N is the interval between the time stamp information of the Nth frame and the N+1th frame of the data frame, and M N is the lost data frame. The total number of lost data frames of the entire piece of data can be obtained by accumulating and adding up the numbers of all lost data frames.

本发明公开了一种数据完整性检测方法,首先解调器接收带有至少一个时标信息的数据帧,然后再计算出整个数据帧的平均时标间隔,同时根据数据帧的相邻的时标信息分别计算相邻时标间隔,最后根据平均时标间隔和相邻时标间隔来判断接收到的数据帧是否完整,并执行相应操作。该方法利用数据帧的时标信息来得出相邻时标间隔的方式判断数据帧的完整性,避免了现有技术中利用数据内容验证完整性所带来的可信度不高的问题,同时该方法也能够适用于更多的场景,扩大了检测数据完整性的使用范围。The invention discloses a data integrity detection method. First, a demodulator receives a data frame with at least one time scale information, and then calculates the average time scale interval of the entire data frame, and at the same time, according to the adjacent time scale information of the data frame The adjacent time scale intervals are calculated respectively according to the time scale information, and finally whether the received data frame is complete is judged according to the average time scale interval and the adjacent time scale interval, and corresponding operations are performed. The method uses the time scale information of the data frame to obtain the interval between adjacent time scales to judge the integrity of the data frame, avoiding the problem of low credibility caused by using the data content to verify the integrity in the prior art, and at the same time The method can also be applied to more scenarios, expanding the application range of detecting data integrity.

实施例2Example 2

参照图6,图6示出了本发明实施例提供的数据完整性检测装置结构框图,该装置应用于解调器,该装置包括:Referring to FIG. 6, FIG. 6 shows a structural block diagram of a data integrity detection device provided by an embodiment of the present invention, the device is applied to a demodulator, and the device includes:

接收模块101,用于接收数据帧并将至少一个时标信息设置于数据帧中;A receiving module 101, configured to receive a data frame and set at least one time stamp information in the data frame;

第一计算模块102,用于计算数据帧的平均时标间隔;The first calculation module 102 is used to calculate the average time scale interval of the data frame;

第二计算模块103,用于根据时标信息分别计算数据帧的相邻时标间隔;The second calculation module 103 is used to calculate the adjacent time scale intervals of the data frames respectively according to the time scale information;

执行模块104,用于通过平均时标间隔和相邻时标间隔判断数据帧是否完整,并执行相应的操作。The execution module 104 is used for judging whether the data frame is complete or not based on the average time-scale interval and the adjacent time-scale interval, and performing corresponding operations.

作为一种实施方式,执行模块104还用于将平均时标间隔分别与各个相邻时标间隔进行比较得到比较结果;As an implementation manner, the execution module 104 is also used to compare the average time-scale interval with each adjacent time-scale interval to obtain a comparison result;

根据比较结果判断数据帧是否完整,并执行相应的操作的步骤。Judging whether the data frame is complete according to the comparison result, and performing the corresponding operation steps.

作为一种实施方式,执行模块104还用于若比较结果为平均时标间隔与各个相邻时标间隔一致,则判断数据帧完整;As an implementation, the execution module 104 is also configured to determine that the data frame is complete if the comparison result is that the average time scale interval is consistent with each adjacent time scale interval;

若比较结果为平均时标间隔与至少一个相邻时标间隔不一致,则判断数据帧不完整,计算丢失的数据帧并将所有丢失的数据帧累加。If the comparison result is that the average time-scale interval is inconsistent with at least one adjacent time-scale interval, it is judged that the data frame is incomplete, and the lost data frames are calculated and all the lost data frames are accumulated.

本发明实施例提供的数据完整性检测装置,首先解调器接收带有至少一个时标信息的数据帧,然后再计算出整个数据帧的平均时标间隔,同时根据数据帧的相邻的时标信息分别计算相邻时标间隔,最后根据平均时标间隔和相邻时标间隔来判断接收到的数据帧是否完整,并执行相应操作。该方法利用数据帧的时标信息来得出相邻时标间隔的方式判断数据帧的完整性,避免了现有技术中利用数据内容验证完整性所带来的可信度不高的问题,同时该方法也能够适用于更多的场景,扩大了检测数据完整性的使用范围。In the data integrity detection device provided by the embodiment of the present invention, the demodulator first receives a data frame with at least one time stamp information, and then calculates the average time stamp interval of the entire data frame, and at the same time, according to the adjacent time stamp information of the data frame The adjacent time scale intervals are calculated respectively according to the time scale information, and finally whether the received data frame is complete is judged according to the average time scale interval and the adjacent time scale interval, and corresponding operations are performed. The method uses the time scale information of the data frame to obtain the interval between adjacent time scales to judge the integrity of the data frame, avoiding the problem of low credibility caused by using the data content to verify the integrity in the prior art, and at the same time The method can also be applied to more scenarios, expanding the application range of detecting data integrity.

实施例3Example 3

本优选实施例提供了一种计算机设备,该计算机设备可以实现本申请实施例所提供的数据完整性检测方法任一实施例中的步骤,因此,可以实现本申请实施例所提供的数据完整性检测方法的有益效果,详见前面的实施例,在此不再赘述。This preferred embodiment provides a computer device, which can implement the steps in any embodiment of the data integrity detection method provided in the embodiments of the present application, and therefore, can realize the data integrity provided in the embodiments of the present application For the beneficial effects of the detection method, refer to the previous embodiments for details, and will not be repeated here.

实施例4Example 4

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的数据完整性检测方法中任一实施例的步骤。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor. To this end, an embodiment of the present invention provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to perform the steps of any embodiment of the data integrity detection method provided by the embodiment of the present invention .

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

由于该存储介质中所存储的指令,可以执行本发明实施例所提供的任一数据完整性检测方法实施例中的步骤,因此,可以实现本发明实施例所提供的任一数据完整性检测方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in any data integrity detection method embodiment provided by the embodiment of the present invention, therefore, any data integrity detection method provided by the embodiment of the present invention can be realized For the beneficial effects that can be achieved, refer to the previous embodiments for details, and will not be repeated here.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (8)

1.一种数据完整性检测方法,其特征在于,应用于解调器,所述方法包括:1. A data integrity detection method, characterized in that being applied to a demodulator, said method comprising: 接收数据帧并将至少一个时标信息设置于所述数据帧中;receiving a data frame and setting at least one time stamp information in said data frame; 计算所述数据帧的平均时标间隔;calculating the average time-scale interval of the data frame; 根据所述时标信息分别计算所述数据帧的相邻时标间隔;respectively calculating adjacent time scale intervals of the data frames according to the time scale information; 通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作。Whether the data frame is complete is judged according to the average time scale interval and the adjacent time scale interval, and a corresponding operation is performed. 2.如权利要求1所述的数据完整性检测方法,其特征在于,所述计算所述数据帧的平均时标间隔的步骤,包括:2. The data integrity detection method according to claim 1, wherein the step of calculating the average time scale interval of the data frame comprises: 所述平均时标间隔的计算公式为:ΔT=L/RbThe formula for calculating the average time-scale interval is: ΔT=L/R b ; 其中,ΔT是所述数据帧的平均时标间隔,L是所述数据帧的帧长,Rb是数据传输速率。Wherein, ΔT is the average time scale interval of the data frame, L is the frame length of the data frame, and R b is the data transmission rate. 3.如权利要求1所述的数据完整性检测方法,其特征在于,所述通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作的步骤,包括:3. The method for detecting data integrity as claimed in claim 1, wherein the step of judging whether the data frame is complete by the average time scale interval and the adjacent time scale interval, and performing corresponding operations steps, including: 将所述平均时标间隔分别与各个所述相邻时标间隔进行比较得到比较结果;Comparing the average time-scale interval with each of the adjacent time-scale intervals to obtain a comparison result; 根据所述比较结果判断所述数据帧是否完整,并执行相应的操作的步骤。Judging whether the data frame is complete according to the comparison result, and performing corresponding operation steps. 4.如权利要求3所述的数据完整性检测方法,其特征在于,所述根据所述比较结果判断所述数据帧是否完整,并执行相应的操作的步骤,包括:4. The data integrity detection method according to claim 3, wherein the step of judging whether the data frame is complete according to the comparison result and performing a corresponding operation comprises: 若比较结果为所述平均时标间隔与各个所述相邻时标间隔一致,则判断所述数据帧完整;If the comparison result is that the average time-scale interval is consistent with each of the adjacent time-scale intervals, it is judged that the data frame is complete; 若比较结果为所述平均时标间隔与至少一个所述相邻时标间隔不一致,则判断所述数据帧不完整,计算丢失的数据帧并将所有丢失的数据帧累加。If the comparison result is that the average time-scale interval is inconsistent with at least one of the adjacent time-scale intervals, it is judged that the data frame is incomplete, and the lost data frames are calculated and all the lost data frames are accumulated. 5.如权利要求1所述的数据完整性检测方法,其特征在于,所述计算丢失的数据帧的步骤包括:5. the data integrity detection method as claimed in claim 1, is characterized in that, the step of the data frame of described calculation loss comprises: 所述丢失的数据帧的计算公式为MN=(ΔtN-ΔT)/ΔT,The formula for calculating the lost data frame is M N =(Δt N -ΔT)/ΔT, 其中,ΔT是所述数据帧的平均时标间隔,ΔtN是所述数据帧的第N帧与第N+1帧的时标信息的间隔,MN是丢失的数据帧。Wherein, ΔT is the average time stamp interval of the data frame, Δt N is the time stamp information interval between the Nth frame and the N+1th frame of the data frame, and M N is the lost data frame. 6.一种数据完整性检测装置,其特征在于,应用于解调器,所述装置包括:6. A data integrity detection device, characterized in that being applied to a demodulator, said device comprising: 接收模块,用于接收数据帧并将至少一个时标信息设置于所述数据帧中;A receiving module, configured to receive a data frame and set at least one time stamp information in the data frame; 第一计算模块,用于计算所述数据帧的平均时标间隔;The first calculation module is used to calculate the average time scale interval of the data frame; 第二计算模块,用于根据所述时标信息分别计算所述数据帧的相邻时标间隔;The second calculation module is used to respectively calculate the adjacent time scale intervals of the data frames according to the time scale information; 执行模块,用于通过所述平均时标间隔和所述相邻时标间隔判断所述数据帧是否完整,并执行相应的操作。An execution module, configured to judge whether the data frame is complete according to the average time-scale interval and the adjacent time-scale interval, and perform corresponding operations. 7.一种计算机设备,其特征在于,所述计算机设备包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现如权利要求1-5任一项所述的数据完整性检测方法。7. A computer device, characterized in that the computer device comprises a processor and a memory, and a computer program is stored in the memory, and the computer program is loaded and executed by the processor to realize claims 1-5 The data integrity detection method described in any one. 8.一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现如权利要求1-5任一项所述的数据完整性检测方法。8. A computer-readable storage medium, wherein a computer program is stored in the storage medium, and the computer program is loaded and executed by a processor to realize the data integrity as claimed in any one of claims 1-5. sexual detection method.
CN202211163343.0A 2022-09-23 2022-09-23 Data integrity detection method, device, equipment and medium Pending CN115567939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211163343.0A CN115567939A (en) 2022-09-23 2022-09-23 Data integrity detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211163343.0A CN115567939A (en) 2022-09-23 2022-09-23 Data integrity detection method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115567939A true CN115567939A (en) 2023-01-03

Family

ID=84740582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211163343.0A Pending CN115567939A (en) 2022-09-23 2022-09-23 Data integrity detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115567939A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140104493A1 (en) * 2012-10-11 2014-04-17 Tangome, Inc. Proactive video frame dropping for hardware and network variance
CN109040115A (en) * 2018-09-06 2018-12-18 中国科学院软件研究所 A kind of concealed communication method under block chain network environment
CN111901074A (en) * 2020-06-24 2020-11-06 安凯(广州)微电子技术有限公司 High-quality TWS earphone communication method, device, medium and terminal equipment
CN113507617A (en) * 2021-06-24 2021-10-15 广州易方信息科技股份有限公司 SEI frame playback data synchronization method, system, device and medium based on video stream

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140104493A1 (en) * 2012-10-11 2014-04-17 Tangome, Inc. Proactive video frame dropping for hardware and network variance
CN109040115A (en) * 2018-09-06 2018-12-18 中国科学院软件研究所 A kind of concealed communication method under block chain network environment
CN111901074A (en) * 2020-06-24 2020-11-06 安凯(广州)微电子技术有限公司 High-quality TWS earphone communication method, device, medium and terminal equipment
CN113507617A (en) * 2021-06-24 2021-10-15 广州易方信息科技股份有限公司 SEI frame playback data synchronization method, system, device and medium based on video stream

Similar Documents

Publication Publication Date Title
EP3675398B1 (en) Check code processing method, electronic device, and storage medium
TW550905B (en) Method of clock synchronization and medium access controller applied in wireless local network
CN101478684B (en) Method and system for detecting integrity of stored video data
CN114826384B (en) Method, device, equipment and medium for estimating remote sensing satellite data error rate
WO2021057756A1 (en) Delay measurement method, system and storage medium
CN101882096B (en) Method for detecting and correcting damaged control character transmitted between SATA main control device and SATA peripheral device
CN114710224A (en) Frame synchronization method and apparatus, computer readable medium, and electronic device
CN118606156B (en) Communication quality evaluation method, device, electronic device and storage medium
CN108390752A (en) Signal acceptance method
CN109450912B (en) Data transmission method, device and equipment
CN104618922B (en) Measurement result matching process and device in a kind of RTT measurement and positionings system
JP4966779B2 (en) Network delay measurement method and communication system
US20110016232A1 (en) Time stamping apparatus and method for network timing synchronization
CN115567939A (en) Data integrity detection method, device, equipment and medium
CN101582738B (en) Device and method for measuring frame error rate in transmission link
CN114039807B (en) Baud rate self-adaption method, device, computer equipment and storage medium
CN101446887B (en) Method, device and system for original language processing
JPH04501943A (en) Digital transmission link quality inspection equipment
CN118400476B (en) Deserializer, vehicle-mounted video data transmission system, method, and storage medium
CN116915367B (en) Data detection method, storage medium and electronic device
CN112751873B (en) Bluetooth MIDI data conversion method, circuit and storage medium
CN115441994A (en) Method for correcting channel coding of high-speed airborne aviation bus
CN114268171B (en) Distributed measurement system and control method based on low-power wide-area wireless network
JP2667302B2 (en) Cell synchronization method and packet communication device
CN111181597B (en) Anti-interference heat hidden channel communication method in multi-core system

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