CN110650546B - File transmission method, device, storage medium and terminal - Google Patents

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

Info

Publication number
CN110650546B
CN110650546B CN201910934123.5A CN201910934123A CN110650546B CN 110650546 B CN110650546 B CN 110650546B CN 201910934123 A CN201910934123 A CN 201910934123A CN 110650546 B CN110650546 B CN 110650546B
Authority
CN
China
Prior art keywords
data
network
target
wireless network
data packet
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
CN201910934123.5A
Other languages
Chinese (zh)
Other versions
CN110650546A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201910934123.5A priority Critical patent/CN110650546B/en
Publication of CN110650546A publication Critical patent/CN110650546A/en
Application granted granted Critical
Publication of CN110650546B publication Critical patent/CN110650546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • H04W72/1215Wireless traffic scheduling for collaboration of different radio technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a method, a device, a storage medium and a terminal for file transmission; in the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. According to the scheme, the network with the better network state is selected and timely switched to transmit the target file, so that the file transmission efficiency is improved.

Description

File transmission method, device, storage medium and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for file transmission, a storage medium, and a terminal.
Background
With the development of the internet, people use the internet to perform data transmission more and more, so that the requirement on the efficiency of data transmission is higher and higher. In the prior art, the data transmission method is to repeatedly search and transmit in a network mode, so that the data transmission path is single and the transmission efficiency is low, especially when a large amount of data is transmitted at the same time, the efficiency of data transmission is greatly reduced due to network conditions or loss of data packets and the like.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and a terminal for file transmission, which can improve the efficiency of file transmission.
The embodiment of the application provides a file transmission method, which comprises the following steps:
when starting the transmission of a target file, simultaneously starting a wireless network and a data network, wherein the target file at least comprises one data packet;
determining a target network with a faster transmission rate from the wireless network and the data network;
and transmitting the data packet of the target file through the target network.
Correspondingly, the embodiment of the application also provides a device for transmitting the file, which comprises the following steps:
the starting unit is used for starting the wireless network and the data network simultaneously when starting the transmission of the target file, wherein the target file at least comprises one data packet;
a determining unit, configured to determine a target network with a faster transmission rate from the wireless network and the data network;
and the transmission unit is used for transmitting the data packet of the target file through the target network.
In some embodiments, the determining unit includes an acquisition subunit, a comparison subunit, and a determination subunit;
an obtaining subunit, configured to obtain a first transmission rate of a data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network respectively;
a comparing subunit, configured to compare the first transmission rate and the second transmission rate to obtain a comparison result;
and the determining subunit is used for determining the target network according to the comparison result.
In some embodiments, the transmission unit includes an extraction subunit and an alternating output subunit;
the extraction subunit is used for extracting the wireless network effective data and the data network effective data;
the alternate output subunit is configured to alternately output the wireless network valid data and the data network valid data.
Accordingly, embodiments of the present application also provide a computer readable storage medium storing instructions that, when executed by a processor, perform steps in a method for file transfer provided in any of the embodiments of the present application.
Correspondingly, the embodiment of the application also provides a terminal, which comprises: a processor and a memory; the memory is stored with a plurality of instructions and the processor loads the instructions stored in the memory to perform the steps of the method for transferring a file according to any of the embodiments of the present application.
In the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. The scheme can improve the efficiency of file transmission.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for file transfer according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a method for file transfer according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a file transfer device according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a file transfer device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The terms "first," "second," and "third" in this disclosure are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a method, a device, a storage medium and a terminal for file transmission.
The embodiment of the application provides a file transmission system, which comprises: the file transmission device provided by the embodiment of the application can be integrated in a terminal, and the terminal can be a mobile phone, a tablet personal computer, a notebook computer and other devices.
For example, taking the system of file transmission as an example, referring to fig. 1, when the terminal starts the transmission of the target file, the wireless network and the data network are simultaneously turned on, the target file includes at least one data packet, the terminal determines the target network with a faster transmission rate from the wireless network and the data network, and then transmits the data packet of the target file through the target network.
The file transmission method provided by the embodiment of the application can be realized in a file transmission device, and the file transmission device can be particularly integrated in electronic equipment, wherein the electronic equipment comprises, but is not limited to, equipment such as a computer, an intelligent television, an intelligent sound box, a mobile phone, a tablet personal computer and the like.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the viewpoint of a file transfer device, which may be integrated in a terminal, wherein the terminal may include a mobile phone, a tablet computer, a notebook computer, a personal computer (PC, personal Computer), and the like.
As shown in fig. 1, the specific flow of the file transfer may be as follows:
101. when the transmission of the target file is started, the wireless network and the data network are simultaneously started, and the target file at least comprises one data packet.
The wireless network refers to WLAN (Wireless Local Area Network ) and uses wireless communication technology to interconnect computer devices to form a network system capable of communicating with each other and realizing resource sharing. The data network refers to mobile data traffic, which is data traffic generated by surfing the internet or using related data value-added services through mobile communication technologies such as GPRS (General Packet Radio Service, general packet radio service technology), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access ), HSDPA (High Speed Downlink Packet Access, high speed downlink packet access), WCDMA (Wideband Code Division Multiple Access ), and the like, and does not include traffic generated by surfing the internet through other modes such as WLAN, and also does not include data traffic which is reduced by data value-added services (multimedia message, signal housekeeping, total music download, quick messaging, and the like) which are charged according to content.
For example, when file transfer is started, the wireless network and the data network may be turned on manually or in a preset manner, such as WLAN and 4G (the 4th Generation mobile communication technology, fourth generation mobile communication technology) are turned on.
102. A target network with a faster transmission rate is determined from the wireless network and the data network.
The transmission rate refers to the speed of transmitting information on a communication line, and the number of bits transmitted per unit time (typically, one second), that is, the number of data transmitted by a data path per unit time. It is one of the important technical indicators describing data transmission systems. The target network refers to a network whose current transmission rate is faster.
In some embodiments, the step of determining a target network with a faster transmission rate from the wireless network and the data network may include the following steps:
(11) Respectively acquiring a first transmission rate of a data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network;
(12) Comparing the first transmission rate and the second transmission rate to obtain a comparison result;
(13) And determining the target network according to the comparison result.
The target file refers to a file to be transmitted under a current transmission instruction.
For example, the target file includes a data packet a, and the transmission rates of the data packet a under the wireless network and the data network are measured respectively, and if the transmission rate of the data packet a under the wireless network is greater than the transmission rate under the data network, the target network is determined to be the wireless network; and if the transmission rate of the data packet A under the wireless network is smaller than the transmission rate under the data network, determining that the target network is the data network.
103. And transmitting the data packet of the target file through the target network.
The data packet of the target file refers to dividing the target file into a plurality of data packets.
In some embodiments, before the step of "transmitting the data packet of the target file through the target network", the following procedure may be included:
(21) And grouping the data packets of the target file to obtain a plurality of data groups.
Wherein the plurality of data sets comprise wireless network data packets and data network data packets.
In some embodiments, the step of "transmitting the data packet of the target file through the target network" may include the following procedures:
(22) Extracting wireless network effective data and data network effective data;
(23) And outputting the wireless network effective data and the data network effective data alternately.
In some embodiments, after the step of "alternately outputting the wireless network valid data and the data network valid data", the following procedure may be included:
(24) When the outputted valid data includes all data packets of the target file, the data output through the wireless network and/or the data network is stopped.
The valid data refers to that the output data packet can be combined into a complete target file.
For example, the target file is divided into a data packet A, B, C, the wireless network and the data network simultaneously receive an instruction for transmitting the target file, after the data packet a has been transmitted by the wireless network, if the target network is not transmitting the data packet a again for the data network at this time, the data packet not transmitted at this time is valid data, and the more detailed point is data network valid data, and the transmitted data packet a is wireless network valid data.
In some embodiments, the step of "alternately outputting the wireless network valid data and the data network valid data" may include the following procedures:
(25) If the output first effective data is the wireless network effective data, outputting the wireless network effective data and then outputting the data network effective data;
(26) And if the first valid data is the data network valid data, outputting the data network valid data and then outputting the wireless network valid data.
In some embodiments, before the step of extracting the wireless network valid data and the data network valid data, the following procedure may be included:
truncating invalid data in the file data packet.
Wherein invalid data refers to data that does not function or does not interfere with the file transfer process.
For example, the target file is divided into a data packet A, B, C, the wireless network and the data network simultaneously receive an instruction for transmitting the target file, and after the data packet a has been transmitted by the wireless network, if the target network is the data network at this time, the data packet a is invalid data, and the invalid data is truncated. Then, when the outputted valid data includes all the data packets of the target file, i.e., the data packet A, B, C, to be outputted in its entirety, the output of the data through the wireless network and/or the data network is stopped.
In the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. According to the scheme, the network with the better network state is selected and timely switched to transmit the target file, so that the file transmission efficiency is improved.
As shown in fig. 2, a specific flow of a file transfer method may be as follows:
201. when starting the transmission of the target file, the terminal simultaneously starts the wireless network and the data network, and the target file at least comprises one data packet.
The wireless network refers to WLAN (Wireless Local Area Network ) and uses wireless communication technology to interconnect computer devices to form a network system capable of communicating with each other and realizing resource sharing. The data network refers to mobile data traffic, which is data traffic generated by surfing the internet or using related data value-added services through mobile communication technologies such as GPRS (General Packet Radio Service, general packet radio service technology), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access ), HSDPA (High Speed Downlink Packet Access, high speed downlink packet access), WCDMA (Wideband Code Division Multiple Access ), and the like, and does not include traffic generated by surfing the internet through other modes such as WLAN, and also does not include data traffic which is reduced by data value-added services (multimedia message, signal housekeeping, total music download, quick messaging, and the like) which are charged according to content.
For example, when file transfer is started, the wireless network and the data network may be turned on manually or in a preset manner.
202. And grouping the data packets of the target file to obtain a plurality of data groups, wherein the plurality of data groups comprise wireless network data packets and data network data packets.
The target file refers to a file to be transmitted under a current transmission instruction. The data packet of the target file refers to dividing the target file into a plurality of data packets. A wireless network packet refers to a packet transmitted by a wireless network. A data network packet refers to a data packet transmitted by a data network.
203. The terminal determines a target network with a faster transmission rate from the wireless network and the data network.
The transmission rate refers to the speed of transmitting information on a communication line, and the number of bits transmitted per unit time (typically, one second), that is, the number of data transmitted by a data path per unit time. It is one of the important technical indicators describing data transmission systems. The target network refers to a network whose current transmission rate is faster.
For example, the following may be specifically mentioned: and respectively acquiring a first transmission rate of the data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network. And comparing the first transmission rate with the second transmission rate to obtain a comparison result. And determining the target network according to the comparison result.
For example, the target file includes a data packet a, and the transmission rates of the data packet a under the wireless network and the data network are measured respectively, and if the transmission rate of the data packet a under the wireless network is greater than the transmission rate under the data network, the target network is determined to be the wireless network; and if the transmission rate of the data packet A under the wireless network is smaller than the transmission rate under the data network, determining that the target network is the data network.
204. The terminal extracts wireless network valid data and data network valid data.
The valid data refers to that the output data packet can be combined into a complete target file.
For example, assuming that the destination file is transmitted in packets A, B, C, which are all received A, B, C packets, the wireless network and the data network are simultaneously on, the destination network is determined by comparing the transmission rates under the wireless network and the data network transmissions. For example, when the wireless network is the target network, the data packet of the target file is transmitted under the wireless network, for example, the wireless network is currently transmitting the data packet a, which is the effective data of the wireless network, and the data network is in a state without data transmission. If the terminal detects that the transmission rate of the data network is faster than the transmission rate of the wireless network after transmitting the data packet a, the terminal switches the target network to the data network at this time, intercepts invalid data of the data network, and then transmits the data packet B, C of the remaining target file, for example, the data network transmits the data packet B, C at this time, and the wireless network is in a state without data transmission.
205. The terminal alternately outputs the wireless network effective data and the data network effective data.
For example, the following may be specifically mentioned: and if the output first effective data is the wireless network effective data, outputting the wireless network effective data and then outputting the data network effective data. And if the first valid data is the data network valid data, outputting the data network valid data and then outputting the wireless network valid data.
For example, according to the example illustrated in step 204, if the wireless network receives the destination file packet first, the wireless network outputs the packet A, B of the effective data of the wireless network first, and then outputs the packet C of the effective data of the data network; if the data network receives the target file data packet, the data network outputs the data packet C of the effective data of the data network, and then outputs the data packet A, B of the effective data of the wireless network. The destination file output is completed when the data packets A, B, C are all output, stopping the data transmission.
In the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. According to the scheme, the network with the better network state is selected and timely switched to transmit the target file, so that the file transmission efficiency is improved.
In order to better implement the method, the embodiment of the application also provides a file transmission device which can be integrated in the terminal.
For example, as shown in fig. 3, the apparatus for file transfer includes an opening unit 301, a determining unit 302, and a transferring unit 303, as follows:
an opening unit 301 is configured to simultaneously open the wireless network and the data network when starting transmission of a target file, where the target file includes at least one data packet.
For example, the opening unit may be specifically configured to open the wireless network and the data network manually or in a preset manner when starting file transfer. The specific method is specifically described in the above method embodiments, and is not described herein again.
A determining unit 302, configured to determine a target network with a faster transmission rate from the wireless network and the data network.
The transmission rate refers to the speed of transmitting information on a communication line, and is the number of bits transmitted in a unit time (typically, one second), that is, the number of data transmitted by a data path in a unit time. It is one of the important technical indicators describing data transmission systems. The target network refers to a network whose current transmission rate is faster.
A transmission unit 303, configured to transmit the data packet of the target file through the target network.
In some embodiments, referring to fig. 4, the determining unit 302 may include an acquiring subunit 3021, a comparing subunit 3022, and a determining subunit 3023;
an acquiring subunit 3021, configured to acquire a first transmission rate of the data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network respectively;
a comparing subunit 3022, configured to compare the first transmission rate and the second transmission rate to obtain a comparison result;
a determining subunit 3023 for determining the target network according to the comparison result.
The target file refers to a file to be transmitted under a current transmission instruction.
For example, the target file includes a data packet a, and the transmission rates of the data packet a under the wireless network and the data network are measured respectively, and if the transmission rate of the data packet a under the wireless network is greater than the transmission rate under the data network, the target network is determined to be the wireless network; and if the transmission rate of the data packet A under the wireless network is smaller than the transmission rate under the data network, determining that the target network is the data network.
In some embodiments, referring to fig. 4, the transmission unit 303 may include an extraction subunit 3031 and an alternating output subunit 3032 as follows:
the extracting subunit 3031 is configured to extract wireless network valid data and data network valid data;
the alternate output subunit 3032 is configured to alternately output the wireless network valid data and the data network valid data.
For example, the following may be specifically mentioned: and if the output first effective data is the wireless network effective data, outputting the wireless network effective data and then outputting the data network effective data. And if the first valid data is the data network valid data, outputting the data network valid data and then outputting the wireless network valid data.
In the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. According to the scheme, the network with the better network state is selected and timely switched to transmit the target file, so that the file transmission efficiency is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the methods for file transfer provided by the embodiments of the present application. Such as:
in the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any file transmission method provided by the embodiment of the present application can be executed by the instructions stored in the storage medium, so that the beneficial effects that any file transmission method provided by the embodiment of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted.
The embodiment of the application also provides a terminal which can be a terminal or a server, for example, the terminal can be an intercommunication server among heterogeneous message systems, a server in a message system and the like, and for example, the terminal can be a user terminal such as a mobile phone, a tablet computer and the like. As shown in fig. 5, a schematic structural diagram of a terminal according to an embodiment of the present application is shown, specifically:
the terminal may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The terminal further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, power consumption management, etc. are achieved by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The terminal may also include an input unit 404, which input unit 404 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the terminal may further include a display unit or the like, which is not described herein. In this embodiment, the processor 401 in the terminal loads the file type of the target file and the corresponding application information into the memory 402 according to the following instruction, and the processor 401 processes the application information, so as to execute the corresponding operation. The following are provided:
in the embodiment of the application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least comprises one data packet, the target network with higher transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, in the embodiment of the present application, when the transmission of the target file is started, the wireless network and the data network are simultaneously started, the target file at least includes one data packet, the target network with a faster transmission rate is determined from the wireless network and the data network, and then the data packet of the target file is transmitted through the target network. According to the scheme, the network with the better network state is selected and timely switched to transmit the target file, so that the file transmission efficiency is improved.
The method, the device, the storage medium and the terminal for file transmission provided by the embodiment of the application are described in detail, and specific examples are applied to illustrate the principle and the implementation of the application, and the description of the above embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (6)

