[go: up one dir, main page]

CN103678028A - RAM internal storage detection method and device - Google Patents

RAM internal storage detection method and device Download PDF

Info

Publication number
CN103678028A
CN103678028A CN201310687613.2A CN201310687613A CN103678028A CN 103678028 A CN103678028 A CN 103678028A CN 201310687613 A CN201310687613 A CN 201310687613A CN 103678028 A CN103678028 A CN 103678028A
Authority
CN
China
Prior art keywords
data
backup
code
check code
crc
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
CN201310687613.2A
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.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation 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 Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201310687613.2A priority Critical patent/CN103678028A/en
Publication of CN103678028A publication Critical patent/CN103678028A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本申请提供了一种RAM内存检测方法,包括:确定待检测RAM内存区域中的数据为原码;将对所述原码进行取反后生成的反码存入备份内存区域;若所述原码和所述反码中存在相同数据,判定所述原码中的数据存在物理损坏;否则,对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码;比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致;若是,判定所述待检测RAM内存区域所关联的数据线无损坏或原码中的数据未被篡改;若否,判定所述待检测RAM内存区域所关联的数据线损坏或原码中的数据被篡改。因此,本申请能够检测出引起数据存储不正确的原因。

Figure 201310687613

The application provides a RAM memory detection method, comprising: determining that the data in the RAM memory area to be detected is the original code; storing the inverse code generated after inverting the original code into the backup memory area; if the original If there is the same data in the inverse code and the inverse code, it is determined that the data in the original code is physically damaged; otherwise, the inverse code read from the backup memory area is reversed, and the CRC algorithm is used to perform the inverse operation. The data after the inversion operation is checked to generate a backup CRC check code; compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code; if so, determine the RAM memory to be detected The data line associated with the area is not damaged or the data in the original code has not been tampered with; if not, it is determined that the data line associated with the RAM memory area to be detected is damaged or the data in the original code has been tampered with. Therefore, the present application is able to detect the cause of incorrect data storage.

Figure 201310687613

Description

一种RAM内存检测方法及装置Method and device for detecting RAM memory

技术领域technical field

本申请涉及内存检测领域,特别涉及一种RAM内存检测方法及装置。The present application relates to the field of memory detection, in particular to a RAM memory detection method and device.

背景技术Background technique

目前,为了增强单片机的抗干扰及错误识别能力,防止单片机RAM(Random Access Memory,随机存储器)内存中的数据被篡改或丢失,需要对单片机RAM内存中的数据进行检测。At present, in order to enhance the anti-interference and error identification capabilities of the single-chip microcomputer, and prevent the data in the RAM (Random Access Memory) of the single-chip microcomputer from being tampered with or lost, it is necessary to detect the data in the RAM memory of the single-chip microcomputer.

目前通常采用传统CRC(循环冗余码校验,Cyclical Redundancy Check)算法,判别单片机RAM内存中的数据存储是否正确,虽然传统CRC算法能够检测出RAM内存中数据存储是否正确,却不能检测出引起数据存储不正确的原因,如数据物理损坏和单片机的数据线损坏。At present, the traditional CRC (Cyclical Redundancy Check) algorithm is usually used to judge whether the data storage in the single-chip RAM memory is correct. Although the traditional CRC algorithm can detect whether the data storage in the RAM memory is correct, it cannot detect the cause Reasons for incorrect data storage, such as physical damage to data and damage to the data line of the microcontroller.

由上可见,目前检测单片机RAM内存中的数据存储是否正确的方法存在不能检测出引起数据存储不正确的原因的缺点。It can be seen from the above that the current method for detecting whether the data storage in the single-chip RAM memory is correct has the disadvantage of being unable to detect the cause of incorrect data storage.

发明内容Contents of the invention

为解决上述技术问题,本申请实施例提供一种RAM内存检测方法及装置,以达到检测出数据物理损坏和所关联的数据线损坏的目的,技术方案如下:In order to solve the above technical problems, the embodiment of the present application provides a RAM memory detection method and device to achieve the purpose of detecting physical data damage and associated data line damage. The technical solution is as follows:

一种RAM内存检测方法,包括:A method for detecting RAM memory, comprising:

确定待检测RAM内存区域中的数据为原码;It is determined that the data in the RAM memory area to be detected is the original code;

将对所述原码进行取反后生成的反码存入备份内存区域;storing the inverse code generated after inverting the original code into the backup memory area;

若所述原码和所述反码中存在相同数据,判定所述原码中的数据存在物理损坏;If the same data exists in the original code and the inverse code, it is determined that the data in the original code is physically damaged;

否则,判定所述原码中的数据不存在物理损坏,并对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码;Otherwise, it is determined that there is no physical damage to the data in the original code, and an inverse operation is performed on the inverse code read from the backup memory area, and the CRC algorithm is used to check the inverse data , generate a backup CRC check code;

比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致;Compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code;

若是,判定所述待检测RAM内存区域所关联的数据线无损坏或所述原码中的数据未被篡改;If so, determine that the data line associated with the RAM memory area to be detected is not damaged or the data in the original code has not been tampered with;

若否,判定所述待检测RAM内存区域所关联的数据线损坏或所述原码中的数据被篡改。If not, it is determined that the data line associated with the RAM memory area to be detected is damaged or the data in the original code has been tampered with.

优选的,所述对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程,包括:Preferably, the process of performing an inversion operation on the inverse code read from the backup memory area, using a CRC algorithm to verify the data after the inversion operation, and generating a backup CRC check code includes :

按照预先设置的检测周期,读取所述备份内存区域中的全部反码;Read all the inverted codes in the backup memory area according to the preset detection cycle;

