CN102281121A - Method, equipment and system for transmitting and verifying data file - Google Patents

Method, equipment and system for transmitting and verifying data file Download PDF

Info

Publication number
CN102281121A
CN102281121A CN2010102077207A CN201010207720A CN102281121A CN 102281121 A CN102281121 A CN 102281121A CN 2010102077207 A CN2010102077207 A CN 2010102077207A CN 201010207720 A CN201010207720 A CN 201010207720A CN 102281121 A CN102281121 A CN 102281121A
Authority
CN
China
Prior art keywords
data slot
crc value
data
fragment
slot
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
CN2010102077207A
Other languages
Chinese (zh)
Other versions
CN102281121B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010207720.7A priority Critical patent/CN102281121B/en
Priority to PCT/CN2011/072118 priority patent/WO2011157074A1/en
Publication of CN102281121A publication Critical patent/CN102281121A/en
Application granted granted Critical
Publication of CN102281121B publication Critical patent/CN102281121B/en
Expired - Fee Related 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
    • 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/0041Arrangements at the transmitter end

Abstract

The invention discloses a method, equipment and system for transmitting and verifying a data file. The main content of the invention is that: a data file is divided into a plurality of data slots by source equipment, each data slot and a crc (cyclic redundancy check) value of the data slot are respectively transmitted after the crc value of each data slot is calculated, so that target equipment which receives the data slots and the crc values of the data slots can perform verification aiming at each data slot, and therefore the target equipment can find out errors appearing in a data file transmission process in time when the data file is not transmitted completely.

Description

