CN110445583A - Method of calibration, check system and the computer readable storage medium of data transmission - Google Patents

Method of calibration, check system and the computer readable storage medium of data transmission Download PDF

Info

Publication number
CN110445583A
CN110445583A CN201910740450.7A CN201910740450A CN110445583A CN 110445583 A CN110445583 A CN 110445583A CN 201910740450 A CN201910740450 A CN 201910740450A CN 110445583 A CN110445583 A CN 110445583A
Authority
CN
China
Prior art keywords
data
verification
transmitting terminal
transmission
check
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
CN201910740450.7A
Other languages
Chinese (zh)
Other versions
CN110445583B (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.)
Wei Gao Frequency Conversion Science And Technology Ltd Of Zhuhai City
Original Assignee
Wei Gao Frequency Conversion Science And Technology Ltd Of Zhuhai City
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 Wei Gao Frequency Conversion Science And Technology Ltd Of Zhuhai City filed Critical Wei Gao Frequency Conversion Science And Technology Ltd Of Zhuhai City
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

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 proposes method of calibration, check system and the computer readable storage mediums of a kind of transmission of data, wherein the method for calibration that the data for being suitable for transmitting terminal are transmitted, comprising: obtain transmission data;First verification and the second verification are carried out to transmission data respectively, obtain the first verification data;Third verification is carried out to the first verification data, obtains transmitting terminal check code;Merge and send transmission data and transmitting terminal check code, so that receiving end is verified.Pass through above-mentioned method of calibration, on the one hand, it is lower to CPU requirement to verify operation, and does not need to occupy biggish memory space, is able to achieve data transfer check function in low cost, low-power consumption MCU, on the other hand, compared to the verification carried out using single mode, data conveying length not will increase, and effectively reduce electromagnetic interference influence caused by data, improve data transfer accuracy ensure that the efficiency and reliability of transmission.

Description

