CN111147540B - File transmission method, device, equipment and storage medium - Google Patents

File transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN111147540B
CN111147540B CN201911128172.6A CN201911128172A CN111147540B CN 111147540 B CN111147540 B CN 111147540B CN 201911128172 A CN201911128172 A CN 201911128172A CN 111147540 B CN111147540 B CN 111147540B
Authority
CN
China
Prior art keywords
file
data packet
packet
cache region
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911128172.6A
Other languages
Chinese (zh)
Other versions
CN111147540A (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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201911128172.6A priority Critical patent/CN111147540B/en
Publication of CN111147540A publication Critical patent/CN111147540A/en
Application granted granted Critical
Publication of CN111147540B publication Critical patent/CN111147540B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The present application relates to the field of file transmission technologies, and in particular, to a file transmission method, apparatus, device, and storage medium. The method comprises the following steps: receiving a data packet sent by file sending equipment; judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets; when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file; deleting the data of the cache region; and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region. According to the technical scheme, the file transmission speed can be improved.

Description

File transmission method, device, equipment and storage medium
Technical Field
The present application relates to the field of file transmission technologies, and in particular, to a file transmission method, apparatus, device, and storage medium.
Background
Information needs to be transferred between electronic devices, for example, files need to be transferred between electronic devices to realize required functions. For example, the file sending device may send a file to the file receiving device, and specifically, the file sending device sends the file to the vehicle diagnostic device, so that the vehicle diagnostic device writes the electronic control unit of the vehicle according to the received file. The existing file transmission method is slow in file transmission speed and difficult to meet the requirements of people.
Therefore, how to provide a scheme capable of quickly transferring files is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a file transmission method, a file transmission device, file transmission equipment and a storage medium, and aims to solve the technical problem that the existing file transmission speed is low.
In a first aspect, the present application provides a file transmission method, where the file includes multiple data packets, and the method includes:
receiving a data packet sent by file sending equipment;
judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets;
when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file;
deleting the data of the cache region;
and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
Preferably, the data packet further includes a current packet sequence number, and the method further includes:
when the current packet serial number is the first packet serial number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged;
when a corresponding preset file exists in a target position corresponding to the saving path, deleting the preset file;
when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path and opening the target file;
and sending a first confirmation instruction to the file sending equipment so as to enable the file sending equipment to send a new data packet.
Preferably, after receiving the data packet sent by the file sending device, the method further includes:
when the current packet sequence number is greater than the first packet sequence number, comparing the current packet sequence number with the packet sequence number of the last received data packet;
when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet;
when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of a preset cache region can store the data packet or not;
and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment so that the file sending equipment sends the data packet with the packet sequence number which is the packet sequence number plus one of the last received data packet.
Preferably, the data packet further includes a total packet sequence number, and the method further includes:
judging whether the file is completely transmitted according to the current packet sequence number and the total packet sequence number;
when the file transmission is finished, storing the data packet of the cache region in the target file;
closing the target file;
and transmitting a completion instruction to the file sending equipment.
Preferably, the method further comprises:
and after the file transmission is interrupted, receiving a data packet which is sent by the file sending equipment and corresponds to the current packet sequence number when the file transmission is interrupted.
Preferably, the determining whether the storage space of the preset buffer area can store the data packet includes:
judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not;
determining that the data packets can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packets in the cache region and the length of the received data packets is less than or equal to the length of the cache region;
and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is greater than the length of the cache region.
Preferably, the data packet further includes check information, and after receiving the data packet sent by the file sending device, the method further includes:
verifying the data packet according to the verification information;
and when the verification fails, sending a current packet retransmission instruction to the file sending equipment so that the file sending equipment resends the data packet failed in verification.
In a second aspect, the present application further provides a file transfer apparatus, including:
the receiving module is used for receiving the data packet sent by the file sending equipment;
the space judgment module is used for judging whether a storage space of a preset cache region can store the data packet or not, and the storage region can store a plurality of data packets;
the first storage module is used for storing the pre-stored data packet in the cache region into a preset and opened target file when the data packet cannot be stored in the storage space of the cache region;
the deleting module is used for deleting the data of the cache region;
and the second storage module is used for storing the data packet in the cache region when the data packet can be stored in the storage space of the cache region or the data in the cache region is deleted.
Preferably, the file transfer apparatus further includes:
the checking module is used for checking the data packet according to the checking information;
and the retransmission instruction sending module is used for sending a retransmission instruction of the current packet to the file sending equipment when the verification fails so as to enable the file sending equipment to resend the data packet failed in verification.
Preferably, the file transfer apparatus further includes:
the first judging module is used for judging whether a corresponding preset file exists in a target position corresponding to the saving path or not when the current packet serial number is the first packet serial number, wherein the data packet also comprises the saving path;
the deleting module is used for deleting the preset file when the corresponding preset file exists in the target position corresponding to the saving path;
the file creating module is used for creating a target file at a target position corresponding to the saving path and opening the target file when the corresponding preset file does not exist at the target position corresponding to the saving path;
the first instruction sending module is used for sending a first confirmation instruction to the file sending equipment so as to enable the file sending equipment to send a new data packet.
Preferably, the file transfer apparatus further comprises:
the comparison module is used for comparing the current packet sequence number with the packet sequence number of the last received data packet when the current packet sequence number is greater than the first packet sequence number;
a second instruction sending module, configured to send a second acknowledgement instruction to the file sending device when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, so that the file sending device sends a new data packet;
and the error instruction sending module is used for sending an error instruction to the file sending equipment when the current packet serial number is greater than the packet serial number plus one of the received last data packet, so that the file sending equipment sends the data packet with the packet serial number which is the packet serial number plus one of the received last data packet.
Preferably, the space determining module is further configured to determine whether the storage space of the preset buffer area can store the data packet only when the current packet sequence number is equal to the packet sequence number of the last received data packet plus one.
Preferably, the receiving module is further configured to receive, after the file transmission is interrupted, a data packet sent by the file sending device and having a current packet sequence number corresponding to the current packet sequence number when the file transmission is interrupted.
Preferably, the file transfer apparatus further comprises:
the second judgment module is used for judging whether the file is completely transmitted according to the current packet serial number and the total packet serial number;
the third storage module is used for storing the data packet of the cache region in the target file when the file transmission is finished;
a closing module for closing the target file;
and the transmission completion instruction sending module is used for transmitting a completion instruction to the file sending equipment.
Preferably, the file transfer apparatus further includes:
and the fourth storage module is used for storing and saving the current packet sequence number of the data packet.
Preferably, the space determination module includes:
the space judgment unit is used for judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not;
a first determining unit, configured to determine that the data packet can be stored in a storage space of the buffer if a sum of a data length of a pre-stored data packet in the buffer and a length of a received data packet is less than or equal to the length of the buffer;
and the second determining unit is used for determining that the data packet cannot be stored in the storage space of the buffer area when the sum of the data length of the pre-stored data packet of the buffer area and the length of the received data packet is greater than the length of the buffer area.
In a third aspect, the present application further provides a file receiving device, including:
a memory for storing a file transfer program;
and the processor is used for realizing the file transmission method in the embodiment of the first aspect of the application when executing the file transmission program.
In a fourth aspect, the present application further provides a storage medium, where the storage medium is a computer-readable storage medium, and a file transfer program is stored in the storage medium, where the file transfer program, when executed by a processor, implements the file transfer method according to the embodiment of the first aspect of the present application.
Compared with the prior art, the technical scheme provided by the application receives the data packet sent by the file sending equipment; judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets; when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file; deleting the data of the cache region; the data package can be stored in the storage space of the cache region or the data in the cache region can be deleted, the data package is stored in the cache region, the sent data package is stored in the cache region, the storage speed of the file can be improved, the transmission speed of the file is further improved, and when the file is transmitted, a target file for storing the data package is always opened, the problem that the target file can be closed when each data package is stored in a frequently opened mode is avoided, the storage speed of the file is further improved, and the transmission speed of the file is improved.
Drawings
Fig. 1 is a schematic diagram of a file transfer system according to a first embodiment of the present application.
Fig. 2 is a flowchart of a file transfer method according to a second embodiment of the present application.
Fig. 3 is a flowchart of a file transfer method according to the present application.
Fig. 4 is a flowchart of a file transfer method according to the present application.
Fig. 5 is a detailed flowchart of step S12 in fig. 1.
Fig. 6 is a flowchart of another embodiment of a file transfer method according to the present application.
Fig. 7 is a block diagram of a file transfer device according to a third embodiment of the present application.
Fig. 8 is a schematic structural diagram of a file receiving apparatus according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the embodiments may be combined with each other, but must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory to each other or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope claimed in the present application.
Referring to fig. 1, a file transfer system 10 according to a first embodiment of the present application includes a file sending device 11 and a file receiving device 12, where the file sending device 11 is in communication with the file receiving device 12. The file transmission apparatus 11 is used to transmit a file to the file reception apparatus 12.
The type of the document sending device 11 is not limited, and the document sending device 11 may be an upper computer, such as a personal computer, an industrial computer, and the like. When the file transmission device 11 and the file reception device 12 are communicatively connected, they may be connected wirelessly or by wire. The file transmitted by the file transmission apparatus 11 includes a plurality of packets.
The file receiving device 12 may be a vehicle diagnostic device, a PLC, a single chip microcomputer, or the like. When the file receiving device 12 receives the file transmitted by the file transmitting device 11, the method may include:
receiving a data packet sent by the file sending equipment 11;
judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets;
when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file;
deleting the data of the cache region;
and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
Preferably, the data packet further includes a current packet sequence number, and the file sending device 11 further implements:
when the current packet serial number is the first packet serial number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged;
when a corresponding preset file exists in a target position corresponding to the saving path, deleting the preset file;
when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path and opening the target file;
a first acknowledgement instruction is sent to the file sending apparatus 11 to cause the file sending apparatus 11 to send a new data packet.
Preferably, after receiving the data packet sent by the file sending device 11, the file receiving device 12 further implements:
when the current packet sequence number is greater than the first packet sequence number, comparing the current packet sequence number with the packet sequence number of the last received data packet;
when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending device 11, so that the file sending device 11 sends a new data packet;
when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of a preset cache region can store the data packet or not;
and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment 11 so that the file sending equipment 11 sends a data packet with the packet sequence number equal to the packet sequence number plus one of the last received data packet.
Preferably, the data packet further includes a total packet sequence number, and the file receiving device 12 further implements:
judging whether the file is completely transmitted according to the current packet sequence number and the total packet sequence number;
when the file transmission is finished, storing the data packet of the cache region in the target file;
closing the target file;
a completion instruction is transmitted to the file transmission apparatus 11.
Preferably, the determining whether the storage space of the preset buffer area can store the data packet includes:
judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is less than the length of the cache region,
determining that the data packets can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packets in the cache region and the length of the received data packets is less than or equal to the length of the cache region;
and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is less than the length of the cache region.
Preferably, the data packet further includes verification information, and after receiving the data packet sent by the file sending device 11, the file receiving device 12 further implements:
verifying the data packet according to the verification information;
and when the verification fails, sending a retransmission instruction of the current packet to the file sending device 11, so that the file sending device 11 resends the data packet with failed verification.
Preferably, the file receiving apparatus 12 further implements:
after the file transmission is interrupted, receiving a data packet sent by the file sending device 11, where the current packet sequence number is the data packet corresponding to the current packet sequence number when the file transmission is interrupted.
Referring to fig. 2, fig. 2 is a file transmission method provided in a second embodiment of the present application, where the file transmission method may be executed by a file transmission apparatus, the file transmission apparatus may be implemented by hardware and/or software, and the file transmission method may be applied to a file receiving device in the foregoing embodiment, and is used for receiving a file sent by a file sending device, where the file includes a plurality of data packets. The file transmission method comprises the following steps:
s11: and receiving the data packet sent by the file sending equipment.
When the file sending device sends the file to the file receiving device, the file is sent one by the data packets. Each data packet includes verification information for verifying the data packet. The type of the check information is not limited, for example, the check information may be a checksum. The data packet of the present application may further include a current packet sequence number and a total packet sequence number. It is understood that the data packet also includes other conventional contents of data, such as a main command, a file byte length, etc., and will not be described in this application. The total packet sequence number indicates how many data packets are included in the file sent by the file sending device in total, and is used for indicating that the current data packet is the second data packet in the file sent by the file sending device. If the file totally comprises 10 data packets, the total packet sequence number is 10, the current packet sequence numbers of the data packets may be 0-9 in sequence, and the current packet sequence numbers of the data packets may be 1-10 in sequence. The present application will be described with the sequence numbers of the current packets of the data packets being 0-9 in sequence. In the application, when the file sending device sends the file, the file is sent in sequence, the data packet with the current packet serial number corresponding to the first packet serial number is sent first, and then the data packet with the current packet serial number corresponding to the second packet serial number is sent, for example, when the current packet serial numbers of the data packets are 0-9 in sequence, the data packet with the current packet serial number corresponding to 0 is sent first, and then the data packet with the current packet serial number corresponding to 1 is sent. When the current packet sequence number is the first packet sequence number, that is, when the current packet sequence number is 0, the data packet further includes a save path.
Preferably, the file transfer method further includes:
verifying the data packet according to the verification information; and when the verification fails, sending a current packet retransmission instruction to the file sending equipment so that the file sending equipment resends the data packet failed in verification.
Specifically, if the check information is a checksum, the data packet is checked according to the checksum, and the data packet can be checked no matter what the data packet is, the data packet is. And the current packet retransmission instruction is used for enabling the file sending equipment to resend the data packet which fails to be checked. If the data packet with the current packet serial number of 2 is transmitted, the data packet with the current packet serial number of 2 is checked, if the data packet with the current packet serial number of 2 is not checked, a current packet retransmission instruction is sent to the file sending equipment, and if the file sending equipment receives the current packet retransmission instruction, the file sending equipment can send the data packet with the current packet serial number of 2 again.
In this application, the steps S12 and beyond are executed only when the current packet sequence number is greater than the first packet sequence number. Referring to fig. 3, when the current packet sequence number is the first packet sequence number, the file transmission method further includes:
s111: and when the current packet sequence number is the first packet sequence number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged.
The save path indicates the storage location of the received file transmitted by the file transmitting apparatus. And as the first data packet is received, the target position corresponding to the storage path should not have a corresponding preset file. If the same file is transmitted for the second time, and the like, the corresponding preset file exists in the target position corresponding to the saving path, and the preset file is not the file being transmitted. It is first determined that the target location corresponding to the saved path has a corresponding preset file.
S112: and deleting the preset file when the corresponding preset file exists in the target position corresponding to the saving path.
If the target position corresponding to the saving path has the corresponding preset file, the preset file is not the file being transmitted, and the preset file needs to be deleted to ensure the correctness of the transmitted file. After deleting the preset file, the target location corresponding to the saving path does not have the corresponding preset file, and step S113 is executed. It can be understood that the step S113 is executed if there is no corresponding preset file in the target location corresponding to the saving path, or if there is no corresponding preset file in the target location corresponding to the saving path after deleting the preset file.
S113: and when the corresponding preset file does not exist in the target position corresponding to the saving path, creating a target file in the target position corresponding to the saving path and opening the target file.
And when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path, wherein the target file is used for saving the received data packets, and the finished file can be formed when the transmission of all the data packets is finished. After the target file is created, the target file is also opened, the target file is not closed any more after the received data packets are stored in the target file each time, and the target file is not stored until all the data packets are transmitted, so that the times of opening the target file are reduced, and the efficiency of transmitting the target file is improved.
S114: and sending a first confirmation instruction to the file sending equipment so as to enable the file sending equipment to send a new data packet.
After the target file is created, a first confirmation instruction is sent to the target file, and then the file sending equipment sends a new data packet, namely the file sending equipment sends a data packet with the current packet sequence number being the second packet sequence number. That is, the file receiving device receives the data packet sent by the file sending device again, and the current packet sequence number of the data packet is the second packet sequence number.
Referring to fig. 4, when the current packet sequence number of the data packet is greater than the first packet sequence number, after receiving the data packet sent by the file sending device, the file transmission method further includes:
s115: and when the current packet sequence number is greater than the first packet sequence number, comparing the current packet sequence number with the packet sequence number of the last received data packet.
The last packet sequence number is the "current packet sequence number" of the last packet of the current packet received. When the file receiving device receives the data packet and completes processing, a confirmation instruction is sent to the file sending device, so that the file sending device sends a new data packet, and interference may exist, so that the file sending device does not receive the confirmation instruction, the file sending device sends the data packet which is sent again and repeatedly, and the current packet sequence number of the data packet received by the file receiving device is smaller than or equal to the packet sequence number of the last received data packet. When the transmission is normal, the current packet sequence number of the data packet received by the file receiving device is equal to the packet sequence number of the last received data packet plus one. It can be understood that, when the transmission is abnormal, the current packet sequence number of the data packet received by the file receiving device is greater than the packet sequence number of the last received data packet plus one.
S116: and when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet.
When the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, it indicates that the currently received data packet has been received, and the file sending device sends a new data packet, which may be a data packet that the file receiving device has not received.
S117: and when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of the preset cache region can store the data packet.
When the current packet sequence number is equal to the packet sequence number plus one of the received last data packet, indicating that the file is normally transmitted, it is determined whether the storage space of the preset buffer area can store the data packet, that is, when the current packet sequence number is equal to the packet sequence number plus one of the received last data packet, the step S12 is executed.
S118: and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment so that the file sending equipment sends the data packet with the packet sequence number which is the packet sequence number plus one of the last received data packet.
And when the current packet sequence number is greater than the packet sequence number plus one of the received last data packet, the transmission file is abnormal. And after the file sending equipment receives the error instruction, the file sending equipment sends a data packet with the current packet serial number minus one. If the current packet sequence number is 6, the last packet sequence number is 3, and the current packet sequence number 6 is greater than the packet sequence number 3+1 of the last received data packet, that is, the current packet sequence number 6 is greater than the packet sequence number 4, the packet sequence number of the data packet sent by the file sending device is the packet sequence number 3+1 of the last data packet, which is 4.
S12: and judging whether the storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets.
The size of the storage space of the buffer, i.e. the storage area for buffering data, is not limited, for example, the length of the data that can be stored in the storage space of the buffer may be 512 KB. The buffer area described in this application is dedicated to storing received data packets. The storage space of the buffer can hold a plurality of data packets. When the buffer has stored enough packets, storing new packets may not be possible. In particular, the method comprises the following steps of,
referring to fig. 5, determining whether the storage space of the preset buffer area can store the data packet includes:
s121: and judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region.
Assuming that the data length of each data packet is 50KB and the storable data length of the buffer space is 512KB, the buffer space holds 10 data packets at most, after the buffer space has stored 10 data packets, the data length of the data packet stored in the buffer is 500KB and the data length of the newly received data packet is 50KB, that is, it is determined whether the sum of the data length of the previously stored data packet, 500KB and the length of the received data packet, 550KB, is smaller than the buffer length of 512 KB.
S122: and determining that the data packet can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is less than or equal to the length of the cache region.
And if the sum of the data length of the pre-stored data packet in the cache region and the length of the received data packet is less than or equal to the length of the cache region, which indicates that the data packets stored in the cache region are not enough and new data packets can be stored, determining that the data packets can be stored in the storage space of the cache region.
S123: and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is greater than the length of the cache region.
And when the sum of the data length of the pre-stored data packets and the length of the received data packets in the cache region is greater than the length of the cache region, which indicates that the cache region stores enough data packets and cannot store new data packets, determining that the data packets cannot be stored in the storage space of the cache region.
S13: and when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file.
When the data packets cannot be stored in the storage space of the cache region, it is indicated that the cache region stores enough data packets and cannot store new data packets, and the data packets stored in advance in the cache region are stored in a preset and opened target file. Namely, the data packet in the buffer area is not stored with a new data packet, the data packet stored in the buffer area is stored in the opened target file. And the target file is not closed as long as the file is not transmitted completely.
S14: and deleting the data of the cache region.
If the data packet stored in the buffer area is already stored in the target file, and the data in the buffer area is not used, the data in the buffer area is deleted, that is, the data packet in the buffer area is deleted, so that the buffer area can store a new data packet, that is, the received data packet can be stored in the buffer area, that is, step S15 is executed. The received data packet is stored in the buffer area, the buffer area can not store new data packets, the data packets already stored in the buffer area are stored in the target file, the data packets stored in the buffer area are deleted, the buffer area continues to store the received data packets, the cycle is repeated, the target file is always opened through the buffer area and the data packets, and the transmission speed of the file is improved.
S15: and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
When the data packets can be stored in the storage space of the buffer area, it is indicated that the data packets stored in the buffer area are not enough, and new data packets can also be stored, so that the received data packets can be stored in the buffer area. And the data in the buffer area, so that the buffer area can store a new data packet, namely the received data packet can be stored in the buffer area. The storage efficiency of the cache region is high, and the transmission speed of the file is improved.
Preferably, the file transfer method further includes:
and storing and saving the current packet sequence number of the data packet.
That is, after receiving a data packet sent by the file sending device each time, the current packet sequence number of the current data packet is also saved, and the specific time for saving is not limited.
Preferably, when the file receiving device receives the file, the file transmission is interrupted, and the file transmission method further includes:
and after the file transmission is interrupted, receiving a data packet which is sent by the file sending equipment and corresponds to the current packet sequence number when the file transmission is interrupted.
After the file transmission is interrupted, the file sending device continues to send data packets at the terminal, that is, the current packet sequence number is the data packet corresponding to the current packet sequence number when the file transmission is interrupted, and after the file sending device sends the data packet, the file receiving device receives the data packet corresponding to the current packet sequence number when the file transmission is interrupted.
Referring to fig. 6, preferably, the file transmission method may further include the steps of:
s16: and judging whether the file is completely transmitted or not according to the current packet sequence number and the total packet sequence number.
And judging whether the current packet sequence number is the last packet sequence number or not according to the total packet sequence number. And when the current packet sequence number is the last packet sequence number, the completion of the file transmission can be determined. And when the current packet sequence number is the last packet sequence number, determining that the file is not completely transmitted.
S17: and when the file transmission is finished, storing the data packet of the cache region in the target file.
When the file transmission is completed, the file transmitting device does not subsequently transmit the data packet of the file, that is, the data packets required to be received by the file receiving device are completely received. The data packets in the buffer are saved in the destination file.
S18: and closing the target file.
The method of closing the file is prior art and will not be described in detail in this application. Such as by closing the file handle of the target file.
S19: and transmitting a completion instruction to the file sending equipment.
And a transmission completion instruction for informing the file sending equipment that the last data packet is received, and the file sending equipment can know that the file receiving equipment receives the last data packet and can finish transmitting the file.
The file transmission method provided by this embodiment receives a data packet sent by a file sending device; judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets; when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file; deleting the data of the cache region; the data package can be stored in the storage space of the cache region or the data in the cache region can be deleted, the data package is stored in the cache region, the sent data package is stored in the cache region, the storage speed of the file can be improved, the transmission speed of the file is further improved, and when the file is transmitted, a target file for storing the data package is always opened, the problem that the target file can be closed when each data package is stored in a frequently opened mode is avoided, the storage speed of the file is further improved, and the transmission speed of the file is improved.
Referring to fig. 7, a third embodiment of the present application provides a file transmission apparatus 20, configured to receive a file sent by a file sending device, where the file includes a plurality of data packets. The file transmission device 20 may be integrated into a file receiving device, the file transmission device 20 may implement the file transmission method of the foregoing embodiment, and the file transmission device 20 includes:
a receiving module 21, configured to receive a data packet sent by a file sending device;
the space judgment module 22 is configured to judge whether a storage space of a preset cache area can store the data packet, where the storage area can store a plurality of data packets;
the first storage module 23 is configured to, when the data packet cannot be stored in the storage space of the cache region, store the data packet stored in advance in the cache region in a preset and opened target file;
a deleting module 24, configured to delete the data in the cache region;
the second storage module 25 is configured to store the data packet in the cache area when the data packet can be stored in the storage space of the cache area or the data in the cache area is deleted.
The file transmission apparatus provided in this embodiment receives a data packet sent by a file sending device; judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets; when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file; deleting the data of the cache region; the data package can be stored in the storage space of the cache region or the data in the cache region can be deleted, the data package is stored in the cache region, the sent data package is stored in the cache region, the storage speed of the file can be improved, the transmission speed of the file is further improved, and when the file is transmitted, a target file for storing the data package is always opened, the problem that the target file can be closed when each data package is stored in a frequently opened mode is avoided, the storage speed of the file is further improved, and the transmission speed of the file is improved.
Preferably, the file transfer device 20 further includes:
the checking module is used for checking the data packet according to the checking information;
and the retransmission instruction sending module is used for sending a retransmission instruction of the current packet to the file sending equipment when the verification fails so as to enable the file sending equipment to resend the data packet failed in verification.
Preferably, the file transfer device 20 further includes:
the first judging module is used for judging whether a corresponding preset file exists in a target position corresponding to the saving path or not when the current packet serial number is the first packet serial number, wherein the data packet also comprises the saving path;
the deleting module is used for deleting the preset file when the corresponding preset file exists in the target position corresponding to the saving path;
the file creating module is used for creating a target file at a target position corresponding to the saving path and opening the target file when the corresponding preset file does not exist at the target position corresponding to the saving path;
the first instruction sending module is used for sending a first confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet.
Preferably, the file transfer device 20 further includes:
the comparison module is used for comparing the current packet sequence number with the packet sequence number of the last received data packet when the current packet sequence number is greater than the first packet sequence number;
a second instruction sending module, configured to send a second acknowledgement instruction to the file sending device when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, so that the file sending device sends a new data packet;
and the error instruction sending module is used for sending an error instruction to the file sending equipment when the current packet serial number is greater than the packet serial number plus one of the received last data packet, so that the file sending equipment sends the data packet with the packet serial number which is the packet serial number plus one of the received last data packet.
Preferably, the space determining module 22 is further configured to determine whether the storage space of the preset buffer area can store the data packet only when the current packet sequence number is equal to the packet sequence number of the last received data packet plus one.
Preferably, the receiving module 21 is further configured to receive, after the file transmission is interrupted, a data packet sent by the file sending device and having a current packet sequence number corresponding to the current packet sequence number when the file transmission is interrupted.
Preferably, the file transfer device 20 further includes:
the second judgment module is used for judging whether the file is completely transmitted according to the current packet serial number and the total packet serial number;
the third storage module is used for storing the data packet of the cache region in the target file when the file transmission is finished;
a closing module for closing the target file;
and the transmission completion instruction sending module is used for transmitting a completion instruction to the file sending equipment.
Preferably, the file transfer device 20 further includes:
and the fourth storage module is used for storing and saving the current packet sequence number of the data packet.
Preferably, the space determining module 22 includes:
the space judgment unit is used for judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not;
a first determining unit, configured to determine that the data packet can be stored in a storage space of the buffer if a sum of a data length of a pre-stored data packet in the buffer and a length of a received data packet is less than or equal to the length of the buffer;
and the second determining unit is used for determining that the data packet cannot be stored in the storage space of the buffer area when the sum of the data length of the pre-stored data packet of the buffer area and the length of the received data packet is greater than the length of the buffer area.
The product can execute the method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Referring to fig. 8, a fourth embodiment of the present application further provides a file receiving device and a storage medium, which both have the corresponding effects of the file transmission method provided in the foregoing embodiments of the present application.
The file receiving device provided by the embodiment of the application includes a memory 31 and a processor 32, a file transmission program is stored in the memory 31, and the following steps are implemented when the processor 32 executes the file transmission program stored in the memory 31:
receiving a data packet sent by file sending equipment;
judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets;
when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file;
deleting the data of the cache region;
and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: verifying the data packet according to the verification information; and when the verification fails, sending a current packet retransmission instruction to the file sending equipment so that the file sending equipment resends the data packet failed in verification.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: when the current packet serial number is the first packet serial number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged; when a corresponding preset file exists in a target position corresponding to the saving path, deleting the preset file; when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path and opening the target file; and sending a first confirmation instruction to the file sending equipment so as to enable the file sending equipment to send a new data packet.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transmission program stored in the memory: when the current packet sequence number is greater than the first packet sequence number, comparing the current packet sequence number with the packet sequence number of the last received data packet; when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet; when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of a preset cache region can store the data packet or not; and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment so that the file sending equipment sends the data packet with the packet sequence number which is the packet sequence number plus one of the last received data packet.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: and after the file transmission is interrupted, receiving a data packet which is sent by the file sending equipment and corresponds to the current packet sequence number when the file transmission is interrupted.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: judging whether the file is completely transmitted according to the current packet sequence number and the total packet sequence number; when the file transmission is finished, storing the data packet of the cache region in the target file; closing the target file; and transmitting a completion instruction to the file sending equipment.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: and storing and saving the current packet sequence number of the data packet.
Preferably, the processor of the file receiving device further implements the following steps when executing the file transfer program stored in the memory: judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not; determining that the data packets can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packets in the cache region and the length of the received data packets is less than or equal to the length of the cache region; and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is greater than the length of the cache region.
A storage medium provided in an embodiment of the present application is a computer-readable storage medium, where a file transfer program is stored in the computer-readable storage medium, and when the file transfer program is executed by a processor, the following steps are specifically implemented:
receiving a data packet sent by file sending equipment;
judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets;
when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file;
deleting the data of the cache region;
and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, further implements the following steps: verifying the data packet according to the verification information; and when the verification fails, sending a current packet retransmission instruction to the file sending equipment so that the file sending equipment resends the data packet failed in verification.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, implements the following steps: when the current packet serial number is the first packet serial number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged; when a corresponding preset file exists in a target position corresponding to the saving path, deleting the preset file; when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path and opening the target file; and sending a first confirmation instruction to the file sending equipment so as to enable the file sending equipment to send a new data packet.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, implements the following steps: when the current packet serial number is larger than the first packet serial number, comparing the current packet serial number with the packet serial number of the last received data packet; when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet; when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of a preset cache region can store the data packet or not; and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment so that the file sending equipment sends the data packet with the packet sequence number which is the packet sequence number plus one of the last received data packet.
Preferably, the file transfer program stored in the computer-readable storage medium when executed by the processor implements the following steps: and after the file transmission is interrupted, receiving a data packet which is sent by the file sending equipment and corresponds to the current packet sequence number when the file transmission is interrupted.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, implements the following steps: judging whether the file is completely transmitted according to the current packet sequence number and the total packet sequence number; when the file transmission is finished, storing the data packet of the cache region in the target file; closing the target file; and transmitting a completion instruction to the file sending equipment.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, implements the following steps: and storing and saving the current packet sequence number of the data packet.
Preferably, the file transfer program stored in the computer-readable storage medium, when executed by the processor, implements the following steps: judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not; determining that the data packets can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packets in the cache region and the length of the received data packets is less than or equal to the length of the cache region; and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is greater than the length of the cache region.
The computer-readable storage medium includes Random Access Memory (RAM), Memory, Read-Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, Compact disk Read-Only Memory (CD-ROM), or any other form of storage medium known in the art.
For a description of a related part in a file transmission method, a device, an apparatus, and a computer-readable storage medium provided in the embodiments of the present application, reference is made to the detailed description of the corresponding part in a file transmission method provided in the foregoing embodiments of the present application, which is not repeated herein. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The modules or units described in the embodiments of the present application may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (9)

1. A method for transferring a file, wherein the file comprises a plurality of packets, the method comprising:
receiving a data packet sent by a file sending device, wherein the data packet further comprises a current packet sequence number, and the method further comprises the following steps:
when the current packet serial number is the first packet serial number, the data packet further comprises a storage path, and whether a corresponding preset file exists in a target position corresponding to the storage path is judged;
when a corresponding preset file exists in a target position corresponding to the saving path, deleting the preset file;
when the target position corresponding to the saving path does not have the corresponding preset file, creating a target file at the target position corresponding to the saving path and opening the target file, wherein the target file is used for saving the received data packets, and after the received data packets are saved in the target file each time, the target file is not closed until all the data packets are transmitted, and the target file is saved;
sending a first confirmation instruction to file sending equipment so as to enable the file sending equipment to send a new data packet;
judging whether a storage space of a preset cache region can store the data packet or not, wherein the storage region can store a plurality of data packets;
when the data packet cannot be stored in the storage space of the cache region, storing the data packet stored in advance in the cache region in a preset and opened target file;
deleting the data of the cache region;
and when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted, the data packet is stored in the cache region.
2. The method of claim 1, wherein: after receiving the data packet sent by the file sending device, the method further includes:
when the current packet sequence number is greater than the first packet sequence number, comparing the current packet sequence number with the packet sequence number of the last received data packet;
when the current packet sequence number is less than or equal to the packet sequence number of the last received data packet, sending a second confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet;
when the current packet serial number is equal to the packet serial number plus one of the received last data packet, judging whether the storage space of a preset cache region can store the data packet or not;
and when the current packet sequence number is greater than the packet sequence number plus one of the last received data packet, sending an error instruction to the file sending equipment so that the file sending equipment sends the data packet with the packet sequence number which is the packet sequence number plus one of the last received data packet.
3. The method of claim 1, wherein the data packet further comprises a total packet sequence number, the method further comprising:
judging whether the file is completely transmitted according to the current packet sequence number and the total packet sequence number;
when the file transmission is finished, storing the data packet of the cache region in the target file;
closing the target file;
and transmitting a completion instruction to the file sending equipment.
4. The method of claim 1, wherein the method further comprises:
and after the file transmission is interrupted, receiving a data packet which is sent by the file sending equipment and corresponds to the current packet sequence number when the file transmission is interrupted.
5. The method as claimed in claim 1, wherein said determining whether the storage space of the predetermined buffer is capable of storing the data packet comprises:
judging whether the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is smaller than the length of the cache region or not;
determining that the data packets can be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packets in the cache region and the length of the received data packets is less than or equal to the length of the cache region;
and determining that the data packet cannot be stored in the storage space of the cache region when the sum of the data length of the pre-stored data packet of the cache region and the length of the received data packet is greater than the length of the cache region.
6. The method of any one of claims 1-5, wherein: the data packet further includes check information, and after receiving the data packet sent by the file sending device, the method further includes:
verifying the data packet according to the verification information;
and when the verification fails, sending a current packet retransmission instruction to the file sending equipment so that the file sending equipment resends the data packet failed in verification.
7. A file transfer apparatus, characterized by comprising:
the receiving module is used for receiving a data packet sent by the file sending equipment, wherein the data packet comprises a current packet serial number;
the space judgment module is used for judging whether a storage space of a preset cache region can store the data packet or not, and the storage region can store a plurality of data packets;
the first storage module is used for storing the pre-stored data packet in the cache region into a preset and opened target file when the data packet cannot be stored in the storage space of the cache region;
the deleting module is used for deleting the data of the cache region;
the second storage module is used for storing the data packet in the cache region when the data packet can be stored in the storage space of the cache region or the data of the cache region is deleted;
the first judging module is used for judging whether a corresponding preset file exists in a target position corresponding to the saving path or not when the current packet serial number is the first packet serial number, wherein the data packet also comprises the saving path;
the deleting module is used for deleting the preset file when the corresponding preset file exists in the target position corresponding to the saving path;
the file creating module is used for creating a target file at the target position corresponding to the saving path and opening the target file when the corresponding preset file does not exist at the target position corresponding to the saving path, wherein the target file is used for saving the received data packet;
the first instruction sending module is used for sending a first confirmation instruction to the file sending equipment so that the file sending equipment sends a new data packet.
8. A file receiving apparatus characterized by comprising:
a memory for storing a file transfer program;
a processor for implementing the file transfer method according to any one of claims 1 to 6 when executing the file transfer program.
9. A storage medium which is a computer-readable storage medium, characterized in that a file transfer program is stored in the storage medium, and when executed by a processor, the file transfer program implements the file transfer method according to any one of claims 1 to 6.
CN201911128172.6A 2019-11-18 2019-11-18 File transmission method, device, equipment and storage medium Active CN111147540B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911128172.6A CN111147540B (en) 2019-11-18 2019-11-18 File transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911128172.6A CN111147540B (en) 2019-11-18 2019-11-18 File transmission method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111147540A CN111147540A (en) 2020-05-12
CN111147540B true CN111147540B (en) 2022-09-16

Family

ID=70517145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911128172.6A Active CN111147540B (en) 2019-11-18 2019-11-18 File transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111147540B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775345B (en) * 2023-08-21 2023-12-19 荣耀终端有限公司 Data transmission method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636602A (en) * 2017-07-14 2018-01-26 深圳市元征科技股份有限公司 A kind of data processing method and data processing equipment
CN109413177A (en) * 2018-10-19 2019-03-01 深圳市元征科技股份有限公司 A kind of transmission method of APK file, system and associated component
CN109450989A (en) * 2018-10-19 2019-03-08 武汉斗鱼网络科技有限公司 A kind of method, apparatus, equipment and the medium of data transmission
CN109617945A (en) * 2018-11-02 2019-04-12 北京达佳互联信息技术有限公司 Sending method, sending device, electronic equipment and the readable medium of file transmission

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651795A (en) * 2009-09-03 2010-02-17 北京中创科风科技有限公司 Method and device for receiving, storing and playing media files transmitted by digital satellite
CN101655818A (en) * 2009-09-10 2010-02-24 深圳华为通信技术有限公司 Storage method and equipment
CN102419752B (en) * 2010-09-28 2013-09-11 上海可鲁系统软件有限公司 Industrial database message storage method
CN104462523B (en) * 2014-12-23 2018-05-01 合一网络技术(北京)有限公司 The method for sorting and system of equipment cache file
CN104616680B (en) * 2014-12-25 2017-05-24 武汉光忆科技有限公司 Repeating data deleting system based on optical disc storage as well as data operating method and device
CN104602114A (en) * 2015-01-09 2015-05-06 乐视致新电子科技(天津)有限公司 Method for transmitting and receiving upgrade documents, system, intelligent television and remote controller
CN105630406B (en) * 2015-05-29 2019-02-01 上海磁宇信息科技有限公司 Using MRAM as the storage system of editor's buffer area and editor's caching method
WO2017213459A1 (en) * 2016-06-10 2017-12-14 엘지전자 주식회사 Broadcast signal reception apparatus and broadcast signal processing method
CN106294591A (en) * 2016-07-29 2017-01-04 北京金山安全软件有限公司 File storage method and device and electronic equipment
CN106569748B (en) * 2016-10-27 2019-04-09 南方电网科学研究院有限责任公司 The data processing method and device of Flash File System
US11249946B2 (en) * 2018-05-11 2022-02-15 EMC IP Holding Company LLC Path name cache for notifications of file changes
CN109376122A (en) * 2018-09-25 2019-02-22 深圳市元征科技股份有限公司 A kind of file management method, system and block chain node device and storage medium
CN109862526A (en) * 2019-01-28 2019-06-07 平安科技(深圳)有限公司 Document transmission method, device, computer equipment and storage medium
CN110061996A (en) * 2019-04-25 2019-07-26 深圳市元征科技股份有限公司 A kind of data transmission method, device, equipment and readable storage medium storing program for executing
CN110275873A (en) * 2019-06-28 2019-09-24 重庆紫光华山智安科技有限公司 File memory method, device, storage management apparatus and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107636602A (en) * 2017-07-14 2018-01-26 深圳市元征科技股份有限公司 A kind of data processing method and data processing equipment
CN109413177A (en) * 2018-10-19 2019-03-01 深圳市元征科技股份有限公司 A kind of transmission method of APK file, system and associated component
CN109450989A (en) * 2018-10-19 2019-03-08 武汉斗鱼网络科技有限公司 A kind of method, apparatus, equipment and the medium of data transmission
CN109617945A (en) * 2018-11-02 2019-04-12 北京达佳互联信息技术有限公司 Sending method, sending device, electronic equipment and the readable medium of file transmission

Also Published As

Publication number Publication date
CN111147540A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
JP7029471B2 (en) Uplink data decompression, compression method and equipment
CN104539739B (en) A kind of system, method and device that file uploads
CN104967497B (en) A kind of reliable data transmission method and upgrade method based on network communication protocol
US5644754A (en) Bus controller and electronic device in a system in which several electronic devices are networked
CN110034857A (en) Request the method, apparatus sent and electronic equipment
TWI526019B (en) Method and device for processing a packet in a wlan system
CN106383757A (en) Vehicle-mounted software updating method and device
CN103631534B (en) Data storage system and managing method thereof
CN110460412A (en) Method and RDMA network interface card for data transmission
CN111147540B (en) File transmission method, device, equipment and storage medium
EP3313022A1 (en) Resending method and device for hypertext transfer request, and client
CN108886713A (en) A kind of data transmission method, data receiver and data transmitting equipment
WO2021134418A1 (en) Data checking method and apparatus
CN102804664A (en) Communication system, communication device, communication method, and program
CN111162882B (en) Data transmission method, device, base station equipment and computer readable storage medium
CN111147597B (en) File transmission method, terminal, electronic device and storage medium
EP3961947B1 (en) Data retransmission method and apparatus
CN109167809B (en) Internet of things platform docking data transmission format processing method
US9172654B2 (en) Transfer device and transfer method
CN115865830A (en) Method and device for reducing RDMA (remote direct memory Access) network overhead based on connection management
CN113645316B (en) Upgrade data processing method, upper computer, lower computer, device and storage medium
CN109951255A (en) A kind of data transmission method based on TCP, system, source device and target device
US20220150091A1 (en) Apparatus for transmitting data over a bus system and operating method for that purpose
CN109041006A (en) A method of obtaining vehicle data
CN104219168A (en) Control message processing method and device based on UDP (User Datagram Protocol) transmission

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