CN111555841A - Communication data checking method, device, equipment and medium - Google Patents

Communication data checking method, device, equipment and medium Download PDF

Info

Publication number
CN111555841A
CN111555841A CN202010333183.4A CN202010333183A CN111555841A CN 111555841 A CN111555841 A CN 111555841A CN 202010333183 A CN202010333183 A CN 202010333183A CN 111555841 A CN111555841 A CN 111555841A
Authority
CN
China
Prior art keywords
communication data
data
check value
original
calculation
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
CN202010333183.4A
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.)
CSIC Haizhuang Windpower Co Ltd
Original Assignee
CSIC Haizhuang Windpower 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 CSIC Haizhuang Windpower Co Ltd filed Critical CSIC Haizhuang Windpower Co Ltd
Priority to CN202010333183.4A priority Critical patent/CN111555841A/en
Publication of CN111555841A publication Critical patent/CN111555841A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a communication data checking method, when receiving equipment acquires communication data from a memory, extracting an original checking value contained in the communication data; according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result; acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data; judging whether the original check value is consistent with the existing check value; if so, the communication data is determined to be normal. Therefore, the invention verifies whether the communication data has data dislocation in the process of writing the communication data into the memory or reading the communication data, and ensures the correctness of the used communication data. In addition, the invention provides a communication data checking device, equipment and a storage medium, which correspond to the method.

Description