对读取到的全部反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Perform inversion operation on all the inverse codes read, use the CRC algorithm to verify the data after inversion operation, and generate a backup CRC check code.

优选的,所述对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程,包括:Preferably, the process of performing an inversion operation on the inverse code read from the backup memory area, using a CRC algorithm to verify the data after the inversion operation, and generating a backup CRC check code includes :

按照待检测RAM内存区域中不同数据各自的预设检测周期,从所述备份内存区域中读取相应的反码;According to the respective preset detection cycles of different data in the RAM memory area to be detected, read the corresponding inverse code from the backup memory area;

对读取到的相应反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成相应的备份CRC校验码。Perform an inversion operation on the read corresponding inverse code, use the CRC algorithm to verify the data after the inversion operation, and generate a corresponding backup CRC check code.

优选的,所述使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程包括:Preferably, the CRC algorithm is used to verify the data after the inverse operation, and the process of generating a backup CRC check code includes:

使用16位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Use the 16-bit CRC algorithm to verify the data after the inversion operation, and generate a backup CRC check code.

优选的,所述使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程包括:Preferably, the CRC algorithm is used to verify the data after the inverse operation, and the process of generating a backup CRC check code includes:

使用32位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Use the 32-bit CRC algorithm to verify the data after the inversion operation, and generate a backup CRC check code.

一种RAM内存检测装置,包括:A RAM memory detection device, comprising:

确定单元,用于确定待检测RAM内存区域中的数据为原码;A determination unit is used to determine that the data in the RAM memory area to be detected is the original code;

存入单元,用于将对所述原码进行取反后生成的反码存入备份内存区域;A storage unit, configured to store the inverse code generated after inverting the original code into the backup memory area;

第一判定单元,用于若所述原码和所述反码中存在相同数据,判定所述原码中的数据存在物理损坏;A first determining unit, configured to determine that the data in the original code is physically damaged if the same data exists in the original code and the inverse code;

第一校验单元,用于若所述原码和所述反码中不存在相同数据,对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码;The first verification unit is used to perform an inversion operation on the inverse code read from the backup memory area if the same data does not exist in the original code and the inverse code, and use the CRC algorithm to perform an inverse operation on the inverse code. The data after the reverse operation is verified to generate a backup CRC check code;

比较单元,用于比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致,若是,执行第二判定单元,若否,执行第三判定单元;The comparison unit is used to compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code, if yes, execute the second judgment unit, if not, execute the third judgment unit;

第二判定单元,用于判定所述待检测RAM内存区域所关联的数据线无损坏或所述原码中的数据未被篡改;The second judging unit is used to judge that the data line associated with the RAM memory area to be detected is not damaged or the data in the original code has not been tampered with;

第三判定单元,用于判定所述待检测RAM内存区域所关联的数据线损坏或所述原码中的数据被篡改。The third judging unit is configured to judge that the data line associated with the RAM memory area to be detected is damaged or the data in the original code has been tampered with.

优选的,所述第一校验单元包括:Preferably, the first verification unit includes:

第一读取单元,用于按照预先设置的检测周期,读取所述备份内存区域中的全部反码;The first reading unit is used to read all the inverted codes in the backup memory area according to a preset detection cycle;

第二校验单元,用于对读取到的全部反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The second verification unit is configured to perform an inversion operation on all the inverse codes read, and use a CRC algorithm to verify the data after the inversion operation to generate a backup CRC check code.

优选的,所述第一校验单元包括:Preferably, the first verification unit includes:

第二读取单元,用于按照待检测RAM内存区域中不同数据各自的预设检测周期,从所述备份内存区域中读取相应的反码;The second reading unit is used to read the corresponding inverse code from the backup memory area according to the respective preset detection cycles of different data in the RAM memory area to be detected;

第三校验单元,用于对读取到的相应反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成相应的备份CRC校验码。The third checking unit is used to perform an inversion operation on the read corresponding one's complement code, use a CRC algorithm to check the data after the inversion operation, and generate a corresponding backup CRC check code.

优选的,所述第一校验单元包括:Preferably, the first verification unit includes:

第四校验单元,用于使用16位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The fourth verification unit is configured to use a 16-bit CRC algorithm to verify the data after the inversion operation, and generate a backup CRC verification code.

优选的,所述第一校验单元包括:Preferably, the first verification unit includes:

第五校验单元,用于使用32位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The fifth verification unit is configured to use a 32-bit CRC algorithm to verify the reversed data to generate a backup CRC verification code.

与现有技术相比,本申请的有益效果为:Compared with the prior art, the beneficial effects of the present application are:

在本申请中,确定待检测RAM内存区域中的数据为原码,并对原码进行取反,生成的反码存入备份内存区域。在开始对待检测RAM内存区域进行检测时,首先比较备份内存区域中的反码和待检测RAM内存区域的原码是否存在相同数据,如果存在相同数据,说明原码中的某位数据进行取反运算后,未发生变化,判断数据发生了物理损坏,且反码和原码中相同的数据即为发生物理损坏的数据。In this application, it is determined that the data in the RAM memory area to be detected is the original code, and the original code is inverted, and the generated inverse code is stored in the backup memory area. When starting to detect the RAM memory area to be detected, first compare whether the inverse code in the backup memory area and the original code of the RAM memory area to be detected have the same data. If there is the same data, it means that a certain bit of data in the original code is reversed. After the operation, if there is no change, it is judged that the data has been physically damaged, and the data that is the same in the inverted code and the original code is the data that has been physically damaged.

