Method, device and system for data file transmission and verification
A data file and equipment technology, applied in the field of data file transmission and verification, can solve the problem of not being able to find data file errors in time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] Such as figure 1 As shown, it is a method for data file transmission provided by Embodiment 1 of the present invention, and the specific steps are:
[0038] Step 101: the source device segments the data file.
[0039] In this step, the source device may segment the data file according to the preset number of data segments and the length of each data segment. Including but not limited to the following two segmentation methods.
[0040] method one:
[0041] Set a segment length, and divide the data file into multiple data segments evenly according to the set segment length. If the data file length cannot be completely evenly divided, the length of the last data segment can be smaller than the set segment length. For example, as shown in Figure 2(a), it is a data file with a length of 0x00012000. Figure 2(a) only shows the 32 bytes at the beginning and the 32 bytes at the end of the data file. Set the segment length to 0x4000, as shown in Figure 2(b), the entire data f...
Embodiment 2
[0068] Embodiment 2 of the present invention provides a data file verification method on the basis of the transmission data file in Embodiment 1, such as image 3 shown, including the following steps:
[0069] Step 201: After receiving the data segment, the target device calculates the crc value of the data segment.
[0070] In this step, the target device and the source device use the same algorithm to calculate the crc value of the data segment.
[0071] Step 202: The target device compares the crc value calculated by itself with the crc value of the data segment sent by the source device; if the comparison result is that the crc value matches, then go to step 203; otherwise, go to step 204.
[0072] Step 203: the target device determines that the verification of the data segment is successful.
[0073] Step 204: the target device determines that the verification of the data segment fails.
[0074] Considering that there are at least three transmission modes in which the ...
Embodiment 3
[0087] Embodiment 3 of the present invention illustrates the schemes of Embodiment 1 and Embodiment 2 through specific examples.
[0088] Still taking the transmission of the data file shown in Figure 2(a) as an example, the method for the source device to send the data file to the target device and the target device to verify the received data file in Embodiment 3 includes:
[0089] The first step is to set the segment length to 0x4000, and segment the data file according to the segment length. Since the total length of the data file is 0x00012000, the data file can be divided into 5 data segments, and each data segment is sequentially numbered as 1, 2...5, the size of the last data segment is less than 0x4000, and the segmentation result is shown in Figure 2(b).
[0090] The second step is to add a parameter segment with a size of 0x4000 at the header of the data file, and the parameter segment number is 0. In this embodiment, the data file with added parameter segments may...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 