1. A method of file transfer, comprising:
when starting transmission of a target file, simultaneously starting a wireless network and a data network, wherein the target file at least comprises a data packet;
grouping the data packets of the target file to obtain a plurality of data groups, wherein the plurality of data groups comprise wireless network data packets and data network data packets, the wireless network data packets refer to data packets transmitted by a wireless network, and the data network data packets refer to data packets transmitted by a data network;
respectively acquiring a first transmission rate of a data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network;
comparing the first transmission rate and the second transmission rate to obtain a comparison result;
determining a target network according to the comparison result;
if the target network is a wireless network, the wireless network data packet is used as a target network data packet;
if the target network is a data network, the data network data is used as a target network data packet;
taking the untransmitted wireless network data packet as wireless network effective data, and taking the untransmitted data network data packet as data network effective data;
transmitting the target network data packet according to the target network;
and if the input first target network data packet is the data network effective data, outputting the data network effective data first and then outputting the data network effective data.
2. The method of claim 1, wherein said taking the untransmitted wireless network data packet as wireless network valid data and taking the untransmitted data network data packet as data network valid data preceded by:
truncating invalid data in the file data packet.
3. The method of claim 1, wherein if the first target network data packet is wireless network valid data, the wireless network valid data is output first and then the data network valid data is output, and if the first target network data packet is input data network valid data, the data network valid data is output first and then the wireless network valid data is output, the method further comprising:
when the outputted valid data includes all data packets of the target file, the data output through the wireless network and/or the data network is stopped.
4. An apparatus for file transfer, comprising:
the starting unit is used for simultaneously starting the wireless network and the data network when starting the transmission of the target file, wherein the target file at least comprises one data packet;
the determining unit is used for grouping the data packets of the target file to obtain a plurality of data groups, wherein the plurality of data groups comprise wireless network data packets and data network data packets, the wireless network data packets refer to data packets transmitted by a wireless network, and the data network data packets refer to data packets transmitted by a data network; respectively acquiring a first transmission rate of a data packet of the target file under the wireless network and a second transmission rate of the data packet under the data network; comparing the first transmission rate and the second transmission rate to obtain a comparison result; determining a target network according to the comparison result; if the target network is a wireless network, the wireless network data packet is used as a target network data packet; if the target network is a data network, the data network data is used as a target network data packet; taking the untransmitted wireless network data packet as wireless network effective data, and taking the untransmitted data network data packet as data network effective data;
and the transmission unit is used for transmitting the target network data packet according to the target network, outputting the wireless network effective data and then outputting the data network effective data if the first target network data packet is the wireless network effective data, and outputting the data network effective data and then outputting the wireless network effective data if the first target network data packet is the data network effective data.
5. A computer readable storage medium, characterized in that the storage medium stores a plurality of instructions adapted to be loaded by a processor for performing the steps in the method of file transfer according to any of claims 1 to 3.
6. A terminal, comprising: a processor and a memory storing a plurality of instructions, the processor loading the instructions stored by the memory to perform the steps in the method of file transfer of any of claims 1 to 3.
CN201910934123.5A 2019-09-29 2019-09-29 File transmission method, device, storage medium and terminal Active CN110650546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934123.5A CN110650546B (en) 2019-09-29 2019-09-29 File transmission method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934123.5A CN110650546B (en) 2019-09-29 2019-09-29 File transmission method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110650546A CN110650546A (en) 2020-01-03
CN110650546B true CN110650546B (en) 2023-08-15