若原码和反码中不存在相同数据,说明原码中数据未发生物理损坏,然后使用CRC算法生成备份CRC校验码,比较原码对应的原参CRC校验码和备份CRC校验码不一致时,说明从备份内存区域中读取到的反码发生了变化,判定待检测RAM内存区域所关联的数据线损坏或数据被篡改。If the same data does not exist in the original code and the inverse code, it means that the data in the original code is not physically damaged, then use the CRC algorithm to generate a backup CRC check code, and compare the original parameter CRC check code corresponding to the original code with the backup CRC check code. , it indicates that the inverse code read from the backup memory area has changed, and it is determined that the data line associated with the RAM memory area to be detected is damaged or the data has been tampered with.

可见,本申请能够检测出数据发生物理损坏或数据线损坏或数据被篡改等引起数据存储不正确的原因。It can be seen that the present application can detect the causes of incorrect data storage, such as physical damage to data, damage to data lines, or tampering of data.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本申请提供的一种RAM内存检测方法的一种流程图;Fig. 1 is a kind of flowchart of a kind of RAM memory detection method that the application provides;

图2是本申请提供的一种RAM内存检测方法的一种子流程图;Fig. 2 is a kind of sub-flow chart of a kind of RAM memory detection method that the present application provides;

图3是本申请提供的一种RAM内存检测装置的一种结构示意图;FIG. 3 is a schematic structural view of a RAM memory detection device provided by the present application;

图4是本申请提供的一种第一校验单元的一种结构示意图。FIG. 4 is a schematic structural diagram of a first verification unit provided in the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请提供一种RAM内存检测方法,可以确定待检测RAM内存区域中的数据为原码;将对所述原码进行取反后生成的反码存入备份内存区域;若所述原码和所述反码中存在相同数据,判定所述原码中的数据存在物理损坏;否则,对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码;比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致;若是,判定所述待检测RAM内存区域所关联的数据线无损坏;若否,判定所述待检测RAM内存区域所关联的数据线损坏。以下将列举实施例对本申请提供的一种RAM内存检测方法进行详细说明。The application provides a RAM memory detection method, which can determine that the data in the RAM memory area to be detected is the original code; the inverse code generated after the inversion of the original code is stored in the backup memory area; if the original code and There is the same data in the inverse code, and it is determined that the data in the original code is physically damaged; otherwise, the inverse code read from the backup memory area is reversed, and the CRC algorithm is used to invert the The data after the calculation is checked to generate a backup CRC check code; compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code; if so, determine the location of the RAM memory area to be detected The associated data line is not damaged; if not, it is determined that the data line associated with the RAM memory area to be detected is damaged. The following examples will be used to describe a RAM memory detection method provided by the present application in detail.

一个实施例an embodiment

请参见图1,其示出了本申请提供的一种RAM内存检测方法的一种流程图,可以包括以下步骤:Referring to Fig. 1, it shows a kind of flowchart of a kind of RAM memory detection method that the present application provides, can comprise the following steps:

步骤S11:确定待检测RAM内存区域中的数据为原码。Step S11: Determine that the data in the RAM memory area to be detected is the original code.

在本实施例中,待检测RAM内存区域中的数据为从外部数据存储器中读取到的数据。在本实施例中,将待检测RAM内存区域中的数据作为原码。In this embodiment, the data in the RAM memory area to be detected is the data read from the external data memory. In this embodiment, the data in the RAM memory area to be detected is used as the original code.

在本实施例中,在RAM内存中分配一块存储区域作为待检测RAM内存区域的备份内存区域,在分配备份内存区域后,执行步骤S12。In this embodiment, a storage area is allocated in the RAM memory as a backup memory area of the RAM memory area to be detected, and step S12 is executed after the backup memory area is allocated.

步骤S12:将对所述原码进行取反后生成的反码存入备份内存区域。Step S12: storing the inverse code generated by inverting the original code into the backup memory area.

在本实施例中,对原码进行取反运算,生成反码,将反码存入备份内存区域。In this embodiment, an inversion operation is performed on the original code to generate an inverse code, and the inverse code is stored in the backup memory area.

步骤S13:判断所述原码和所述反码中是否存在相同数据。Step S13: judging whether the same data exists in the original code and the inverse code.

在本实施例中,通过判断所述原码和所述反码中是否存在相同数据来检测待检测RAM内存区域中的数据是否存在物理损坏。In this embodiment, whether there is physical damage to the data in the RAM memory area to be detected is detected by judging whether the same data exists in the original code and the inverse code.

若判断结果为原码和反码中存在相同数据,则执行步骤S14,否则,执行步骤S15。If the judging result is that there is the same data in the original code and the inverse code, execute step S14; otherwise, execute step S15.

步骤S14:判定所述原码中的数据存在物理损坏。Step S14: Determine that the data in the original code is physically damaged.

在判断结果为原码和反码中存在相同数据时,说明在对原码进行取反运算时,原码中的某位数据未发生变化,数据不能发生变化说明已经物理损坏。When the judging result is that the same data exists in the original code and the inverse code, it means that when the original code is reversed, a certain bit of data in the original code has not changed, and the data cannot change, indicating that it has been physically damaged.

其中,原码和反码中相同的数据即发生物理损坏的数据。通过原码和反码的比较,可以检测出原码中的哪一位数据发生了物理损坏,即可检测出数据的位错误。Among them, the same data in the original code and inverse code is the data that is physically damaged. Through the comparison of the original code and the inverse code, it is possible to detect which bit of data in the original code is physically damaged, that is, to detect the bit error of the data.

步骤S15:判定所述原码中的数据不存在物理损坏,并对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Step S15: Determine that there is no physical damage to the data in the original code, and perform an inversion operation on the inverse code read from the backup memory area, and use the CRC algorithm to verify the inverse data check to generate a backup CRC check code.

