CN117792568A - Reliable communication method and system based on accumulated value - Google Patents

Reliable communication method and system based on accumulated value Download PDF

Info

Publication number
CN117792568A
CN117792568A CN202311648874.3A CN202311648874A CN117792568A CN 117792568 A CN117792568 A CN 117792568A CN 202311648874 A CN202311648874 A CN 202311648874A CN 117792568 A CN117792568 A CN 117792568A
Authority
CN
China
Prior art keywords
accumulated value
data
verification
accumulated
target
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.)
Granted
Application number
CN202311648874.3A
Other languages
Chinese (zh)
Other versions
CN117792568B (en
Inventor
陶磊
曹阳
商宏宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jundun Equipment Technology Co ltd
Original Assignee
Beijing Jundun Equipment Technology 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 Beijing Jundun Equipment Technology Co ltd filed Critical Beijing Jundun Equipment Technology Co ltd
Priority to CN202311648874.3A priority Critical patent/CN117792568B/en
Publication of CN117792568A publication Critical patent/CN117792568A/en
Application granted granted Critical
Publication of CN117792568B publication Critical patent/CN117792568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a reliable communication method and a system based on an accumulated value, which relate to the technical field of communication. The invention improves the data transmission efficiency and the real-time performance and ensures the data reliability under the condition of communication failure.

Description

Reliable communication method and system based on accumulated value
Technical Field
The invention relates to the technical field of communication, in particular to a reliable communication method and system based on accumulated values.
Background
With the rapid development of wireless transmission technology, wireless communication is increasingly used between the range devices. However, there are often problems of signal instability and transmission interruption. In the existing communication system, a real-time value is generally used for data transmission, which means that each message contains the complete information of the current data, however, in the case of a large data volume or a high requirement on real-time performance, the transmission mode may cause low communication efficiency, and in addition, when a communication link fails or a data packet is lost, the real-time value transmission method easily causes inaccurate data reception or loss.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a reliable communication method and a system based on an accumulated value, so as to improve the data transmission efficiency and the real-time performance and maintain the reliability under the condition of communication failure.
The technical scheme of the embodiment of the invention is as follows:
in one aspect, a reliable communication method based on accumulated values, the method comprising:
the method comprises the steps that a sender carries out differential calculation on data to be sent and last sent data to obtain an accumulated value, and the accumulated value is sent to a receiver;
and the receiver receives the accumulated value, verifies the accumulated value, and when the verification is successful, uses the accumulated value as a target accumulated value, and restores the data to be transmitted according to the target accumulated value and the received last transmitted data.
Preferably, the method for performing differential calculation on the data to be transmitted and the last transmitted data to obtain the accumulated value includes:
carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value;
performing compression coding on the original accumulated value to obtain an accumulated value;
setting check information for the accumulated value;
and sending the accumulated value and the verification information to a receiver.
Preferably, the method for receiving the accumulated value and verifying the accumulated value, and taking the accumulated value as a target accumulated value when verification is successful comprises the following steps:
the receiver receives the accumulated value and the verification information;
decompressing and decoding the accumulated value;
and verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
Preferably, the method for setting the check information for the accumulated value includes:
when the data to be sent is the ith sending data, determining the sending serial number of the accumulated value as i;
determining a verification parameter from the accumulated value according to the transmission sequence number;
performing scrambling on the verification algorithm table according to the transmission sequence number to obtain a target verification algorithm table;
and determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
Preferably, the differential calculation method comprises any one of a fixed difference method and a floating point difference method, and the compression coding method comprises any one of a Huffman coding algorithm, a Fabry-Perot algorithm and an equal-length coding algorithm.
In a second aspect, a reliable communication system based on accumulated values, the system comprising:
the sending module is used for carrying out differential calculation on the data to be sent and the last sent data to obtain an accumulated value;
and the receiving module is used for receiving the accumulated value, verifying the accumulated value, taking the accumulated value as a target accumulated value when the verification is successful, and restoring the data to be transmitted according to the target accumulated value and the received last transmitted data.
Preferably, the transmitting module includes:
the differential calculation unit is used for carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value;
the compression coding unit is used for carrying out compression coding on the original accumulated value to obtain an accumulated value;
a check setting unit for setting check information for the accumulated value;
and the sending unit is used for sending the accumulated value and the verification information to a receiver.
Preferably, the receiving module includes:
a receiving unit, configured to receive the accumulated value and the verification information;
the decompression decoding unit is used for performing decompression decoding on the accumulated value;
and the verification unit is used for verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
Preferably, the check setting unit includes:
a sequence determining unit, configured to determine, when the data to be sent is the ith transmission data, a transmission sequence number of the accumulated value as i;
the parameter determining unit is used for determining a verification parameter from the accumulated value according to the transmission sequence number;
the algorithm table determining unit is used for carrying out scrambling on the verification algorithm table according to the transmission sequence number to obtain a target verification algorithm table;
and the algorithm determining unit is used for determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
Preferably, the differential calculation method comprises any one of a fixed difference method and a floating point difference method, and the compression coding method comprises any one of a Huffman coding algorithm, a Fabry-Perot algorithm and an equal-length coding algorithm.
The beneficial effects of the invention are as follows: the invention is different from the traditional real-time value transmission mode, only the change part of the data is transmitted instead of the complete data, thus the data quantity transmitted can be reduced and the communication efficiency can be improved. Meanwhile, when the communication link fails or the data packet is lost, the receiver can recover and reconstruct according to the received incremental data, so that the accuracy and reliability of data reception are enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. Like elements or portions are generally identified by like reference numerals throughout the several figures. In the drawings, elements or portions thereof are not necessarily drawn to scale.
FIG. 1 is a flow chart of a reliable communication method based on accumulated values according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a reliable communication system based on accumulated values according to an embodiment of the present invention.
Detailed Description
Embodiments of the technical scheme of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present invention, and thus are merely examples, and are not intended to limit the scope of the present invention.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.
Example 1
As shown in fig. 1, an embodiment of the present invention provides a reliable communication method based on an accumulated value, where the method includes:
and step 1, the sender performs differential calculation on the data to be sent and the last sent data to obtain an accumulated value, and the accumulated value is sent to the receiver.
In the embodiment of the present invention, the data to be sent and the last sending data are shooting data sampled by the shooting range device, and in other wireless communication scenes, the data to be sent and the last sending data may be other scene data.
The sender performs differential calculation on the current data and the last piece of data to obtain a change part, namely an accumulated value, wherein the differential calculation method comprises a fixed difference method and a floating point difference method, and the method can be selected according to actual requirements without limitation in the embodiment of the invention.
Wherein the fixed differential algorithm refers to calculating the difference d=b-a for given two integers a and b, and fixing the difference d to a constant. Such algorithms are commonly used in the field of digital signal processing and the like. The floating point difference algorithm is to calculate the difference between two floating points, i.e., d=b-a, and store the difference d as a floating point number. Such algorithms are commonly used in the field of computer graphics and the like. Whether fixed differential or floating point differential, the purpose of the method is to perform differential operation on the data to be transmitted and the last transmitted data to obtain a new value so as to realize incremental transmission of the data.
In the embodiment of the invention, the method for carrying out differential calculation on the data to be sent and the last sent data to obtain the accumulated value comprises the following steps: carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value; performing compression coding on the original accumulated value to obtain an accumulated value; setting check information for the accumulated value; and sending the accumulated value and the verification information to a receiver.
The compression coding method comprises Huffman coding, arithmetic coding and the like, and the accumulated value is coded to reduce the size of transmission data, so that the transmission efficiency is improved.
The method for setting the check information comprises the steps of generating the check code by using a checksum, a Cyclic Redundancy Check (CRC), a Message Authentication Code (MAC) or other technologies, and the integrity and the correctness of the accumulated value can be improved by setting the check information.
And step 2, the receiving party receives the accumulated value, verifies the accumulated value, and when the verification is successful, uses the accumulated value as a target accumulated value, and restores the data to be transmitted according to the target accumulated value and the received last transmitted data.
In the embodiment of the invention, the method for receiving the accumulated value and verifying the accumulated value, and taking the accumulated value as a target accumulated value when the verification is successful comprises the following steps: the receiver receives the accumulated value and the verification information; decompressing and decoding the accumulated value; and verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
After receiving the data, the receiver performs decompression decoding operation on the received data, the decompression decoding method corresponds to the compression encoding method, and can be set according to actual requirements, in this embodiment, no limitation is made to restore the accumulated value of the compression encoding shallow, and the authenticity of the accumulated value is verified according to verification information, so as to verify the integrity and correctness of the data, if the verification is not passed, the data is indicated to be incorrect or tampered in the transmission process, if the verification is passed, the data is indicated to be target data, the data can be restored to be transmitted, at this time, the data to be transmitted can be obtained by performing differential restoration according to the target accumulated value and the last transmitted data, so that reliable transmission of the data is realized, wherein the restoration method corresponds to the differential method, and can be set according to actual requirements, and no limitation is made in this embodiment.
On the basis of the above embodiment, the method for setting the check information for the accumulated value includes: when the data to be sent is the ith sending data, determining the sending serial number of the accumulated value as i; determining a verification parameter from the accumulated value according to the transmission sequence number; performing scrambling on the verification algorithm table according to the transmission sequence number to obtain a target verification algorithm table; and determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
The checking parameters comprise row parameters and column parameters, the checking parameters are determined from the accumulated value according to the serial number, the ith numerical value in the accumulated value is determined as a syndrome parameter according to the serial number i, the checking parameters are determined according to a preset function, and the checking parameters comprise row parameters and column parameters, for example, the preset function is as follows: y1=2x+k, y2=x+k, where x is the sequence number and k is the syndrome parameter.
In other embodiments, multiple verification algorithm tables may be generated, one verification algorithm table is selected according to the serial number, and then a corresponding target verification algorithm is selected according to the verification parameter.
The embodiment of the invention provides a verification algorithm setting method, which is a verification information calculation method for converting a transmission sequence number into an accumulated value transmitted each time, so that the problem that data are tampered and difficult to find due to the fact that the continuous transmission data verification method is the same and is easy to crack is avoided, and the safety and reliability of data transmission are further improved.
The reliable communication method based on the accumulated value can calculate the accumulated value of the data to be transmitted and the last transmitted data, verify the accumulated value, and restore the data to be transmitted according to the target accumulated value and the last received transmitted data when the verification is successful by taking the accumulated value as the target accumulated value. The invention improves the data transmission efficiency and the real-time performance, and ensures the data reliability under the condition of communication failure.
The invention is different from the traditional real-time value transmission mode, only the change part of the data is transmitted instead of the complete data, thus the data quantity transmitted can be reduced and the communication efficiency can be improved. Meanwhile, when the communication link fails or the data packet is lost, the receiver can recover and reconstruct according to the received incremental data, so that the accuracy and reliability of data reception are enhanced.
Example 2
Based on the same inventive concept, the embodiment of the invention also provides a reliable communication system based on the accumulated value, which comprises:
the sending module is used for carrying out differential calculation on the data to be sent and the last sent data to obtain an accumulated value;
and the receiving module is used for receiving the accumulated value, verifying the accumulated value, taking the accumulated value as a target accumulated value when the verification is successful, and restoring the data to be transmitted according to the target accumulated value and the received last transmitted data.
In an embodiment of the present invention, the sending module includes:
the differential calculation unit is used for carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value;
the compression coding unit is used for carrying out compression coding on the original accumulated value to obtain an accumulated value;
a check setting unit for setting check information for the accumulated value;
and the sending unit is used for sending the accumulated value and the verification information to a receiver.
In an embodiment of the present invention, the receiving module includes:
a receiving unit, configured to receive the accumulated value and the verification information;
the decompression decoding unit is used for performing decompression decoding on the accumulated value;
and the verification unit is used for verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
In an embodiment of the present invention, the check setting unit includes:
a sequence determining unit, configured to determine, when the data to be sent is the ith transmission data, a transmission sequence number of the accumulated value as i;
the parameter determining unit is used for determining an ith bit number as a verification parameter from the accumulated value according to the serial number and determining a target verification parameter according to the serial number and the verification parameter;
the parameter determining unit is used for determining a verification parameter from the accumulated value according to the serial number;
the algorithm table determining unit is used for carrying out scrambling on the verification algorithm table according to the serial number to obtain a target verification algorithm table;
and the algorithm determining unit is used for determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
In the embodiment of the invention, the differential calculation method comprises any one of a fixed difference method and a floating point difference method, and the compression coding method comprises any one of a Huffman coding algorithm, a Fabry-Perot algorithm and an equal-length coding algorithm.
It should be understood that, for the same inventive concept, the reliable communication system based on the accumulated value provided in the embodiments of the present invention and the reliable communication method based on the accumulated value provided in the foregoing embodiments, reference may be made to the foregoing embodiments for more detailed working principles of each module and unit in the embodiments of the present invention, which are not repeated in the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention, and are intended to be included within the scope of the appended claims and description.

Claims (10)

1. A method of reliable communication based on accumulated values, the method comprising:
the method comprises the steps that a sender carries out differential calculation on data to be sent and last sent data to obtain an accumulated value, and the accumulated value is sent to a receiver;
and the receiver receives the accumulated value, verifies the accumulated value, and when the verification is successful, uses the accumulated value as a target accumulated value, and restores the data to be transmitted according to the target accumulated value and the received last transmitted data.
2. The reliable communication method based on accumulated value according to claim 1, wherein the method for performing differential calculation on the data to be transmitted and the last transmitted data to obtain the accumulated value comprises:
carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value;
performing compression coding on the original accumulated value to obtain an accumulated value;
setting check information for the accumulated value;
and sending the accumulated value and the verification information to a receiver.
3. A reliable communication method based on accumulated values according to claim 2, wherein the method of receiving and verifying the accumulated values, and upon success of the verification, regarding the accumulated values as target accumulated values comprises:
the receiver receives the accumulated value and the verification information;
decompressing and decoding the accumulated value;
and verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
4. A reliable communication method based on accumulated values according to claim 3, wherein the method of setting check information for the accumulated values comprises:
when the data to be sent is the ith sending data, determining the sending serial number of the accumulated value as i;
determining a verification parameter from the accumulated value according to the transmission sequence number;
performing scrambling on the verification algorithm table according to the transmission sequence number to obtain a target verification algorithm table;
and determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
5. The reliable communication method based on accumulated values according to claim 1, wherein the differential calculation method comprises any one of a fixed difference method and a floating point difference method, and the compression coding method comprises any one of a huffman coding algorithm, a douglas-plck algorithm and an equal-length coding algorithm.
6. A reliable communication system based on accumulated values, the system comprising:
the sending module is used for carrying out differential calculation on the data to be sent and the last sent data to obtain an accumulated value;
and the receiving module is used for receiving the accumulated value, verifying the accumulated value, taking the accumulated value as a target accumulated value when the verification is successful, and restoring the data to be transmitted according to the target accumulated value and the received last transmitted data.
7. The reliable communication system based on accumulated values of claim 6 wherein the transmitting module comprises:
the differential calculation unit is used for carrying out differential calculation on the data to be transmitted and the last transmitted data to obtain an original accumulated value;
the compression coding unit is used for carrying out compression coding on the original accumulated value to obtain an accumulated value;
a check setting unit for setting check information for the accumulated value;
and the sending unit is used for sending the accumulated value and the verification information to a receiver.
8. The reliable communication system based on accumulated values of claim 7 wherein the receiving module comprises:
a receiving unit, configured to receive the accumulated value and the verification information;
the decompression decoding unit is used for performing decompression decoding on the accumulated value;
and the verification unit is used for verifying the accumulated value after decompression and decoding according to the verification information, and determining the accumulated value after decompression and decoding as a target accumulated value when verification is successful.
9. A reliable communication system based on accumulated values according to claim 3, wherein the check setting unit comprises:
a sequence determining unit, configured to determine, when the data to be sent is the ith transmission data, a transmission sequence number of the accumulated value as i;
the parameter determining unit is used for determining a verification parameter from the accumulated value according to the transmission sequence number;
the algorithm table determining unit is used for carrying out scrambling on the verification algorithm table according to the serial number to obtain a target verification algorithm table;
and the algorithm determining unit is used for determining a target verification algorithm from the target verification algorithm table according to the verification parameters.
10. The reliable communication system according to claim 6, wherein the differential calculation method includes any one of a fixed difference method and a floating point difference method, and the compression coding method includes any one of a huffman coding algorithm, a douglas-plck algorithm and an equal-length coding algorithm.
CN202311648874.3A 2023-12-04 2023-12-04 Reliable communication method and system based on accumulated value Active CN117792568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311648874.3A CN117792568B (en) 2023-12-04 2023-12-04 Reliable communication method and system based on accumulated value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311648874.3A CN117792568B (en) 2023-12-04 2023-12-04 Reliable communication method and system based on accumulated value

Publications (2)

Publication Number Publication Date
CN117792568A true CN117792568A (en) 2024-03-29
CN117792568B CN117792568B (en) 2024-07-23

Family

ID=90398909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311648874.3A Active CN117792568B (en) 2023-12-04 2023-12-04 Reliable communication method and system based on accumulated value

Country Status (1)

Country Link
CN (1) CN117792568B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3524914B1 (en) * 2002-10-29 2004-05-10 三洋電機株式会社 Checksum calculation method, checksum recording method, and communication device that can use the method
WO2018001140A1 (en) * 2016-06-28 2018-01-04 湖北锐世数字医学影像科技有限公司 Self-verification method and system for file
CN114510507A (en) * 2022-02-25 2022-05-17 平安普惠企业管理有限公司 Data verification method, device, terminal equipment and medium
CN114827287A (en) * 2021-09-29 2022-07-29 中国电力科学研究院有限公司 Data compression method and system
CN116669102A (en) * 2022-02-17 2023-08-29 深圳联友科技有限公司 Data message compression and decompression method
CN116915363A (en) * 2023-07-25 2023-10-20 东方空间技术(山东)有限公司 Data transmission method, device and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3524914B1 (en) * 2002-10-29 2004-05-10 三洋電機株式会社 Checksum calculation method, checksum recording method, and communication device that can use the method
WO2018001140A1 (en) * 2016-06-28 2018-01-04 湖北锐世数字医学影像科技有限公司 Self-verification method and system for file
CN114827287A (en) * 2021-09-29 2022-07-29 中国电力科学研究院有限公司 Data compression method and system
CN116669102A (en) * 2022-02-17 2023-08-29 深圳联友科技有限公司 Data message compression and decompression method
CN114510507A (en) * 2022-02-25 2022-05-17 平安普惠企业管理有限公司 Data verification method, device, terminal equipment and medium
CN116915363A (en) * 2023-07-25 2023-10-20 东方空间技术(山东)有限公司 Data transmission method, device and equipment

Also Published As

Publication number Publication date
CN117792568B (en) 2024-07-23

Similar Documents

Publication Publication Date Title
US7206992B2 (en) Decoding a received BCH encoded signal
CN108712231B (en) A kind of method, apparatus and system of coding and decoding
CN103380585B (en) Input bit error rate presuming method and device thereof
EP1933466A2 (en) Turbo-coding with staged data transmission and processing
JP2000183758A (en) Decoding device, decoding method, encoding device and encoding method
US20210234634A1 (en) Forward error correction with compression coding
JPH07235880A (en) Digital data coding method
US5898708A (en) Error correction apparatus and method
US20080040644A1 (en) Method of correcting message errors using cyclic redundancy checks
CN108599896B (en) CRC (Cyclic redundancy check) system and method based on redundant coding system
CN109787641B (en) Method, device and storage medium for decoding sta-irecase code
CN109428672B (en) Information coding and decoding method and device and information processing system
CN113612516B (en) Compression test method, system and equipment for satellite communication data packet
CN117792568B (en) Reliable communication method and system based on accumulated value
WO2011000176A1 (en) Coding and decoding method and codec of error correction code
JP2012170062A (en) Method for minimizing undetectable errors in data packets in communication systems
CN111224741B (en) BCH code decoding method and decoder for satellite navigation and satellite navigation receiver
CN114513285B (en) Method, device, equipment and readable storage medium for detecting and correcting transmission data
CN115037415A (en) Error correction coding method, device and terminal based on CRC
US6948110B2 (en) Transmission data loss detection system
CN114520788B (en) Self-checking type information transmission control method with storage nodes
CN115037414B (en) CRC-based error correction decoding method, device and terminal
CN116155450A (en) High-instantaneity data transmission method
Gholase et al. Enhancement of error detection and correction capability using orthogonal code convolution
KR100376249B1 (en) An Error-control Method on Variable-length Data Communication

Legal Events

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