WO2020103585A1 - 文件下载方法及相关产品 - Google Patents

文件下载方法及相关产品

Info

Publication number
WO2020103585A1
WO2020103585A1 PCT/CN2019/109999 CN2019109999W WO2020103585A1 WO 2020103585 A1 WO2020103585 A1 WO 2020103585A1 CN 2019109999 W CN2019109999 W CN 2019109999W WO 2020103585 A1 WO2020103585 A1 WO 2020103585A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
network
downloaded
networks
download
Prior art date
Application number
PCT/CN2019/109999
Other languages
English (en)
French (fr)
Inventor
黄园
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020103585A1 publication Critical patent/WO2020103585A1/zh

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/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • This application relates to the field of communication technology, and mainly relates to a file download method and related products.
  • the embodiments of the present application provide a file download method and related products, which can increase the file download rate.
  • an embodiment of the present application provides a file download method, which is applied to an electronic device, and the method includes:
  • the memory size corresponding to the target file and the network parameters corresponding to each of the multiple target networks connected to the electronic device are obtained to obtain multiple network parameters;
  • Integrating the plurality of data packages to be downloaded to obtain the target file Integrating the plurality of data packages to be downloaded to obtain the target file.
  • an embodiment of the present application provides a file download device, which is applied to an electronic device, and the device includes:
  • the communication unit is used to receive the download instruction for the target file
  • the processing unit is used to obtain the memory size corresponding to the target file and the network parameters corresponding to each target network among the multiple target networks connected to the electronic device to obtain multiple network parameters; according to the memory size and The multiple network parameters divide the target file into multiple data packets to be downloaded, and each data packet to be downloaded corresponds to a target network; a corresponding target is generated according to each data packet to be downloaded from the plurality of data packets to be downloaded A download request from the network, the download request is used to request the corresponding target network to download the corresponding data packet to be downloaded;
  • the communication unit is further configured to send a corresponding download request to each target network of the plurality of target networks; receive data packets to be downloaded downloaded by each target network of the plurality of target networks to obtain the multiple Data package to be downloaded;
  • the processing unit is also used to integrate the multiple data packages to be downloaded to obtain the target file.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be processed by the above
  • the program includes instructions for some or all of the steps as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program causes a computer to execute as described in the first aspect of the embodiment of the present application Describe some or all of the steps.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium that stores a computer program, and the computer program is operable to cause the computer to execute Apply for some or all of the steps described in the first aspect of the embodiments.
  • the computer program product may be a software installation package.
  • FIG. 1 is a schematic flowchart of a file download method provided by an embodiment of this application
  • FIG. 2 is a network architecture diagram of a file download system provided by an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a file downloading device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (user equipment, UE), mobile station (MS), terminal device, etc.
  • UE user equipment
  • MS mobile station
  • terminal device etc.
  • the devices mentioned above are collectively referred to as electronic devices. The following describes the embodiments of the present application in detail.
  • the embodiments of the present application provide a file download method and related products, which can increase the file download rate.
  • an embodiment of the present application provides a schematic flowchart of a file download method.
  • the file download method is applied to an electronic device that supports connection to multiple networks.
  • This application does not limit the network.
  • the electronic device 100 can communicate with the mobile provided by the first base station 102 Data network connection, the mobile data network can provide networks in different frequency bands, such as: 2nd generation mobile phone communication technology (2-Generation wireless telephone technology (2G) network, 3rd generation mobile communication technology (3rd-Generation, 3G) network 4.
  • the fourth generation mobile communication technology (the 4th Generation mobile communication technology, 4G) network, the fifth generation mobile communication technology (5th-Generation, 5G) network; the electronic device 100 can also be connected to wireless networks provided by different devices, for example: The first hotspot device 104 and the first router 106; the electronic device 100 may also be connected to networks of different frequency bands provided by the same device, for example, the 2.4GHz and 5GHz wireless networks provided by the first router 106.
  • the wireless network sets up an identity step, that is, when an electronic device accesses the wireless network, the wireless network needs to verify the identity information of the electronic device, and establish a network connection with the electronic device when the verification is successful, for example:
  • the name is sanhuan
  • the verification password is 65498231. If and only when the electronic device submits 65498231, the wireless network establishes a connection with the electronic device.
  • the electronic device For its security, the electronic device performs security detection on the connectable network or performs security protection on the electronic device.
  • the method further includes: obtaining the application type of the foreground application and the application used by the foreground application Network connection type; when the network connection type is a wireless network with hidden security risks or the application type is a preset hidden danger type, establish a connection with a target virtual private network server according to a preset connection rule.
  • the foreground application is opposite to the background application, that is, the foreground application is an application program called by the current display page of the electronic device.
  • the application type of the foreground application is the application type to which the application belongs, for example: dating, online shopping, payment, etc .;
  • the network connection types used by the foreground application include various wireless local area networks, such as Wi-Fi, and may also include mobile operators Provides mobile communication networks of various network standards.
  • the preset hidden danger type is an application that may involve the privacy or interest-related of the user of the electronic device, and the specific preset hidden danger type is not limited in this embodiment of the present invention.
  • the specific preset hidden danger type is not limited in this embodiment of the present invention.
  • online shopping, payment involves money transactions and purchasing habits, etc., dating involves friends' information and conversation content, etc . it can also be an application type set by the user, that is, the user will need to protect according to the recommended settings and / or according to his own understanding
  • the application type is set to the preset hidden danger type, for example: the online shopping type, payment type and dating type in the recommended settings.
  • the user also sets the photo type to the preset hidden danger type.
  • This application does not limit the preset connection rules. It can be that when the electronic device is connected to the target virtual private network server for the first time, the input user name, password and configuration information are obtained; when the configuration information matches the preset format , Establish a connection with the target virtual private network server according to the configuration information, and store the user name, password, and configuration information; when the electronic device is not connected to the target virtual private network server for the first time, obtain the input user name and password; when the user name and password When the verification is passed, the configuration information corresponding to the user name is obtained, and a connection is established with the target virtual private network server according to the configuration information.
  • the embodiment of the present invention does not limit the preset connection rule.
  • Virtual private network (English: Virtual Private Network, VPN) refers to the technology of establishing a private network on a public network. It can be understood that, if the network connection type of the foreground application is a wireless network with potential safety hazards or the application type of the foreground application is a preset danger type, a connection is established with the target virtual private network server according to the preset connection rule. In this way, the target virtual private network server performs encrypted communication on the network environment used by the electronic device, that is, establishes a secure transmission channel, thereby improving the security of the transmitted data.
  • VPN Virtual Private Network
  • a file download method includes:
  • the target file may be a multimedia file such as video or audio actively cached by the user, or an update package or installation package of the application; it may also be a file to be received, etc.
  • the download instruction is used to instruct the electronic device to download the target file. It can be understood that, if the network permits, it can respond to the download instruction, that is, download the target file.
  • the memory size is the temporary storage space of the target file.
  • the network parameters may include signal strength, network rate, network tariff, etc., and are not limited here. It can be understood that when the network parameters meet the basic requirements for downloading, the target file can be downloaded, and the download time can be estimated according to the memory size and the network parameters.
  • the connected network can be selected according to the current network demand status or network support status.
  • the network support status can include the corresponding support level of network tariff, network rate, and network signal.
  • the network demand status is Demand for network speed, for example: when the screen is locked, use a wireless network for background refresh; when running multiple applications, use the data mobile network to cache text, use the wireless network to cache pictures or videos, or use different wireless The network runs different applications.
  • the target network is used for electronic devices to download the target file, and it is necessary to select a network that is convenient for increasing the download rate among the above-mentioned connected networks.
  • This application does not limit the method of selecting the target network, in a possible example
  • the method further includes: determining a plurality of reference networks corresponding to the target moving route; determining a connection record between each reference network and the electronic device in the plurality of reference networks to obtain a plurality of connection records; Connection records determine the communication quality value of each reference network in the multiple reference networks to obtain multiple communication quality values; the reference network corresponding to the communication quality value greater than the target threshold among the multiple communication quality values is obtained as the target network The plurality of target networks.
  • the target moving route is a route that the electronic device may move.
  • the present application does not limit the method for determining the target moving route.
  • the method further includes: determining the current location of the electronic device and Current time; determine multiple historical movement trajectories corresponding to the current position and the current time; determine the target movement route according to the multiple historical movement trajectories.
  • the current time can be determined according to the time manager of the electronic device; the current position can be determined by the positioning module of the electronic device, which can be a Global Positioning System (Global Positioning System, GPS) module or a wireless local area network (Wireless Local Area (Networks, WLAN) module; the electronic device can also determine the current location of the electronic device based on the location of the connected network device, the distance between the electronic device and the network device, or the electronic device's search for the network speed of the network device. To a certain extent, the distance between the electronic device and the network device is reflected, that is, the current location of the electronic device is determined by the position of the fixed network device and the distance between the network device and the electronic device.
  • the positioning module of the electronic device which can be a Global Positioning System (Global Positioning System, GPS) module or a wireless local area network (Wireless Local Area (Networks, WLAN) module
  • the electronic device can also determine the current location of the electronic device based on the location of the connected network device, the distance between the electronic device and the
  • the GPS module uses GPS positioning satellites to perform real-time positioning and navigation around the world;
  • the WLAN module uses radio frequency technology and uses electromagnetic waves to communicate in the air. Its positioning method can be based on the connected hotspot equipment, such as: wireless router Or turn on hotspot electronic devices, etc.
  • the historical movement trajectory is the historical movement route corresponding to the current time and current location, for example: during work, the historical movement trajectory is basically the office activity area; when returning home from work, the historical movement trajectory is basically the company The route from the address to the home address; during the holidays, the historical movement track is basically the active area of the home or the shopping mall that frequents.
  • the current position and the current time of the electronic device are determined first, and then the corresponding multiple historical movement tracks are determined from the current position and the current time, and finally, the target movement route of the electronic device is determined according to the multiple historical movement tracks. That is to say, the movement route that may occur in the current state is determined according to the historical movement track of the electronic device, which is convenient for improving the accuracy of the movement route.
  • the reference network is a network that has been successfully verified in the target movement route, that is, a network that may be used for electronic devices to download the target file;
  • the connection record is the record of the connection between the reference network and the electronic device before, which may include the connection duration and connection Connection parameters such as number of times, network used, connection security, and number of disconnections.
  • This application does not limit the method for determining the communication quality value, and can be determined according to the connection parameters of each dimension in the connection record, that is, the connection parameters of different dimensions are weighted.
  • This application also does not limit the target threshold, which can be determined according to the file type and file size of the target file.
  • first determine multiple reference networks corresponding to the target moving route and then determine the connection records between each reference network and the electronic device to obtain multiple connection records, and then determine according to the connection records between each reference network and the electronic device
  • the communication quality value between the reference network and the electronic device and using the reference network corresponding to the communication quality value greater than the target threshold as the target network, can improve the security and download rate of the target network to download the target file.
  • S102 Divide the target file into multiple data packets to be downloaded according to the memory size and the multiple network parameters, and each data packet to be downloaded corresponds to a target network.
  • This application does not limit the method for dividing the data package to be downloaded.
  • the target file is divided into multiple data packages to be downloaded according to the memory size and the multiple network parameters
  • the method includes: determining the allocation weight corresponding to each target network in the multiple target networks according to the multiple network parameters to obtain multiple allocation weights; determining the multiple target networks according to the multiple allocation weights and the memory size
  • the determining the allocation weight corresponding to each target network in the multiple target networks according to the multiple network parameters obtains multiple allocation weights Including: determining a target moving route of the electronic device; determining a network speed change range corresponding to the target moving route for each target network of the plurality of target networks according to the plurality of network parameters to obtain a plurality of network speed changes Range; determine the allocation weight corresponding to each target network in the target network according to the multiple network speed change ranges to obtain the multiple allocation weights.
  • the target moving route can refer to the description of step S101, and will not be repeated here.
  • the network speed variation range corresponding to each target network is determined according to the area corresponding to the target moving route and multiple network parameters.
  • This application does not limit the method of determining the distribution proportion according to the range of network speed. It can be divided into multiple time periods and the weight of each time period is determined. The higher the time, the greater the weight; the statistics of each network speed change The ratio in the corresponding time period in the range, and then calculate the distribution weight according to the weight and the ratio. In this way, considering the speed range of each time period and the download completion degree, it is easy to improve the accuracy of determining the distribution weight.
  • the electronic device first determine the current location and current time of the electronic device, and then determine the network speed variation range corresponding to each target network and the target moving route in the multiple target networks according to multiple network parameters to obtain multiple network speed variation ranges, and then , The distribution proportion corresponding to each target network is determined according to multiple network speed ranges. In this way, the relationship between the target moving route of the electronic device and the network speed change range is considered, and the accuracy of determining the distribution proportion is improved.
  • S103 Generate a corresponding download request of the target network according to each of the plurality of data packets to be downloaded.
  • S104 Send a corresponding download request to each target network of the plurality of target networks.
  • S105 Receive data packets to be downloaded downloaded by each target network in the plurality of target networks to obtain the plurality of data packets to be downloaded.
  • the download request is used to request the corresponding target network to download the corresponding data packet to be downloaded.
  • the target network when the target network receives the download request, it will respond to the download request, that is, download the corresponding data packet to be downloaded.
  • the method further includes: obtaining the download duration corresponding to the target network i; when the download duration arrives, if the download status of the data packet to be downloaded corresponding to the target network i is a failure status, Selecting an alternate target network from the plurality of target networks; sending a download request corresponding to the target network i to the alternate target network; receiving a waiting target corresponding to the target network i downloaded by the alternate target network Download the data package.
  • the target network i is any target network among the plurality of target networks, and the download duration may be obtained according to the network speed variation range corresponding to the target network i and the memory size of the data packet to be downloaded.
  • This application does not limit the method of determining the download status of the target network i as a fault status, and can obtain the fault information sent by the target network i; it can also obtain the download parameters of the target network i again, if the download parameters do not meet the preset conditions, then determine The target network i fails.
  • This application is also not limited to the method of selecting an alternative target network, and may be a network with the highest communication quality value among multiple target networks.
  • the communication quality value reference may be made to the method described in step S101, which is not repeated here; also It can be the network provided by the network access device closest to the electronic device, or the fastest network.
  • the target network is determined to be faulty, and a candidate target network is selected from the multiple target networks, and The target network is selected to send a download request corresponding to the faulty target network and to accept the data packet to be downloaded downloaded by the candidate target network, thereby improving the fault handling capability.
  • S106 Integrate the multiple data packages to be downloaded to obtain the target file.
  • each data packet to be downloaded carries a segmentation location identifier, which may be the number of the last byte in the data packet to be downloaded, for example: multiple data packets to be downloaded are 0-100 bytes, 101 -200 bytes, 201-260 bytes, then the split position is identified as 100, 200 and 260; it can also be the number of the data to be downloaded, the number of multiple data packets to be downloaded is 1, 2, 3, then the split position is identified It is 1, 2, 3.
  • integrating the plurality of data packets to be downloaded to obtain the target file includes: integrating the plurality of data packets to be downloaded according to the segmentation location identifier To get the target file.
  • the plurality of data packages to be downloaded are integrated according to the segmentation location identifier to obtain the target file, so that data integration can be directly performed according to the segmentation location identifier of the data package to be downloaded to obtain the target file, which improves The efficiency of data integration.
  • the electronic device receives the download instruction for the target file, it acquires the memory size corresponding to the target file and each of the multiple target networks connected to the electronic device The network parameters corresponding to the target network obtain multiple network parameters. Then, the target file is divided into data packets to be downloaded corresponding to each target network in the plurality of target networks according to the memory size and the plurality of network parameters to obtain a plurality of data packets to be downloaded, and according to the Each data packet to be downloaded among the plurality of data packets to be downloaded generates a corresponding download request of the target network.
  • FIG. 3 is a schematic structural diagram of a file downloading device provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. 2.
  • the above file downloading device 300 includes:
  • the communication unit 301 is used to receive a download instruction for a target file
  • the processing unit 302 is configured to obtain the memory size corresponding to the target file and the network parameters corresponding to each target network among the multiple target networks connected to the electronic device to obtain multiple network parameters; according to the memory size and The multiple network parameters divide the target file into multiple data packets to be downloaded, and each data packet to be downloaded corresponds to a target network; a corresponding target is generated according to each data packet to be downloaded from the plurality of data packets to be downloaded A download request from the network, the download request is used to request the corresponding target network to download the corresponding data packet to be downloaded;
  • the communication unit 301 is further configured to send a corresponding download request to each target network of the plurality of target networks; receive data packets to be downloaded downloaded by each target network of the plurality of target networks to obtain the multiple Data package to be downloaded;
  • the processing unit 302 is further configured to integrate the multiple data packages to be downloaded to obtain the target file.
  • the electronic device receives the download instruction for the target file, it acquires the memory size corresponding to the target file, and the network parameters corresponding to each target network among the multiple target networks connected to the electronic device to obtain multiple Network parameters. Then, the target file is divided into data packets to be downloaded corresponding to each target network in the plurality of target networks according to the memory size and the plurality of network parameters to obtain a plurality of data packets to be downloaded, and according to the Each data packet to be downloaded among the plurality of data packets to be downloaded generates a corresponding download request of the target network.
  • the processing unit 302 is specifically configured to divide the target file into multiple data packets to be downloaded according to the memory size and the multiple network parameters.
  • the network parameters determine the allocation weight corresponding to each target network in the plurality of target networks to obtain a plurality of allocation weights; determine each target network in the plurality of target networks according to the plurality of allocation weights and the memory size The download request of the downloaded sub-data package and the identification information corresponding to each sub-data package.
  • the processing unit 302 is specifically configured to determine the allocation weight corresponding to each target network in the multiple target networks according to the multiple network parameters to obtain multiple allocation weights.
  • a target moving route of the electronic device determining a network speed change range corresponding to the target moving route for each target network of the plurality of target networks according to the plurality of network parameters, to obtain a plurality of network speed change ranges;
  • the plurality of network speed variation ranges determine the allocation weight corresponding to each target network in the target network to obtain the plurality of allocation weights.
  • the processing unit 302 is specifically configured to determine the current position and current time of the electronic device; Multiple historical movement trajectories corresponding to the current time; determining the target movement route according to the multiple historical movement trajectories.
  • the processing unit 302 is further configured to determine a plurality of reference networks corresponding to the target moving route; determine a connection record between each reference network and the electronic device in the plurality of reference networks To obtain multiple connection records; determine the communication quality value of each reference network among the multiple reference networks according to the multiple connection records, to obtain multiple communication quality values; to make the multiple communication quality values greater than the target threshold
  • the reference network corresponding to the communication quality value is used as the target network to obtain the multiple target networks.
  • each data packet to be downloaded carries a segmentation location identifier.
  • the processing unit obtains the target file.
  • 302 is specifically used to integrate the multiple data packages to be downloaded according to the segmentation location identifier to obtain the target file.
  • the processing unit 302 is further used to obtain the download duration corresponding to the target network i, where the target network i is any target network among the plurality of target networks; when the download duration arrives If the download status of the data packet to be downloaded corresponding to the target network i is a failure status, select an alternative target network from the plurality of target networks; the communication unit 301 is further configured to send to the alternative target network For the download request corresponding to the target network i; receiving the data packet to be downloaded corresponding to the target network i downloaded by the candidate target network.
  • the processing unit 302 is specifically configured to:
  • the download duration is determined according to the network speed variation range corresponding to the target network i and the memory size of the data packet to be downloaded.
  • processing unit 302 is also used to:
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 440, wherein the one or more programs 440 are stored in the memory 420 and are configured by
  • the aforementioned processor 410 executes, and the aforementioned program 440 includes instructions for performing the following steps:
  • the memory size corresponding to the target file and the network parameters corresponding to each target network among the multiple target networks connected to the electronic device 400 are obtained to obtain multiple network parameters;
  • Integrating the plurality of data packages to be downloaded to obtain the target file Integrating the plurality of data packages to be downloaded to obtain the target file.
  • the electronic device 400 receives the download instruction for the target file, it obtains the memory size corresponding to the target file and the network parameter corresponding to each target network among the multiple target networks connected to the electronic device 400 to obtain Multiple network parameters. Then, the target file is divided into data packets to be downloaded corresponding to each target network in the plurality of target networks according to the memory size and the plurality of network parameters to obtain a plurality of data packets to be downloaded, and according to the Each data packet to be downloaded among the plurality of data packets to be downloaded generates a corresponding download request of the target network.
  • the instructions in the program 440 are specifically used to perform the following operations :
  • the download request of the sub-data packet to be downloaded from each target network in the plurality of target networks and the identification information corresponding to each sub-data packet are determined according to the multiple allocation weights and the memory size.
  • the instructions in the program 440 are specifically used To perform the following operations:
  • the distribution proportion corresponding to each target network in the target network is determined according to the multiple network speed change ranges, to obtain the multiple distribution proportions.
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the target movement route is determined according to the plurality of historical movement trajectories.
  • the instructions in the program 440 are also used to perform the following operations:
  • connection record Determining a connection record between each reference network and the electronic device 400 in the plurality of reference networks to obtain a plurality of connection records
  • each data packet to be downloaded carries a segmentation location identifier.
  • the program 440 The instructions in are used to perform the following operations:
  • the instructions in the program 440 are also used to perform the following operations:
  • the download duration arrives, if the download status of the data packet to be downloaded corresponding to the target network i is a failure status, select an alternative target network from the plurality of target networks;
  • the instructions in the program 440 are used to perform the following operations:
  • the download duration is determined according to the network speed variation range corresponding to the target network i and the memory size of the data packet to be downloaded.
  • the instructions in the program 440 are also used to perform the following operations:
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program causes the computer to perform part or all of the steps of any method described in the method embodiment.
  • the computer includes an electronic device.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing the computer program.
  • the computer program is operable to cause the computer to perform any part of the method described in the method embodiment. Or all steps.
  • the computer program product may be a software installation package, and the computer includes electronic equipment.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of units is only a division of logical functions.
  • there may be another division manner for example, multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software program mode.
  • the integrated unit is implemented in the form of a software program model and sold or used as an independent product, it can be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application.
  • the foregoing memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk, or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , ROM, RAM, magnetic disk or optical disk, etc.

Landscapes

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

Abstract

本申请实施例公开了一种文件下载方法及相关产品,其中方法包括:若接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数得到多个网络参数;根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包;根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求;向所述多个目标网络中每一目标网络发送对应的下载请求;接收所述多个目标网络中每一目标网络下载的待下载数据包得到所述多个待下载数据包;将所述多个待下载数据包进行整合得到所述目标文件。采用本申请,可提高文件下载的速率。

Description

文件下载方法及相关产品 技术领域
本申请涉及通信技术领域,主要涉及了一种文件下载方法及相关产品。
背景技术
随着通信技术和电子设备技术的发展,电子设备(例如:手机、平板计算机等)上集成的功能越来越多,直接通过电子设备下载文件成为一件普遍的事情,如何提高文件下载的速率是本领域技术人员待解决的技术问题。
发明内容
本申请实施例提供了一种文件下载方法及相关产品,可提高文件下载的速率。
第一方面,本申请实施例提供一种文件下载方法,应用于电子设备,所述方法包括:
若接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;
根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;
根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
向所述多个目标网络中每一目标网络发送对应的下载请求;
接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
将所述多个待下载数据包进行整合,得到所述目标文件。
第二方面,本申请实施例提供一种文件下载装置,应用于电子设备,所述装置包括:
通信单元,用于接收针对目标文件的下载指令;
处理单元,用于获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;根 据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
所述通信单元,还用于向所述多个目标网络中每一目标网络发送对应的下载请求;接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
所述处理单元,还用于将所述多个待下载数据包进行整合,得到所述目标文件。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
其中:
图1为本申请实施例提供的一种文件下载方法的流程示意图;
图2为本申请实施例提供的一种文件下载系统的网络构架图;
图3为本申请实施例提供的一种文件下载装置的结构示意图;
图4为本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施 例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。下面对本申请实施例进行详细介绍。
本申请实施例提供了一种文件下载方法及相关产品,可提高文件下载的速率。
请参照图1,本申请实施例提供一种文件下载方法的流程示意图。该文件下载方法应用于电子设备,该电子设备支持与多个网络连接,本申请对于网络不做限定,如图2所示的网络构架图,电子设备100可与以第一基站102提供的移动数据网络连接,该移动数据网络可提供不同频段的网络,例如:第二代手机通信技术规格(2-Generation wireless telephone technology,2G)网络、第三代移动通信技术(3rd-Generation,3G)网络、第四代移动通信技术(the 4th Generation mobile communication technology,4G)网络、第五代移动通信技术(5th-Generation,5G)网络;电子设备100也可以与不同设备提供的无线网络连接,例如:第一热点设备104、第一路由器106;电子设备100还可以与同一个设备提供的不同频段的网络连接,例如:第一路由器106提供的2.4GHz和5GHz的无线网络。
无线网络为了其安全性,设置了身份步骤,即在电子设备接入该无线网络 时,该无线网络需验证电子设备的身份信息,在验证成功时与电子设备建立网络连接,例如:无线网络的命名为sanhuan,验证密码为65498231,则当且仅当电子设备提交65498231时,该无线网络与电子设备建立连接。
电子设备为了其安全性,对可连接的网络进行安全检测或对电子设备进行安全保护,在一种可能的示例中,所述方法还包括:获取前台应用的应用类型和所述前台应用使用的网络连接类型;当所述网络连接类型是存在安全隐患的无线网络或所述应用类型为预设隐患类型时,根据预设连接规则与目标虚拟专用网络服务器建立连接。
其中,前台应用与后台应用相对,即前台应用是电子设备当前展示页面所调用的应用程序。前台应用的应用类型为该应用属于的应用类型,例如:交友类、网购类、支付类等等;前台应用使用的网络连接类型包括各种无线局域网,例如Wi-Fi,还可包括移动运营商提供的各种网络制式的移动通信网络。
预设隐患类型为可能涉及电子设备用户隐私或利益相关等应用,本发明实施例对于具体的预设隐患类型不作限定。例如:网购类、支付类涉及金钱交易和购买习惯等、交友类涉及好友的信息和对话内容等;还可以是用户设置的应用类型,即用户根据推荐设置和/或者按照自己的理解将需要保护的应用类型设置为预设隐患类型,例如:推荐设置中网购类型、支付类型和交友类型,用户除了推荐设置中的应用类型,还将拍照类型设置为预设隐患类型。
本申请对于预设连接规则也不做限定,可为当电子设备与目标虚拟专用网络服务器是第一次连接时,获取输入的用户名、密码和配置信息;当配置信息与预设格式匹配时,根据配置信息与目标虚拟专用网络服务器建立连接,并存储用户名、密码和配置信息;当电子设备与目标虚拟专用网络服务器不是第一次连接时,获取输入的用户名和密码;当用户名和密码验证通过时,获取与用户名对应的配置信息,根据配置信息与目标虚拟专用网络服务器建立连接。本发明实施例对于预设连接规则也不作限定。
虚拟专用网络(英文:Virtual Private Network,VPN),指的是在公用网络上建立专用网络的技术。可以理解,若前台应用的网络连接类型是存在安全隐患的无线网络或前台应用的应用类型为预设隐患类型时,根据预设连接规则与目标虚拟专用网络服务器建立连接。如此,通过目标虚拟专用网络服务器对电子设备所使用的网络环境进行加密通讯,即建立安全传输渠道,从而提高传输数据的安全性。
具体的,如图1所示,一种文件下载方法,包括:
S101:若接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与电子设备连接的多个目标网络中每一目标网络对应的网络参数 得到多个网络参数。
在本申请中,目标文件可以是用户主动缓存的视频或音频等多媒体文件,也可以是应用的更新包或安装包;还可以是待接收的文件等。下载指令用于指示电子设备下载目标文件,可以理解,在网络允许的情况下,可响应该下载指令,即下载该目标文件。
内存大小为目标文件暂用的存储空间,网络参数可包括信号强度、网络速率、网络资费等,在此不做限定。可以理解,在网络参数满足下载的基本要求时,可进行目标文件的下载,且根据内存大小和网络参数可预估下载时间。
若电子设备开启了移动网络和无线网络,则可根据当前网络需求状态或网络支持状态选择连接的网络,网络支持状态可包括网络资费、网络速率和网络信号等对应的支持程度,网络需求状态为对网络速率的需求,例如:在锁屏状态时,采用一个无线网络进行后台刷新;在运行多个应用时,采用数据移动网络缓存文字,采用无线网络缓存图片或视频,也可采用不同的无线网络运行不同的应用。
在本申请中,目标网络用于电子设备下载目标文件,则在上述连接的网络中需选取便于提高下载速率的网络,本申请对于选取目标网络的方法不做限定,在一种可能的示例中,所述方法还包括:确定目标移动路线对应的多个参考网络;确定所述多个参考网络中每一参考网络和所述电子设备之间的连接记录得到多个连接记录;根据所述多个连接记录确定所述多个参考网络中每一参考网络的通信质量值得到多个通信质量值;将所述多个通信质量值中大于目标阈值的通信质量值对应的参考网络作为目标网络得到所述多个目标网络。
其中,目标移动路线为电子设备可能会移动的路线,本申请对于确定目标移动路线的方法不做限定,在一种可能的示例中,所述方法还包括:确定所述电子设备的当前位置和当前时间;确定与所述当前位置和所述当前时间对应的多条历史移动轨迹;根据所述多条历史移动轨迹确定所述目标移动路线。
在本申请中,当前时间可根据电子设备的时间管理器进行确定;当前位置可由电子设备的定位模块确定,该定位模块可以是全球定位系统(Global Positioning System,GPS)模块或无线局域网(Wireless Local Area Networks,WLAN)模块;电子设备还可由连接的网络设备的位置,以及电子设备与该网络设备之间的距离或电子设备搜索到该网络设备的网速确定电子设备的当前位置,网速可在一定程度上反映电子设备与该网络设备之间的距离,也就是由固定的网络设备的位置和该网络设备与电子设备之间的距离确定电子设备的当前位置。
其中,GPS模块利用GPS定位卫星,在全球范围内实时进行定位、导航; WLAN模块利用射频技术,使用电磁波,在空中进行通信连接,其定位方法可依据所连入的热点设备,例如:无线路由器或开启热点的电子设备等。
在本申请中,历史移动轨迹为与当前时间和当前位置对应的历史移动路线,例如:在工作期间,历史移动轨迹基本为办公室的活动区域;在下班回家的时间,历史移动轨迹基本为公司地址到家庭地址的路线;在放假期间,历史移动轨迹基本为家里的活动区域或常去的购物中心等。
可以理解,先确定电子设备的当前位置和当前时间,再由当前位置和当前时间确定对应的多条历史移动轨迹,最后,根据多条历史移动轨迹确定电子设备的目标移动路线。也就是说,根据电子设备的历史移动轨迹确定当前状态下可能发生的移动路线,便于提高移动路线的准确性。
在本申请中,参考网络为目标移动路线中已经验证成功的网络,即可能用于电子设备下载目标文件的网络;连接记录为参考网络与电子设备之前进行连接的记录,可包括连接时长、连接次数、使用网络、连接安全性、断网次数等连接参数。
本申请对于确定通信质量值的方法不做限定,可根据连接记录中的各个维度的连接参数进行确定,即不同维度的连接参数进行加权计算。本申请对于目标阈值也不做限定,可根据目标文件的文件类型和文件大小进行确定。
可以理解,先确定目标移动路线对应的多个参考网络,再确定各个参考网络和电子设备之间的连接记录以得到多个连接记录,然后根据每一参考网络和电子设备之间的连接记录确定该参考网络和电子设备之间的通信质量值,并将大于目标阈值的通信质量值对应的参考网络作为目标网络,即可提高目标网络下载目标文件的安全性和下载速率。
S102:根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络。
本申请对于划分待下载数据包的方法不做限定,在一种可能的示例中,所述根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,包括:根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重得到多个分配比重;根据所述多个分配比重和所述内存大小确定所述多个目标网络中每一目标网络待下载的子数据包的下载请求,以及每一子数据包对应的标识信息。
其中,分配比重为各个目标网络被分配的目标文件的比重,也就是说,将内存大小按照分配比重进行划分,可得到多个内存子大小,例如:内存大小为1M,分配比重为3:2:2:1,由于1M=1024kb,则内存子大小为384kb、256kb、256kb、128kb。
本申请对于确定分配比重的方法不做限定,在一种可能的示例中,所述根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重得到多个分配比重,包括:确定所述电子设备的目标移动路线;根据所述多个网络参数确定所述多个目标网络中每一目标网络与所述目标移动路线对应的网速变化范围得到多个网速变化范围;根据所述多个网速变化范围确定所述目标网络中每一目标网络对应的分配比重得到所述多个分配比重。
其中,目标移动路线可参照步骤S101的描述,在此不再赘述。
由于不同的网络在不同的位置由于距离或遮挡物,而导致对应的信号强度不一致,也就是说可提供的网速不同。在本申请中,根据目标移动路线对应的区域和多个网络参数确定每一目标网络对应的网速变化范围。
本申请对于根据网速变化范围确定分配比重的方法不做限定,可划分为多个时间段,并确定各个时间段的权值,时间越靠前,权值越大;再统计各个网速变化范围中对应时间段中的比值,再根据权值和比值进行计算分配比重,如此,考虑了各个时间段的网速变化范围和下载的完成度,便于提高确定分配比重的准确性。
可以理解,先确定电子设备的当前位置和当前时间,再根据多个网络参数确定多个目标网络中每一目标网络与目标移动路线对应的网速变化范围以得到多个网速变化范围,然后,根据多个网速范围确定各个目标网络对应的分配比重,如此,考虑了电子设备的目标移动路线与网速变化范围之间的关系,提高了确定分配比重的准确性。
S103:根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求。
S104:向所述多个目标网络中每一目标网络发送对应的下载请求。
S105:接收所述多个目标网络中每一目标网络下载的待下载数据包得到所述多个待下载数据包。
在本申请中,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载。也就是说,在目标网络接收到下载请求时,会响应该下载请求,即下载对应的待下载数据包。
在一个可能的实施例中,所述方法还包括:获取目标网络i对应的下载时长;在所述下载时长到达时,若所述目标网络i对应的待下载数据包的下载状态为故障状态,从所述多个目标网络中选取备选目标网络;向所述备选目标网络发送针对所述目标网络i对应的下载请求;接收所述备选目标网络下载的所述目标网络i对应的待下载数据包。
在本申请中,所述目标网络i为所述多个目标网络中的任一目标网络,下 载时长可根据目标网络i对应的网速变化范围和待下载数据包的内存大小获取。
本申请对于确定目标网络i的下载状态为故障状态的方法不作限定,可获取目标网络i发送的故障信息;也可再次获取目标网络i的下载参数,若下载参数不满足预设条件,则确定该目标网络i故障等。
本申请对于选取备选目标网络的方法也不做限定,可以是多个目标网络中通信质量值最高的网络,其中,通信质量值可参照步骤S101所描述的方法,在此不再赘述;也可以是距离电子设备最近的网络接入设备所提供的网络,还可以是网速最快的网络等。
可以理解,若多个目标网络中的一个目标网络在对应的下载时长到达时,下载状态为故障状态,则确定该目标网络故障,从多个目标网络中选取备选目标网络,并向该备选目标网络发送针对故障的目标网络对应的下载请求,以及接受该备选目标网络下载的待下载数据包,从而提高了故障处理能力。
S106:将所述多个待下载数据包进行整合得到所述目标文件。
在本申请中,每一待下载数据包携带分割位置标识,该分割位置标识可以是待下载数据包中最后一个字节的编号,例如:多个待下载数据包为0-100字节、101-200字节、201-260字节,则分割位置标识为100、200和260;也可以是待下载数据的编号,多个待下载数据包的编号为1、2、3,则分割位置标识为1、2、3。
若每一待下载数据包携带分割位置标识,则所述将所述多个待下载数据包进行整合得到所述目标文件包括:根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件。
可以理解,根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件,从而可直接根据待下载数据包的分割位置标识进行数据整合得到目标文件,如此,提高了数据整合的效率。
在如图1所示的文件下载方法中,若电子设备接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数得到多个网络参数。然后,根据所述内存大小和所述多个网络参数将所述目标文件划分为所述多个目标网络中每一目标网络对应的待下载数据包得到多个待下载数据包,并根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求。然后,向所述多个目标网络中每一目标网络发送对应的下载请求,等待接收所述多个目标网络中每一目标网络下载的待下载数据包得到所述多个待下载数据包,最后将所述多个待下载数据包进行整合得到所述目标文件。如此,通过与电子设备连接的多个目标网络分别下载待下载数据包,然后进行数据整合,从而提高了文件 下载的速率。
与图1所示的实施例一致,请参照图3,图3是本申请实施例提供的一种文件下载装置的结构示意图,应用于如图2所示的电子设备。具体的,如图3所示,上述文件下载装置300包括:
通信单元301用于接收针对目标文件的下载指令;
处理单元302用于获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
所述通信单元301还用于向所述多个目标网络中每一目标网络发送对应的下载请求;接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
所述处理单元302还用于将所述多个待下载数据包进行整合,得到所述目标文件。
可以理解,若电子设备接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数得到多个网络参数。然后,根据所述内存大小和所述多个网络参数将所述目标文件划分为所述多个目标网络中每一目标网络对应的待下载数据包得到多个待下载数据包,并根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求。然后,向所述多个目标网络中每一目标网络发送对应的下载请求,等待接收所述多个目标网络中每一目标网络下载的待下载数据包得到所述多个待下载数据包,最后将所述多个待下载数据包进行整合得到所述目标文件。如此,通过与电子设备连接的多个目标网络分别下载待下载数据包,然后进行数据整合,从而提高了文件下载的速率。
在一个可能的示例中,在所述根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包方面,所述处理单元302具体用于根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重;根据所述多个分配比重和所述内存大小确定所述多个目标网络中每一目标网络待下载的子数据包的下载请求,以及每一子数据包对应的标识信息。
在一个可能的示例中,在所述根据所述多个网络参数确定所述多个目标网 络中每一目标网络对应的分配比重,得到多个分配比重方面,所述处理单元302具体用于确定所述电子设备的目标移动路线;根据所述多个网络参数确定所述多个目标网络中每一目标网络与所述目标移动路线对应的网速变化范围,得到多个网速变化范围;根据所述多个网速变化范围确定所述目标网络中每一目标网络对应的分配比重,得到所述多个分配比重。
在一个可能的示例中,在所述确定所述电子设备的目标移动路线方面,所述处理单元302具体用于确定所述电子设备的当前位置和当前时间;确定与所述当前位置和所述当前时间对应的多条历史移动轨迹;根据所述多条历史移动轨迹确定所述目标移动路线。
在一个可能的示例中,所述处理单元302还用于确定所述目标移动路线对应的多个参考网络;确定所述多个参考网络中每一参考网络和所述电子设备之间的连接记录,得到多个连接记录;根据所述多个连接记录确定所述多个参考网络中每一参考网络的通信质量值,得到多个通信质量值;将所述多个通信质量值中大于目标阈值的通信质量值对应的参考网络作为目标网络,得到所述多个目标网络。
在一个可能的示例中,每一待下载数据包携带分割位置标识,在所述将所述多个待下载数据包进行整合,得到所述目标文件,得到所述目标文件方面,所述处理单元302具体用于根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件。
在一个可能的示例中,所述处理单元302还用于获取目标网络i对应的下载时长,所述目标网络i为所述多个目标网络中的任一目标网络;在所述下载时长到达时,若所述目标网络i对应的待下载数据包的下载状态为故障状态,从所述多个目标网络中选取备选目标网络;所述通信单元301还用于向所述备选目标网络发送针对所述目标网络i对应的下载请求;接收所述备选目标网络下载的所述目标网络i对应的待下载数据包。
在一个可能的示例中,在所述获取目标网络i对应的下载时长方面,所述处理单元302具体用于:
根据所述目标网络i对应的网速变化范围和所述待下载数据包的内存大小确定所述下载时长。
在一个可能的示例中,所述处理单元302还用于:
获取所述目标网络i发送的故障信息;根据所述故障信息确定所述目标网络i对应的待下载数据包的下载状态为故障状态;或者
获取所述目标网络i的下载参数,若所述下载参数不满足预设条件,则确定所述目标网络i对应的待下载数据包的下载状态为故障状态。
与图1所示的实施例一致,请参照图4,图4是本申请实施例提供的一种电子设备的结构示意图。如图4所示,该电子设备400包括处理器410、存储器420、通信接口430以及一个或多个程序440,其中,上述一个或多个程序440被存储在上述存储器420中,并且被配置由上述处理器410执行,上述程序440包括用于执行以下步骤的指令:
若接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备400连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;
根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;
根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
向所述多个目标网络中每一目标网络发送对应的下载请求;
接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
将所述多个待下载数据包进行整合,得到所述目标文件。
可以理解,若电子设备400接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备400连接的多个目标网络中每一目标网络对应的网络参数得到多个网络参数。然后,根据所述内存大小和所述多个网络参数将所述目标文件划分为所述多个目标网络中每一目标网络对应的待下载数据包得到多个待下载数据包,并根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求。然后,向所述多个目标网络中每一目标网络发送对应的下载请求,等待接收所述多个目标网络中每一目标网络下载的待下载数据包得到所述多个待下载数据包,最后将所述多个待下载数据包进行整合得到所述目标文件。如此,通过与电子设备400连接的多个目标网络分别下载待下载数据包,然后进行数据整合,从而提高了文件下载的速率。
在一个可能的示例中,在所述根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包方面,所述程序440中的指令具体用于执行以下操作:
根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重;
根据所述多个分配比重和所述内存大小确定所述多个目标网络中每一目标网络待下载的子数据包的下载请求,以及每一子数据包对应的标识信息。
在一个可能的示例中,在所述根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重方面,所述程序440中的指令具体用于执行以下操作:
确定所述电子设备400的目标移动路线;
根据所述多个网络参数确定所述多个目标网络中每一目标网络与所述目标移动路线对应的网速变化范围,得到多个网速变化范围;
根据所述多个网速变化范围确定所述目标网络中每一目标网络对应的分配比重,得到所述多个分配比重。
在一个可能的示例中,在所述确定所述电子设备400的目标移动路线方面,所述程序440中的指令具体用于执行以下操作:
确定所述电子设备400的当前位置和当前时间;
确定与所述当前位置和所述当前时间对应的多条历史移动轨迹;
根据所述多条历史移动轨迹确定所述目标移动路线。
在一个可能的示例中,所述程序440中的指令还用于执行以下操作:
确定所述目标移动路线对应的多个参考网络;
确定所述多个参考网络中每一参考网络和所述电子设备400之间的连接记录,得到多个连接记录;
根据所述多个连接记录确定所述多个参考网络中每一参考网络的通信质量值,得到多个通信质量值;
将所述多个通信质量值中大于目标阈值的通信质量值对应的参考网络作为目标网络,得到所述多个目标网络。
在一个可能的示例中,每一待下载数据包携带分割位置标识,在所述将所述多个待下载数据包进行整合,得到所述目标文件,得到所述目标文件方面,所述程序440中的指令具体用于执行以下操作:
根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件。
在一个可能的示例中,所述程序440中的指令还用于执行以下操作:
获取目标网络i对应的下载时长,所述目标网络i为所述多个目标网络中的任一目标网络;
在所述下载时长到达时,若所述目标网络i对应的待下载数据包的下载状态为故障状态,从所述多个目标网络中选取备选目标网络;
向所述备选目标网络发送针对所述目标网络i对应的下载请求;
接收所述备选目标网络下载的所述目标网络i对应的待下载数据包。
在一个可能的示例中,在所述获取目标网络i对应的下载时长方面,所述程序440中的指令用于执行以下操作:
根据所述目标网络i对应的网速变化范围和所述待下载数据包的内存大小确定所述下载时长。
在一个可能的示例中,所述程序440中的指令还用于执行以下操作:
获取所述目标网络i发送的故障信息;根据所述故障信息确定所述目标网络i对应的待下载数据包的下载状态为故障状态;或者
获取所述目标网络i的下载参数,若所述下载参数不满足预设条件,则确定所述目标网络i对应的待下载数据包的下载状态为故障状态。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行如方法实施例中记载的任一方法的部分或全部步骤,计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行如方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模式并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可 以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模式的形式实现。
集成的单元如果以软件程序模式的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种文件下载方法,其特征在于,应用于电子设备,所述方法包括:
    若接收到针对目标文件的下载指令,则获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;
    根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;
    根据所述多个待下载数据包中每一待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
    向所述多个目标网络中每一目标网络发送对应的下载请求;
    接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
    将所述多个待下载数据包进行整合,得到所述目标文件。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,包括:
    根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重;
    根据所述多个分配比重和所述内存大小确定所述多个目标网络中每一目标网络待下载的子数据包的下载请求,以及每一子数据包对应的标识信息。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重,包括:
    确定所述电子设备的目标移动路线;
    根据所述多个网络参数确定所述多个目标网络中每一目标网络与所述目标移动路线对应的网速变化范围,得到多个网速变化范围;
    根据所述多个网速变化范围确定所述目标网络中每一目标网络对应的分配比重,得到所述多个分配比重。
  4. 根据权利要求3所述的方法,其特征在于,所述确定所述电子设备的目标移动路线,包括:
    确定所述电子设备的当前位置和当前时间;
    确定与所述当前位置和所述当前时间对应的多条历史移动轨迹;
    根据所述多条历史移动轨迹确定所述目标移动路线。
  5. 根据权利要求3或4所述的方法,其特征在于,所述方法还包括:
    确定所述目标移动路线对应的多个参考网络;
    确定所述多个参考网络中每一参考网络和所述电子设备之间的连接记录,得到多个连接记录;
    根据所述多个连接记录确定所述多个参考网络中每一参考网络的通信质量值,得到多个通信质量值;
    将所述多个通信质量值中大于目标阈值的通信质量值对应的参考网络作为目标网络,得到所述多个目标网络。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,每一待下载数据包携带分割位置标识,所述将所述多个待下载数据包进行整合,得到所述目标文件,得到所述目标文件,包括:
    根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:
    获取目标网络i对应的下载时长,所述目标网络i为所述多个目标网络中的任一目标网络;
    在所述下载时长到达时,若所述目标网络i对应的待下载数据包的下载状态为故障状态,从所述多个目标网络中选取备选目标网络;
    向所述备选目标网络发送针对所述目标网络i对应的下载请求;
    接收所述备选目标网络下载的所述目标网络i对应的待下载数据包。
  8. 根据权利要求7所述的方法,其特征在于,所述获取目标网络i对应的下载时长,包括:
    根据所述目标网络i对应的网速变化范围和所述待下载数据包的内存大小确定所述下载时长。
  9. 根据权利要求7或8所述的方法,其特征在于,所述方法还包括:
    获取所述目标网络i发送的故障信息;根据所述故障信息确定所述目标网络i对应的待下载数据包的下载状态为故障状态;或者
    获取所述目标网络i的下载参数,若所述下载参数不满足预设条件,则确定所述目标网络i对应的待下载数据包的下载状态为故障状态。
  10. 一种文件下载装置,其特征在于,应用于电子设备,所述装置包括:
    通信单元,用于接收针对目标文件的下载指令;
    处理单元,用于获取所述目标文件对应的内存大小,以及与所述电子设备连接的多个目标网络中每一目标网络对应的网络参数,得到多个网络参数;根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包,每一待下载数据包对应一个目标网络;根据所述多个待下载数据包中每一 待下载数据包生成对应的目标网络的下载请求,所述下载请求用于请求对应的目标网络对相应的待下载数据包进行下载;
    所述通信单元,还用于向所述多个目标网络中每一目标网络发送对应的下载请求;接收所述多个目标网络中每一目标网络下载的待下载数据包,得到所述多个待下载数据包;
    所述处理单元,还用于将所述多个待下载数据包进行整合,得到所述目标文件。
  11. 根据权利要求10所述的装置,其特征在于,在所述根据所述内存大小和所述多个网络参数将所述目标文件划分为多个待下载数据包方面,所述处理单元具体用于:
    根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重;
    根据所述多个分配比重和所述内存大小确定所述多个目标网络中每一目标网络待下载的子数据包的下载请求,以及每一子数据包对应的标识信息。
  12. 根据权利要求11所述的装置,其特征在于,在所述根据所述多个网络参数确定所述多个目标网络中每一目标网络对应的分配比重,得到多个分配比重方面,所述处理单元具体用于:
    确定所述电子设备的目标移动路线;
    根据所述多个网络参数确定所述多个目标网络中每一目标网络与所述目标移动路线对应的网速变化范围,得到多个网速变化范围;
    根据所述多个网速变化范围确定所述目标网络中每一目标网络对应的分配比重,得到所述多个分配比重。
  13. 根据权利要求12所述的装置,其特征在于,在所述确定所述电子设备的目标移动路线方面,所述处理单元具体用于:
    确定所述电子设备的当前位置和当前时间;
    确定与所述当前位置和所述当前时间对应的多条历史移动轨迹;
    根据所述多条历史移动轨迹确定所述目标移动路线。
  14. 根据权利要求12或13所述的装置,其特征在于,所述处理单元还用于:
    确定所述目标移动路线对应的多个参考网络;
    确定所述多个参考网络中每一参考网络和所述电子设备之间的连接记录,得到多个连接记录;
    根据所述多个连接记录确定所述多个参考网络中每一参考网络的通信质量值,得到多个通信质量值;
    将所述多个通信质量值中大于目标阈值的通信质量值对应的参考网络作为目标网络,得到所述多个目标网络。
  15. 根据权利要求10-14任一项所述的装置,其特征在于,每一待下载数据包携带分割位置标识,在所述将所述多个待下载数据包进行整合,得到所述目标文件,得到所述目标文件方面,所述确定单元具体用于:
    根据所述分割位置标识将所述多个待下载数据包进行整合,得到所述目标文件。
  16. 根据权利要求10-15任一项所述的装置,其特征在于,所述处理单元还用于:
    获取目标网络i对应的下载时长,所述目标网络i为所述多个目标网络中的任一目标网络;
    在所述下载时长到达时,若所述目标网络i对应的待下载数据包的下载状态为故障状态,从所述多个目标网络中选取备选目标网络;
    所述通信单元还用于:
    向所述备选目标网络发送针对所述目标网络i对应的下载请求;
    接收所述备选目标网络下载的所述目标网络i对应的待下载数据包。
  17. 根据权利要求16所述的装置,其特征在于,在所述获取目标网络i对应的下载时长方面,所述处理单元具体用于:
    根据所述目标网络i对应的网速变化范围和所述待下载数据包的内存大小确定所述下载时长。
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行权利要求1-9任一项方法中的步骤的指令。
  19. 一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/109999 2018-11-19 2019-10-08 文件下载方法及相关产品 WO2020103585A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811382591.8 2018-11-19
CN201811382591.8A CN109561138B (zh) 2018-11-19 2018-11-19 文件下载方法及相关产品

Publications (1)

Publication Number Publication Date
WO2020103585A1 true WO2020103585A1 (zh) 2020-05-28

Family

ID=65866800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/109999 WO2020103585A1 (zh) 2018-11-19 2019-10-08 文件下载方法及相关产品

Country Status (2)

Country Link
CN (1) CN109561138B (zh)
WO (1) WO2020103585A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561138B (zh) * 2018-11-19 2021-04-13 Oppo广东移动通信有限公司 文件下载方法及相关产品
CN110825402B (zh) * 2019-09-26 2021-06-22 华为技术有限公司 一种下载数据包的方法及装置
CN110650546B (zh) * 2019-09-29 2023-08-15 Tcl移动通信科技(宁波)有限公司 文件传输的方法、装置、存储介质以及终端
CN110784520A (zh) * 2019-09-30 2020-02-11 北京字节跳动网络技术有限公司 文件下载方法、装置及电子设备
CN111901897A (zh) * 2020-07-28 2020-11-06 Tcl通讯(宁波)有限公司 一种数据下载方法、装置、存储介质及终端
CN112379838A (zh) * 2020-11-13 2021-02-19 Oppo广东移动通信有限公司 数据下载方法、装置、存储介质及电子设备
CN115622992B (zh) * 2022-09-09 2024-05-14 建信金融科技有限责任公司 一种基于Wi-Fi直连的文件下载方法、装置、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101389092A (zh) * 2007-09-12 2009-03-18 中兴通讯股份有限公司 一种双模双待手机使用双线程下载的方法
CN102215481A (zh) * 2011-07-14 2011-10-12 宇龙计算机通信科技(深圳)有限公司 移动终端和资源下载方法
CN103024593A (zh) * 2012-12-26 2013-04-03 人民搜索网络股份公司 一种网络视频点播加速系统及其播放方法
CN104836822A (zh) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 获取下载数据方法及装置、下载数据的方法及系统
CN105049452A (zh) * 2015-08-25 2015-11-11 广东欧珀移动通信有限公司 资源下载方式的切换方法、装置及智能终端
US20170142186A1 (en) * 2015-11-17 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method, apparatus, and electronic device for downloading files
CN109561138A (zh) * 2018-11-19 2019-04-02 Oppo广东移动通信有限公司 文件下载方法及相关产品

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635916B (zh) * 2009-08-11 2012-02-29 中兴通讯股份有限公司 一种基于多模移动终端的资源下载方法和系统
CN103179171B (zh) * 2011-12-26 2015-12-16 中国移动通信集团山东有限公司 基于分布式系统架构的文件传输方法及装置
CN103200606B (zh) * 2013-03-18 2016-12-28 东莞宇龙通信科技有限公司 终端和数据业务处理方法
CN103580842A (zh) * 2013-11-04 2014-02-12 惠州Tcl移动通信有限公司 一种多类型无线链路并行传输的方法和系统
CN104640224B (zh) * 2013-11-12 2018-06-19 华为技术有限公司 一种网络数据传输方法、装置及系统
CN105656955B (zh) * 2014-11-11 2019-07-23 华为数字技术(苏州)有限公司 文件处理方法、装置及系统
CN105228133A (zh) * 2015-07-10 2016-01-06 努比亚技术有限公司 多通道数据下载方法及系统
CN105512317B (zh) * 2015-12-17 2019-04-16 南京航空航天大学 一种基于群组划分的不确定移动对象索引方法
CN105978754B (zh) * 2016-05-13 2019-05-17 中国联合网络通信集团有限公司 一种网络质量检测方法及网关设备
CN108234247B (zh) * 2018-01-25 2020-06-23 网宿科技股份有限公司 一种检测网络质量的方法和系统
CN108512937B (zh) * 2018-04-17 2020-10-30 银川华联达科技有限公司 一种基于移动网络的计算机数据共享系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101389092A (zh) * 2007-09-12 2009-03-18 中兴通讯股份有限公司 一种双模双待手机使用双线程下载的方法
CN102215481A (zh) * 2011-07-14 2011-10-12 宇龙计算机通信科技(深圳)有限公司 移动终端和资源下载方法
CN103024593A (zh) * 2012-12-26 2013-04-03 人民搜索网络股份公司 一种网络视频点播加速系统及其播放方法
CN104836822A (zh) * 2014-02-10 2015-08-12 腾讯科技(深圳)有限公司 获取下载数据方法及装置、下载数据的方法及系统
CN105049452A (zh) * 2015-08-25 2015-11-11 广东欧珀移动通信有限公司 资源下载方式的切换方法、装置及智能终端
US20170142186A1 (en) * 2015-11-17 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method, apparatus, and electronic device for downloading files
CN109561138A (zh) * 2018-11-19 2019-04-02 Oppo广东移动通信有限公司 文件下载方法及相关产品

Also Published As

Publication number Publication date
CN109561138B (zh) 2021-04-13
CN109561138A (zh) 2019-04-02

Similar Documents

Publication Publication Date Title
WO2020103585A1 (zh) 文件下载方法及相关产品
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
CN107153961B (zh) 一种支付方法、支付服务器、交易服务器及可读存储介质
US10560853B2 (en) Configuring captive portals with a cloud service
WO2020147641A1 (zh) 网络连接方法及相关产品
WO2017185697A1 (zh) 一种带宽共享方法及装置
WO2018161802A1 (zh) 一种业务流的控制方法及装置
EP2900007A1 (en) Electronic device and method for performing geo-fencing based service
CN106411878B (zh) 访问控制策略的制定方法、装置及系统
US9591485B2 (en) Provisioning subscriptions to user devices
CN105592005B (zh) 一种安全验证方法、装置及系统
CN105704712B (zh) 网络资源共享方法、移动终端及服务器
US9713176B2 (en) Telecommunication method and telecommunication system
WO2018228387A1 (zh) 通信方法、装置及系统、非暂态计算机可读存储介质、计算机程序产品和电子设备
US20170325092A1 (en) Discovery mechanism for service server connection
WO2019047708A1 (zh) 资源配置方法及相关产品
JP2020501440A (ja) 緊急番号設定方法、取得方法および装置
US10038729B1 (en) Cooperative network access
US10389724B2 (en) Information sharing for third party applications in cellular telecommunication infrastructures
US20150099547A1 (en) Geo-based detection of border violation
CN108370500B (zh) 无线装置的优化设置
WO2018063949A1 (en) Providing network resource access based on a purpose identifier
CN115801299B (zh) 元宇宙身份认证方法、装置、设备及存储介质
WO2017084089A1 (zh) 车联网验证方法、装置及车联网系统
US20230137283A1 (en) Systems and methods to optimize registration and session establishment in a wireless network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19887320

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19887320

Country of ref document: EP

Kind code of ref document: A1