在判断结果为原码和反码中不存在相同数据时,说明原码中的数据未发生物理损坏,进一步验证待检测RAM内存区域所关联的数据线是否发生损坏。When the judging result is that the same data does not exist in the original code and the inverse code, it means that the data in the original code is not physically damaged, and it is further verified whether the data line associated with the RAM memory area to be detected is damaged.

验证待检测RAM内存区域所关联的数据线是否发生损坏,通过对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Verify whether the data line associated with the RAM memory area to be detected is damaged, perform an inversion operation on the inverse code read from the backup memory area, and use the CRC algorithm to verify the data after the inversion operation , to generate a backup CRC check code.

如果待检测RAM内存区域所关联的数据线未发生损坏,则对从备份内存区域中读取到的反码,进行取反运算后的数据应该和原码中的数据相同,如果待检测RAM内存区域所关联的数据线发生损坏,则对从备份内存区域中读取到的反码,进行取反运算后的数据和原码中的数据不同,因为数据线发生损坏,从备份内存区域中读取到的反码发生了变化。If the data line associated with the RAM memory area to be tested is not damaged, the inverse code read from the backup memory area, the data after the inverse operation should be the same as the data in the original code, if the RAM memory to be tested If the data line associated with the area is damaged, the inverse code read from the backup memory area will be different from the data in the original code. Because the data line is damaged, the data read from the backup memory area The obtained inverse code has changed.

步骤S16:比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致。Step S16: Compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code.

在本实施例中,在原码中的数据未发生物理损坏的前提下,通过比较原码对应的原参CRC校验码和备份CRC校验码是否一致,来判断待检测RAM内存区域所关联的数据线是否发生损坏或数据是否被篡改。In this embodiment, on the premise that the data in the original code is not physically damaged, by comparing whether the original parameter CRC check code corresponding to the original code is consistent with the backup CRC check code, it is judged that the RAM memory area to be detected is associated with Whether the data line is damaged or whether the data has been tampered with.

在比较结果为原码对应的原参CRC校验码和所述备份CRC校验码一致的情况下,说明从备份内存区域读取到的反码未发生变化,进而说明所关联的数据线无损坏,数据正确,执行步骤S17,在比较结果为原码对应的原参CRC校验码和所述备份CRC校验码不一致的情况下,说明从备份内存区域读取到的反码发生了变化,进而说明所关联的数据线发生了损坏,数据不正确,执行步骤S18。If the comparison result shows that the original parameter CRC check code corresponding to the original code is consistent with the backup CRC check code, it means that the inverse code read from the backup memory area has not changed, and furthermore, it means that the associated data line has no change. damaged, the data is correct, execute step S17, and if the comparison result is that the original parameter CRC check code corresponding to the original code is inconsistent with the backup CRC check code, it means that the inverse code read from the backup memory area has changed , which further indicates that the associated data line is damaged and the data is incorrect, and step S18 is executed.

需要说明的是,本实施例通过比较原参CRC校验码和备份CRC校验码是否一致,来判断待检测RAM内存区域所关联的数据线是否损坏的原因在于,待检测RAM内存区域中的数据本身携带有CRC校验码,因此为了检测更加方便,直接获取原参CRC校验码,对备份内存区域中的数据进行一次CRC运算即可。It should be noted that, in this embodiment, by comparing whether the original reference CRC check code and the backup CRC check code are consistent, the reason for judging whether the data line associated with the RAM memory area to be detected is damaged is that the data line in the RAM memory area to be detected is damaged. The data itself carries a CRC check code, so in order to make detection more convenient, directly obtain the original parameter CRC check code, and perform a CRC operation on the data in the backup memory area.

步骤S17:判定所述待检测RAM内存区域所关联的数据线无损坏或所述原码中的数据未被篡改。Step S17: Determine that the data line associated with the RAM memory area to be detected is not damaged or the data in the original code has not been tampered with.

步骤S18:判定所述待检测RAM内存区域所关联的数据线损坏或所述原码中的数据被篡改。Step S18: Determine that the data line associated with the RAM memory area to be detected is damaged or the data in the original code has been tampered with.

在本申请中,确定待检测RAM内存区域中的数据为原码,并对原码进行取反,生成的反码存入备份内存区域。在开始对待检测RAM内存区域进行检测时,首先比较备份内存区域中的反码和待检测RAM内存区域的原码是否存在相同数据,如果存在相同数据,说明原码中的某位数据进行取反运算后,未发生变化,判断数据发生了物理损坏,且反码和原码中相同的数据即为发生物理损坏的数据。In this application, it is determined that the data in the RAM memory area to be detected is the original code, and the original code is inverted, and the generated inverse code is stored in the backup memory area. When starting to detect the RAM memory area to be detected, first compare whether the inverse code in the backup memory area and the original code of the RAM memory area to be detected have the same data. If there is the same data, it means that a certain bit of data in the original code is reversed. After the operation, if there is no change, it is judged that the data has been physically damaged, and the data that is the same in the inverted code and the original code is the data that has been physically damaged.

若原码和反码中不存在相同数据,说明原码中数据未发生物理损坏,然后使用CRC算法生成备份CRC校验码,比较原码对应的原参CRC校验码和备份CRC校验码不一致时,说明从备份内存区域中读取到的反码发生了变化,判定待检测RAM内存区域所关联的数据线损坏或数据被篡改。If the same data does not exist in the original code and the inverse code, it means that the data in the original code is not physically damaged, then use the CRC algorithm to generate a backup CRC check code, and compare the original parameter CRC check code corresponding to the original code with the backup CRC check code. , it indicates that the inverse code read from the backup memory area has changed, and it is determined that the data line associated with the RAM memory area to be detected is damaged or the data has been tampered with.

