CN113204447A - Calculation tool for data word message verification and calculation method thereof - Google Patents

Calculation tool for data word message verification and calculation method thereof Download PDF

Info

Publication number
CN113204447A
CN113204447A CN202110485977.7A CN202110485977A CN113204447A CN 113204447 A CN113204447 A CN 113204447A CN 202110485977 A CN202110485977 A CN 202110485977A CN 113204447 A CN113204447 A CN 113204447A
Authority
CN
China
Prior art keywords
message
calculation
word
data word
unit
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
CN202110485977.7A
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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN202110485977.7A priority Critical patent/CN113204447A/en
Publication of CN113204447A publication Critical patent/CN113204447A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention discloses a calculation tool for checking data word messages and a calculation method thereof, which specifically comprises the following steps: the device comprises an input unit, a processing unit, a verification calculation unit and a display unit; the input unit is used for inputting data word messages, and the data word messages are hexadecimal; the processing unit converts the data word message into a decimal message word array; the check calculation unit calculates the check sum of the message word array according to the calculation method of the check sum; the display unit is used for displaying the calculation result of the message word array checksum. When the method is used for testing data messages, various message coverage protocol contents can be generated, each message can be subjected to checksum calculation, and the method is higher in efficiency and less prone to errors than the method for calculating the checksums in a manual mode.

Description

Calculation tool for data word message verification and calculation method thereof
Technical Field
The invention belongs to the technical field of information query, and particularly relates to a calculation tool for checking data word messages and a calculation method thereof.
Background
The GJB1188A-1999 aircraft hangar electrical connection system interface requirement sets forth a checksum requirement for data word messages: when each data word in the message (containing the checksum) is circularly right shifted and each bit of the shifted data words is summed (not carried) using a modulo-2 algorithm, it should be 0. The method for circularly moving right comprises the following steps: a certain data word is right shifted by a number of bits equal to the number of words of the data word preceding it in the message, i.e. the first word is not shifted, the second word is shifted one bit to the right in a cycle, the third word is shifted two to the right in a cycle, etc. As data word message one: 0001 c 0000 f 001 e0b (checksum); data word message two: 123456789 abc def 0000082 f0 (checksum). When testing data messages of the protocol, various message coverage protocol contents need to be generated, each message needs to calculate a checksum, and the checksum is calculated in a manual mode, so that the efficiency is low and errors are easy to occur.
Disclosure of Invention
In order to solve the above problems, the present invention provides a calculation tool for data word message verification, comprising an input unit, a processing unit, a verification calculation unit, and a display unit; the input unit is used for inputting data word messages, and the data word messages are hexadecimal; the processing unit converts the data word message into a decimal message word array; the check calculation unit calculates the check sum of the message word array according to a check sum calculation method; the display unit is used for displaying the calculation result of the message word array checksum.
Preferably, the data word message has a length that is an integer multiple of a word.
A method of computing a computational tool for data word message verification, comprising the steps of:
s1: inputting the data word message on an input unit;
s2: the word processing unit carries out word conversion processing on the data word message and outputs a message word array;
s3: the check calculation unit calculates the check sum of the message word array;
s4: the result of the checksum is displayed by the display unit.
Has the advantages that: when the method is used for testing data messages, various message coverage protocol contents can be generated, each message can be subjected to checksum calculation, and the method is higher in efficiency and less prone to errors than the method for calculating the checksums in a manual mode.
Drawings
FIG. 1 is a schematic diagram of an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that the terms first, second, third, etc. are used herein to describe various components or features, but these components or features are not limited by these terms. These terms are only used to distinguish one element or part from another element or part. Terms such as "first," "second," and other numerical terms when used herein do not imply a sequence or order unless clearly indicated by the context. For convenience of description, spatially relative terms such as "inner", "outer", "upper", "lower", "left", "right", "upper", "left", "right", and the like are used herein to describe the orientation relation of the components or parts in the present embodiment, but these spatially relative terms do not limit the orientation of the technical features in practical use.
As shown in fig. 1, a calculation tool for data word message verification includes an input unit, a processing unit, a verification calculation unit, and a display unit; the input unit is used for inputting data word messages, and the data word messages are hexadecimal; the processing unit converts the data word message into a decimal message word array; the check calculation unit calculates the check sum of the message word array according to a check sum calculation method; the display unit is used for displaying the calculation result of the message word array checksum.
Preferably, the data word message has a length that is an integer multiple of a word.
The specific principle of the calculation tool is as follows: a data message word is input from the input unit, wherein the data word message in hexadecimal representation has a message length which is an integer multiple of the word, i.e. 4 times the hexadecimal character, e.g. 1234H. The word processing unit converts hexadecimal words into an array of decimal representative message words. And the check calculation unit calculates the check sum of the message word array according to a check sum calculation method. The checksum calculation method is a known calculation method. And finally, outputting the checksum calculation result to a calculation result display unit in a text form.
A method of computing a computational tool for data word message verification, comprising the steps of:
s1: inputting the data word message on an input unit;
s2: the word processing unit carries out word conversion processing on the data word message and outputs a message word array;
s3: the check calculation unit calculates the check sum of the message word array;
s4: the result of the checksum is displayed by the display unit.
When the calculation tool is used for testing data messages, various message coverage protocol contents can be generated, the checksum calculation is carried out on each message, and the efficiency is higher than that of calculating the checksum in a manual mode and errors are not easy to occur.
The above embodiments are not limited to the technical solutions of the embodiments themselves, and the embodiments may be combined with each other into a new embodiment. The above embodiments are only for illustrating the technical solutions of the present invention and are not limited thereto, and any modification or equivalent replacement without departing from the spirit and scope of the present invention should be covered within the technical solutions of the present invention.