Family

ID=68993169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934123.5A Active CN110650546B (en) 2019-09-29 2019-09-29 File transmission method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110650546B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738270B (en) * 2021-01-07 2022-12-30 苏州浪潮智能科技有限公司 File transmission method, device, equipment and storage medium
CN114374683B (en) * 2021-12-20 2024-09-10 上海金仕达软件科技股份有限公司 Archive file management method, archive file management system and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980569A (en) * 2010-07-22 2011-02-23 展讯通信(上海)有限公司 Data service transmission method of dual-mode terminal and dual-mode terminal
CN103986560A (en) * 2014-06-03 2014-08-13 中国人民解放军信息工程大学 Data transmission method and data transmission device
CA2852194A1 (en) * 2013-08-20 2015-02-20 Blackberry Limited Mitigating interference between co-located wireless technologies
WO2015096149A1 (en) * 2013-12-27 2015-07-02 华为技术有限公司 Tcp link configuration method, apparatus and device
CN104823393A (en) * 2012-09-13 2015-08-05 第一原理公司 Data stream division method to increase data transmission rates
CN105101357A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Method and apparatus for controlling network connection
CN109561138A (en) * 2018-11-19 2019-04-02 Oppo广东移动通信有限公司 Document down loading method and Related product
WO2019128565A1 (en) * 2017-12-30 2019-07-04 Oppo广东移动通信有限公司 Method and device for transmitting wireless data of terminal, terminal, and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190036795A1 (en) * 2017-07-27 2019-01-31 Verizon Patent And Licensing Inc. Method and system for proactive anomaly detection in devices and networks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980569A (en) * 2010-07-22 2011-02-23 展讯通信(上海)有限公司 Data service transmission method of dual-mode terminal and dual-mode terminal
CN104823393A (en) * 2012-09-13 2015-08-05 第一原理公司 Data stream division method to increase data transmission rates
CA2852194A1 (en) * 2013-08-20 2015-02-20 Blackberry Limited Mitigating interference between co-located wireless technologies
WO2015096149A1 (en) * 2013-12-27 2015-07-02 华为技术有限公司 Tcp link configuration method, apparatus and device
CN105101357A (en) * 2014-05-23 2015-11-25 中兴通讯股份有限公司 Method and apparatus for controlling network connection
CN103986560A (en) * 2014-06-03 2014-08-13 中国人民解放军信息工程大学 Data transmission method and data transmission device
WO2019128565A1 (en) * 2017-12-30 2019-07-04 Oppo广东移动通信有限公司 Method and device for transmitting wireless data of terminal, terminal, and storage medium
CN109561138A (en) * 2018-11-19 2019-04-02 Oppo广东移动通信有限公司 Document down loading method and Related product