可见,本申请能够检测出数据发生物理损坏或数据线损坏或数据被篡改等引起数据存储不正确的原因。。It can be seen that the present application can detect the causes of incorrect data storage, such as physical damage to data, damage to data lines, or tampering of data. .

在执行图1示出的RAM内存检测方法中的对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码时,可以预先设置检测周期,按照预先设置的检测周期,读取所述备份内存区域中的全部反码,对读取到的全部反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码,避免了实时的执行对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的操作,而造成读取数据量较大运行一次会占用较多CPU资源,从而降低了对待检测RAM内存区域所在系统的运行效率的影响。In performing the RAM memory detection method shown in Figure 1, the inverse code read from the backup memory area is carried out, the inverse operation is carried out, and the data after the inversion operation is verified using the CRC algorithm to generate a backup When the CRC check code is used, the detection period can be set in advance, according to the preset detection period, all the inverse codes in the backup memory area are read, and all the inverse codes read are reversed, and the CRC algorithm is used to perform the inverse operation. The data after the inverse operation is verified, and a backup CRC check code is generated, which avoids real-time execution of the inverse code read from the backup memory area, and performs an inversion operation, and uses the CRC algorithm to perform an inversion operation The operation of verifying the final data and generating a backup CRC check code will cause a large amount of read data to run once and occupy more CPU resources, thereby reducing the impact on the operating efficiency of the system where the RAM memory area to be detected is located.

当然,为了避免读取数据量较大运行一次会占用较多CPU资源的情况发生,还可以采取如图2所示的实施方式,图2所示的实施方式为对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的具体过程,请参见图2,图2示出的是本申请提供的一种RAM内存检测方法的一种子流程图,可以包括以下步骤:Of course, in order to avoid the situation that a large amount of read data will take up more CPU resources when running once, an implementation as shown in Figure 2 can also be adopted. Read the inverse code, perform the inversion operation, use the CRC algorithm to verify the data after the inversion operation, and generate the specific process of the backup CRC check code, please refer to Figure 2, which shows the application A sub-flow chart of a RAM memory detection method provided may include the following steps:

步骤S21:按照待检测RAM内存区域中不同数据各自的预设检测周期,从所述备份内存区域中读取相应的反码。Step S21: According to the respective preset detection cycles of different data in the RAM memory area to be detected, read the corresponding inverse code from the backup memory area.

由于待检测RAM内存区域中不同数据有各自的预设检测周期,因此按照待检测RAM内存区域中不同数据各自的预设检测周期,从备份内存区域中读取相应的反码,不需要每次读取所有的反码。Since different data in the RAM memory area to be detected have their own preset detection cycles, according to the respective preset detection cycles of different data in the RAM memory area to be detected, the corresponding inverse code is read from the backup memory area, and it is not necessary to Read all complements.

其中,待检测RAM内存区域中不同数据各自的预设检测周期可以根据待检测RAM内存区域中存储的数据的重要性,进行不同数据各自的预设检测周期的设置。Wherein, the respective preset detection cycles of different data in the RAM memory area to be detected can be set according to the importance of the data stored in the RAM memory area to be detected.

数据越重要,则可以设置预设检测周期越短,数据越不重要,则可以设置预设检测周期越长。The more important the data, the shorter the preset detection cycle can be set, and the less important the data, the longer the preset detection cycle can be set.

步骤S22:对读取到的相应反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成相应的备份CRC校验码。Step S22: Inverting the read corresponding one's complement code, using the CRC algorithm to check the inverted data, and generating a corresponding backup CRC check code.

由于按照待检测RAM内存区域中不同数据各自的预设检测周期,从所述备份内存区域中读取相应的反码,因此,在到达相应数据的预设检测周期时,才对备份内存区域中读取到的相应反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。According to the respective preset detection cycles of different data in the RAM memory area to be detected, the corresponding inverse code is read from the backup memory area, therefore, when the preset detection cycle of the corresponding data is reached, the data in the backup memory area is The read corresponding one's complement code is reversed, and the CRC algorithm is used to verify the data after the reversed operation, and a backup CRC check code is generated.

采用图2所示的实施方式,相比于按照预先设置的检测周期,读取所述备份内存区域中所有的反码,对读取到的反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的方式,占用CPU资源更少,进一步的降低了待检测RAM内存区域所在的系统的运行效率的影响。Using the implementation shown in Figure 2, compared to reading all the inverse codes in the backup memory area according to the preset detection period, performing inverse operations on the read inverse codes, and using the CRC algorithm to perform the inverse operation The method of verifying the reversed data and generating a backup CRC check code occupies less CPU resources, further reducing the impact on the operating efficiency of the system where the RAM memory area to be detected is located.

在上述方法步骤中,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程可以为使用16位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。In the above method steps, the CRC algorithm is used to verify the data after the inversion operation, and the process of generating a backup CRC check code can be to use a 16-bit CRC algorithm to verify the data after the inversion operation to generate a backup CRC check code.

当然,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码的过程也可以为使用32位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Of course, the CRC algorithm is used to verify the data after the inversion operation, and the process of generating the backup CRC check code can also be to use the 32-bit CRC algorithm to verify the data after the inversion operation, and generate a backup CRC checksum code.

对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。For the aforementioned method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the application is not limited by the described action sequence, because according to the application, Certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