Communication data checking method, device, equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for verifying communication data.
Background
With the rapid development of communication technology, in the industrial control field such as wind power generation, a canopen protocol is often used as a field bus to realize data interaction among devices. Generally, communication data transmitted through the canopen protocol has 64 bytes per data segment, and 4 words of data can be transmitted. In order to ensure that each device can accurately and effectively complete work, it is a critical step to verify whether the communication data used by each device is correct.
In practical applications, to increase the amount of data to be transmitted, multiple sets of communication data are often transmitted, where each set of communication data corresponds to a different transmission period. The receiving device typically writes the communication data to a buffer before using the communication data and then performs a read operation when using the communication data. In the prior art, each time a receiving device receives a group of communication data, the communication data is checked by using a CRC check segment contained in each standard frame to ensure the validity of the transmitted communication data.
However, the method in the prior art is adopted to check the communication data, and only the effectiveness of the communication data in the transmission process is considered; and whether the received communication data has dislocation in different sending periods in the writing or reading process is not considered. For example, the 4 words transmitted by the first transmission period are w1, w2, w3 and w 4; the 4 words transmitted in the second transmission period are n1, n2, n3 and n 4. If the data error occurs in the process of writing or reading the communication data, the receiving device finally uses the four words of the communication data w1, w2, n3 and n4 to form the communication data, and the normal operation of the receiving device is influenced. Therefore, ensuring the correctness of the used communication data becomes a problem to be solved urgently at present.
Disclosure of Invention
The invention aims to provide a communication data verification method, a communication data verification device, communication data verification equipment and a communication data verification medium, which can verify communication data after a receiving device acquires the communication data from a storage. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; and when the two are not consistent, determining that the communication data sends data dislocation, thereby verifying whether the communication data has data dislocation in the process of writing into the memory or reading, and ensuring the correctness of the used communication data.
In order to solve the above technical problem, the present invention provides a method for verifying communication data, including:
when receiving equipment acquires communication data from a memory, extracting an original check value contained in the communication data;
according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in the communication data to obtain a calculation result;
acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data;
judging whether the original check value is consistent with the existing check value;
if so, determining that the communication data is normal.
Preferably, before the extracting the original check value included in the communication data, the method further includes:
all data currently stored is updated.
Preferably, the method further comprises the following steps:
and when the original check value is inconsistent with the existing check value, determining that the communication data is misplaced, and discarding the communication data.
Preferably, the extracting of the original check value included in the communication data specifically includes:
and extracting the fourth word data in the data segment of the communication data as an original check value.
Preferably, the method further comprises the following steps:
judging whether update information for updating the check word data is received or not;
and if so, updating the check word data according to the updating information.
Preferably, after the discarding operation is performed on the communication data, the method further includes:
and generating abnormal information and feeding back the abnormal information to acquire communication data again.
Preferably, the method further comprises the following steps:
and informing the operation and maintenance personnel to process the abnormal situation according to the pre-stored contact information of the operation and maintenance personnel.
In order to solve the above technical problem, the present invention further provides a communication data verifying apparatus, including:
the device comprises an extraction module, a verification module and a verification module, wherein the extraction module is used for extracting an original verification value contained in communication data when the receiving equipment acquires the communication data from a memory;
the calculation module is used for carrying out XOR calculation on preset check word data and initial word data in the communication data according to a preset sequence to obtain a calculation result;
the acquisition module is used for acquiring the existing check value according to the rule that the calculation result is used as the next check word data and is subjected to XOR calculation with the next word data;
the judging module is used for judging whether the original check value is consistent with the existing check value; if yes, entering a determining module;
and the determining module is used for determining that the communication data is normal.
In order to solve the above technical problem, the present invention further provides a communication data verification device, including a memory for storing a computer program;
a processor for implementing the steps of the method of verifying communication data as described in any one of the above when executing said computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the communication data verification method according to any one of the above.
According to the communication data checking method provided by the invention, when receiving equipment acquires communication data from a memory, an original check value contained in the communication data is extracted; according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result; acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data; judging whether the original check value is consistent with the existing check value; if so, the communication data is determined to be normal. Therefore, the communication data is verified after the receiving device acquires the communication data from the storage. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; when the two are not consistent, the data dislocation of the communication data is determined, so that whether the data dislocation occurs in the process of writing the communication data into the memory or reading the communication data is verified, and the correctness of the used communication data is ensured.
In addition, the communication data verification device, the communication data verification equipment and the communication data verification storage medium correspond to the method, and have the same beneficial effects.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for verifying communication data according to an embodiment of the present invention;
fig. 2 is a structural diagram of a communication data verification apparatus according to an embodiment of the present invention;
fig. 3 is a structural diagram of a verification device for communication data according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a communication data verification method, device, equipment and medium, which can verify communication data after a receiving device acquires the communication data from a memory. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; and when the two are not consistent, determining that the communication data sends data dislocation, thereby verifying whether the communication data has data dislocation in the process of writing into the memory or reading, and ensuring the correctness of the used communication data.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a method for verifying communication data according to an embodiment of the present invention; as shown in fig. 1, a method for verifying communication data according to an embodiment of the present invention includes steps S101 to S105;
step S101: when the receiving equipment acquires the communication data from the storage, extracting an original check value contained in the communication data;
in one embodiment, the communication data received by the receiving device is typically first stored in memory, and when the receiving device needs to use the communication data, the original check value contained in the communication data is extracted. It should be noted that the original check value is determined before the sending device sends the communication data; communication data is typically transmitted with 64 bytes per data segment, and 4 words of data may be transmitted. Further, the location of the fourth word of data of the data segment may be used to store the original check value. Correspondingly, when the original check value contained in the communication data is extracted, the fourth word data in the data segment of the communication data is specifically extracted as the original check value.
Step S102: according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result;
step S103: acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data;
in a specific implementation, the calculation order of each word data in the communication data and the check word data are both determined before the communication data is transmitted by the transmitting device. Before transmitting the communication data, the transmitting device performs exclusive-or operation on the check word data and the word data in the communication data according to a preset sequence to obtain an original check value, adds the original check value to the communication data and then transmits the communication data to the receiving device. It is understood that the preset sequence and check word data can be determined by those skilled in the art according to the actual application.
In one application scenario, assume that 4 words contained in communication data to be transmitted by a transmitting device are w1, w2, w3, and w 4; and determining the preset sequence as the sequence of firstly calculating with w1, then calculating with w2 and finally calculating with w3, and taking the final calculation result as w 4. Before the sending equipment sends communication data, the preset check word data is subjected to exclusive-or operation with w1, the obtained calculation result is subjected to exclusive-or operation with w2, the obtained calculation result is subjected to exclusive-or operation with w3 finally, and the finally obtained calculation result is used as an original check value and is added to the position of w 4. The final communication data comprises w1, w2, w3 and the original check value.
In one embodiment, before the receiving device uses the communication data, the receiving device may determine the initial word data according to a preset sequence, and perform an exclusive or calculation on the preset check word data and the initial word data in the communication data to obtain a calculation result. It should be noted that the word data calculated first in the preset sequence is the initial word data. And according to the rule that the calculation result is used as the next check word data and is subjected to XOR calculation with the next word data, calculation is respectively carried out on all the word data until all the word data contained in the communication data are calculated, and the final calculation result is the existing check value. For example, if the predetermined sequence is the sequence of calculation with w1, calculation with w2, and calculation with w3, the initial word data is w 1. And performing exclusive-or calculation on the check word data and w1, taking the calculation result as next check word data, performing exclusive-or calculation on the next check word data and w2, taking the calculation result as next check word data, and performing exclusive-or calculation on the next check word data and w3 to obtain the calculation result which is the existing check value.
Step S104: judging whether the original check value is consistent with the existing check value; if yes, go to step S105;
step S105: and determining that the communication data is normal.
In one embodiment, the obtained original check value is compared with the existing check value, whether the original check value is consistent with the existing check value or not is judged, if so, the communication data is normal, and the data dislocation is not caused in the process of writing into a memory or reading.
According to the communication data checking method provided by the invention, when receiving equipment acquires communication data from a memory, an original check value contained in the communication data is extracted; according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result; acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data; judging whether the original check value is consistent with the existing check value; if so, the communication data is determined to be normal. Therefore, the communication data is verified after the receiving device acquires the communication data from the storage. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; when the two are not consistent, the data dislocation of the communication data is determined, so that whether the data dislocation occurs in the process of writing the communication data into the memory or reading the communication data is verified, and the correctness of the used communication data is ensured.
In an embodiment, the method for checking communication data provided in the embodiment of the present invention further includes, before extracting an original check value included in the communication data:
all data currently stored is updated.
Specifically, before extracting the original check value included in the communication data, it may be understood that an update operation may be performed on all currently stored data before the receiving device uses the communication data, so as to ensure that correct communication data is acquired.
In an embodiment, the method for checking communication data provided in the embodiment of the present invention further includes:
and when the original check value is inconsistent with the existing check value, determining that the communication data is misplaced, and discarding the communication data.
Specifically, when the original check value is inconsistent with the existing check value, it can be described that the communication data has data misalignment, and at this time, the misaligned communication data can be discarded, so that the occupation of space resources is reduced.
In an embodiment, the method for checking communication data provided in the embodiment of the present invention further includes:
judging whether update information for updating the check word data is received or not;
and if so, updating the check word data according to the updating information.
It should be noted that, those skilled in the art may determine different check word data according to the actual application, and those skilled in the art may also perform an update operation on currently used check word data. When receiving the update information for updating the check word data, the check word data can be updated according to the update information, so as to improve the flexibility of the communication data verification process.
In an embodiment, the method for verifying communication data according to the embodiment of the present invention further includes, after discarding the communication data, the following steps:
and generating abnormal information and feeding back the abnormal information to acquire the communication data again.
Specifically, when the original check value is inconsistent with the existing check value, it may be determined that the communication data has a data misalignment condition, and before discarding the communication data, abnormal information may be generated for feedback, so as to perform an operation of acquiring the communication data again, and after acquiring the communication data again, the original communication data may be discarded.
In an embodiment, the method for checking communication data provided in the embodiment of the present invention further includes:
and informing the operation and maintenance personnel to process the abnormal situation according to the pre-stored contact information of the operation and maintenance personnel.
Specifically, the contact information of the operation and maintenance personnel, such as a mailbox or a telephone number, may be stored in advance. When the communication data is found to have the data dislocation situation, the operation and maintenance personnel can be informed of the abnormal situation according to the pre-stored contact way of the operation and maintenance personnel, so that the operation and maintenance personnel can know the verification situation of the communication data in time and can process the abnormal situation in time.
The invention also provides a communication data checking device and a corresponding embodiment of the communication data checking equipment. It should be noted that the present invention describes the embodiments from two perspectives, one is based on the functional module, and the other is based on the hardware.
Fig. 2 is a structural diagram of a communication data verification apparatus according to an embodiment of the present invention; as shown in fig. 2, an apparatus for verifying communication data according to an embodiment of the present invention includes:
the extracting module 10 is configured to extract an original check value included in the communication data when the receiving device acquires the communication data from the memory;
the calculation module 11 is configured to perform xor calculation on preset check word data and initial word data in the communication data according to a preset sequence to obtain a calculation result;
an obtaining module 12, configured to obtain an existing check value according to a rule that an exclusive or calculation is performed on a calculation result serving as next check word data and the next word data;
a judging module 13, configured to judge whether an original check value is consistent with an existing check value; if yes, entering a determining module;
and the determining module 14 is used for determining that the communication data is normal.
In one embodiment, the apparatus for checking communication data provided by the present invention further includes:
and the updating module is used for updating all currently stored data before extracting the original check value contained in the communication data.
In one embodiment, the apparatus for checking communication data provided by the present invention further includes:
and the discarding module is used for determining that the communication data has misplaced when the original check value is inconsistent with the existing check value, and discarding the communication data.
In one embodiment, the apparatus for checking communication data provided by the present invention further includes:
the judging module is used for judging whether updating information used for updating the check word data is received or not; and if so, updating the check word data according to the updating information.
In one embodiment, the apparatus for checking communication data provided by the present invention further includes:
and the generating module is used for generating abnormal information and feeding back the abnormal information after discarding the communication data so as to obtain the communication data again.
In one embodiment, the apparatus for checking communication data provided by the present invention further includes:
and the notification module is used for notifying the operation and maintenance personnel to process the abnormal situation according to the pre-stored contact information of the operation and maintenance personnel.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here.
According to the communication data checking device provided by the invention, when receiving equipment acquires communication data from a memory, an original check value contained in the communication data is extracted; according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result; acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data; judging whether the original check value is consistent with the existing check value; if so, the communication data is determined to be normal. Therefore, the communication data is verified after the receiving device acquires the communication data from the storage. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; when the two are not consistent, the data dislocation of the communication data is determined, so that whether the data dislocation occurs in the process of writing the communication data into the memory or reading the communication data is verified, and the correctness of the used communication data is ensured.
Fig. 3 is a structural diagram of a verification device for communication data according to an embodiment of the present invention; as shown in fig. 3, an embodiment of the present invention provides a device for verifying communication data, which includes a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the method for verifying communication data according to any one of the above when executing a computer program.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
The memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after being loaded and executed by the processor 21, the computer program can implement relevant steps in the communication data verification method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include, among others, Windows, Unix, Linux, and the like.
In some embodiments, the verification device for the communication data may further include an input/output interface 22, a communication interface 23, a power supply 24, and a communication bus 25.
Those skilled in the art will appreciate that the configuration shown in fig. 3 does not constitute a limitation of the verification device for the communication data and may include more or fewer components than those shown.
Since the embodiments of this section correspond to the embodiments of the method section, reference is made to the description of the embodiments of the method section for the embodiments of this section, and details are not repeated here. In some embodiments of the invention, the processor and memory may be connected by a bus or other means.
The communication data verification device provided by the invention can realize the following method: when the receiving equipment acquires the communication data from the storage, extracting an original check value contained in the communication data; according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in communication data to obtain a calculation result; acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data; judging whether the original check value is consistent with the existing check value; if so, the communication data is determined to be normal. Therefore, the communication data is verified after the receiving device acquires the communication data from the storage. Comparing the obtained existing check value with the original check value, and determining that the communication data is normal when the obtained existing check value is consistent with the original check value; when the two are not consistent, the data dislocation of the communication data is determined, so that whether the data dislocation occurs in the process of writing the communication data into the memory or reading the communication data is verified, and the correctness of the used communication data is ensured.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, device, equipment and medium for verifying communication data provided by the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for verifying communication data, comprising:
when receiving equipment acquires communication data from a memory, extracting an original check value contained in the communication data;
according to a preset sequence, carrying out XOR calculation on preset check word data and initial word data in the communication data to obtain a calculation result;
acquiring an existing check value according to a rule that the calculation result is used as next check word data and is subjected to exclusive or calculation with the next word data;
judging whether the original check value is consistent with the existing check value;
if so, determining that the communication data is normal.
2. The method according to claim 1, further comprising, before the extracting the original check value included in the communication data:
all data currently stored is updated.
3. The method for verifying communication data according to claim 1, further comprising:
and when the original check value is inconsistent with the existing check value, determining that the communication data is misplaced, and discarding the communication data.
4. The method for verifying communication data according to claim 1, wherein the extracting of the original verification value included in the communication data specifically includes:
and extracting the fourth word data in the data segment of the communication data as an original check value.
5. The method for verifying communication data according to claim 1, further comprising:
judging whether update information for updating the check word data is received or not;
and if so, updating the check word data according to the updating information.
6. The method for verifying communication data according to claim 3, further comprising, after the discarding operation is performed on the communication data:
and generating abnormal information and feeding back the abnormal information to acquire communication data again.
7. The method for verifying communication data according to claim 6, further comprising:
and informing the operation and maintenance personnel to process the abnormal situation according to the pre-stored contact information of the operation and maintenance personnel.
8. An apparatus for verifying communication data, comprising:
the device comprises an extraction module, a verification module and a verification module, wherein the extraction module is used for extracting an original verification value contained in communication data when the receiving equipment acquires the communication data from a memory;
the calculation module is used for carrying out XOR calculation on preset check word data and initial word data in the communication data according to a preset sequence to obtain a calculation result;
the acquisition module is used for acquiring the existing check value according to the rule that the calculation result is used as the next check word data and is subjected to XOR calculation with the next word data;
the judging module is used for judging whether the original check value is consistent with the existing check value; if yes, entering a determining module;
and the determining module is used for determining that the communication data is normal.
9. A verification device for communication data, comprising a memory for storing a computer program;
a processor for implementing the steps of the method of checking communication data according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for verification of communication data according to any one of claims 1 to 7.
CN202010333183.4A 2020-04-24 2020-04-24 Communication data checking method, device, equipment and medium Pending CN111555841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010333183.4A CN111555841A (en) 2020-04-24 2020-04-24 Communication data checking method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010333183.4A CN111555841A (en) 2020-04-24 2020-04-24 Communication data checking method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN111555841A true CN111555841A (en) 2020-08-18