Method of calibration, check system and the computer readable storage medium of data transmission
Technical field
The present invention relates to fields of communication technology, pass in particular to method of calibration, a kind of data of a kind of transmission of data Defeated check system and a kind of computer readable storage medium.
Background technique
Within air-conditioning systems usually in need to exchange information by communicating between machine and outer machine, when air-conditioning is there are electromagnetism In use, the data of inside and outside machine exchange can be changed in the environment of interference, the movement of mistake can be generated after reception, seriously affects use Family experience.In the related technology, the mode of cyclic redundancy (CRC) verification, cumulative and verification or exclusive or check is generallyd use to pick Except mistake, wherein CRC check result is reliable, but has great requirement to central processing unit (CPU) and memory space, For low side single-chip microcontroller (MCU), it is difficult to realize;Although cumulative and verification, exclusive or check to CPU and memory space require compared with It is few, it can be received by low side MCU, but when electromagnetic interference is larger, malfunction easily occur.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, first aspect present invention is to propose a kind of method of calibration that the data suitable for transmitting terminal are transmitted.
The second aspect of the present invention is to propose a kind of method of calibration that the data suitable for receiving end are transmitted.
The third aspect of the present invention is to propose a kind of check system that the data suitable for transmitting terminal are transmitted.
The fourth aspect of the present invention is to propose a kind of check system that the data suitable for receiving end are transmitted.
The fifth aspect of the present invention is to propose a kind of computer readable storage medium.
In view of this, according to the first aspect of the invention, proposing a kind of method of calibration of data transmission, being suitable for sending End, comprising: obtain transmission data;First verification and the second verification are carried out to transmission data respectively, obtain the first verification data;It is right First verification data carry out third verification, obtain transmitting terminal check code;Merge and send transmission data and transmitting terminal check code, with It is verified for receiving end.
The method of calibration of data transmission provided by the invention, by carrying out the first verification and the second school respectively to transmission data It tests, and the obtain first verification data is subjected to third verification, i.e., carry out first time verification in such a way that two kinds of verifications are combined, Second is carried out to the first verification data again to verify, and is obtained the check code of transmitting terminal, is merged transmission data and transmitting terminal check code, And the data packet after merging is sent to receiving end, so that receiving end is verified, wherein the first verification data include the first school The check code that the check code tested and the second verification obtain, the first verification, the second verification and third verification are all made of and are suitable for The low operand verification mode of low side MCU.Pass through above-mentioned method of calibration, on the one hand, verification operation is lower to CPU requirement, and not It needs to occupy biggish memory space, is able to achieve data transfer check function in low cost, low-power consumption MCU, it is another Aspect not will increase data conveying length, and effectively reduce electromagnetic interference compared to the verification carried out using single mode It is influenced caused by data, improve data transfer accuracy ensure that the efficiency and reliability of transmission, can larger meet use The demand at family.
In addition, the method for calibration that the data in the above-mentioned technical proposal provided according to the present invention are transmitted, can also have as Lower additional technical feature:
In the above-mentioned technical solutions, it is preferable that first is verified as one of exclusive or check and cumulative and verification, the second school It tests as the another kind in exclusive or check and cumulative and verification;Third is verified as exclusive or check or cumulative and verification.
In the technical scheme, first time verification is carried out in such a way that exclusive or check is combined with cumulative and verification, and will The first obtained verification data carry out exclusive or check or cumulative and verification again, due to exclusive or check and cumulative and verification operand It is lower, extremely low memory space is only needed carrying out multiple operation, solving prior art low and middle-end MCU cannot achieve number The problem of according to error probability is reduced in transmission process, and electromagnetic interference can be effectively reduced by repeatedly verification, data are made At influence, improve data transfer accuracy ensure that the reliability of transmission, overcomes and has the single-chip microcontroller of error correction to matching It is set to this demanding problem.
Specifically, the step of adding up and verify includes: that all byte datas treated in verification data add up, and is obtained High byte data and low byte data, directly selection low byte character data is as cumulative and check results, in order to further mention The reliability for rising verification carries out XOR operation to high byte data and low byte data, using final result as cumulative and school Test result.Exclusive or check specifically includes: all byte datas in verification data treated according to byte order and carry out XOR operation, Finally obtained byte data is as exclusive or check result.
In any of the above-described technical solution, it is preferable that further include: receive the verification prompt information that receiving end is sent;If school Prompt information is tested as failure prompt information, retransmits transmission data and transmitting terminal check code.
In the technical scheme, receiving end verification complete after to transmitting terminal send prompt information, with feedback check as a result, if The verification prompt information that transmitting terminal receives is failure, illustrates occur mistake in data transmission procedure, then retransmits transmission data It with transmitting terminal check code, transmits data again, is not necessarily to artificial treatment, guarantee that receiving end can receive correct resource, To reduce the pause sense of generation, improve data transfer quality.
According to the second aspect of the invention, a kind of method of calibration of data transmission is proposed, receiving end is suitable for, comprising: Receive the transmission data and transmitting terminal check code that transmitting terminal is sent;First verification and the second verification are carried out respectively to transmission data, Obtain the second verification data;Third verification is carried out to the second verification data, obtains receiving end check code;According to transmitting terminal check code With the comparing result of receiving end check code, verification transmission data.
The method of calibration of data transmission provided by the invention, by carrying out the first verification and the second school respectively to transmission data It tests, and the obtain second verification data is subjected to third verification, i.e., carry out first time verification in such a way that two kinds of verifications are combined, Second is carried out to the first verification data again to verify, and the check code of receiving end is obtained, according to transmitting terminal check code and receiving end school Test the comparing result of code, verification transmission data, wherein the second verification data include the check code and the second school that the first verification obtains The check code tested, the first verification, the second verification and third verification are all made of the low operand verification side suitable for low side MCU Formula.Passing through above-mentioned method of calibration, on the one hand, verification operation is lower to CPU requirement, and does not need to occupy biggish memory space, It is able to achieve data transfer check function in low cost, low-power consumption MCU, on the other hand, compared to using single mode The verification of progress not will increase data conveying length, and effectively reduce electromagnetic interference influence caused by data, improve number According to transmission accuracy, it ensure that the efficiency and reliability of transmission, can larger meet the needs of users.
In addition, the method for calibration that the data in the above-mentioned technical proposal provided according to the present invention are transmitted, can also have as Lower additional technical feature:
In the above-mentioned technical solutions, it is preferable that first is verified as one of exclusive or check and cumulative and verification, the second school It tests as the another kind in exclusive or check and cumulative and verification;Third is verified as exclusive or check or cumulative and verification.
In the technical scheme, first time verification is carried out in such a way that exclusive or check is combined with cumulative and verification, and will The first obtained verification data carry out exclusive or check or cumulative and verification again, due to exclusive or check and cumulative and verification operand It is lower, extremely low memory space is only needed carrying out multiple operation, solving prior art low and middle-end MCU cannot achieve number The problem of according to error probability is reduced in transmission process, and electromagnetic interference can be effectively reduced by repeatedly verification, data are made At influence, improve data transfer accuracy ensure that the reliability of transmission, overcomes and has the single-chip microcontroller of error correction to matching It is set to this demanding problem.
Specifically, in order to guarantee the consistency of transmitting terminal check code and receiving end check code, transmitting terminal is adopted with receiving end Verification mode is also required to identical.
In any of the above-described technical solution, it is preferable that according to the comparing result of transmitting terminal check code and receiving end check code, It the step of verification transmission data, specifically includes: if transmitting terminal check code is identical with receiving end check code, operation transmission data;If Transmitting terminal check code and receiving end check code be not identical, deletes transmission data.
In the technical scheme, if transmitting terminal check code is identical with receiving end check code, illustrate that data are transmitted without error, Transmission data can be run at this time, if transmitting terminal check code and receiving end check code be not identical, illustrate occur in data transmission procedure Mistake then deletes transmission data.
In any of the above-described technical solution, it is preferable that according to the comparing result of transmitting terminal check code and receiving end check code, After the step of verification transmission data, further includes: according to the check results of transmission data, generate verification prompt information;Send school Prompt information is tested to transmitting terminal, with feedback check result.
In the technical scheme, after the completion of verification, according to the check results of transmission data, verification prompt information is generated simultaneously It sends, to transmitting terminal feedback check as a result, enabling transmitting terminal to retransmit transmission number if verification prompt information is failure According to transmitting terminal check code, transmit data again, be not necessarily to artificial treatment, guarantee receiving end can receive correct money Source, to reduce the pause sense of generation, improve data transfer quality.
According to the third aspect of the invention we, a kind of check system of data transmission is proposed, is suitable for transmitting terminal, including deposit On a memory and the computer program that can run on a processor, computer program is by processor for reservoir, processor and storage The method of calibration transmitted in any of the above-described technical solution suitable for the data of transmitting terminal is realized when execution.Therefore have any of the above-described The whole beneficial effects for the method for calibration transmitted in technical solution suitable for the data of transmitting terminal, details are not described herein.
According to the fourth aspect of the invention, a kind of check system of data transmission is proposed, is suitable for receiving end, including deposit On a memory and the computer program that can run on a processor, computer program is by processor for reservoir, processor and storage It is realized when execution and is suitable for the method for calibration that the data of receiving end are transmitted in technical solution.Therefore there is any of the above-described technical solution In be suitable for receiving end data transmit method of calibration whole beneficial effects, details are not described herein.
According to the fifth aspect of the invention, a kind of computer readable storage medium is proposed, computer journey is stored thereon with Sequence realizes the verification transmitted in any of the above-described technical solution suitable for the data of transmitting terminal when computer program is executed by processor The method of calibration that data in method and/or any of the above-described technical solution suitable for receiving end are transmitted.Therefore this is computer-readable Storage medium includes the method for calibration and/or any of the above-described transmitted in any of the above-described technical solution suitable for the data of transmitting terminal The whole beneficial effects for the method for calibration that data in technical solution suitable for receiving end are transmitted.
Additional aspect and advantage of the invention will become obviously in following description section, or practice through the invention Recognize.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 shows the method for calibration flow diagram that the data for transmitting terminal of one embodiment of the invention are transmitted;
Fig. 2 shows the method for calibration process signals that the data for transmitting terminal of further embodiment of the present invention are transmitted Figure;
Fig. 3 shows the method for calibration flow diagram that the data for receiving end of one embodiment of the invention are transmitted;
The method of calibration process signal that the data for receiving end that Fig. 4 shows further embodiment of the present invention are transmitted Figure;
The method of calibration process signal that the data for receiving end that Fig. 5 shows another embodiment of the invention are transmitted Figure;
The method of calibration process signal that the data for transmitting terminal that Fig. 6 shows one specific embodiment of the present invention are transmitted Figure;
The method of calibration process signal that the data for transmitting terminal that Fig. 7 shows one specific embodiment of the present invention are transmitted Figure;
Fig. 8 shows the check system flow diagram that the data for transmitting terminal of one embodiment of the invention are transmitted;
Fig. 9 shows the check system flow diagram that the data for transmitting terminal of one embodiment of the invention are transmitted.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, implementation of the invention Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not limited to following public affairs The limitation for the specific embodiment opened.
The embodiment of first aspect present invention proposes a kind of method of calibration of data transmission, is suitable for transmitting terminal, Fig. 1 shows The method of calibration flow diagram that the data for transmitting terminal of one embodiment of the invention are transmitted is gone out.Wherein, this method packet It includes:
Step 102, transmission data are obtained;
Step 104, the first verification and the second verification are carried out to transmission data respectively, obtain the first verification data;
Step 106, third verification is carried out to the first verification data, obtains transmitting terminal check code;
Step 108, merge and send transmission data and transmitting terminal check code, so that receiving end is verified.
The method of calibration of data transmission provided in this embodiment, by carrying out the first verification and second respectively to transmission data Verification, and the obtain first verification data are subjected to third verification, i.e., first time school is carried out in such a way that two kinds of verifications are combined It tests, then second is carried out to the first verification data and is verified, obtain the check code of transmitting terminal, merge transmission data and transmitting terminal verification Code, and is sent to receiving end for the data packet after merging, so that receiving end is verified, wherein the first verification data include the The check code that the check code and the second verification that one verification obtains obtain, the first verification, the second verification and third verification are all made of suitable Low operand verification mode for low side MCU.Passing through above-mentioned method of calibration, on the one hand, verification operation is lower to CPU requirement, And do not need to occupy biggish memory space, it is able to achieve data transfer check function in low cost, low-power consumption MCU, On the other hand, compared to the verification carried out using single mode, data conveying length is not will increase, and effectively reduce electromagnetism Interference is influenced caused by data, and improve data transfer accuracy ensure that the efficiency and reliability of transmission, can larger expire The demand of sufficient user.
In one embodiment of the invention, it is preferable that first is verified as one of exclusive or check and cumulative and verification, Second is verified as the another kind in exclusive or check and cumulative and verification;Third is verified as exclusive or check or cumulative and verification.
In this embodiment, first time verification is carried out in such a way that exclusive or check is combined with cumulative and verification, and incited somebody to action To the first verification data carry out exclusive or check or cumulative and verification again, due to exclusive or check and cumulative and verification operand compared with It is low, extremely low memory space is only needed carrying out multiple operation, solving prior art low and middle-end MCU cannot achieve data The problem of error probability is reduced in transmission process, and electromagnetic interference can be effectively reduced by repeatedly verification, data are caused Influence, improve data transfer accuracy ensure that the reliability of transmission, overcomes the single-chip microcontroller for having error correction to configuration The high problem of cost requirement.
In specific embodiment, the step of cumulative and verification include: all byte datas for treating in verification data carry out it is tired Add, obtain high byte data and low byte data, directly selection low byte character data as cumulative and check results, in order into One step promotes the reliability of verification, XOR operation is carried out to high byte data and low byte data, using final result as tired Sum it up check results.Exclusive or check specifically includes: it is different to treat all byte datas progress in verification data according to byte order Or operation, finally obtained byte data is as exclusive or check result.
Fig. 2 shows the method for calibration process signals that the data for transmitting terminal of further embodiment of the present invention are transmitted Figure.
Wherein, this method comprises:
Step 202, transmission data are obtained;
Step 204, the first verification and the second verification are carried out to transmission data respectively, obtain the first verification data;
Step 206, third verification is carried out to the first verification data, obtains transmitting terminal check code;
Step 208, merge and send transmission data and transmitting terminal check code, so that receiving end is verified;
Step 210, the failure prompt information that receiving end is sent is received;
Step 212, transmission data and transmitting terminal check code are retransmitted.
In this embodiment, prompt information is sent to transmitting terminal after receiving end verification is completed, with feedback check as a result, if hair The verification prompt information that sending end receives be failure, illustrate occur mistake in data transmission procedure, then retransmit transmission data and Transmitting terminal check code, transmits data again, is not necessarily to artificial treatment, guarantees that receiving end can receive correct resource, from And the pause sense generated is reduced, improve data transfer quality.
The embodiment of second aspect of the present invention proposes a kind of method of calibration of data transmission, is suitable for receiving end, Fig. 3 shows The method of calibration flow diagram that the data for receiving end of one embodiment of the invention are transmitted is gone out.Wherein, this method packet It includes:
Step 302, the transmission data and transmitting terminal check code that transmitting terminal is sent are received;
Step 304, the first verification and the second verification are carried out to transmission data respectively, obtain the second verification data;
Step 306, third verification is carried out to the second verification data, obtains receiving end check code;
Step 308, according to the comparing result of transmitting terminal check code and receiving end check code, verification transmission data.
The method of calibration of data transmission provided in this embodiment, by carrying out the first verification and second respectively to transmission data Verification, and the obtain second verification data are subjected to third verification, i.e., first time school is carried out in such a way that two kinds of verifications are combined It tests, then second is carried out to the first verification data and is verified, the check code of receiving end is obtained, according to transmitting terminal check code and receiving end The comparing result of check code, verification transmission data, wherein the second verification data include the check code and second that the first verification obtains Obtained check code is verified, the first verification, the second verification and third verification are all made of the low operand verification suitable for low side MCU Mode.Pass through above-mentioned method of calibration, on the one hand, verification operation is lower to CPU requirement, and does not need to occupy biggish storage sky Between, it is able to achieve data transfer check function in low cost, low-power consumption MCU, on the other hand, compared to using single side The verification that formula carries out, not will increase data conveying length, and effectively reduce electromagnetic interference influence caused by data, improve Data transmit accuracy, ensure that the efficiency and reliability of transmission, can larger meet the needs of users.
In one embodiment of the invention, it is preferable that first is verified as one of exclusive or check and cumulative and verification, Second is verified as the another kind in exclusive or check and cumulative and verification;Third is verified as exclusive or check or cumulative and verification.
In this embodiment, first time verification is carried out in such a way that exclusive or check is combined with cumulative and verification, and incited somebody to action To the first verification data carry out exclusive or check or cumulative and verification again, due to exclusive or check and cumulative and verification operand compared with It is low, extremely low memory space is only needed carrying out multiple operation, solving prior art low and middle-end MCU cannot achieve data The problem of error probability is reduced in transmission process, and electromagnetic interference can be effectively reduced by repeatedly verification, data are caused Influence, improve data transfer accuracy ensure that the reliability of transmission, overcomes the single-chip microcontroller for having error correction to configuration The high problem of cost requirement.
In specific embodiment, in order to guarantee the consistency of transmitting terminal check code and receiving end check code, transmitting terminal and reception Verification mode used by holding is also required to identical.
The method of calibration process signal that the data for receiving end that Fig. 4 shows further embodiment of the present invention are transmitted Figure.Wherein, this method comprises:
Step 402, the transmission data and transmitting terminal check code that transmitting terminal is sent are received;
Step 404, the first verification and the second verification are carried out to transmission data respectively, obtain the second verification data;
Step 406, third verification is carried out to the second verification data, obtains receiving end check code;
Step 408, whether transmitting terminal check code and receiving end check code are identical, if so, 410 are entered step, if it is not, then Enter step 412;
Step 410, operation transmission data;
Step 412, transmission data are deleted.
In this embodiment, if transmitting terminal check code is identical with receiving end check code, illustrate that data are transmitted without error, this When can run transmission data, if transmitting terminal check code and receiving end check code be not identical, illustrate to occur in data transmission procedure wrong Accidentally, then transmission data are deleted, avoids generating malfunction.
The method of calibration process signal that the data for receiving end that Fig. 5 shows another embodiment of the invention are transmitted Figure.Wherein, this method comprises:
Step 502, the transmission data and transmitting terminal check code that transmitting terminal is sent are received;
Step 504, the first verification and the second verification are carried out to transmission data respectively, obtain the second verification data;
Step 506, third verification is carried out to the second verification data, obtains receiving end check code;
Step 508, according to the comparing result of transmitting terminal check code and receiving end check code, verification transmission data;
Step 510, according to the check results of transmission data, verification prompt information is generated;
Step 512, verification prompt information is sent to transmitting terminal.
In this embodiment, after the completion of verification, according to the check results of transmission data, it is concurrent to generate verification prompt information It send, to transmitting terminal feedback check as a result, enabling transmitting terminal to retransmit transmission data if verification prompt information is failure It with transmitting terminal check code, transmits data again, is not necessarily to artificial treatment, guarantee that receiving end can receive correct resource, To reduce the pause sense of generation, improve data transfer quality.
The method of calibration process signal that the data for transmitting terminal that Fig. 6 shows one specific embodiment of the present invention are transmitted Figure.Wherein, this method comprises:
Step 602, data to be sent are put into caching;
Step 604, cumulative and operation is carried out to the data in caching;
Step 606, low byte data are chosen as cumulative and check results;
Step 608, XOR operation is carried out to the data in caching;
Step 610, exclusive or check result is added with cumulative and check results, selection low byte data as transmitting terminal most Whole check code;
Step 612, transmitting terminal final verification code is sent in caching;
Step 614, data all in caching are sent to receiving end.
The method of calibration process signal that the data for receiving end that Fig. 7 shows one specific embodiment of the present invention are transmitted Figure.Wherein, this method comprises:
Step 702, data are received from transmitting terminal, and data is put in the buffer;
Step 704, cumulative and operation is carried out to all data in caching in addition to the last one data;
Step 706, low byte data are chosen as cumulative and check results;
Step 708, XOR operation is carried out to all data in caching in addition to the last one data;
Step 710, exclusive or check result is added with cumulative and check results, selection low byte data as receiving end most Whole check code;
Step 712, whether final verification code in receiving end is identical with the last one data in caching, if so, entering step 714, if it is not, then entering step 716;
Step 714, operation transmission data;
Step 716, transmission data are deleted.
In this specific embodiment, 1, when transmitting terminal exchanges data with receiving end, transmitting terminal data to be sent are put In the buffer, then the data of caching are added up and are verified, added up and verified specific as follows:
1) the 1st byte data is added with the 2nd byte data, then only stays the data of low byte;
2) 1) low byte data obtained in are added with lower 1 byte data, then only stay the data of low byte;
3) it re-executes 2) until the data of caching are all processed, obtains a low byte data and a high byte number According to using low byte data as cumulative and check results, or by low byte data and high byte data progress XOR operation, most Whole exclusive or result is as cumulative and check results.
2, exclusive or inspection then is carried out to the data of caching, specific as follows:
1) the 1st byte data and the 2nd byte data phase exclusive or;
2) by exclusive or result and lower 1 byte data phase exclusive or obtained in 1);
3) it re-executes 2) until the data of caching are all processed, obtaining result is exactly exclusive or inspection result.
3, cumulative and check results and exclusive or check results added are taken into low byte data, obtains transmitting terminal final verification Code, is also put into caching.
4, all data of caching are issued into receiving end, receiving end will be except (i.e. the last one is put the last byte Enter caching in data namely transmitting terminal final verification code) other than all data do 1~3 verification operation, then will obtain Receiving end final verification code and the last one data for receiving compare, data are abandoned when different, otherwise the corresponding number of operation According to.
In this occasion for making to have more than is needed complicated check code algorithm of low side MCU, and when encountering larger electromagnetic interference, in order to protect Hold normal communication, do not generate malfunction, check code mode is optimized, using cumulative and verification and exclusive or check combine into Row verification.Compared to the mode for using individually cumulative and verification or exclusive or check, even if there are larger electromagnetic interferences at some Occasion guarantee normal use in use, can also reject the data frame being disturbed, and by cumulative and check results and different Or check results carry out cumulative and operation again, not will increase data conveying length.
The embodiment of third aspect present invention proposes a kind of check system 800 of data transmission, is suitable for transmitting terminal, As shown in figure 8, including memory 802, processor 804 and being stored in the meter that can be run on memory 802 and on processor 804 Calculation machine program, computer program are realized in any of the above-described embodiment when being executed by processor 804 and are passed suitable for the data of transmitting terminal Defeated method of calibration.Therefore the whole for the method for calibration transmitted with the data for being suitable for transmitting terminal in any of the above-described embodiment has Beneficial effect, details are not described herein.
The embodiment of fourth aspect present invention proposes a kind of check system 900 of data transmission, is suitable for receiving end, As shown in figure 9, including memory 902, processor 904 and being stored in the meter that can be run on memory 902 and on processor 904 Calculation machine program is realized when computer program is executed by processor 904 and is suitable for the verification that the data of receiving end are transmitted in embodiment Method.Therefore the whole beneficial effects for the method for calibration transmitted with the data for being suitable for receiving end in any of the above-described embodiment, Details are not described herein.
The embodiment of fifth aspect present invention proposes a kind of computer readable storage medium, is stored thereon with computer Program realizes the verification transmitted in any of the above-described embodiment suitable for the data of transmitting terminal when computer program is executed by processor The method of calibration that data in method and/or any of the above-described embodiment suitable for receiving end are transmitted.Therefore this computer-readable is deposited Storage media includes the method for calibration and/or any of the above-described implementation transmitted in any of the above-described embodiment suitable for the data of transmitting terminal It is suitable for whole beneficial effects of the method for calibration of the data transmission of receiving end in example.
In the description of this specification, term " first ", " second " are only used for the purpose of description, and should not be understood as indicating Or imply relative importance, unless otherwise clearly defined and limited;Term " connection ", " installation ", " fixation " etc. should all be done extensively Reason and good sense solution, for example, " connection " may be fixed connection or may be dismantle connection, or integral connection;It can be direct phase It even, can also be indirectly connected through an intermediary.For the ordinary skill in the art, it can manage as the case may be Solve the concrete meaning of above-mentioned term in the present invention.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc. Mean that particular features, structures, materials, or characteristics described in conjunction with this embodiment or example are contained at least one reality of the invention It applies in example or example.In the present specification, schematic expression of the above terms are not necessarily referring to identical embodiment or reality Example.Moreover, description particular features, structures, materials, or characteristics can in any one or more of the embodiments or examples with Suitable mode combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method of calibration of data transmission, is suitable for transmitting terminal characterized by comprising
Obtain transmission data;
First verification and the second verification are carried out to the transmission data respectively, obtain the first verification data;
Third verification is carried out to the first verification data, obtains transmitting terminal check code;
Merge and send the transmission data and the transmitting terminal check code, so that receiving end is verified.
2. the method for calibration of data transmission according to claim 1, which is characterized in that
Described first is verified as one of exclusive or check and cumulative and verification, and described second is verified as the exclusive or check and institute State the another kind in cumulative and verification;
The third is verified as the exclusive or check or described cumulative and verification.
3. the method for calibration of data transmission according to claim 1, which is characterized in that further include:
Receive the verification prompt information that the receiving end is sent;
If the verification prompt information is failure prompt information, the transmission data and the transmitting terminal check code are retransmitted.
4. a kind of method of calibration of data transmission, is suitable for receiving end characterized by comprising
Receive the transmission data and transmitting terminal check code that transmitting terminal is sent;
First verification and the second verification are carried out to the transmission data respectively, obtain the second verification data;
Third verification is carried out to the second verification data, obtains receiving end check code;
According to the comparing result of the transmitting terminal check code and the receiving end check code, the transmission data are verified.
5. the method for calibration of data transmission according to claim 4, which is characterized in that
Described first is verified as one of exclusive or check and cumulative and verification, and described second is verified as the exclusive or check and institute State the another kind in cumulative and verification;
The third is verified as the exclusive or check or described cumulative and verification.
6. the method for calibration of data transmission according to claim 4, which is characterized in that described to be verified according to the transmitting terminal It the step of comparing result of code and the receiving end check code, the verification transmission data, specifically includes:
If the transmitting terminal check code is identical with the receiving end check code, the transmission data are run;
If the transmitting terminal check code and the receiving end check code be not identical, the transmission data are deleted.
7. the method for calibration of data transmission according to claim 4, which is characterized in that described to be verified according to the transmitting terminal After the step of comparing result of code and the receiving end check code, the verification transmission data, further includes:
According to the check results of the transmission data, verification prompt information is generated;
Verification prompt information is sent to transmitting terminal, to feed back the check results.
8. a kind of check system of data transmission, is suitable for transmitting terminal, which is characterized in that including memory, processor and storage On the memory and the computer program that can run on the processor, the computer program are held by the processor The method of calibration of data transmission as claimed any one in claims 1 to 3 is realized when row.
9. a kind of check system of data transmission, is suitable for receiving end, which is characterized in that including memory, processor and storage On the memory and the computer program that can run on the processor, the computer program are held by the processor The method of calibration of the data transmission as described in any one of claim 4 to 7 is realized when row.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The method of calibration of data transmission as claimed any one in claims 1 to 3 is realized when being executed by processor, and/or such as right It is required that the method for calibration of the transmission of data described in any one of 4 to 7.
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 true CN110445583A (en) 2019-11-12
CN110445583B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187412A (en) * 2020-10-10 2021-01-05 中车青岛四方机车车辆股份有限公司 Data transmission method and related device
CN112821991A (en) * 2020-12-30 2021-05-18 惠州华阳通用电子有限公司 Data transmission method and device
CN113239026A (en) * 2021-04-29 2021-08-10 上海德衡数据科技有限公司 Cloud server and cloud data processing method based on cloud server
CN113840001A (en) * 2021-09-23 2021-12-24 中车株洲电力机车有限公司 Fault data processing method under MVB network, communication system and rail transit vehicle
CN114389755A (en) * 2022-01-12 2022-04-22 上海黑眸智能科技有限责任公司 Data verification method, device, storage medium and terminal
CN114978417A (en) * 2022-03-29 2022-08-30 浙江大学 Data communication verification method and system based on two BLVDS buses
CN115567167A (en) * 2022-12-06 2023-01-03 芯动微电子科技(珠海)有限公司 Bus transmission data error correction method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571266A (en) * 2011-01-04 2012-07-11 华为技术有限公司 Method and device for checking cyclic redundancy of transmission block
CN103297196A (en) * 2013-06-20 2013-09-11 成都国星通信有限公司 Cyclic redundancy check algorithm of non-integral byte data
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
CN106302364A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Proxy Method, assistance agent method and apparatus
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
US20180167087A1 (en) * 2016-12-14 2018-06-14 Via Technologies, Inc. Low-density parity-check apparatus and operation method thereof
CN108762973A (en) * 2018-04-17 2018-11-06 华为技术有限公司 Store the method and storage device of data
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571266A (en) * 2011-01-04 2012-07-11 华为技术有限公司 Method and device for checking cyclic redundancy of transmission block
CN103368689A (en) * 2013-06-18 2013-10-23 曙光信息产业股份有限公司 Data transmission method and system
CN103297196A (en) * 2013-06-20 2013-09-11 成都国星通信有限公司 Cyclic redundancy check algorithm of non-integral byte data
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN106302364A (en) * 2015-06-11 2017-01-04 阿里巴巴集团控股有限公司 Proxy Method, assistance agent method and apparatus
US20180167087A1 (en) * 2016-12-14 2018-06-14 Via Technologies, Inc. Low-density parity-check apparatus and operation method thereof
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN108762973A (en) * 2018-04-17 2018-11-06 华为技术有限公司 Store the method and storage device of data
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