与上述方法实施例相对应,本申请提供了一种RAM内存检测装置,请参见图3,图3示出的是本申请提供的一种RAM内存检测装置的一种结构示意图,RAM内存检测装置包括:确定单元31、存入单元32、第一判定单元33、第一校验单元34、比较单元35、第二判定单元36和第三判定单元37。Corresponding to the above method embodiments, the present application provides a RAM memory detection device, please refer to FIG. 3 , which shows a schematic structural diagram of a RAM memory detection device provided by the present application. The RAM memory detection device It includes: a determination unit 31 , a storage unit 32 , a first determination unit 33 , a first verification unit 34 , a comparison unit 35 , a second determination unit 36 and a third determination unit 37 .

确定单元31,用于确定待检测RAM内存区域中的数据为原码。The determination unit 31 is configured to determine that the data in the RAM memory area to be detected is the original code.

存入单元32,用于将对所述原码进行取反后生成的反码存入备份内存区域。The storage unit 32 is configured to store the inverse code generated by inverting the original code into the backup memory area.

第一判定单元33,用于若所述原码和所述反码中存在相同数据,判定所述原码中的数据存在物理损坏。The first determination unit 33 is configured to determine that the data in the original code is physically damaged if the same data exists in the original code and the inverse code.

第一校验单元34,用于若所述原码和所述反码中不存在相同数据,对从所述备份内存区域中读取到的反码,进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The first checking unit 34 is used to perform an inversion operation on the inverse code read from the backup memory area if the same data does not exist in the original code and the inverse code, and use the CRC algorithm to perform the inverse operation. The data after the inverse operation is checked to generate a backup CRC check code.

在本实施例中,第一校验单元34可以包括:第一读取单元和第二校验单元。In this embodiment, the first checking unit 34 may include: a first reading unit and a second checking unit.

第一读取单元,用于按照预先设置的检测周期,读取所述备份内存区域中的全部反码。The first reading unit is configured to read all inverted codes in the backup memory area according to a preset detection cycle.

第二校验单元,用于对读取到的全部反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The second verification unit is configured to perform an inversion operation on all the inverse codes read, and use a CRC algorithm to verify the data after the inversion operation to generate a backup CRC check code.

当然,第一校验单元34的另一种结构可以参见图4,图4示出了本申请提供的一种第一校验单元的一种结构示意图,第一校验单元包括:第二读取单元41和第三校验单元42。Of course, another structure of the first verification unit 34 can be referred to FIG. 4, which shows a schematic structural diagram of a first verification unit provided by the present application. The first verification unit includes: a second read Fetch unit 41 and third checking unit 42.

第二读取单元41,用于按照待检测RAM内存区域中不同数据各自的预设检测周期,从所述备份内存区域中读取相应的反码。The second reading unit 41 is configured to read corresponding inverse codes from the backup memory area according to respective preset detection cycles of different data in the RAM memory area to be detected.

第三校验单元42,用于对读取到的相应反码进行取反运算,使用CRC算法对进行取反运算后的数据进行校验,生成相应的备份CRC校验码。The third checking unit 42 is configured to perform an inversion operation on the read corresponding one's inverse code, use a CRC algorithm to check the inverse data, and generate a corresponding backup CRC check code.

比较单元35,用于比较所述原码对应的原参CRC校验码和所述备份CRC校验码是否一致,若是,执行第二判定单元36,若否,执行第三判定单元37。The comparison unit 35 is used to compare whether the original reference CRC check code corresponding to the original code is consistent with the backup CRC check code, if yes, execute the second judgment unit 36, and if not, execute the third judgment unit 37.

第二判定单元36,用于判定所述待检测RAM内存区域所关联的数据线无损坏或所述原码中的数据未被篡改。The second determining unit 36 is configured to determine that the data line associated with the RAM memory area to be detected is not damaged or that the data in the original code has not been tampered with.

第三判定单元37,用于判定所述待检测RAM内存区域所关联的数据线损坏或所述原码中的数据被篡改。The third judging unit 37 is configured to judge that the data line associated with the RAM memory area to be detected is damaged or the data in the original code has been tampered with.

第一校验单元34可以包括:第四校验单元,用于使用16位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。The first checking unit 34 may include: a fourth checking unit, configured to use a 16-bit CRC algorithm to check the inverted data to generate a backup CRC check code.

当然,第一校验单元34也可以包括:第五校验单元,用于使用32位CRC算法对进行取反运算后的数据进行校验,生成备份CRC校验码。Certainly, the first checking unit 34 may also include: a fifth checking unit, configured to use a 32-bit CRC algorithm to check the data after the inversion operation, and generate a backup CRC check code.

需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same and similar parts in each embodiment, refer to each other, that is, Can. As for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to part of the description of the method embodiments.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。It can be known from the above description of the implementation manners that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present application.

以上对本申请所提供的一种RAM内存检测方法及装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。A RAM memory detection method and device provided by this application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only used to help understand the application. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. Application Restrictions.

Claims (10)