Family

ID=72007649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010333183.4A Pending CN111555841A (en) 2020-04-24 2020-04-24 Communication data checking method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111555841A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114547033A (en) * 2022-02-22 2022-05-27 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data
CN114978417A (en) * 2022-03-29 2022-08-30 浙江大学 Data communication verification method and system based on two BLVDS buses
CN115473717A (en) * 2022-09-05 2022-12-13 杭州思拓瑞吉科技有限公司 Energy storage system time sequence data verification method based on co-prime power remainder
CN116991649A (en) * 2023-07-26 2023-11-03 深圳市兴威帆电子技术有限公司 Data communication verification method, system, equipment and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552792A (en) * 2009-05-20 2009-10-07 中国电信股份有限公司 A method and apparatus for transmitting information with dynamic secondary cipher key
CN102542319A (en) * 2010-12-10 2012-07-04 上海华虹集成电路有限责任公司 Method for protecting keys of purchase secure access module (PSAM) card
CN103838638A (en) * 2014-03-20 2014-06-04 华为技术有限公司 Calibration method and device for FPGA plug-in storage
CN104991263A (en) * 2015-06-29 2015-10-21 中国电建集团成都勘测设计研究院有限公司 Method for performing satellite positioning signal resolution
CN106022107A (en) * 2015-10-30 2016-10-12 北京中电华大电子设计有限责任公司 Method and system for protecting program execution integrity
CN106201767A (en) * 2016-08-10 2016-12-07 深圳市蜂联科技有限公司 A kind of based on ECC check prevent SD from using during the method surprisingly distorted of flash
CN107797881A (en) * 2017-12-06 2018-03-13 郑州云海信息技术有限公司 A kind of data coherence tester method, apparatus, equipment and storage medium
CN108573172A (en) * 2017-03-08 2018-09-25 杭州海康威视数字技术股份有限公司 A kind of data check, storage method and device
CN109089334A (en) * 2018-09-26 2018-12-25 东南(福建)汽车工业有限公司 Car borne gateway controller signals routing check method
CN109492436A (en) * 2018-11-29 2019-03-19 深圳市网心科技有限公司 A kind of file verification method and relevant apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552792A (en) * 2009-05-20 2009-10-07 中国电信股份有限公司 A method and apparatus for transmitting information with dynamic secondary cipher key
CN102542319A (en) * 2010-12-10 2012-07-04 上海华虹集成电路有限责任公司 Method for protecting keys of purchase secure access module (PSAM) card
CN103838638A (en) * 2014-03-20 2014-06-04 华为技术有限公司 Calibration method and device for FPGA plug-in storage
CN104991263A (en) * 2015-06-29 2015-10-21 中国电建集团成都勘测设计研究院有限公司 Method for performing satellite positioning signal resolution
CN106022107A (en) * 2015-10-30 2016-10-12 北京中电华大电子设计有限责任公司 Method and system for protecting program execution integrity
CN106201767A (en) * 2016-08-10 2016-12-07 深圳市蜂联科技有限公司 A kind of based on ECC check prevent SD from using during the method surprisingly distorted of flash
CN108573172A (en) * 2017-03-08 2018-09-25 杭州海康威视数字技术股份有限公司 A kind of data check, storage method and device
CN107797881A (en) * 2017-12-06 2018-03-13 郑州云海信息技术有限公司 A kind of data coherence tester method, apparatus, equipment and storage medium
CN109089334A (en) * 2018-09-26 2018-12-25 东南(福建)汽车工业有限公司 Car borne gateway controller signals routing check method
CN109492436A (en) * 2018-11-29 2019-03-19 深圳市网心科技有限公司 A kind of file verification method and relevant apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114547033A (en) * 2022-02-22 2022-05-27 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data
CN114547033B (en) * 2022-02-22 2024-01-16 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for managing key product data
CN114978417A (en) * 2022-03-29 2022-08-30 浙江大学 Data communication verification method and system based on two BLVDS buses
CN114978417B (en) * 2022-03-29 2023-12-19 浙江大学 Data communication verification method and system based on two-way BLVDS buses
CN115473717A (en) * 2022-09-05 2022-12-13 杭州思拓瑞吉科技有限公司 Energy storage system time sequence data verification method based on co-prime power remainder
CN115473717B (en) * 2022-09-05 2023-09-01 杭州思拓瑞吉科技有限公司 Energy storage system time sequence data verification method based on prime power remainder
CN116991649A (en) * 2023-07-26 2023-11-03 深圳市兴威帆电子技术有限公司 Data communication verification method, system, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111555841A (en) Communication data checking method, device, equipment and medium
CN108427632B (en) Automatic test method and device
CN110289997B (en) Log message checking method, device and system
CN109344074B (en) Cross-platform automatic testing method and system
CN112100081B (en) Upgrade test method and device based on double-core intelligent electric meter and computer equipment
CN106372026B (en) link detection method and receiving equipment
CN112558875A (en) Data verification method and device, electronic equipment and storage medium
CN108028767B (en) Method for upgrading adapter, mobile terminal and adapter
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN107679423A (en) Partition integrity inspection method and device
CN112287402A (en) Data integrity checking method, system and device
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN114327996A (en) Data storage method and device, storage medium and electronic equipment
CN109871294B (en) Method and device for checking data and processing request
CN115454860A (en) Automatic testing method and device, storage medium and electronic equipment
CN114356680A (en) Verification method and device and electronic equipment
CN106528248A (en) Downloading method and system of mobile terminal based on software integrity
CN113535578A (en) CTS (clear to send) testing method, device and testing equipment
CN110492979B (en) Incremental data transmission method and device, slave and storage medium
CN110798385B (en) Method, device, equipment and medium for testing wide area network access setting function
CN112148514B (en) Watchdog resetting method and device, storage medium and electronic equipment
CN115373771A (en) Method, system and related device for debugging field data of UI (user interface)
CN110716855B (en) Processor instruction set testing method and device
CN108304188B (en) Data type conversion method and terminal
CN117094259A (en) Static time sequence analysis environment configuration method and device for integrated circuit

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200818

RJ01 Rejection of invention patent application after publication