Method, equipment and the system of a kind of data file transmission and verification
Technical field
The present invention relates to Information ﹠ Communication Technology, relate in particular to method, equipment and the system of a kind of data file transmission and verification.
Background technology
Normal operation in order to ensure communication system, often relate to the transmission (comprising wireless transmission or wire transmission) of data file between the equipment in the communication system, because the relatively poor or unstable problems such as encoding and decoding mistake that cause data file packet loss or data file of transmission channel of state of network in the transmission course, the content that may cause being transferred to the data file on the target device goes wrong.For fear of causing target device to utilize wrong data file to carry out the situation of business operation failure because the content of data file goes wrong, target device need carry out verification to this data file after the data file that receives the source device transmission.
At present, target device method that the data file that receives is carried out verification is the verification at cyclic redundancy check (CRC) (crc) field.Specific practice is:
At first, source device generates data file waiting for transmission, calculates the crc value at whole data file, and is transferred to target device after the crc value that calculates being write the fixed position of data file;
Then, target device recomputates the crc value at the whole data file that receives, and the crc value that the fixed position of crc value that target device is calculated and data file writes relatively, thereby the correctness of the data file that receives is carried out verification.If the crc value that the crc value that comparative result is a target device to be calculated and the fixed position of data file write coupling represents that then this data file does not go wrong in transmission course; Otherwise, represent that this data file goes wrong in transmission course.
In the checking procedure of above-mentioned target device to the data file, source device and target device all calculate the crc value at whole data file, therefore, only could checking data behind the complete received data file of target device the correctness of file transfer, even when the partial document data that receives has gone wrong, also can't in time find.
Summary of the invention
The embodiment of the invention provides method, equipment and the system of a kind of data file transmission and verification, in order to solve the problem that can not in time find the mistake in the data file transmission course in the prior art.
A kind of method of data file transmission, this method comprises:
Source device carries out segmentation to data file waiting for transmission, obtains a plurality of data slots;
Source device calculates the cyclic redundancy check (CRC) crc value of each data slot;
Source device is transferred to target device with the crc value of data slot and this data slot.
A kind of method of data file verification, described method comprises:
Target device calculates the crc value of this data slot at the data slot that receives, and the crc value of the crc value of the data slot that calculates and the data slot that receives is compared;
If target device is determined the crc value of the data slot of calculating and is mated with the crc value of this data slot that receives, then determines this data slot verification succeeds; Otherwise, determine this data slot verification failure.
A kind of equipment of data file transmission, this equipment comprises:
Segmentation module is used for the data file is carried out segmentation, obtains a plurality of data slots;
The one crc value computing module is used to calculate the cyclic redundancy check (CRC) crc value of each data slot;
Transport module is used to transmit the crc value of data slot and this data slot.
A kind of equipment of data file verification, this equipment comprises:
Receiver module is used to receive the crc value of data slot and this data slot;
The 2nd crc value computing module is used to calculate the crc value of the data slot that receives;
The verification module, the crc value of the data slot that is used for the crc value of data slot that the 2nd crc value computing module is calculated and receives compares, if the crc value of the data slot that calculates is mated with the crc value of this data slot that receives, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
A kind of data file check system, described system comprises source device and target device, wherein:
Source device is used for the data file is carried out segmentation, obtains a plurality of data slots, calculates the cyclic redundancy check (CRC) crc value of each data slot, and the crc value of data slot and this data slot is sent to target device;
Target device, be used at the data slot that receives, calculate the crc value of this data slot, and the crc value of the crc value of the data slot that calculates and the data slot that receives compared, mate with the crc value of this data slot that receives if determine the crc value of the data slot of calculating, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
The present invention is divided into a plurality of data slots by source device with data file, and after calculating the crc value of each data slot, crc value to each data slot and data slot is transmitted respectively, the feasible target device that receives the crc value of data slot and data slot can carry out verification at each data slot, makes target device can in time find the mistake that occurs in the data file transmission course when data file is not also transmitted fully.
Description of drawings
Fig. 1 is the method flow schematic diagram of the embodiment of the invention one data file transmission;
Fig. 2 (a) is the embodiment of the invention one a data file schematic diagram;
Fig. 2 (b) and Fig. 2 (c) are the data slot schematic diagram after the segmentation in the embodiment of the invention one;
Fig. 3 is the method flow schematic diagram of the embodiment of the invention two data file verifications;
Fig. 4 is the embodiment of the invention four data file transmission equipment structural representations;
Fig. 5 is the embodiment of the invention five data file calibration equipment structural representations;
Fig. 6 is the embodiment of the invention six data file check system structural representations.
Embodiment
In order to realize the object of the invention, the embodiment of the invention proposes data file is carried out segmentation, calculate the crc value at each data slot respectively in the source device side, and the crc value of data slot and this data slot all sent to target device, and in the target device side, target device is after receiving data slot, the crc value of calculated data fragment once more, the crc value of this data slot of sending of crc value that target device is calculated at a certain data slot and source device is mated then, and then successfully whether the verification of definite this data slot.Under mode of the present invention, target device can be when receiving partial document data just carries out verification to the correctness of the data file that receives, sends at partial document data and can in time find when wrong, has improved the accuracy of data file transmission.
Below in conjunction with Figure of description embodiments of the invention are elaborated.
Embodiment one:
As shown in Figure 1, the method for a kind of data file transmission that provides for the embodiment of the invention one, concrete steps are:
Step 101: source device carries out segmentation to the data file.
In this step, source device can carry out segmentation to the data file according to the length of predefined data slot quantity and each data slot.Include but not limited to following two kinds of segmentation methods.
Method one:
Set a fragment length, according to the fragment length of setting data file on average is divided into a plurality of data slots, if data file length can't fully on average be divided, then the length of last data slot can be less than the fragment length of setting.For example, shown in Fig. 2 (a), be a data file that length is 0x00012000,32 byte content that only shown among Fig. 2 (a) that data file begins and 32 byte content of ending.The setting fragment length is 0x4000, and then shown in Fig. 2 (b), whole data file is divided into 5 data fragments, and the length of 4 the data fragments in front is 0x4000, and it is full that last data slot is not write, and having only length is that the part of 0x2000 has write content.
Method two:
Data file is divided into the incomplete same data slot of a plurality of length, for example, data file before the division still shown in Fig. 2 (a), length is 0x00012000, data file is divided into 4 data fragments shown in Fig. 2 (c), and each data slot length respectively is 0x2000,0x6000,0x7000,0x3000.
After with above-mentioned either party's formula the data file being carried out segmentation and obtains data slot, need identify each data slot allocated segment successively.For sake of convenience, be 1,2 to each data slot allocation identification successively ... n.
Step 102: source device calculates the cyclic redundancy check (CRC) crc value of each data slot.
Source device utilizes cyclic redundancy check method after data file is divided into a plurality of data slots, calculates the crc value of each data slot.
Calculate the crc value of each data slot at source device after, the embodiment of the invention one provides but is not limited to following three kinds of methods of preserving the crc value of each data slot:
Method one: the fixed position that the crc value is kept at each data slot.
The crc value of each data slot that source device will calculate is kept at the fixed position of corresponding data fragment.Further, can add the fragment end mark in the ending of non-last data slot content, the ending of a data segment contents in the end adds an EOF so that target device correctly the transmission of judgment data fragment and data file whether finish.
Method two: the crc value is kept in the parameter fragment.
In the method, source device increases a parameter fragment at the data head of data file, be this fragment allocation sheet segment identification, for sake of convenience, be this fragment allocation sign 0, the length of fragment 0 can be to set according to the transfer of data demand of reality, as long as the required space of content that the length of fragment 0 is carried more than or equal to needs.
The crc value of each data slot that source device will calculate writes fragment 0.In order to make target device can from fragment 0, correctly discern the crc value of each data slot, in fragment 0, write in the crc value, also write down the corresponding data slot of each crc value; Perhaps, in fragment 0, open up the zone of the crc value that is exclusively used in the storage data slot, the order of the sign according to data slot ascending (or descending), write the crc value of data slot successively, make target device according to the correct relation of recognition data fragment and crc value of the order of the order of the data slot that receives and the crc value that reads.
Further, the length of the length of original document total length, each data slot and parameter fragment can also be write the relevant position of fragment 0.Whether above-mentioned three parameters can be used for the transmission of succeeding target equipment judgment data file, certain data slot or parameter fragment and finish.
Every content that above-mentioned needs are kept at fragment 0 write finish after, source device calculates the crc value of fragment 0, and the crc value of the parameter fragment that calculates write the fixed position of fragment 0, be used for succeeding target equipment according to whether success of the transmission of the crc value verification fragment 0 of parameter fragment.
Method three: the crc value is kept in the request message.
Source device generates a request message, and the crc value of each data slot of calculating is kept in the fixed position of request message.
Further, the length of data file total length and each data slot can be write the relevant position of request message.Whether the transmission that above-mentioned two parameters can be used for succeeding target equipment judgment data file or certain data slot is finished, to determine next step operation.
Step 103: source device is transferred to target device with the crc value of data slot and this data slot.
At three kinds of methods of preserving the crc values in the step 102, following three kinds of transmission modes also are provided in this step, the crc value of data slot and data slot is sent to target device:
Transmission mode one:
If source device is kept at the fixed position of each data slot with the crc value, then in this step, source device directly is transferred to target device with each data slot.
Transmission mode two:
If source device is kept at the crc value in the parameter fragment of extra setting, then in this step, because the content of parameter fragment provides target device follow-up operating basis to the data fragment, therefore, source device is transferred to target device according to the condition of parameter fragment prior to the data slot transmission with described parameter fragment and each data slot.More preferably, can after receiving the response message of the parameter fragments for transport success that target device returns, source device continue the transmission data slot again.
Transmission mode three:
If source device is kept at the crc value in the request message, because the content of request message provides target device follow-up operating basis to the data fragment, therefore, source device is at first to the target device transfer request message, and after the request message transmission success, continue the transmission data slot again.
Scheme by the embodiment of the invention one, source device sends to target device with the crc value of data slot and each data slot in several ways, because data file is burst, therefore, target device can carry out reception, the verification of data at the short data slot of length, has improved the accuracy of data file transmission.
Embodiment two:
The embodiment of the invention two provides a kind of method of data file verification on the basis of the transmission data file of embodiment one, as shown in Figure 3, may further comprise the steps:
Step 201: target device calculates the crc value of this data slot after receiving data slot.
In this step, the crc value of the algorithm computation data slot that target device is identical with the source device employing.
Step 202: the crc value of this data slot of crc value that target device calculates self and source device transmission compares; If comparative result is a crc value coupling, then execution in step 203; Otherwise, execution in step 204.
Step 203: target device is determined this data slot verification succeeds.
Step 204: target device is determined this data slot verification failure.
Consider that source device among the embodiment one has three kinds at least to the transmission mode of target device transmission data slot, therefore, in the scheme of present embodiment two, target device receives data slot, and also can comprise following three kinds to the mode that the data fragment is carried out verification:
Checking mode one:
If source device sends the crc value of data slot and data slot to target device according to the transmission mode in the step 103 one, then behind the data slot that target device reception sources equipment directly transmits, at first judge by the fragment end mark/EOF of each data slot whether the reception of data fragment/data file is finished, and the data slot that finishes receiving is carried out verification.Its verification mode is: when target device whenever finishes receiving a data fragment, calculate the crc value of this data slot, and compare with the crc value that is kept at fixed position in this fragment, if two crc values do not match, the verification failure of this data slot, target device request source equipment retransmits the data slot of verification failure; Otherwise, the verification succeeds of this data slot, target device continues to receive and other data slots of verification.Finish up to the transmission of judging whole data file according to EOF, and during the equal verification succeeds of each fragment, target device is integrated each data slot again, obtains the data file of source device transmission.
Checking mode two:
If source device sends the crc value of data slot and data slot to target device according to the transmission mode in the step 103 two, then target device at first receives the parameter fragment, and judge by the length of the parameter fragment that provides in the parameter fragment whether the parameter fragment is transmitted and finish, after the entire parameter fragment is received in judgement, the crc value of the parameter fragment that calculating receives, and compare with the crc value that is kept at fixed position in the parameter fragment, if two crc values do not match, the verification failure of parameter fragment, request source equipment retransmits the parameter fragment, otherwise, the verification succeeds of parameter fragment, target device extracts the crc value of each data slot that carries from the parameter fragment, and utilizes the crc value checking data fragment of extracting.
Target device can carry out verification to the data slot that receives according to the mode of single-threaded or multithreading.
Under single-threaded verification mode, target device is after parameter fragment verification succeeds, receive first data slot again, and judge according to the length of each data slot in the parameter fragment whether the transmission of first data slot is finished, after judgement receives first complete data slot, calculate the crc value of this first data slot, and compare with the crc value that is kept at this first data slot in the parameter fragment, if two crc values do not match, the verification failure of this data slot, target device request source equipment retransmits the data slot of verification failure; Otherwise, the verification succeeds of this data slot, continue to receive second data fragment, and in the manner described above second data fragment carried out verification, transmitted and finished up to judge whole data file according to the original document total length in the parameter fragment, and the equal verification succeeds of each data slot, target device is finished the verification of whole data file.
Need to prove that under single-threaded verification mode, target device can receive only a data fragment at every turn, and when this data slot verification succeeds, receive next data slot again; Target device also can receive only the individual data fragment of N (N for greater than 1 positive integer) at every turn, and receives N data fragment afterwards all during verification succeeds again this N data fragment; If not verification succeeds of at least one data slot is arranged in N the data fragment, then target device retransmits the data slot that verification is failed with request source equipment, until N data fragment complete verification success.
Under the multithreading verification mode, target device is after parameter fragment verification succeeds, target device is to receiving when full data slot carries out verification, if currently do not receive data slot completely in addition, while then target device receives other data slot with carrying out the data slot verification.At current at least one data slot that carries out verification all during verification succeeds, continuation determines also not carry out the data slot of data check from the data slot that has received, and calculate the crc value that continues the established data fragment, and carry out verification to continuing the established data fragment; Otherwise request source equipment retransmits the data slot of verification failure.
Checking mode three:
If source device sends the crc value of data slot and data slot according to the transmission mode three-dimensional target device in the step 103, then target device at first receives request message, extracts the information such as length of the crc value of each data slot and original document total length, each data slot from request message.
After target device receives data slot, judge according to the length of each data slot that carries in the request message whether the transmission of this data slot is finished, after judgement receives complete data slot, the crc value of the data slot that calculating receives, and with request message in the crc value of this data slot of carrying compare, if two crc values do not match, the verification of this data slot failure, target device retransmits request source equipment the data slot of verification failure; Otherwise, the verification succeeds of this data slot continues other data slots of verification, finishes up to the transmission of judging whole data file according to the data file total length in the request message, and the equal verification succeeds of each data slot, target device is finished the verification of whole data file.
Embodiment three:
The embodiment of the invention three describes by the scheme of concrete example to embodiment one and embodiment two.
Be example with the data file shown in the transmission diagram 2 (a) still, source device comprises to the method that target device sends data file and target device carries out verification to the data file that receives in the present embodiment three:
The first step, setting section length are 0x4000, according to this fragment length the data file is carried out segmentation, because the data file total length is 0x00012000, so data file can be divided into 5 data fragments, each data slot number consecutively is 1,2 ... 5, the not enough 0x4000 size of last data slot, segmentation result is shown in Fig. 2 (b).
Second step, increase the parameter fragment of a 0x4000 size at the data file head, this parameter segment number is 0.In the present embodiment, the data file after the increase parameter fragment can be called new file, the data file when not increasing the parameter fragment is called original document.Since before increasing the parameter fragment, the total big or small 0x00012000 of data file, therefore, the deviation post of original file content in new file is 0x4000, except that last data slot, the size of each data slot is 0x4000.
The 3rd step, the 1st to the 5th data fragment of file calculated crc value respectively, obtain crc1, crc2, crc3, crc4, the crc5 of the 1st to the 5th data fragment correspondence, and the crc value that obtains is write in the fragment 0 position accordingly respectively.
The 4th step, the length of the length of the total length of described data file, each data slot and described parameter fragment is placed relevant position in the described parameter fragment.
The 5th step, calculating have increased the crc of the fragment 0 after every information, and write the fixed position of fragment 0.
The 6th step, the fragment 0 of new file is transferred to target device.
After the 7th step, the complete reception fragment 0 of length of target device, fragment 0 is carried out verification according to the parameter fragment.
Target device calculates the crc value of fragment 0, and with fragment 0 in the crc value of this fragment 0 of fixed position preservation compare, if comparative result is inconsistent, then verification is not passed through, target device will ask to download fragment 0 again, turn back to for the 6th step; If the comparative result unanimity, verification is passed through, and the transmission success of expression fragment 0 carried out for the 8th step.
The 8th step, source device arrive target device with a data fragments for transport.
The 9th step, target device according to the length of data slot is complete receive this data slot after, calculate the crc value of this fragment, and the crc value of this data slot that writes in result of calculation and the fragment 0 made comparisons, if two crc values are consistent, represent this data slot transmission success, jumped to for the tenth step; If it is inconsistent to judge the crc value, then this data slot is downloaded in request again, and when data downloaded fragment verification succeeds again, jumps to for the tenth step.
The tenth step, target device are judged current whether complete received data file according to the length of the total length of data file and data slot, if, then will receive and the data slot of verification succeeds is integrated into data file, and the operation of end data file transfer and verification; Otherwise, jumped to for the 8th step.
Repeated for the 8th step to the tenth step, all data slots all transmit with verification succeeds after, represent the success of whole file transfer.
By the present invention program, data file is divided into a plurality of data slots transmits, respectively the correctness of each data slot transmission is carried out timely verification by target device, can effectively improve the accuracy of transmission by timely discovery erroneous transmissions; Simultaneously, target device is when finding some or a plurality of data slot error of transmission, only need the data slot that error of transmission will take place request source equipment to transmit again, reduced the channel resource and the transmission time that need take when retransmitting, improved the efficiency of transmission of data file.
Embodiment four:
The embodiment of the invention four provides a kind of data file transmission equipment, and as shown in Figure 4, this equipment comprises segmentation module 11, a crc value computing module 12 and a transport module 13, wherein:
Segmentation module 11 is used for the data file is carried out segmentation, obtains a plurality of data slots; The one crc value computing module 12 is used to calculate the cyclic redundancy check (CRC) crc value of each data slot; Transport module 13 is used to transmit the crc value of data slot and this data slot.
Described segmentation module 11 also is used to generate the parameter fragment; A described crc value computing module 12 also is used to calculate the crc value of the parameter fragment after the crc value of inserting data slot; Described transport module 13 also is used for the transmission parameter fragment, and wherein, the parameter fragment is transmitted prior to data slot.
Described equipment also comprises: information is inserted module 14, is used for the crc value of each data slot is placed in the parameter fragment, and the crc of this parameter fragment is placed in the parameter fragment; Further, described information is inserted module 14 and also is used for the total length of described data file, the length of each data slot and the length of described parameter fragment are placed in the described parameter fragment.
Embodiment five:
The embodiment of the invention five provides a kind of data file calibration equipment, and as shown in Figure 5, this equipment comprises receiver module 21, the 2nd crc value computing module 22 and verification module 23, wherein:
Receiver module 21 is used to receive the crc value of data slot and this data slot; The 2nd crc value computing module 22 is used to calculate the crc value of the data slot that receives; Verification module 23 is used for the crc value of data slot that the 2nd crc value computing module is calculated and the crc value of the data slot that receives compares, if the crc value of the data slot that calculates is mated with the crc value of this data slot that receives, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
Described receiver module 21 also is used to receive the crc value of parameter fragment and this parameter fragment; Described the 2nd crc value computing module 22 also is used to calculate the crc value of the parameter fragment that receives; Described verification module 23 also is used for determining described parameter fragment verification succeeds when the crc value of determining the parameters calculated fragment is mated with the crc value of the parameter fragment that receives.
Described equipment also comprises: the crc value of each data slot that information determination module 24 is used for determining that described parameter fragment is carried.
Described verification module 23 also is used for after determining this data slot verification failure, the data slot of request retransmission verification failure.
Described verification module 23, after specifically being used for whenever receiving at least one data slot, calculate the crc value of described at least one data slot, and the crc value of at least one data slot that will calculate compares with the crc value that receives described at least one data slot, at definite described at least one data slot all during verification succeeds, continue to receive data slot, and calculate the crc value of the data slot continue to receive, and the data slot that continues to receive carried out verification, otherwise request source equipment retransmits the data slot of verification failure.
Described verification module 23, specifically be used for after definite at least one the data fragment of the data slot that has received, calculate the crc value of described at least one data slot of determining, and the crc value of described at least one data slot that will calculate compares with the crc value that receives described at least one data slot, at definite described at least one data slot all during verification succeeds, continuation determines also not carry out the data slot of data check from the data slot that has received, and calculating continues the crc value of established data fragment, and carry out verification to continuing the established data fragment, otherwise request source equipment retransmits the data slot of verification failure.
The equipment that provides among embodiment four and the embodiment five can be two physical equipments independently, realize the various functions of data file transmission, data file verification among the embodiment one to embodiment two respectively, also can be integrated in the physical equipment, the physical equipment of integrated embodiment four and embodiment five can use the functional module that relates among the embodiment four to realize data transfer operation to other equipment transmission data files the time; Simultaneously, this physical equipment can use the functional module that relates among the embodiment five to realize the operation of verification when receiving the data file that other equipment transmit.
The embodiment of the invention six provides a kind of data file check system, and as shown in Figure 6, this equipment comprises and connect source device 31 and target device 32, wherein:
Source device 31 is used for the data file is carried out segmentation, obtains a plurality of data slots, calculates the cyclic redundancy check (CRC) crc value of each data slot, and the crc value of data slot and this data slot is sent to target device 32; Target device 32 is used at the data slot that receives, calculate the crc value of this data slot, and the crc value of the crc value of the data slot that calculates and the data slot that receives compared, mate with the crc value of this data slot that receives if determine the crc value of the data slot of calculating, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
The source device 31 that relates in the embodiment of the invention six can be the source device that relates among the realization embodiment one to embodiment three, and has the various functional modules that relate among the embodiment four; Target device 32 is the target devices that relate among the realization embodiment one to embodiment three, and has the various functional modules that relate among the embodiment five, does not repeat them here.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. the method for data file transmission is characterized in that this method comprises:
Source device carries out segmentation to the data file, obtains a plurality of data slots;
Source device calculates the cyclic redundancy check (CRC) crc value of each data slot;
Source device sends to target device with the crc value of data slot and this data slot.
2. the method for claim 1 is characterized in that, calculates after the crc value of each data slot, and the crc value of data slot and this data slot is transferred to before the target device, and described method also comprises:
Source device places the crc value of each data slot in the parameter fragment, and calculates the crc value of the parameter fragment after the crc value of inserting data slot, and the crc value of this parameter fragment is placed in the parameter fragment;
Described crc value with data slot and this data slot is transferred to target device, specifically comprises:
Source device is transferred to target device with described parameter fragment and each data slot, and wherein, the parameter fragment is transmitted prior to data slot.
3. the method for a data file verification is characterized in that, described method comprises:
Target device calculates the crc value of this data slot at the data slot that receives, and the crc value of the crc value of the data slot that calculates and the data slot that receives is compared;
If target device is determined the crc value of the data slot of calculating and is mated with the crc value of this data slot that receives, then determines this data slot verification succeeds; Otherwise, determine this data slot verification failure.
4. method as claimed in claim 3 is characterized in that, before the crc value of target device calculated data fragment, described method also comprises:
Target device calculates the crc value of this parameter fragment at the parameter fragment that receives, and when the crc value of the parameter fragment of carrying in the crc value of determining the parameters calculated fragment and this parameter fragment is mated, determines described parameter fragment verification succeeds;
Target device is determined the crc value of each data slot of carrying in the described parameter fragment.
5. method as claimed in claim 3 is characterized in that, after determining this data slot verification failure, described method also comprises:
Target device request source equipment retransmits the data slot of verification failure.
6. the equipment of data file transmission is characterized in that this equipment comprises:
Segmentation module is used for the data file is carried out segmentation, obtains a plurality of data slots;
The one crc value computing module is used to calculate the cyclic redundancy check (CRC) crc value of each data slot;
Transport module is used to transmit the crc value of data slot and this data slot.
7. equipment as claimed in claim 6 is characterized in that,
Described segmentation module also is used to generate the parameter fragment;
A described crc value computing module also is used to calculate the crc value of the parameter fragment after the crc value of inserting data slot;
Described equipment also comprises:
Information is inserted module, is used for the crc value of each data slot is placed in the parameter fragment, and the crc value of this parameter fragment is placed in the parameter fragment;
Described transport module also is used for the transmission parameter fragment, and wherein, the parameter fragment is transmitted prior to data slot.
8. the equipment of a data file verification is characterized in that, this equipment comprises:
Receiver module is used to receive the crc value of data slot and this data slot;
The 2nd crc value computing module is used to calculate the crc value of the data slot that receives;
The verification module, the crc value of the data slot that is used for the crc value of data slot that the 2nd crc value computing module is calculated and receives compares, if the crc value of the data slot that calculates is mated with the crc value of this data slot that receives, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
9. equipment as claimed in claim 8 is characterized in that,
Described receiver module also is used to receive the crc value of parameter fragment and this parameter fragment;
Described the 2nd crc value computing module also is used to calculate the crc value of the parameter fragment that receives;
Described verification module also is used for determining described parameter fragment verification succeeds when the crc value of determining the parameters calculated fragment is mated with the crc value of the parameter fragment that receives;
Described equipment also comprises:
The information determination module, the crc value of each data slot that is used for determining that described parameter fragment is carried.
10. equipment as claimed in claim 8 is characterized in that,
Described verification module also is used for after determining this data slot verification failure the data slot of request retransmission verification failure.
11. a data file check system is characterized in that described system comprises source device and target device, wherein:
Source device is used for the data file is carried out segmentation, obtains a plurality of data slots, calculates the cyclic redundancy check (CRC) crc value of each data slot, and the crc value of data slot and this data slot is sent to target device;
Target device, be used at the data slot that receives, calculate the crc value of this data slot, and the crc value of the crc value of the data slot that calculates and the data slot that receives compared, mate with the crc value of this data slot that receives if determine the crc value of the data slot of calculating, then determine this data slot verification succeeds; Otherwise, determine this data slot verification failure.
CN201010207720.7A 2010-06-13 2010-06-13 Method, equipment and system for transmitting and verifying data file Expired - Fee Related CN102281121B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010207720.7A CN102281121B (en) 2010-06-13 2010-06-13 Method, equipment and system for transmitting and verifying data file
PCT/CN2011/072118 WO2011157074A1 (en) 2010-06-13 2011-03-24 Method, device and system for transferring and checking data files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010207720.7A CN102281121B (en) 2010-06-13 2010-06-13 Method, equipment and system for transmitting and verifying data file