1. a memory ram detection method, is characterized in that, comprising:
Determine that the data in memory ram to be detected region are true form;
Deposit the radix-minus-one complement that described true form is carried out to generate after negate in archive memory region;
If there is identical data in described true form and described radix-minus-one complement, judge that the data in described true form exist physical damage;
Otherwise, judge that the data in described true form do not exist physical damage, and to the radix-minus-one complement reading, carry out negate computing from described archive memory region, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate backup CRC check code;
Whether former ginseng CRC check code corresponding to more described true form be consistent with described backup CRC check code;
If so, judge that the associated data line in described memory ram to be detected region is not tampered without the data in damage or described true form;
If not, judge that the associated data line in described memory ram to be detected region damages or described true form in data be tampered.
2. method according to claim 1, is characterized in that, described to the radix-minus-one complement reading from described archive memory region, carry out negate computing, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate the process of backup CRC check code, comprising:
According to the sense cycle setting in advance, read the whole radix-minus-one complements in described archive memory region;
The whole radix-minus-one complements that read are carried out to negate computing, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate backup CRC check code.
3. method according to claim 1, is characterized in that, described to the radix-minus-one complement reading from described archive memory region, carry out negate computing, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate the process of backup CRC check code, comprising:
According to different pieces of information default sense cycle separately in memory ram to be detected region, from described archive memory region, read corresponding radix-minus-one complement;
The corresponding radix-minus-one complement reading is carried out to negate computing, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate corresponding backup CRC check code.
4. according to the method described in claim 1-3 any one, it is characterized in that, described use CRC algorithm carries out verification to the data of carrying out after negate computing, and the process that generates backup CRC check code comprises:
Use 16 CRC algorithms to carry out verification to the data of carrying out after negate computing, generate backup CRC check code.
5. according to the method described in claim 1-3 any one, it is characterized in that, described use CRC algorithm carries out verification to the data of carrying out after negate computing, and the process that generates backup CRC check code comprises:
Use 32 CRC algorithms to carry out verification to the data of carrying out after negate computing, generate backup CRC check code.
6. a memory ram pick-up unit, is characterized in that, comprising:
Determining unit, for determining that the data in memory ram to be detected region are true form;
Deposit unit in, for depositing the radix-minus-one complement that described true form is carried out to generate after negate in archive memory region;
The first identifying unit, if there is identical data for described true form and described radix-minus-one complement, judges that the data in described true form exist physical damage;
The first verification unit, if there is not identical data for described true form and described radix-minus-one complement, to the radix-minus-one complement reading, carry out negate computing from described archive memory region, use CRC algorithm to carry out verification to the data of carrying out after negate computing, generate backup CRC check code;
Comparing unit, whether consistent with described backup CRC check code for the former ginseng CRC check code that more described true form is corresponding, if so, carry out the second identifying unit, if not, carry out the 3rd identifying unit;
The second identifying unit, for judging that the associated data line in described memory ram to be detected region is not tampered without the data of damage or described true form;
The 3rd identifying unit, for judging that the associated data line in described memory ram to be detected region damages or the data of described true form are tampered.
7. device according to claim 6, is characterized in that, described the first verification unit comprises:
The first reading unit, for the sense cycle according to setting in advance, reads the whole radix-minus-one complements in described archive memory region;
The second verification unit, for the whole radix-minus-one complements that read are carried out to negate computing, is used CRC algorithm to carry out verification to the data of carrying out after negate computing, generates backup CRC check code.
8. device according to claim 6, is characterized in that, described the first verification unit comprises:
The second reading unit for according to memory ram to be detected region different pieces of information default sense cycle separately, reads corresponding radix-minus-one complement from described archive memory region;
The 3rd verification unit, for the corresponding radix-minus-one complement reading is carried out to negate computing, is used CRC algorithm to carry out verification to the data of carrying out after negate computing, generates corresponding backup CRC check code.
9. according to the device described in claim 6-8 any one, it is characterized in that, described the first verification unit comprises:
The 4th verification unit, for using 16 CRC algorithms to carry out verification to the data of carrying out after negate computing, generates backup CRC check code.
10. according to the device described in claim 6-8 any one, it is characterized in that, described the first verification unit comprises:
The 5th verification unit, for using 32 CRC algorithms to carry out verification to the data of carrying out after negate computing, generates backup CRC check code.
CN201310687613.2A 2013-12-16 2013-12-16 RAM internal storage detection method and device Pending CN103678028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310687613.2A CN103678028A (en) 2013-12-16 2013-12-16 RAM internal storage detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310687613.2A CN103678028A (en) 2013-12-16 2013-12-16 RAM internal storage detection method and device

Publications (1)

Publication Number Publication Date
CN103678028A true CN103678028A (en) 2014-03-26

Family

ID=50315675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310687613.2A Pending CN103678028A (en) 2013-12-16 2013-12-16 RAM internal storage detection method and device

Country Status (1)