Claims (3)

1. A calculation tool for data word message verification is characterized by comprising an input unit, a processing unit, a verification calculation unit and a display unit;
the input unit is used for inputting data word messages, and the data word messages are hexadecimal;
the processing unit converts the data word message into a decimal message word array;
the check calculation unit calculates the check sum of the message word array according to a check sum calculation method;
the display unit is used for displaying the calculation result of the message word array checksum.
2. The computing tool for data word message verification as claimed in claim 1, wherein the data word message is an integer multiple of a word in length.
3. A method of computing a computational tool for data word message verification, comprising the steps of:
s1: inputting the data word message on an input unit;
s2: the word processing unit carries out word conversion processing on the data word message and outputs a message word array;
s3: the check calculation unit calculates the check sum of the message word array;
s4: the result of the checksum is displayed by the display unit.
CN202110485977.7A 2021-04-30 2021-04-30 Calculation tool for data word message verification and calculation method thereof Pending CN113204447A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485977.7A CN113204447A (en) 2021-04-30 2021-04-30 Calculation tool for data word message verification and calculation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485977.7A CN113204447A (en) 2021-04-30 2021-04-30 Calculation tool for data word message verification and calculation method thereof

Publications (1)

Publication Number Publication Date
CN113204447A true CN113204447A (en) 2021-08-03

Family

ID=77030010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485977.7A Pending CN113204447A (en) 2021-04-30 2021-04-30 Calculation tool for data word message verification and calculation method thereof

Country Status (1)

Country Link
CN (1) CN113204447A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404701A (en) * 2000-02-17 2003-03-19 诺基亚移动电话有限公司 Backwards compatible, extended method to execute check number calculation of IMEI
US20080194223A1 (en) * 2005-08-20 2008-08-14 Cellstar, Ltd. System and Method for Processing MEID Data
CN110647490A (en) * 2019-10-22 2020-01-03 深圳市康冠智能科技有限公司 Data transmission method, device, equipment and computer storage medium
CN112506759A (en) * 2020-11-23 2021-03-16 四川航天烽火伺服控制技术有限公司 Automatic testing method and device for servo system control software and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1404701A (en) * 2000-02-17 2003-03-19 诺基亚移动电话有限公司 Backwards compatible, extended method to execute check number calculation of IMEI
US20080194223A1 (en) * 2005-08-20 2008-08-14 Cellstar, Ltd. System and Method for Processing MEID Data
CN110647490A (en) * 2019-10-22 2020-01-03 深圳市康冠智能科技有限公司 Data transmission method, device, equipment and computer storage medium
CN112506759A (en) * 2020-11-23 2021-03-16 四川航天烽火伺服控制技术有限公司 Automatic testing method and device for servo system control software and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SAMVEN_7: "校验和的计算方法", 《CSDN博客》 *
魔罗: "校验码生成工具", 《CSDN博客》 *

Similar Documents

Publication Publication Date Title
US9792812B1 (en) Method for correcting electricity meter readings
CN108388598B (en) Electronic device, data storage method, and storage medium
US10599511B2 (en) Method and architecture for critical systems utilizing multi-centric orthogonal topology and pervasive rules-driven data and control encoding
CN112214349B (en) Data cyclic redundancy check device and method
US5781568A (en) Error detection and correction method and apparatus for computer memory
EP4020874A1 (en) Efficient quantum-attack resistant functional-safe hash building block
CN109299193A (en) Method of data synchronization and relevant device
CN104040899A (en) Generating a code alphabet of symbols to generate codewords for words used with a program
CN113297001A (en) RAID (redundant array of independent disks) coding and decoding method and coding and decoding circuit
EP2326014B1 (en) Error detecting/correcting code generating circuit and method of controlling the same
CN102637422A (en) Matrix obtaining method, character display device and system and electronic signature tool
CN112634417B (en) Method, device and equipment for generating role animation and storage medium
CN112543103A (en) Account address generation method and verification method, device, equipment and medium
CN113204447A (en) Calculation tool for data word message verification and calculation method thereof
CN112256472B (en) Distributed data retrieval method and device, electronic equipment and storage medium
CN112486848A (en) Test data generation method and device, chip and storage medium
CN112612638A (en) Hardware implementation method based on USB3.2 protocol 16-bit cyclic redundancy check
CN103326886B (en) A kind of communication calibration equipment
CN113449062A (en) Track processing method and device, electronic equipment and storage medium
CN100418312C (en) Digital data transmission error-detecting method and system
CN101355403B (en) Error-detection error-correction device for universal frame-forming protocol and control method thereof
JP3879082B2 (en) Byte error correction / detection device
CN113721895B (en) Application modeling method, system, device, computer equipment and readable storage medium
CN115391689B (en) Short link generation method, device, equipment and storage medium
JP2024066590A (en) CRC calculation circuit and abnormality monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination