CN110445583B - Data transmission verification method, data transmission verification system and computer-readable storage medium - Google Patents

Data transmission verification method, data transmission verification system and computer-readable storage medium Download PDF

Info

Publication number
CN110445583B
CN110445583B CN201910740450.7A CN201910740450A CN110445583B CN 110445583 B CN110445583 B CN 110445583B CN 201910740450 A CN201910740450 A CN 201910740450A CN 110445583 B CN110445583 B CN 110445583B
Authority
CN
China
Prior art keywords
check
verification
data
transmission
data transmission
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.)
Active
Application number
CN201910740450.7A
Other languages
Chinese (zh)
Other versions
CN110445583A (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.)
Zhuhai Wellgo Inverter Technology Co ltd
Original Assignee
Zhuhai Wellgo Inverter 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 Zhuhai Wellgo Inverter Technology Co ltd filed Critical Zhuhai Wellgo Inverter Technology Co ltd
Priority to CN201910740450.7A priority Critical patent/CN110445583B/en
Publication of CN110445583A publication Critical patent/CN110445583A/en
Application granted granted Critical
Publication of CN110445583B publication Critical patent/CN110445583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

The invention provides a data transmission verification method, a data transmission verification system and a computer readable storage medium, wherein the data transmission verification method suitable for a sending end comprises the following steps: acquiring transmission data; respectively carrying out first verification and second verification on the transmission data to obtain first verification data; performing third verification on the first verification data to obtain a verification code of the sending end; and combining and sending the transmission data and the check code of the sending end so as to be checked by the receiving end. Through the verification method, on one hand, the requirement of verification operation on a CPU is low, a large storage space is not occupied, and a data transmission verification function can be realized even in a low-cost and low-power consumption MCU (microprogrammed control unit).

Description

Data transmission verification method, data transmission verification system and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission verification method, a data transmission verification system, and a computer-readable storage medium.
Background
In an air conditioning system, information needs to be exchanged between an internal unit and an external unit through communication, when the air conditioner is used in an environment with electromagnetic interference, data exchanged between the internal unit and the external unit can be changed, wrong actions can be generated after the data are received, and user experience is seriously influenced. In the related technology, errors are usually eliminated by adopting a Cyclic Redundancy Check (CRC) check, an accumulation sum check or an exclusive or check mode, wherein the CRC check result is reliable, but the CRC check has great requirements on a Central Processing Unit (CPU) and a storage space, and is difficult to realize for a low-end single chip Microcomputer (MCU); although the requirements on a CPU and a storage space are low, the accumulation sum check and the XOR check can be accepted by a low-end MCU, and when the electromagnetic interference is large, the error action is easy to occur.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
Therefore, a first aspect of the present invention provides a method for checking data transmission at a transmitting end.
A second aspect of the present invention is to provide a method for checking data transmission at a receiving end.
A third aspect of the present invention is to provide a verification system suitable for data transmission at a transmitting end.
A fourth aspect of the present invention is to provide a verification system for data transmission at a receiving end.
A fifth aspect of the present invention is directed to a computer-readable storage medium.
In view of this, according to a first aspect of the present invention, a method for checking data transmission is provided, which is applied to a sending end, and includes: acquiring transmission data; respectively carrying out first verification and second verification on the transmission data to obtain first verification data; performing third verification on the first verification data to obtain a verification code of the sending end; and combining and sending the transmission data and the check code of the sending end so as to be checked by the receiving end.
The invention provides a data transmission checking method, which comprises the steps of respectively carrying out first checking and second checking on transmission data, carrying out third checking on the obtained first checking data, namely carrying out first checking in a mode of combining the two kinds of checking, carrying out second checking on the first checking data to obtain a checking code of a sending end, combining the transmission data and the checking code of the sending end, sending a combined data packet to a receiving end for checking by the receiving end, wherein the first checking data comprises the checking code obtained by the first checking and the checking code obtained by the second checking, and the first checking, the second checking and the third checking all adopt a low-operand checking mode suitable for a low-end MCU. Through the verification method, on one hand, the requirement of the verification operation on the CPU is low, a large storage space is not occupied, and the data transmission verification function can be realized even in the MCU with low cost and low power consumption.
In addition, according to the verification method for data transmission in the above technical solution provided by the present invention, the following additional technical features may also be provided:
in the above technical solution, preferably, the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check; the third check is an exclusive-or check or an accumulated sum check.
In the technical scheme, the first check is carried out by adopting a mode of combining the XOR check, the accumulation and the check, and the obtained first check data is subjected to the XOR check or the accumulation and the check again, because the calculation amount of the XOR check, the accumulation and the check is low, only an extremely low storage space is needed even if the calculation is carried out for a plurality of times, the problem that the error probability can not be reduced in the data transmission process by the low-end MCU in the prior art is solved, the influence of electromagnetic interference on the data can be effectively reduced through the verification for a plurality of times, the data transmission accuracy is improved, the transmission reliability is ensured, and the problem that the requirement of a singlechip with an error correction function on the configuration cost is high is solved.
Specifically, the step of accumulating and checking includes: and accumulating all byte data in the data to be verified to obtain high byte data and low byte data, directly selecting low byte character data as an accumulation and verification result, carrying out exclusive OR operation on the high byte data and the low byte data in order to further improve the verification reliability, and taking the final result as the accumulation and verification result. The exclusive-or check specifically includes: and performing exclusive-or operation on all byte data in the data to be checked according to the byte sequence, and taking the finally obtained byte data as an exclusive-or checking result.
In any of the above technical solutions, preferably, the method further includes: receiving verification prompt information sent by a receiving end; and if the verification prompt message is a failure prompt message, retransmitting the transmission data and the verification code of the transmitting end.
In the technical scheme, the receiving end sends prompt information to the sending end after the verification is finished, so as to feed back the verification result, if the verification prompt information received by the sending end is failure, which indicates that an error occurs in the data transmission process, the transmission data and the sending end verification code are sent again, so that the data is transmitted again, manual processing is not needed, the receiving end can be ensured to receive correct resources, the generated pause feeling is reduced, and the data transmission quality is improved.
According to a second aspect of the present invention, a method for verifying data transmission is provided, which is applied to a receiving end, and includes: receiving transmission data and a transmitting end check code transmitted by a transmitting end; respectively carrying out first verification and second verification on the transmission data to obtain second verification data; performing third verification on the second verification data to obtain a receiving end verification code; and checking the transmission data according to the comparison result of the transmitting end check code and the receiving end check code.
The invention provides a data transmission checking method, which comprises the steps of respectively carrying out first checking and second checking on transmission data, carrying out third checking on obtained second checking data, namely carrying out first checking in a mode of combining the two checking modes, carrying out second checking on the first checking data to obtain a checking code of a receiving end, and checking the transmission data according to a comparison result of the checking code of the transmitting end and the checking code of the receiving end, wherein the second checking data comprises the checking code obtained by the first checking and the checking code obtained by the second checking, and the first checking, the second checking and the third checking all adopt a low-operand checking mode suitable for a low-end MCU. Through the verification method, on one hand, the requirement of the verification operation on the CPU is low, a large storage space is not occupied, and the data transmission verification function can be realized even in the MCU with low cost and low power consumption.
In addition, according to the verification method for data transmission in the above technical solution provided by the present invention, the following additional technical features may also be provided:
in the above technical solution, preferably, the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check; the third check is an exclusive-or check or an accumulated sum check.
In the technical scheme, the first check is carried out by adopting a mode of combining the XOR check, the accumulation and the check, and the obtained first check data is subjected to the XOR check or the accumulation and the check again, because the calculation amount of the XOR check, the accumulation and the check is low, only an extremely low storage space is needed even if the calculation is carried out for a plurality of times, the problem that the error probability can not be reduced in the data transmission process by the low-end MCU in the prior art is solved, the influence of electromagnetic interference on the data can be effectively reduced through the verification for a plurality of times, the data transmission accuracy is improved, the transmission reliability is ensured, and the problem that the requirement of a singlechip with an error correction function on the configuration cost is high is solved.
Specifically, in order to ensure the consistency of the check code of the sending end and the check code of the receiving end, the check modes adopted by the sending end and the receiving end also need to be the same.
In any of the above technical solutions, preferably, the step of verifying the transmission data according to a comparison result of the sending end check code and the receiving end check code specifically includes: if the check code of the sending end is the same as the check code of the receiving end, the transmission data is operated; and if the check code of the sending end is different from the check code of the receiving end, deleting the transmission data.
In the technical scheme, if the sending end check code is the same as the receiving end check code, the data transmission is free of errors, the data transmission can be operated, and if the sending end check code is different from the receiving end check code, the errors occur in the data transmission process, the data transmission is deleted.
In any of the above technical solutions, preferably, after the step of verifying the transmission data according to a comparison result of the sender side check code and the receiver side check code, the method further includes: generating verification prompt information according to a verification result of the transmission data; and sending verification prompt information to the sending end to feed back a verification result.
In the technical scheme, after the verification is completed, verification prompt information is generated and sent according to the verification result of the transmission data, so that the verification result is fed back to the sending end, if the verification prompt information fails, the sending end can resend the transmission data and the sending end verification code, the data is transmitted again, manual processing is not needed, the receiving end can receive correct resources, the stop feeling is reduced, and the data transmission quality is improved.
According to a third aspect of the present invention, a data transmission verification system is provided, which is suitable for a sending end, and includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, where when the computer program is executed by the processor, the computer program implements the data transmission verification method suitable for the sending end in any of the above technical solutions. Therefore, the method has all the advantages of being applicable to the data transmission verification method of the sending end in any technical scheme, and is not described herein again.
According to a fourth aspect of the present invention, a data transmission verification system is provided, which is suitable for a receiving end, and includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the computer program is executed by the processor, the verification method suitable for data transmission of the receiving end in the technical solution is implemented. Therefore, all the beneficial effects of the verification method applicable to data transmission at the receiving end in any of the above technical solutions are achieved, and details are not repeated herein.
According to a fifth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for checking data transmission applicable to a transmitting end in any of the above-mentioned technical solutions, and/or implements the method for checking data transmission applicable to a receiving end in any of the above-mentioned technical solutions. Therefore, the computer-readable storage medium includes all the benefits of the above-mentioned technical solutions, which are applicable to the data transmission at the transmitting end, and/or the above-mentioned technical solutions, which are applicable to the data transmission at the receiving end.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart illustrating a verification method for data transmission at a transmitting end according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a verification method for data transmission at a transmitting end according to yet another embodiment of the present invention;
FIG. 3 is a flow chart of a verification method for data transmission at a receiving end according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a verification method for data transmission at a receiving end according to yet another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a verification method for data transmission at a receiving end according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a checking method for data transmission at a transmitting end according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a checking method for data transmission at a transmitting end according to an embodiment of the present invention;
fig. 8 is a flow chart of a checking system for data transmission of a transmitting end according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating a verification system for data transmission on a transmitting end according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
An embodiment of a first aspect of the present invention provides a data transmission verification method, which is applicable to a sending end, and fig. 1 shows a flow diagram of the data transmission verification method for the sending end according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 102, acquiring transmission data;
step 104, respectively performing first verification and second verification on the transmission data to obtain first verification data;
step 106, performing third verification on the first verification data to obtain a verification code of the sending end;
and step 108, merging and sending the transmission data and the sending end check code for the receiving end to check.
In the data transmission verification method provided by this embodiment, the first verification and the second verification are performed on the transmission data respectively, the obtained first verification data is subjected to the third verification, that is, the first verification is performed in a two-verification combined manner, the first verification data is subjected to the second verification, the verification code of the sending end is obtained, the transmission data and the verification code of the sending end are combined, and the combined data packet is sent to the receiving end for verification by the receiving end, wherein the first verification data includes the verification code obtained by the first verification and the verification code obtained by the second verification, and the first verification, the second verification and the third verification all adopt a low-operand verification manner suitable for the low-end MCU. Through the verification method, on one hand, the requirement of the verification operation on the CPU is low, a large storage space is not occupied, and the data transmission verification function can be realized even in the MCU with low cost and low power consumption.
In one embodiment of the present invention, preferably, the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check; the third check is an exclusive-or check or an accumulated sum check.
In the embodiment, the first check is performed by adopting a mode of combining the exclusive-or check and the accumulation and the check, and the obtained first check data is subjected to the exclusive-or check or the accumulation and the check again, because the calculation amount of the exclusive-or check, the accumulation and the check is low, only an extremely low storage space is needed even if the calculation is performed for a plurality of times, the problem that the error probability can not be reduced in the data transmission process by the low-end MCU in the prior art is solved, the influence of electromagnetic interference on the data can be effectively reduced through the verification for a plurality of times, the data transmission accuracy is improved, the transmission reliability is ensured, and the problem that the requirement of a singlechip with an error correction function on the configuration cost is high is solved.
In a specific embodiment, the step of accumulating and checking includes: and accumulating all byte data in the data to be verified to obtain high byte data and low byte data, directly selecting low byte character data as an accumulation and verification result, carrying out exclusive OR operation on the high byte data and the low byte data in order to further improve the verification reliability, and taking the final result as the accumulation and verification result. The exclusive-or check specifically includes: and performing exclusive-or operation on all byte data in the data to be checked according to the byte sequence, and taking the finally obtained byte data as an exclusive-or checking result.
Fig. 2 is a flowchart illustrating a verification method for data transmission at a transmitting end according to still another embodiment of the present invention.
Wherein, the method comprises the following steps:
step 202, acquiring transmission data;
step 204, respectively performing first verification and second verification on the transmission data to obtain first verification data;
step 206, performing a third check on the first check data to obtain a check code of the sending end;
step 208, merging and transmitting the transmission data and the transmitting end check code for the receiving end to check;
step 210, receiving failure prompt information sent by a receiving end;
step 212, the transmission data and the sender side check code are retransmitted.
In this embodiment, the receiving end sends a prompt message to the sending end after completing the verification to feed back the verification result, and if the verification prompt message received by the sending end is a failure, which indicates that an error occurs in the data transmission process, the transmission data and the sending end verification code are sent again, so that the data is transmitted again, manual processing is not required, the receiving end can receive correct resources, the generated pause feeling is reduced, and the data transmission quality is improved.
An embodiment of a second aspect of the present invention provides a data transmission verification method, which is suitable for a receiving end, and fig. 3 shows a flowchart of the data transmission verification method for the receiving end according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 302, receiving transmission data and a transmitting end check code transmitted by a transmitting end;
step 304, respectively performing first verification and second verification on the transmission data to obtain second verification data;
step 306, performing third verification on the second verification data to obtain a receiving end verification code;
and 308, checking the transmission data according to the comparison result of the check code of the sending end and the check code of the receiving end.
According to the data transmission verification method provided by the embodiment, the first verification and the second verification are respectively carried out on the transmission data, the third verification is carried out on the obtained second verification data, namely, the first verification is carried out in a mode of combining the two verifications, the second verification is carried out on the first verification data, the verification code of the receiving end is obtained, the transmission data is verified according to the comparison result of the verification code of the transmitting end and the verification code of the receiving end, wherein the second verification data comprises the verification code obtained by the first verification and the verification code obtained by the second verification, and the first verification, the second verification and the third verification all adopt a low-operand verification mode suitable for a low-end MCU. Through the verification method, on one hand, the requirement of the verification operation on the CPU is low, a large storage space is not occupied, and the data transmission verification function can be realized even in the MCU with low cost and low power consumption.
In one embodiment of the present invention, preferably, the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check; the third check is an exclusive-or check or an accumulated sum check.
In the embodiment, the first check is performed by adopting a mode of combining the exclusive-or check and the accumulation and the check, and the obtained first check data is subjected to the exclusive-or check or the accumulation and the check again, because the calculation amount of the exclusive-or check, the accumulation and the check is low, only an extremely low storage space is needed even if the calculation is performed for a plurality of times, the problem that the error probability can not be reduced in the data transmission process by the low-end MCU in the prior art is solved, the influence of electromagnetic interference on the data can be effectively reduced through the verification for a plurality of times, the data transmission accuracy is improved, the transmission reliability is ensured, and the problem that the requirement of a singlechip with an error correction function on the configuration cost is high is solved.
In a specific embodiment, in order to ensure consistency of the check code of the sending end and the check code of the receiving end, the check modes adopted by the sending end and the receiving end also need to be the same.
Fig. 4 is a flowchart illustrating a verification method for data transmission at a receiving end according to yet another embodiment of the present invention. Wherein, the method comprises the following steps:
step 402, receiving transmission data and a transmitting end check code transmitted by a transmitting end;
step 404, performing a first check and a second check on the transmission data respectively to obtain second check data;
step 406, performing a third check on the second check data to obtain a receiving end check code;
step 408, determining whether the sender check code and the receiver check code are the same, if so, entering step 410, and if not, entering step 412;
step 410, running transmission data;
step 412, delete the transmission data.
In this embodiment, if the sender check code and the receiver check code are the same, it indicates that there is no error in data transmission, and at this time, the data transmission may be performed, and if the sender check code and the receiver check code are different, it indicates that an error occurs in the data transmission process, the data transmission is deleted, thereby avoiding generating an error action.
Fig. 5 is a flowchart illustrating a verification method for data transmission at a receiving end according to another embodiment of the present invention. Wherein, the method comprises the following steps:
step 502, receiving transmission data and a transmitting end check code transmitted by a transmitting end;
step 504, respectively performing first verification and second verification on the transmission data to obtain second verification data;
step 506, performing third verification on the second verification data to obtain a receiving end verification code;
step 508, checking the transmission data according to the comparison result of the transmitting end check code and the receiving end check code;
step 510, generating verification prompt information according to a verification result of the transmission data;
and step 512, sending the verification prompt information to the sending end.
In this embodiment, after the verification is completed, verification prompt information is generated and sent according to the verification result of the transmission data, so as to feed back the verification result to the sending end, and if the verification prompt information fails, the sending end can resend the transmission data and the sending end verification code, so that the data is transmitted again, manual processing is not required, the receiving end can receive correct resources, the stop feeling generated is reduced, and the data transmission quality is improved.
Fig. 6 is a flowchart illustrating a checking method for data transmission at a transmitting end according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 602, placing data to be sent into a cache;
step 604, accumulating and calculating the data in the cache;
step 606, selecting low byte data as accumulation and check result;
step 608, performing xor operation on the data in the cache;
step 610, adding the XOR check result and the accumulation sum check result, and selecting low byte data as a final check code of the sending end;
step 612, sending the final check code of the sending end to a cache;
and step 614, sending all the data in the cache to a receiving end.
Fig. 7 is a flowchart illustrating a verification method for data transmission at a receiving end according to an embodiment of the present invention. Wherein, the method comprises the following steps:
step 702, receiving data from a sending end and placing the data in a cache;
step 704, performing accumulation and operation on all data except the last data in the cache;
step 706, selecting low byte data as the accumulation and check result;
step 708, performing exclusive-or operation on all data except the last data in the cache;
step 710, adding the XOR check result and the accumulation sum check result, and selecting low byte data as a final check code of the receiving end;
step 712, the receiving end checks whether the final check code is the same as the last data in the cache, if yes, step 714 is entered, and if no, step 716 is entered;
step 714, running the transmission data;
step 716, delete the transmission data.
In this specific embodiment, 1, when a sending end exchanges data with a receiving end, the sending end places the data to be sent in a cache, and then performs accumulation and verification on the cached data, where the accumulation and verification specifically are as follows:
1) adding the 1 st byte data and the 2 nd byte data, and then only leaving the data of the lower byte;
2) adding the low byte data obtained in 1) with the next 1 byte data, and then only leaving the low byte data;
3) and re-executing the step 2) until the cached data are processed to obtain a low byte data and a high byte data, taking the low byte data as an accumulation and check result, or carrying out XOR operation on the low byte data and the high byte data, and taking the final XOR result as the accumulation and check result.
2. Then, performing exclusive or check on the cached data, which is specifically as follows:
1) XOR the 1 st byte data and the 2 nd byte data;
2) XOR the XOR result obtained in 1) with the next 1 byte data;
3) and 2) re-executing until the cached data is processed, and obtaining the result which is the exclusive-or check result.
3. And adding the accumulated sum check result and the XOR check result to obtain low byte data to obtain a final check code of the sending end, and placing the final check code into a cache.
4. And sending all the cached data to a receiving end, carrying out 1-3 check operation on all the data except the last byte (namely the last data put into the cache, namely the final check code of the sending end) by the receiving end, comparing the obtained final check code of the receiving end with the received last data, discarding the data when the final check code of the receiving end is different from the last data, and otherwise, running the corresponding data.
In the low-end MCU, the situation that a complex check code algorithm cannot be used is realized, and when large electromagnetic interference occurs, in order to keep normal communication and avoid generating error actions, the check code mode is optimized, and the check is carried out by adopting the combination of accumulation and check sum or exclusive or check. Compared with a mode of using single accumulation and check or exclusive-or check, even if the device is used in a certain occasion with large electromagnetic interference, the device can also reject the interfered data frame to ensure normal use, and the data transmission length can not be increased by accumulating and calculating the accumulation and check result and the exclusive-or check result again.
An embodiment of the third aspect of the present invention provides a data transmission verification system 800, which is applied to a sending end, and as shown in fig. 8, includes a memory 802, a processor 804, and a computer program that is stored in the memory 802 and is executable on the processor 804, where the computer program, when executed by the processor 804, implements any of the above-described data transmission verification methods applied to the sending end. Therefore, all the beneficial effects of the above-mentioned verification method for data transmission at the transmitting end in any embodiment are achieved, and are not described herein again.
An embodiment of the fourth aspect of the present invention provides a data transmission verification system 900, which is suitable for a receiving end, as shown in fig. 9, and includes a memory 902, a processor 904, and a computer program stored in the memory 902 and executable on the processor 904, where when the computer program is executed by the processor 904, the verification method of data transmission suitable for the receiving end in the embodiment is implemented. Therefore, all the beneficial effects of the above-mentioned verification method for data transmission at the receiving end in any of the embodiments are achieved, and are not described herein again.
In an embodiment of the fifth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for checking data transmission applicable to the transmitting end in any of the above embodiments, and/or implements the method for checking data transmission applicable to the receiving end in any of the above embodiments. Therefore, the computer-readable storage medium includes all the benefits of any of the above embodiments of the verification method for data transmission at the transmitting end, and/or any of the above embodiments of the verification method for data transmission at the receiving end.
In the description herein, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance unless explicitly stated or limited otherwise; the terms "connected," "mounted," "secured," and the like are to be construed broadly and include, for example, fixed connections, removable connections, or integral connections; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A data transmission verification method is suitable for a sending end and is characterized by comprising the following steps:
acquiring transmission data;
respectively carrying out first verification and second verification on the transmission data to obtain first verification data;
performing third verification on the first verification data to obtain a verification code of the sending end;
merging and sending the transmission data and the sending end check code for the receiving end to check;
the first check data comprises a check code obtained by the first check and a check code obtained by the second check, and the first check, the second check and the third check all adopt a low-operand check mode suitable for a low-end MCU;
the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check;
the third check is the XOR check or the cumulative sum check.
2. The method for verifying data transmission according to claim 1, further comprising:
receiving verification prompt information sent by the receiving end;
and if the verification prompt message is a failure prompt message, retransmitting the transmission data and the check code of the sending end.
3. A data transmission verification method is suitable for a receiving end, and is characterized by comprising the following steps:
receiving transmission data and a transmitting end check code transmitted by a transmitting end;
respectively carrying out first verification and second verification on the transmission data to obtain second verification data;
performing third verification on the second verification data to obtain a receiving end verification code;
checking the transmission data according to the comparison result of the sending end check code and the receiving end check code;
the first check data comprises a check code obtained by the first check and a check code obtained by the second check, and the first check, the second check and the third check all adopt a low-operand check mode suitable for a low-end MCU;
the first check is one of an exclusive-or check and an accumulated sum check, and the second check is the other of the exclusive-or check and the accumulated sum check;
the third check is the XOR check or the cumulative sum check.
4. The method for checking data transmission according to claim 3, wherein the step of checking the transmission data according to the comparison result between the sender side check code and the receiver side check code specifically includes:
if the check code of the sending end is the same as the check code of the receiving end, the transmission data is operated;
and if the transmitting end check code is different from the receiving end check code, deleting the transmission data.
5. The method for checking data transmission according to claim 3, wherein after the step of checking the transmission data according to the comparison result between the sender-side check code and the receiver-side check code, the method further comprises:
generating verification prompt information according to the verification result of the transmission data;
and sending verification prompt information to a sending end to feed back the verification result.
6. A system for verifying data transmission, adapted to a transmitting end, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the method for verifying data transmission according to claim 1 or 2.
7. A verification system for data transmission, suitable for receiving end, characterized by comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the verification method for data transmission according to any one of claims 3 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for checking a data transmission according to claim 1 or 2 and/or a method for checking a data transmission according to one of claims 3 to 5.
CN201910740450.7A 2019-08-12 2019-08-12 Data transmission verification method, data transmission verification system and computer-readable storage medium Active CN110445583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910740450.7A CN110445583B (en) 2019-08-12 2019-08-12 Data transmission verification method, data transmission verification system and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910740450.7A CN110445583B (en) 2019-08-12 2019-08-12 Data transmission verification method, data transmission verification system and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110445583A CN110445583A (en) 2019-11-12
CN110445583B true CN110445583B (en) 2022-05-17

Family

ID=68434752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910740450.7A Active CN110445583B (en) 2019-08-12 2019-08-12 Data transmission verification method, data transmission verification system and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110445583B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187412B (en) * 2020-10-10 2022-11-15 中车青岛四方机车车辆股份有限公司 Data transmission method and related device
CN112821991B (en) * 2020-12-30 2022-03-11 惠州华阳通用电子有限公司 Data transmission method and device
CN113239026B (en) * 2021-04-29 2022-08-16 上海德衡数据科技有限公司 Cloud server and cloud data processing method based on same
CN113840001B (en) * 2021-09-23 2023-07-11 中车株洲电力机车有限公司 Fault data processing method, communication system and rail transit vehicle under MVB network
CN114389755B (en) * 2022-01-12 2023-08-11 深圳华芯信息技术股份有限公司 Data verification method and device, storage medium and terminal
CN114978417B (en) * 2022-03-29 2023-12-19 浙江大学 Data communication verification method and system based on two-way BLVDS buses
CN115567167B (en) * 2022-12-06 2023-03-31 芯动微电子科技(珠海)有限公司 Bus transmission data error correction method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368689A (en) * 2013-06-18 2013-10-23 曙光信息产业股份有限公司 Data transmission method and system
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN109039536A (en) * 2018-07-24 2018-12-18 上海小蚁科技有限公司 Transmission method, equipment and the readable medium of data
CN109951253A (en) * 2019-03-14 2019-06-28 北京信而泰科技股份有限公司 A kind of verification of data message stem and generation method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571266B (en) * 2011-01-04 2015-11-25 华为技术有限公司 A kind of method of transport block cyclic redundancy check and device
CN103297196B (en) * 2013-06-20 2016-09-28 成都国星通信有限公司 A kind of cyclic redundancy check method of non-whole byte data
CN106302364B (en) * 2015-06-11 2020-03-24 阿里巴巴集团控股有限公司 Agent method, auxiliary agent method and equipment
US10050643B2 (en) * 2016-12-14 2018-08-14 Via Technologies, Inc. Low-density parity-check apparatus and operation method thereof
CN108762973B (en) * 2018-04-17 2021-05-14 华为技术有限公司 Method for storing data and storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368689A (en) * 2013-06-18 2013-10-23 曙光信息产业股份有限公司 Data transmission method and system
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN109039536A (en) * 2018-07-24 2018-12-18 上海小蚁科技有限公司 Transmission method, equipment and the readable medium of data
CN109951253A (en) * 2019-03-14 2019-06-28 北京信而泰科技股份有限公司 A kind of verification of data message stem and generation method and device