Country Link
CN (1) CN103678028A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104284185A (en) * 2014-10-24 2015-01-14 苏州科达科技股份有限公司 Video image quality routing inspection method and system
CN104407929A (en) * 2014-12-19 2015-03-11 重庆川仪自动化股份有限公司 Variable memory checking method and system
CN104598342A (en) * 2014-12-31 2015-05-06 曙光信息产业(北京)有限公司 Internal storage detection method and device
CN106843022A (en) * 2015-12-03 2017-06-13 中国航空工业集团公司雷华电子技术研究所 A kind of method for improving embedded control system output reliability
CN107516546A (en) * 2017-07-07 2017-12-26 中国航空工业集团公司西安飞行自动控制研究所 The on-line measuring device and method of a kind of random access memory
CN107766188A (en) * 2017-10-13 2018-03-06 交控科技股份有限公司 Internal-memory detection method and device in train control system
CN108388517A (en) * 2018-03-14 2018-08-10 深圳怡化电脑股份有限公司 A kind of internal-memory detection method, device, equipment and storage medium
CN109086162A (en) * 2018-08-15 2018-12-25 中国农业银行股份有限公司 A kind of memory diagnosis method and apparatus
CN109979503A (en) * 2019-03-22 2019-07-05 安徽大学 A kind of Static RAM circuit structure realizing Hamming distance in memory and calculating
WO2020124960A1 (en) * 2018-12-18 2020-06-25 盛科网络(苏州)有限公司 Data storage detection method and apparatus, and storage medium and electronic apparatus
CN111382090A (en) * 2018-12-28 2020-07-07 长城汽车股份有限公司 Storage method and device, use method and device of configuration data of vehicle
CN111613264A (en) * 2020-05-26 2020-09-01 地平线(上海)人工智能技术有限公司 Circuit detection method and data detection circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032159A2 (en) * 2001-10-11 2003-04-17 Altera Corporation Error detection on programmable logic resources
CN101625653A (en) * 2009-08-13 2010-01-13 青岛海信电器股份有限公司 Method for processing and checking local data in multi-media product
CN101976214A (en) * 2010-09-30 2011-02-16 西北工业大学 Self-adaptive rate cyclic redundancy check (CRC) code implementation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003032159A2 (en) * 2001-10-11 2003-04-17 Altera Corporation Error detection on programmable logic resources
CN101625653A (en) * 2009-08-13 2010-01-13 青岛海信电器股份有限公司 Method for processing and checking local data in multi-media product
CN101976214A (en) * 2010-09-30 2011-02-16 西北工业大学 Self-adaptive rate cyclic redundancy check (CRC) code implementation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
石磊: ""单片机内存安全功能研究"", 《计算机光盘软件与应用》, no. 12, 15 June 2013 (2013-06-15) *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104284185B (en) * 2014-10-24 2017-04-26 苏州科达科技股份有限公司 Video image quality routing inspection method and system
CN104284185A (en) * 2014-10-24 2015-01-14 苏州科达科技股份有限公司 Video image quality routing inspection method and system
CN104407929A (en) * 2014-12-19 2015-03-11 重庆川仪自动化股份有限公司 Variable memory checking method and system
CN104407929B (en) * 2014-12-19 2017-10-24 重庆川仪自动化股份有限公司 A kind of method and system of alterable memory verification
CN104598342B (en) * 2014-12-31 2018-05-01 曙光信息产业(北京)有限公司 The detection method and device of memory
CN104598342A (en) * 2014-12-31 2015-05-06 曙光信息产业(北京)有限公司 Internal storage detection method and device
CN106843022A (en) * 2015-12-03 2017-06-13 中国航空工业集团公司雷华电子技术研究所 A kind of method for improving embedded control system output reliability
CN107516546A (en) * 2017-07-07 2017-12-26 中国航空工业集团公司西安飞行自动控制研究所 The on-line measuring device and method of a kind of random access memory
CN107516546B (en) * 2017-07-07 2020-09-22 中国航空工业集团公司西安飞行自动控制研究所 Online detection device and method for random access memory
CN107766188A (en) * 2017-10-13 2018-03-06 交控科技股份有限公司 Internal-memory detection method and device in train control system
CN108388517A (en) * 2018-03-14 2018-08-10 深圳怡化电脑股份有限公司 A kind of internal-memory detection method, device, equipment and storage medium
CN109086162A (en) * 2018-08-15 2018-12-25 中国农业银行股份有限公司 A kind of memory diagnosis method and apparatus
CN109086162B (en) * 2018-08-15 2021-12-24 中国农业银行股份有限公司 Memory diagnosis method and device
WO2020124960A1 (en) * 2018-12-18 2020-06-25 盛科网络(苏州)有限公司 Data storage detection method and apparatus, and storage medium and electronic apparatus
US11544141B2 (en) 2018-12-18 2023-01-03 Suzhou Centec Communications Co., Ltd. Data storage detection method and apparatus, storage medium and electronic apparatus
CN111382090A (en) * 2018-12-28 2020-07-07 长城汽车股份有限公司 Storage method and device, use method and device of configuration data of vehicle
CN109979503A (en) * 2019-03-22 2019-07-05 安徽大学 A kind of Static RAM circuit structure realizing Hamming distance in memory and calculating
CN111613264A (en) * 2020-05-26 2020-09-01 地平线(上海)人工智能技术有限公司 Circuit detection method and data detection circuit

Similar Documents

Publication Publication Date Title
CN103678028A (en) RAM internal storage detection method and device
WO2021036450A1 (en) Simulator detection method and system
CN107807792A (en) A kind of data processing method and relevant apparatus based on copy storage system
TWI646479B (en) Business authentication method, system and server
CN110992992A (en) A kind of hard disk testing method, equipment and storage medium
CN103646669B (en) The reliability checking method of a kind of movable storage device and device
CN106325773A (en) Data consistency guaranteeing method and system of storage system and cache apparatus
CN113190405B (en) Node health detection method and device, electronic equipment and storage medium
CN109918226A (en) A kind of silence error-detecting method, device and storage medium
CN103226505A (en) Method and equipment for checking basic input output system (BIOS)
CN107247767B (en) Method and device for importing formatted data file into database
CN109697158B (en) Log analysis method and device based on fault
CN109739700B (en) Interface testing method and device
CN105447387A (en) Trusted application detection method and apparatus based on hardware isolation environment
CN115831213A (en) Detection method, device, electronic device, and storage medium of a calibration processor
CN107193634A (en) The access method and device of a kind of virtual machine
CN107145417A (en) A kind of outer plug-in card installation site method of calibration and device
CN110262956A (en) A kind of test cases selection method and device
CN110598457B (en) Bill processing method, bill processing device, bill processing equipment and computer storage medium
CN103677668B (en) A kind of method and device of movable storage device detection
CN107918574A (en) A kind of method of inspection based on test hardware information under Redhat
CN107508835A (en) Account verification method and device and computer readable storage medium
CN114531499A (en) Port sharing method, system and server based on QUIC protocol
CN117272405A (en) Data verification methods and devices applied to blockchain traceability
CN111124809A (en) A testing method and device for a server sensor system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326