Publications (2)

Publication Number Publication Date
CN102281121A true CN102281121A (en) 2011-12-14
CN102281121B CN102281121B (en) 2014-10-29

Family

ID=45106323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010207720.7A Expired - Fee Related CN102281121B (en) 2010-06-13 2010-06-13 Method, equipment and system for transmitting and verifying data file

Country Status (2)

Country Link
CN (1) CN102281121B (en)
WO (1) WO2011157074A1 (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752283A (en) * 2012-05-30 2012-10-24 福建省三奥信息科技股份有限公司 Method and system for transmitting files with large data sizes
CN103106068A (en) * 2013-02-28 2013-05-15 江苏物联网研究发展中心 Internet of things big data fast calibration method
CN103838683A (en) * 2012-11-22 2014-06-04 华为终端有限公司 Method and device for data transmission
CN103957080A (en) * 2014-04-30 2014-07-30 浙江中控技术股份有限公司 Data integrity checking method and system
CN104579948A (en) * 2013-10-29 2015-04-29 国家计算机网络与信息安全管理中心 Method and device for fragmenting message
CN105491132A (en) * 2015-12-11 2016-04-13 北京元心科技有限公司 File server, terminal and file subpackage transmission method
CN105612697A (en) * 2013-10-11 2016-05-25 Arm有限公司 Cumulative error detection in data transmission
CN106161473A (en) * 2016-09-06 2016-11-23 北京恒华伟业科技股份有限公司 The method for uploading of a kind of data and system
CN106843958A (en) * 2017-01-18 2017-06-13 成都黑盒子电子技术有限公司 A kind of embedded firmware upgrading method
CN107172174A (en) * 2017-06-01 2017-09-15 重庆高略启达智慧城市信息技术有限公司 The quick upload of file is realized between clients and servers
CN107509085A (en) * 2017-08-24 2017-12-22 山东浪潮商用系统有限公司 The storage method and device of a kind of files in stream media
CN108512809A (en) * 2017-02-24 2018-09-07 北京优朋普乐科技有限公司 A kind of transmission method and equipment of media file
CN108900282A (en) * 2018-06-29 2018-11-27 南昌华勤电子科技有限公司 The method of checking data integrity
CN109194593A (en) * 2018-08-29 2019-01-11 百度在线网络技术(北京)有限公司 Method for sending information, device, equipment and computer readable storage medium
CN109525542A (en) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Data reconstruction method, transmitting/receiving means and computer readable storage medium
CN110138867A (en) * 2019-05-17 2019-08-16 哈工大机器人(山东)智能装备研究院 File transmission and method of reseptance, computer equipment and storage medium
CN110363027A (en) * 2019-06-21 2019-10-22 捷德(中国)信息科技有限公司 A kind of generation of electronic contract and electric endorsement method
CN111104248A (en) * 2018-10-26 2020-05-05 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for verifying cached files
CN111314021A (en) * 2020-02-07 2020-06-19 北京字节跳动网络技术有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN111464258A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Data verification method, device, computing equipment and medium
CN112655243A (en) * 2020-12-14 2021-04-13 华为技术有限公司 Data transmission method and data transmission equipment
WO2021077335A1 (en) * 2019-10-23 2021-04-29 深圳市欢太科技有限公司 Abnormality recovery method, abnormality recovery apparatus, and mobile terminal
CN113872735A (en) * 2020-06-30 2021-12-31 京东方科技集团股份有限公司 Data transmission method, device and equipment
CN114788199A (en) * 2019-12-31 2022-07-22 华为技术有限公司 Data verification method and device
CN115314486A (en) * 2022-07-20 2022-11-08 交控科技股份有限公司 Software upgrading method and device for train control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159514A (en) * 2007-10-31 2008-04-09 中兴通讯股份有限公司 Method of adding cyclic redundancy code of transmission block
CN101272221A (en) * 2008-05-04 2008-09-24 中兴通讯股份有限公司 Transmission, receiving method and device of file data
EP2026470A1 (en) * 2007-08-17 2009-02-18 Panasonic Corporation Running cyclic redundancy check over coding segments

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673296B (en) * 2009-09-02 2011-07-20 太仓市同维电子有限公司 Method for checking file in the process of data communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2026470A1 (en) * 2007-08-17 2009-02-18 Panasonic Corporation Running cyclic redundancy check over coding segments
CN101159514A (en) * 2007-10-31 2008-04-09 中兴通讯股份有限公司 Method of adding cyclic redundancy code of transmission block
CN101272221A (en) * 2008-05-04 2008-09-24 中兴通讯股份有限公司 Transmission, receiving method and device of file data

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752283B (en) * 2012-05-30 2015-05-13 福建省三奥信息科技股份有限公司 Method and system for transmitting files with large data sizes
CN102752283A (en) * 2012-05-30 2012-10-24 福建省三奥信息科技股份有限公司 Method and system for transmitting files with large data sizes
CN103838683A (en) * 2012-11-22 2014-06-04 华为终端有限公司 Method and device for data transmission
CN103838683B (en) * 2012-11-22 2017-10-31 华为终端有限公司 The method and apparatus of data transfer
CN103106068A (en) * 2013-02-28 2013-05-15 江苏物联网研究发展中心 Internet of things big data fast calibration method
CN103106068B (en) * 2013-02-28 2015-03-18 江苏中科物联网科技创业投资有限公司 Internet of things big data fast calibration method
CN105612697A (en) * 2013-10-11 2016-05-25 Arm有限公司 Cumulative error detection in data transmission
CN104579948A (en) * 2013-10-29 2015-04-29 国家计算机网络与信息安全管理中心 Method and device for fragmenting message
CN103957080B (en) * 2014-04-30 2017-05-31 浙江中控技术股份有限公司 A kind of data integrity verifying method and system
CN103957080A (en) * 2014-04-30 2014-07-30 浙江中控技术股份有限公司 Data integrity checking method and system
CN105491132A (en) * 2015-12-11 2016-04-13 北京元心科技有限公司 File server, terminal and file subpackage transmission method
CN106161473A (en) * 2016-09-06 2016-11-23 北京恒华伟业科技股份有限公司 The method for uploading of a kind of data and system
CN106843958A (en) * 2017-01-18 2017-06-13 成都黑盒子电子技术有限公司 A kind of embedded firmware upgrading method
CN108512809A (en) * 2017-02-24 2018-09-07 北京优朋普乐科技有限公司 A kind of transmission method and equipment of media file
CN107172174A (en) * 2017-06-01 2017-09-15 重庆高略启达智慧城市信息技术有限公司 The quick upload of file is realized between clients and servers
CN107509085A (en) * 2017-08-24 2017-12-22 山东浪潮商用系统有限公司 The storage method and device of a kind of files in stream media
CN107509085B (en) * 2017-08-24 2019-12-24 山东浪潮商用系统有限公司 Storage method and device of streaming media file
CN109525542A (en) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Data reconstruction method, transmitting/receiving means and computer readable storage medium
CN108900282A (en) * 2018-06-29 2018-11-27 南昌华勤电子科技有限公司 The method of checking data integrity
CN109194593A (en) * 2018-08-29 2019-01-11 百度在线网络技术(北京)有限公司 Method for sending information, device, equipment and computer readable storage medium
CN111104248A (en) * 2018-10-26 2020-05-05 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for verifying cached files
CN111464258B (en) * 2019-01-18 2022-10-11 阿里巴巴集团控股有限公司 Data verification method, device, computing equipment and medium
CN111464258A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Data verification method, device, computing equipment and medium
CN110138867A (en) * 2019-05-17 2019-08-16 哈工大机器人(山东)智能装备研究院 File transmission and method of reseptance, computer equipment and storage medium
CN110363027A (en) * 2019-06-21 2019-10-22 捷德(中国)信息科技有限公司 A kind of generation of electronic contract and electric endorsement method
CN110363027B (en) * 2019-06-21 2021-04-09 捷德(中国)科技有限公司 Electronic contract generation and electronic signature method
WO2021077335A1 (en) * 2019-10-23 2021-04-29 深圳市欢太科技有限公司 Abnormality recovery method, abnormality recovery apparatus, and mobile terminal
CN114788199A (en) * 2019-12-31 2022-07-22 华为技术有限公司 Data verification method and device
CN111314021A (en) * 2020-02-07 2020-06-19 北京字节跳动网络技术有限公司 Data transmission method and device, electronic equipment and computer readable storage medium
CN113872735A (en) * 2020-06-30 2021-12-31 京东方科技集团股份有限公司 Data transmission method, device and equipment
US11770212B2 (en) 2020-06-30 2023-09-26 Boe Technology Group Co., Ltd. Data transmission methods, data transmission device, and data transmission apparatuses
CN113872735B (en) * 2020-06-30 2023-10-24 京东方科技集团股份有限公司 Data transmission method, device and equipment
WO2022126315A1 (en) * 2020-12-14 2022-06-23 华为技术有限公司 Data transmission method and data transmission device
CN112655243A (en) * 2020-12-14 2021-04-13 华为技术有限公司 Data transmission method and data transmission equipment
CN112655243B (en) * 2020-12-14 2022-10-28 华为技术有限公司 Data transmission method and data transmission device
CN115314486A (en) * 2022-07-20 2022-11-08 交控科技股份有限公司 Software upgrading method and device for train control system

Also Published As

Publication number Publication date
WO2011157074A1 (en) 2011-12-22
CN102281121B (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN102281121B (en) Method, equipment and system for transmitting and verifying data file
CN106843942B (en) Wearable device and firmware upgrading method thereof
CN102546784B (en) Method for conducting batch upgrading for device firmware based on controller area network (CAN) bus
CN101031110B (en) Apparatus and method for processing bursts in wireless communication system
WO2021008248A1 (en) Data frame reception method and device and communication method and system
CN106031072A (en) Harq frame data structure and method of transmitting and receiving with harq in systems using blind detection
US20100192051A1 (en) Checking method and eletronic circuit for the secure serial transmission of data
US20100138573A1 (en) System including transmitter and receiver
CN108279910B (en) Program code programming method and device, computer equipment and storage medium
US11356210B2 (en) Data verification information generation and feedback method, data verification information receiving method and device
WO2011137640A1 (en) File transmission method, file transmission apparatus and file reception apparatus
CN101325475A (en) Method for remotely upgrading embedded system software
CN105531956A (en) System and method for performing hybrid automatic repeat request (HARQ) in a WLAN system
CN106656424A (en) Verification method of data transmission
CN111290769B (en) Method for updating configuration data on line
JP3996928B2 (en) How to handle corrupted data
CN107852275A (en) Data transmission device and data transmission method, reception device and method of reseptance, program and data transmission system
CN101764669A (en) CRC code check method in data receiving process
CN104714761A (en) Wireless data printing system and method of equipment with Android system
CN103199966A (en) Data transmission method in industrial control system, industrial control subsystems and industrial control system
CN109286472B (en) Concurrent data asynchronous transmission method based on Beidou satellite navigation system
CN109039536A (en) Transmission method, equipment and the readable medium of data
CN108551382A (en) A kind of communication data error correction method and device
US20210014006A1 (en) System and method for implementing a hybrid automatic repeat request process
CN109783433A (en) A kind of configuration method of algorithm acceleration system and accelerator card

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141029

Termination date: 20170613

CF01 Termination of patent right due to non-payment of annual fee