Also Published As

Publication number Publication date
CN110650546A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
US20170192819A1 (en) Method and electronic device for resource allocation
CN112202222A (en) Charger, charging control method and device
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
US8488501B2 (en) Network assisted power management
CN105357404B (en) A kind of method for switching network, device and communication terminal
US20110145556A1 (en) Automatic and controllable system operation
CN110650546B (en) File transmission method, device, storage medium and terminal
US20140160978A1 (en) Method and apparatus for low energy discovery
CN112910802B (en) Message processing method and device
CN111177025B (en) Data storage method and device and terminal equipment
CN108199942A (en) Vehicle diagnosis method, device, equipment, system and diagnosis connection equipment
CN106708554A (en) Program running method and device
CN102202132A (en) Method, system and equipment for initializing networking equipment
CN111278051B (en) File transmission method and device, storage medium and electronic equipment
CN112134337A (en) Power adapter, terminal device, electronic device and charging control method thereof
CN109298775A (en) Terminal device and task processing method
CN108563468A (en) A kind of method, apparatus and Baffle Box of Bluetooth of Baffle Box of Bluetooth data processing
CN108599530A (en) A kind of powering mode converter and powering mode conversion method
CN111489279B (en) GPU acceleration optimization method and device and computer storage medium
CN205283611U (en) End and server end news information will be moved and synchronous device will be carried out
CN111901401B (en) Method and device for balancing SMF load of session management function
CN101369191B (en) Multicomputer switching mechanism and implementing method
CN110445874A (en) A kind of conversation processing method, device, equipment and storage medium
CN110597643A (en) Inter-core communication method, processor and electronic equipment
CN105487637A (en) Radio-frequency link control method and apparatus

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