Cited By (11)

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

Also Published As

Publication number Publication date
CN110445583B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN110445583A (en) Method of calibration, check system and the computer readable storage medium of data transmission
CN106339875B (en) Operation note checking method and device based on publicly-owned block chain
CN102281121A (en) Method, equipment and system for transmitting and verifying data file
CN104917586B (en) Transmit method of calibration, the apparatus and system of data
CN102098212B (en) Apparatus for processing peripheral component interconnect express protocol
Villard Heaps and hops
CN112488702B (en) Block chain-based settlement method and device and electronic equipment
CN106156677B (en) Identity card card reading method and system
CN109347598A (en) Check code processing method, electronic equipment and storage connect medium
CN110298657A (en) A kind of block chain common recognition method, relevant apparatus and system
CN109493057A (en) A kind of method of commerce and device based on UTXO model
CN105743901A (en) Server, anti-crawler system and anti-crawler verification method
CN103677968B (en) Transaction methods, affairs coordinator device, affairs participant's apparatus and system
CN109286654A (en) Remote equipment debugging system and method based on serial ports
CN104933009A (en) On-chip communication method for use in multi-core DSP and data communication apparatus
CN103338110A (en) Dynamic ID based RFID safety authentication method with search secret key
CN107784501A (en) A kind of safe method of payment and system based on recognition of face
Meng et al. Synthesis of Reo circuits from scenario-based interaction specifications
CN109828938B (en) Chip-based communication method and device
CN109743133A (en) Data account checking method and device
CN107548059A (en) A kind of authentication method and system
CN103176926B (en) Integrated circuit and method for debugging barrier transaction
CN106230601B (en) A kind of client embeds the exchange of token method and system of webpage
CN102195943B (en) Safety information interaction method and system
CN109039536A (en) Transmission method, equipment and the readable medium of data

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