Also Published As

Publication number Publication date
CN110445583A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110445583B (en) Data transmission verification method, data transmission verification system and computer-readable storage medium
CN112217599B (en) Data frame receiving method and device, and communication method and system
CN102281121A (en) Method, equipment and system for transmitting and verifying data file
US11368251B1 (en) Convergent multi-bit feedback system
CN104202126A (en) Iterative decoding of blocks with cyclic redundancy checks
KR100224048B1 (en) Data communication system and method therefor
EP0700615A1 (en) A method of forward error correction
CN112737734B (en) Verification information generation method, verification method and verification device
CN108347311B (en) Method for sending and receiving feedback information, access network equipment and terminal equipment
CN111752579A (en) Bluetooth terminal upgrading method and device, storage medium and electronic equipment
CN114244780A (en) Data transmission method, data transmission device and related equipment
EP1408639A1 (en) Transmission apparatus and reception apparatus
CN112532359B (en) Method and device for content merging at receiving end based on data retransmission data
CN110351025A (en) Information feedback method, device and system
EP2191602B1 (en) Improved data structure boundary synchronization between a transmitter and receiver
WO2020134258A1 (en) Data retransmission decoding method, apparatus and system, and communication device
CN111246428A (en) Network reliable communication method, system, device and storage medium
CN114696963B (en) High-reliability communication system for network-on-chip of multi-core processor system
US11489623B2 (en) Error correction in network packets
CN109039536A (en) Transmission method, equipment and the readable medium of data
CN112217601A (en) Data frame communication method and system
CN112217600A (en) Data frame receiving method and device, and communication method and system
CN115412890B (en) Data transmission method and device and terminal equipment
CN115378553B (en) Data transmission method, mobile terminal and computer readable storage medium
CN111490855B (en) Hybrid automatic repeat request (HARQ) feedback method, device, medium and electronic equipment

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Verification method, verification system and computer readable storage medium for data transmission

Effective date of registration: 20221228

Granted publication date: 20220517

Pledgee: Agricultural Bank of China Limited Zhongshan Dongsheng sub branch

Pledgor: ZHUHAI WELLGO INVERTER TECHNOLOGY Co.,Ltd.

Registration number: Y2022980029081