CN109040213A - Document down loading method and Related product - Google Patents
Document down loading method and Related product Download PDFInfo
- Publication number
- CN109040213A CN109040213A CN201810824280.6A CN201810824280A CN109040213A CN 109040213 A CN109040213 A CN 109040213A CN 201810824280 A CN201810824280 A CN 201810824280A CN 109040213 A CN109040213 A CN 109040213A
- Authority
- CN
- China
- Prior art keywords
- downloaded
- file
- equipment
- segment
- memory size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
- H04L67/108—Resource delivery mechanisms characterised by resources being split in blocks or fragments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
- H04W8/245—Transfer of terminal data from a network towards a terminal
Abstract
The embodiment of the present application discloses a kind of document down loading method and Related product, and wherein method includes: to obtain the document memory size and wireless network rate of file to be downloaded;The download parameters for obtaining each equipment in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access obtain multiple download parameters;Based on the document memory size, the wireless network rate and the multiple download parameters, the file to be downloaded is divided, determines the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment;The file to be downloaded segment for obtaining each device downloads in the electronic equipment and the multiple target adjacent equipment obtains multiple file to be downloaded segments;Data Integration is carried out to the multiple file to be downloaded segment and obtains the file to be downloaded.Using the application, download efficiency can be improved.
Description
Technical field
This application involves field of communication technology, a kind of document down loading method and Related product have been related generally to.
Background technique
With the development of the communication technology and electronic device technology, collect on electronic equipment (such as: mobile phone, tablet computer etc.)
At function it is more and more, directly by electronic equipment download file become a universal thing, how to improve file download
Rate be those skilled in the art's technical problem to be solved.
Summary of the invention
The embodiment of the present application provides a kind of document down loading method and Related product, can by adjacent equipment in NAN or
Wireless network in person's electronic equipment is downloaded, and improves speed of download.
In a first aspect, the embodiment of the present application provides a kind of document down loading method, comprising:
Obtain the document memory size and wireless network rate of file to be downloaded;
It obtains in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access under each equipment
Parameter is carried, multiple download parameters are obtained;
Based on the document memory size, the wireless network rate and the multiple download parameters, to described to be downloaded
File is divided, and determines the corresponding file to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
Segment;
The file to be downloaded segment of each device downloads in the electronic equipment and the multiple target adjacent equipment is obtained,
Obtain multiple file to be downloaded segments;
Data Integration is carried out to the multiple file to be downloaded segment, obtains the file to be downloaded.
Second aspect, the embodiment of the present application provide a kind of file downloading device, comprising:
Acquiring unit, for obtaining the document memory size and wireless network rate of file to be downloaded;Obtain electronic equipment
The download parameters of each equipment, obtain multiple downloadings in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of access
Parameter;
Division unit, for being based on the document memory size, the wireless network rate and the multiple download parameters,
The file to be downloaded is divided, determines that each equipment is corresponding in the electronic equipment and the multiple target adjacent equipment
File to be downloaded segment;
The acquiring unit is also used to obtain in the electronic equipment and the multiple target adjacent equipment under each equipment
The file to be downloaded segment of load obtains multiple file to be downloaded segments;
Integral unit obtains the file to be downloaded for carrying out Data Integration to the multiple file to be downloaded segment.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, described program includes the instruction for the step some or all of as described in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable
Storage medium stores computer program, wherein the computer program makes computer execute such as the embodiment of the present application first party
Step some or all of described in face.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product
Non-transient computer readable storage medium including storing computer program, the computer program are operable to make to calculate
Machine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be one
A software installation packet.
Implement the embodiment of the present application, will have the following beneficial effects:
After above-mentioned document down loading method and Related product, obtain file to be downloaded document memory size and
Wireless network rate, then obtain each in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN that electronic equipment accesses
The download parameters of equipment obtain multiple download parameters, based on the document memory size, the wireless network rate and described more
A download parameters divide the file to be downloaded, determine in the electronic equipment and the multiple target adjacent equipment
The corresponding file to be downloaded segment of each equipment, obtains each equipment in the electronic equipment and the multiple target adjacent equipment
The file to be downloaded segment of downloading obtains multiple file to be downloaded segments, and it is whole to carry out data to the multiple file to be downloaded segment
Conjunction obtains the file to be downloaded.In this way, downloading corresponding segment to be downloaded and the electricity by the wireless network in electronic equipment
Multiple target adjacent equipments in the NAN that sub- equipment is connected into download corresponding segment to be downloaded respectively, and are sent to this by NAN
Then multiple segments to be downloaded are carried out Data Integration, then the electronic equipment can obtain complete text to be downloaded by electronic equipment
Part, to improve speed of download.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Wherein:
Figure 1A is a kind of schematic diagram of a scenario of NAN provided by the embodiments of the present application;
Figure 1B is a kind of schematic diagram of a scenario for starting network function provided by the embodiments of the present application;
Fig. 1 C is a kind of flow diagram of document down loading method provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of file downloading device provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
The neighbouring perception of neighbouring sensing network (Neighborhood Aware Networking, NAN), also known as Wireless Fidelity
Network (Wireless Fidelity Alliance, Wi-Fi Alliance) is retouched using NAN in the embodiment of the present application
It states.
The NAN function is mainly used for realizing real-time high-efficiency discovery mechanism, to extend Wi-Fi function, improves here and now
Application experience.It establishes and continues discovering device and service before connection within the scope of Wi-Fi, equipment is without being connected to mobile broadband
Net or Wi-Fi infrastructure network, can component N AN a kind of quick sensing networking mode.This new skill can not only be used
The social application of art creation, such as help it is found that meeting good friend, information or service near its requirement, and can be without even
Small segment information is exchanged in the case where connecing, such as carries location information in discovery frame discover beacon, passes through discovery frame
Interaction carries out information interchange etc..In addition, also being improved environment sensing function.Because terminal is not necessarily to rely on net by NAN
Experience around user is informed user by network connection, as long as the same terminal for supporting NAN function of Wi-Fi Aware discovery
Wi-Fi Direct or infrastructure connection are established, and then a variety of experience are provided.NAN function can help user to use as a result,
The information that they receive completes more multitask, from discovery information to final activity, makes to be supplemented based on neighbouring experience.
Electronic equipment involved by the embodiment of the present application may include the various handheld devices with wireless communication function,
Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem
User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.For convenience of description, apparatus mentioned above
It is referred to as electronic equipment, adjacent equipment also belongs to one kind of electronic equipment, the NAN that the application will access together with the electronic equipment
Equipment be known as adjacent equipment.
Figure 1A is please referred to, Figure 1A is a kind of network architecture diagram of NAN provided by the embodiments of the present application, wherein the network rack
Composition includes electronic equipment and the first adjacent equipment, the second adjacent equipment, third adjacent equipment.
And the above-mentioned electronic equipment and multiple adjacent equipments support NAN function, open NAN before running the application
Function.NAN function can be the similar movements such as similar button opened Wi-Fi switch or open corresponding control NAN function into
Row triggering, as shown in Figure 1B, neighbouring sensing network and cable network are open state, and wireless network is in off state;It can also
The automatic opening when operating parameter is met certain condition, in which: operating parameter can be the current location of electronic equipment, such as:
Parking lot, market, highway etc., operating parameter are also possible to the foreground application of electronic equipment, such as: include positioning service
Using, be related to adjacent network application etc., it is not limited here.
In one embodiment, the method also includes: obtain adjacent equipment send access request;It neighbouring is set if described
It is standby to be proved to be successful, the NAN, which is established, with the adjacent equipment connect.
In the embodiment of the present application, without limitation for verification method, between available adjacent equipment and electronic equipment
Incidence relation, the incidence relation be greater than a threshold value when, determine that the adjacent equipment is proved to be successful;Also it can determine whether that this neighbouring sets
Standby identification information whether blacklist, if so, determine the adjacent equipment authentication failed;Adjacent equipment can be also obtained to set with electronics
The distance between standby and network state, if distance is stablized less than a pre-determined distance or network state, it is determined that adjacent equipment verifying
Success etc..It is appreciated that verifying to the adjacent equipment of NAN to be accessed, the safety of NAN can be improved.
It describes in detail below to the embodiment of the present application.
The embodiment of the present application provides a kind of document down loading method and Related product, can by adjacent equipment in NAN or
Wireless network in person's electronic equipment is downloaded, and improves speed of download.
Fig. 1 C is please referred to, the embodiment of the present application provides a kind of flow diagram of document down loading method.Specifically, such as Fig. 1 C
It is shown, a kind of document down loading method, applied to above-mentioned electronic equipment, comprising:
S101: the document memory size and wireless network rate of file to be downloaded are obtained.
In the embodiment of the present application, file to be downloaded can be image, video, audio, installation kit etc., not limit herein
Fixed, file to be downloaded can be electronic equipment file to be downloaded, is also possible to electronic equipment and has received other electronic equipments
File in the downloading request of transmission.
Document memory size is the byte number that its actual content has, using Byte as unit of measurement, when file content is not sent out
When changing, document memory size does not change, and in this application, document memory size is the downloading file of file to be downloaded
Memory size.
Wireless network rate can be in the hot spot of electronic equipment access as the maximum access of downloading file to be downloaded distribution
Rate, in which: the hot spot can be router, be also possible to other electronic equipments;Wireless network can include but is not limited to
Wi-Fi。
In one embodiment, the method also includes: if the document memory size be less than preset threshold, according to described
Downloading duration is estimated in wireless network rate and document memory size determination;If described when estimating downloading duration and being greater than default
It is long, execute step S102;If the document memory size is greater than or equal to the preset threshold, the step S102 is executed.
Wherein, preset threshold and preset duration are not construed as limiting, it is assumed that preset threshold 10M, preset duration 10min,
If the document memory size of file to be downloaded is 8M, wireless network rate is 356kb/s, then document memory size is less than default threshold
Value determines that estimating downloading duration is approximately equal to 8*1024/356 ≈ 23, then estimates according to wireless network rate and document memory size
Downloading duration is greater than preset duration, thus obtain the download parameters of each target adjacent equipment, i.e., it is auxiliary by target adjacent equipment
Downloading file to be downloaded is helped, downloading rate can be improved.
It is appreciated that obtaining the text of the file to be downloaded when electronic equipment receives the downloading request of file to be downloaded
Part memory size, if this document memory size is greater than or equal to preset threshold, the NAN for obtaining electronic equipment access is corresponding
Downloading speed can be improved that is, by target adjacent equipment auxiliary downloading file to be downloaded in the download parameters of each target adjacent equipment
Rate.If this document memory size is less than above-mentioned preset threshold, obtaining the electronic equipment is the wireless of file to be downloaded distribution
Network rate is calculated according to the wireless network rate and document memory size and estimates downloading duration, if this estimates downloading
It is long to be greater than preset duration, then obtain the download parameters of the corresponding each target adjacent equipment of NAN of electronic equipment access, i.e., it is logical
Target adjacent equipment auxiliary downloading file to be downloaded is crossed, downloading rate can be improved.Otherwise, the wireless of electronic equipment itself can be used
Network handles downloading file is downloaded.
S102: each in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access set is obtained
Standby download parameters obtain multiple download parameters.
In the embodiment of the present application, NAN includes electronic equipment and multiple adjacent equipments, and target adjacent equipment can be above-mentioned
Any appliance in multiple adjacent equipments is also possible to allow to help the electronic equipment downloading described to be downloaded in adjacent equipment
The equipment of file can also be the equipment that the file to be downloaded has been cached in adjacent equipment, it is not limited here.
In one embodiment, the method also includes: broadcast the downloading to the corresponding multiple adjacent equipments of the NAN
Request;It receives the adjacent equipment and responds the downloading response that the downloading request is sent, the neighbouring of the downloading response will be responded
Equipment is as adjacent equipment to be downloaded;Obtain the download parameters of the adjacent equipment to be downloaded;If the adjacent equipment to be downloaded
Download parameters meet preset condition, using the adjacent equipment to be downloaded as the target adjacent equipment.
Wherein: downloading response is for informing that the electronic equipment adjacent equipment allows that it is helped to download the text to be downloaded
Part sends the adjacent equipment of downloading response as overlooking equipment to be downloaded to the electronic equipment in NAN in this application.
In the embodiment of the present application, download parameters may include the distance between electronic equipment between electronic equipment
Multiple dimensional informations such as incidence relation, the network rate of the target adjacent equipment, free memory size, it is not limited here.
The network rate that preset condition correspondingly can be adjacent equipment to be downloaded is greater than a threshold value, is also possible to
The free memory size of adjacent equipment to be downloaded is greater than a threshold value, can also be between adjacent equipment to be downloaded and electronic equipment
Distance be greater than threshold value etc. less than a threshold value or incidence relation, it is not limited here.
It is appreciated that multiple adjacent equipments broadcast downloading request of the electronic equipment into the NAN of access, then will respond under this
Request is carried, sends the adjacent equipment for downloading response as adjacent equipment to be downloaded, in this way, in downloading process not for electronic equipment
No adjacent equipment for sending downloading response can be bothered.Then, then the download parameters of adjacent equipment to be downloaded are obtained, judgement should
Whether download parameters meet preset condition, if so, determining that the adjacent equipment to be downloaded is that target adjacent equipment is based on from this
Download parameters choose target adjacent equipment, improve the success rate and efficiency of target adjacent equipment downloading file to be downloaded segment.
In one embodiment, the method also includes: according to the multiple dimensional information and the multiple dimensional information
In the corresponding preset weights of each dimensional information be weighted to obtain the corresponding evaluation of estimate of the adjacent equipment to be downloaded;If
Institute's evaluation values are greater than Evaluation threshold, determine that the download parameters of the adjacent equipment to be downloaded meet the preset condition.
Wherein: preset weights being set for every dimension in advance, in this way, corresponding with its dimension according to its corresponding preset weights
Dimensional information be weighted to obtain the corresponding evaluation of estimate of the adjacent equipment to be downloaded.An evaluation threshold is preset again
Value determines that the download parameters of the adjacent equipment to be downloaded meet preset condition then when the evaluation of estimate is greater than the Evaluation threshold, no
It is then unsatisfactory for preset condition, to evaluate in all its bearings the adjacent equipment to be downloaded, raising determines that target is neighbouring and sets
Standby accuracy, convenient for improving the success rate and efficiency of target adjacent equipment downloading file to be downloaded segment.
As an example it is assumed that multiple dimensions dimensional information corresponding with its are as follows: the adjacent equipment to be downloaded and electronic equipment
The distance between be 10m, the relating value between the adjacent equipment to be downloaded and electronic equipment is 0.7, the adjacent equipment to be downloaded
Network rate be 2M/s, free memory size is 20G, if the distance between the adjacent equipment to be downloaded and electronic equipment, should
The network rate of relating value, the adjacent equipment to be downloaded between adjacent equipment to be downloaded and electronic equipment, free memory size
Corresponding preset weights are 0.2,0.3,0.3,0.2, then evaluation of estimate is equal to 10*0.2+0.7*0.3+2*0.3+20*0.2=
6.81, if Evaluation threshold is 5, it is determined that the adjacent equipment to be downloaded is target adjacent equipment.
In one embodiment, the method also includes: it is described under to the corresponding multiple adjacent equipments broadcast of the NAN
The transmission request of published article part;It receives the adjacent equipment and responds the transmission response that the transmission request is sent, the biography will be responded
The adjacent equipment of defeated response is as the target adjacent equipment.
Wherein: transmission request is used to indicate whether adjacent equipment inquiry has cached the file to be downloaded, and transmission response is used for
It informs in the electronic equipment adjacent equipment and has cached the file to be downloaded, further, transmission response is also used to inform
The electronic equipment adjacent equipment allows to transmit the file to be downloaded to it.
It is appreciated that multiple adjacent equipments broadcast of the electronic equipment into the NAN of access is directed to the biography of the file to be downloaded
Defeated request, then will respond transmission request, and send the adjacent equipment of transmission response as target adjacent equipment to electronic equipment,
In this way, in downloading process by target adjacent equipment in include the file to be downloaded, without re-downloading this
File, to improve efficiency of transmission.
Further, the method also includes: receive the adjacent equipment respond it is described transmission request send transmission answer
It answers, the adjacent equipment of the transmission response will be responded as adjacent equipment to be downloaded;It obtains under the adjacent equipment to be downloaded
Carry parameter;If the download parameters of the adjacent equipment to be downloaded meet preset condition, using the adjacent equipment to be downloaded as institute
State target adjacent equipment.
It is appreciated that multiple adjacent equipments broadcast of the electronic equipment into the NAN of access is directed to the biography of the file to be downloaded
Defeated request, then will respond transmission request, and send the adjacent equipment of transmission response as target adjacent equipment to electronic equipment,
In this way, in downloading process by target adjacent equipment in include the file to be downloaded, without re-downloading this
File, to improve efficiency of transmission.Then, then the download parameters of adjacent equipment to be downloaded are obtained, whether judges the download parameters
Meet preset condition, if so, determining that the adjacent equipment to be downloaded is target adjacent equipment, from this, is chosen based on download parameters
Target adjacent equipment further improves the success rate and efficiency of target adjacent equipment transmission file to be downloaded segment.
S103: be based on the document memory size, the wireless network rate and the multiple download parameters, to it is described to
Downloading file is divided, and determines that each equipment is corresponding to be downloaded in the electronic equipment and the multiple target adjacent equipment
File fragment.
In the embodiment of the present application, according to document memory size, wireless network rate and multiple download parameters to be downloaded
File is divided to obtain multiple file to be downloaded segments, and multiple file to be downloaded segments are then respectively allocated to electronic equipment
With each target adjacent equipment, corresponding file to be downloaded segment is downloaded by electronic equipment and each target adjacent equipment, in this way,
Multiple equipment, which synchronizes, to be downloaded, and download efficiency can be improved.
In one embodiment, it is described based on the document memory size, the wireless network rate and it is the multiple under
Parameter is carried, the file to be downloaded is divided, is determined each in the electronic equipment and the multiple target adjacent equipment
The corresponding file to be downloaded segment of equipment includes: to obtain the corresponding evaluation of estimate of each download parameters in the multiple download parameters to obtain
To multiple evaluations of estimate;Based on the document memory size, the wireless network rate and the multiple evaluation of estimate, to described under
Published article part is divided, and determines the corresponding text to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
Part segment.
Wherein, the method for obtaining evaluation of estimate, the method that the evaluation of estimate of adjacent equipment to be downloaded is obtained before can refer to,
Details are not described herein.
It is appreciated that obtain the corresponding evaluation of estimate of each download parameters, by document memory size, wireless network rate and each
The corresponding evaluation of estimate of a download parameters, divides file to be downloaded to obtain multiple electronic equipments and each target adjacent equipment
In the corresponding file to be downloaded segment of each equipment, in this way, the corresponding evaluation of download parameters based on each target adjacent equipment
Value divides file to be downloaded, the accuracy for distributing to corresponding target adjacent equipment can be improved, and multiple equipment is synchronized and is downloaded,
Download efficiency can be improved.
In one embodiment, described based on the document memory size, the wireless network rate and the multiple to comment
Value, divides the file to be downloaded, determines each in the electronic equipment and the multiple target adjacent equipment set
Standby corresponding file to be downloaded segment includes: to determine target according to the quantity and the multiple evaluation of estimate of the target adjacent equipment
Downloading duration;The corresponding text to be downloaded of the electronic equipment is determined according to the target downloading duration and the wireless network rate
First segment memory size of part segment;According to the difference between the document memory size and the first segment memory size
Determine free memory size;The free memory size is divided according to the multiple evaluation of estimate to obtain multiple second segments
Memory size, the corresponding target adjacent equipment of every one second segment memory size;According to the first segment memory size and
The multiple second segment memory size, divides the file to be downloaded, determines the electronic equipment and the multiple
The corresponding file to be downloaded segment of each equipment in target adjacent equipment.
Wherein: target downloading duration is the downloading of each target adjacent equipment, and transmits when estimating of file to be downloaded segment
It is long;It, then can be according to the quantity of target adjacent equipment since evaluation of estimate is obtained according to the download parameters of corresponding target adjacent equipment
A target downloading duration is determined with multiple evaluations of estimate, when electronic equipment can be improved obtaining the synchronization of multiple file to be downloaded segments
Between, to improve the download efficiency of file to be downloaded.
That is, determining target downloading duration according to the quantity of target adjacent equipment and multiple evaluations of estimate, it is determined that
Electronic equipment obtains the time of each file to be downloaded segment, then determines electricity according to target downloading duration and wireless network rate
First segment memory size of the corresponding file to be downloaded segment of sub- equipment is big according to document memory size and the first segment memory
Difference between small determines the corresponding free memory size of multiple target adjacent equipments, and each target obtained before basis is adjacent
The evaluation of estimate and free memory size of nearly equipment are that each target adjacent equipment distributes corresponding second segment memory size, such as
This, it is determined that the corresponding first segment memory size of electronic equipment and the corresponding second segment memory of each target adjacent equipment are big
It is small, then, file to be downloaded is divided further according to the first segment memory size and each second segment memory size, thus
Determine electronic equipment and the corresponding file to be downloaded segment of each target adjacent equipment, that is to say, that first determine file to be downloaded
The file size of segment, then file to be downloaded is divided to obtain multiple file to be downloaded segments, convenient for improving electronic equipment
The synchronization time of multiple file to be downloaded segments is obtained, to improve the download efficiency of file to be downloaded.
S104: the file to be downloaded of each device downloads in the electronic equipment and the multiple target adjacent equipment is obtained
Segment obtains multiple file to be downloaded segments.
It in the embodiment of the present application, is in advance the text to be downloaded of itself and the distribution of each target adjacent equipment according to electronic equipment
Part segment is downloaded, and download efficiency can be improved.
S105: Data Integration is carried out to the multiple file to be downloaded segment and obtains the file to be downloaded.
In the embodiment of the present application, file to be downloaded is divided, each file to be downloaded segment can be compiled
Number, thus in Data Integration, Data Integration can be carried out according to the sequence of its number, for how to file fragment to be downloaded into
Row number is without limitation.
In one embodiment, it is described according to the multiple file to be downloaded segment carry out Data Integration obtain it is described under
Part of publishing papers includes: according to the first segment memory size and the multiple second segment memory size, to the text to be downloaded
Part is divided, and determines the corresponding file to be downloaded piece of each equipment in the electronic equipment and the multiple target adjacent equipment
The number of section obtains multiple numbers;It is according to the sequence of the multiple number that the multiple file to be downloaded segment progress data are whole
Conjunction obtains the file to be downloaded.
It is appreciated that after determining the first segment memory size and multiple second segment memory sizes, it can be more than
Memory size file to be downloaded is divided, it may be determined that each equipment is corresponding in electronic equipment and multiple target adjacent equipments
File to be downloaded segment, be numbered further according to the relationship between file to be downloaded segment and file to be downloaded, thus in electricity
When sub- equipment obtains multiple bands numbered file to be downloaded segment, can directly according to the number order of file to be downloaded segment into
Row Data Integration obtains file to be downloaded, in this way, improving the efficiency of Data Integration.In addition, missing can be searched according to number
Segment to be downloaded improves troubleshooting capability.
In one embodiment, the method also includes: the target downloading duration reach when, obtain it is the multiple to
Download the corresponding multiple target designations of file fragment;If one ginseng of difference between the multiple number and the multiple target designation
Number is examined, determines that the corresponding target adjacent equipment of the Ref. No. is with reference to adjacent equipment;If described with reference to adjacent equipment event
Barrier is obtained described with reference to the corresponding file to be downloaded segment of adjacent equipment using optional equipment.
Wherein, Ref. No. is not receive the corresponding number of file to be downloaded segment when target downloading duration reaches,
It is with reference to adjacent equipment by the corresponding target adjacent equipment of Ref. No. in the application.For detecting the event with reference to adjacent equipment
The method of barrier is not construed as limiting, and can obtain the fault message sent with reference to adjacent equipment;The downloading with reference to adjacent equipment can also be obtained
Parameter, if download parameters are unsatisfactory for aforementioned preset preset condition, it is determined that this refers to adjacent equipment failure;It can also obtain under
The downloading process of file fragment is carried, if the corresponding downloading duration of estimating of the downloading process is greater than a threshold value, it is determined that the reference
Adjacent equipment failure etc..
Optional equipment can with electronic equipment itself, be also possible in multiple target adjacent equipments in addition to reference adjacent equipment it
Chosen in outer equipment a distance recently, network speed is most fast or the highest alternately equipment of evaluation of estimate, also do not limit herein
It is fixed.
It is appreciated that when the target downloading duration above-mentioned for downloading file to be downloaded segment distribution reaches, according to obtaining
The corresponding target designation of multiple file to be downloaded segments taken and pre-assigned number, which determine, refers to adjacent equipment, and in the ginseng
When examining adjacent equipment failure, the corresponding file to be downloaded segment of the reference adjacent equipment is obtained using optional equipment, in this way, can
Troubleshooting capability is improved, downloading rate is improved.
In document down loading method as shown in Figure 1 C, the document memory size and wireless network speed of file to be downloaded are obtained
Rate, then obtain the downloading of each equipment in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN that electronic equipment accesses
Parameter obtains multiple download parameters, is based on the document memory size, the wireless network rate and the multiple download parameters,
The file to be downloaded is divided, determines that each equipment is corresponding in the electronic equipment and the multiple target adjacent equipment
File to be downloaded segment, obtain the to be downloaded of each device downloads in the electronic equipment and the multiple target adjacent equipment
File fragment obtains multiple file to be downloaded segments, to the multiple file to be downloaded segment carry out Data Integration obtain it is described to
Download file.In this way, passing through what the wireless network corresponding segment to be downloaded of downloading and the electronic equipment in electronic equipment were connected into
Multiple target adjacent equipments in NAN download corresponding segment to be downloaded respectively, and are sent to the electronic equipment by NAN, so
Afterwards, multiple segments to be downloaded are subjected to Data Integration, then the electronic equipment can obtain complete file to be downloaded, to improve
Speed of download.
Consistent with embodiment shown in Fig. 1 C, referring to figure 2., Fig. 2 is a kind of file download provided by the embodiments of the present application
The structural schematic diagram of device, as shown in Fig. 2, above-mentioned file downloading device 200 includes:
Acquiring unit 201 is used to obtain the document memory size and wireless network rate of file to be downloaded;Electronics is obtained to set
The download parameters of each equipment obtain multiple downloadings in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of standby access
Parameter;
Division unit 202 is used for based on the document memory size, the wireless network rate and the multiple downloading ginseng
Number, divides the file to be downloaded, determines each equipment in the electronic equipment and the multiple target adjacent equipment
Corresponding file to be downloaded segment;
The acquiring unit 201 is also used to obtain each equipment in the electronic equipment and the multiple target adjacent equipment
The file to be downloaded segment of downloading obtains multiple file to be downloaded segments;
Integral unit 203 is used to carry out Data Integration to the multiple file to be downloaded segment to obtain the text to be downloaded
Part.
It is appreciated that acquiring unit 201 obtains the document memory size and wireless network rate of file to be downloaded, then obtain
The download parameters of each equipment obtain more in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access
A download parameters, division unit 202 are based on the document memory size, the wireless network rate and the multiple downloading ginseng
Number, divides the file to be downloaded, determines each equipment in the electronic equipment and the multiple target adjacent equipment
Corresponding file to be downloaded segment, acquiring unit 201 obtain every in the electronic equipment and the multiple target adjacent equipment again
The file to be downloaded segment of one device downloads obtains multiple file to be downloaded segments, and integral unit 203 is to the multiple to be downloaded
File fragment carries out Data Integration and obtains the file to be downloaded.It is corresponded in this way, being downloaded by the wireless network in electronic equipment
Segment to be downloaded and the NAN that is connected into of the electronic equipment in multiple target adjacent equipments download corresponding to be downloaded respectively
Section, and the electronic equipment is sent to by NAN, then, multiple segments to be downloaded are subjected to Data Integration, then the electronic equipment can
Complete file to be downloaded is obtained, to improve speed of download.
In a possible example, the acquiring unit 201 is also used to obtain in the multiple download parameters per once
It carries the corresponding evaluation of estimate of parameter and obtains multiple evaluations of estimate;
The document memory size, the wireless network rate and the multiple download parameters are based on described, to described
File to be downloaded is divided, and determines that each equipment is corresponding under in the electronic equipment and the multiple target adjacent equipment
Carry file fragment in terms of, the division unit 202 be specifically used for based on the document memory size, the wireless network rate and
The multiple evaluation of estimate divides the file to be downloaded, determines that the electronic equipment and the multiple target are neighbouring and sets
The corresponding file to be downloaded segment of each equipment in standby.
In a possible example, described based on the document memory size, the wireless network rate and described
Multiple evaluations of estimate divide the file to be downloaded, determine in the electronic equipment and the multiple target adjacent equipment
In terms of the corresponding file to be downloaded segment of each equipment, the division unit 202 is specifically used for according to the target adjacent equipment
Quantity and the multiple evaluation of estimate determine target downloading duration;According to the target downloading duration and the wireless network rate
Determine the first segment memory size of the corresponding file to be downloaded segment of the electronic equipment;According to the document memory size and
Difference between the first segment memory size determines free memory size;According to the multiple evaluation of estimate in the residue
It deposits size to be divided to obtain multiple second segment memory sizes, the corresponding target of every one second segment memory size is neighbouring to be set
It is standby;According to the first segment memory size and the multiple second segment memory size, the file to be downloaded is drawn
Point, determine the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment.
In a possible example, the division unit 202 is also used to according to the first segment memory size and institute
Multiple second segment memory sizes are stated, the file to be downloaded is divided, determine the electronic equipment and the multiple mesh
The number of the corresponding file to be downloaded segment of each equipment obtains multiple numbers in mark adjacent equipment;
It is described that the file to be downloaded aspect is obtained according to the multiple file to be downloaded segment progress Data Integration, it is described
Integral unit 203 is also used to that the multiple file to be downloaded segment is carried out Data Integration according to the sequence of the multiple number
Obtain the file to be downloaded.
In a possible example, the acquiring unit 201 is also used to obtain the downloading ginseng of adjacent equipment to be downloaded
Number;If the download parameters of the adjacent equipment to be downloaded meet preset condition, using the adjacent equipment to be downloaded as the mesh
Mark adjacent equipment;
Described device 200 further include:
Communication unit 204, for broadcasting the downloading request to the corresponding multiple adjacent equipments of the NAN;Described in reception
Adjacent equipment respond it is described downloading request send downloading response, will respond it is described downloading response adjacent equipment as described in
Download adjacent equipment.
Consistent with embodiment shown in Fig. 1 C, referring to figure 3., Fig. 3 is a kind of electronic equipment provided by the embodiments of the present application
Structural schematic diagram.As shown in figure 3, the electronic equipment 300 includes processor 310, memory 320, communication interface 330 and one
A or multiple programs 340, wherein said one or multiple programs 340 are stored in above-mentioned memory 320, and are configured
It is executed by above-mentioned processor 310, above procedure 340 includes the instruction for executing following steps:
Obtain the document memory size and wireless network rate of file to be downloaded;
It obtains in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access under each equipment
It carries parameter and obtains multiple download parameters;
Based on the document memory size, the wireless network rate and the multiple download parameters, to described to be downloaded
File is divided, and determines the corresponding file to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
Segment;
Obtain the file to be downloaded segment of each device downloads in the electronic equipment and the multiple target adjacent equipment
Obtain multiple file to be downloaded segments;
Data Integration is carried out to the multiple file to be downloaded segment and obtains the file to be downloaded.
It is appreciated that electronic equipment 300 obtains the document memory size and wireless network rate of file to be downloaded, then obtain
The download parameters of each equipment obtain more in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access
A download parameters are based on the document memory size, the wireless network rate and the multiple download parameters, to described under
Published article part is divided, and determines the corresponding text to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
Part segment, the file to be downloaded segment for obtaining each device downloads in the electronic equipment and the multiple target adjacent equipment obtain
To multiple file to be downloaded segments, Data Integration is carried out to the multiple file to be downloaded segment and obtains the file to be downloaded.
In this way, being downloaded by the wireless network in electronic equipment more in the NAN that corresponding segment to be downloaded and the electronic equipment are connected into
A target adjacent equipment downloads corresponding segment to be downloaded respectively, and is sent to the electronic equipment by NAN, then, will be multiple
Segment to be downloaded carries out Data Integration, then the electronic equipment can obtain complete file to be downloaded, to improve speed of download.
In a possible example, described based on the document memory size, the wireless network rate and described
Multiple download parameters divide the file to be downloaded, determine the electronic equipment and the multiple target adjacent equipment
In in terms of the corresponding file to be downloaded segment of each equipment, the instruction in described program 340 is specifically used for executing following operation:
It obtains the corresponding evaluation of estimate of each download parameters in the multiple download parameters and obtains multiple evaluations of estimate;
Based on the document memory size, the wireless network rate and the multiple evaluation of estimate, to the text to be downloaded
Part is divided, and determines the corresponding file to be downloaded piece of each equipment in the electronic equipment and the multiple target adjacent equipment
Section.
In a possible example, described based on the document memory size, the wireless network rate and described
Multiple evaluations of estimate divide the file to be downloaded, determine in the electronic equipment and the multiple target adjacent equipment
In terms of the corresponding file to be downloaded segment of each equipment, the instruction in described program 340 is specifically used for executing following operation:
Target downloading duration is determined according to the quantity of the target adjacent equipment and the multiple evaluation of estimate;
The corresponding text to be downloaded of the electronic equipment is determined according to the target downloading duration and the wireless network rate
First segment memory size of part segment;
Free memory size is determined according to the difference between the document memory size and the first segment memory size;
The free memory size is divided according to the multiple evaluation of estimate to obtain multiple second segment memory sizes,
The corresponding target adjacent equipment of every one second segment memory size;
According to the first segment memory size and the multiple second segment memory size, to the file to be downloaded into
Row divides, and determines the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment.
In a possible example, Data Integration is carried out according to the multiple file to be downloaded segment described, is obtained
In terms of the file to be downloaded, the instruction in described program 340 is specifically used for executing following operation:
According to the first segment memory size and the multiple second segment memory size, to the file to be downloaded into
Row divides, and determines the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment
Number obtains multiple numbers;
According to the sequence of the multiple number by the multiple file to be downloaded segment progress Data Integration obtain it is described to
Download file.
In a possible example, the instruction in described program 340 is also used to execute following operation:
The downloading request is broadcasted to the corresponding multiple adjacent equipments of the NAN;
It receives the adjacent equipment and responds the downloading response that the downloading request is sent, the neighbour of the downloading response will be responded
Nearly equipment is as adjacent equipment to be downloaded;
Obtain the download parameters of the adjacent equipment to be downloaded;
If the download parameters of the adjacent equipment to be downloaded meet preset condition, using the adjacent equipment to be downloaded as institute
State target adjacent equipment.
The embodiment of the present application also provides a kind of computer storage medium, wherein the computer storage medium is stored for depositing
Computer program is stored up, which makes computer execute either record part of method or complete in such as embodiment of the method
Portion's step, computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and computer program product includes storing computer journey
The non-transient computer readable storage medium of sequence, computer program are operable to execute computer as remembered in embodiment of the method
Some or all of either load method step.The computer program product can be a software installation packet, and computer includes
Electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related movement and mode not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of unit, only a kind of logic
Function division, there may be another division manner in actual implementation, such as multiple units or components can combine or can collect
At another system is arrived, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling
It closes or direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit can be with
It is electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also be realized in the form of software program mode.
If integrated unit is realized and when sold or used as an independent product in the form of software program mode, can
To be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application is substantially in other words
The all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Come, which is stored in a memory, including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute each embodiment method of the application all or part of the steps.And it is preceding
The memory stated includes: USB flash disk, read-only memory (read-only memory, ROM), random access memory (random
Access memory, RAM), mobile hard disk, the various media that can store program code such as magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
It may include: flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, to sum up, the contents of this specification should not be construed as limiting the present application.
Claims (12)
1. a kind of document down loading method characterized by comprising
Obtain the document memory size and wireless network rate of file to be downloaded;
Obtain the downloading ginseng of each equipment in the corresponding multiple target adjacent equipments of neighbouring sensing network NAN of electronic equipment access
Number, obtains multiple download parameters;
Based on the document memory size, the wireless network rate and the multiple download parameters, to the file to be downloaded
It is divided, determines the corresponding file to be downloaded piece of each equipment in the electronic equipment and the multiple target adjacent equipment
Section;
The file to be downloaded segment for obtaining each device downloads in the electronic equipment and the multiple target adjacent equipment, obtains
Multiple file to be downloaded segments;
Data Integration is carried out to the multiple file to be downloaded segment, obtains the file to be downloaded.
2. the method according to claim 1, wherein described be based on the document memory size, the wireless network
Network rate and the multiple download parameters, divide the file to be downloaded, determine the electronic equipment and the multiple
The corresponding file to be downloaded segment of each equipment in target adjacent equipment, comprising:
The corresponding evaluation of estimate of each download parameters in the multiple download parameters is obtained, multiple evaluations of estimate are obtained;
Based on the document memory size, the wireless network rate and the multiple evaluation of estimate, to the file to be downloaded into
Row divides, and determines the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment.
3. according to the method described in claim 2, it is characterized in that, described be based on the document memory size, the wireless network
Network rate and the multiple evaluation of estimate, divide the file to be downloaded, determine the electronic equipment and the multiple mesh
Mark the corresponding file to be downloaded segment of each equipment in adjacent equipment, comprising:
Target downloading duration is determined according to the quantity of the target adjacent equipment and the multiple evaluation of estimate;
The corresponding file to be downloaded piece of the electronic equipment is determined according to the target downloading duration and the wireless network rate
First segment memory size of section;
Free memory size is determined according to the difference between the document memory size and the first segment memory size;
The free memory size is divided according to the multiple evaluation of estimate, obtains multiple second segment memory sizes, often
One second segment memory size corresponds to a target adjacent equipment;
According to the first segment memory size and the multiple second segment memory size, the file to be downloaded is drawn
Point, determine the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment.
4. according to the method described in claim 3, it is characterized in that, described counted according to the multiple file to be downloaded segment
According to integration, the file to be downloaded is obtained, comprising:
According to the first segment memory size and the multiple second segment memory size, the file to be downloaded is drawn
Point, determine the volume of the corresponding file to be downloaded segment of each equipment in the electronic equipment and the multiple target adjacent equipment
Number, obtain multiple numbers;
The multiple file to be downloaded segment is subjected to Data Integration according to the sequence of the multiple number, is obtained described to be downloaded
File.
5. method according to claim 1-4, which is characterized in that the method also includes:
The downloading request is broadcasted to the corresponding multiple adjacent equipments of the NAN;
It receives the adjacent equipment and responds the downloading response that the downloading request is sent, the neighbouring of downloading response will be responded and set
It is standby to be used as adjacent equipment to be downloaded;
Obtain the download parameters of the adjacent equipment to be downloaded;
If the download parameters of the adjacent equipment to be downloaded meet preset condition, using the adjacent equipment to be downloaded as the mesh
Mark adjacent equipment.
6. a kind of file downloading device characterized by comprising
Acquiring unit, for obtaining the document memory size and wireless network rate of file to be downloaded;Obtain electronic equipment access
The corresponding multiple target adjacent equipments of neighbouring sensing network NAN in each equipment download parameters, obtain multiple download parameters;
Division unit, for being based on the document memory size, the wireless network rate and the multiple download parameters, to institute
File to be downloaded is stated to be divided, determine in the electronic equipment and the multiple target adjacent equipment each equipment it is corresponding to
Download file fragment;
The acquiring unit is also used to obtain each device downloads in the electronic equipment and the multiple target adjacent equipment
File to be downloaded segment obtains multiple file to be downloaded segments;
Integral unit obtains the file to be downloaded for carrying out Data Integration to the multiple file to be downloaded segment.
7. device according to claim 6, which is characterized in that the acquiring unit is also used to obtain the multiple downloading
The corresponding evaluation of estimate of each download parameters, obtains multiple evaluations of estimate in parameter;
The document memory size, the wireless network rate and the multiple download parameters are based on described, to described under
Published article part is divided, and determines the corresponding text to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
In terms of part segment, the division unit is specifically used for based on the document memory size, the wireless network rate and described more
A evaluation of estimate divides the file to be downloaded, determines every in the electronic equipment and the multiple target adjacent equipment
The corresponding file to be downloaded segment of one equipment.
8. device according to claim 7, which is characterized in that it is described based on the document memory size, it is described wireless
Network rate and the multiple evaluation of estimate, divide the file to be downloaded, determine the electronic equipment and the multiple
In target adjacent equipment in terms of the corresponding file to be downloaded segment of each equipment, the division unit is specifically used for according to the mesh
The quantity and the multiple evaluation of estimate for marking adjacent equipment determine target downloading duration;According to the target downloading duration and the nothing
Line network rate determines the first segment memory size of the corresponding file to be downloaded segment of the electronic equipment;According to the file
Difference between memory size and the first segment memory size determines free memory size;According to the multiple evaluation of estimate pair
The free memory size is divided, and multiple second segment memory sizes, every one second segment memory size corresponding one are obtained
A target adjacent equipment;According to the first segment memory size and the multiple second segment memory size, to described under
Published article part is divided, and determines the corresponding text to be downloaded of each equipment in the electronic equipment and the multiple target adjacent equipment
Part segment.
9. device according to claim 8, which is characterized in that the division unit is also used to according in first segment
Deposit size and the multiple second segment memory size, the file to be downloaded divided, determine the electronic equipment and
The number of the corresponding file to be downloaded segment of each equipment, obtains multiple numbers in the multiple target adjacent equipment;
It is described that Data Integration is carried out according to the multiple file to be downloaded segment, it is described whole in terms of obtaining the file to be downloaded
Unit is closed, is also used to that the multiple file to be downloaded segment is carried out Data Integration according to the sequence of the multiple number, obtains
The file to be downloaded.
10. according to the described in any item devices of claim 6-9, which is characterized in that the acquiring unit is also used to obtain under
Carry the download parameters of adjacent equipment;It, will be described to be downloaded if the download parameters of the adjacent equipment to be downloaded meet preset condition
Adjacent equipment is as the target adjacent equipment;
Described device further include:
Communication unit, for broadcasting the downloading request to the corresponding multiple adjacent equipments of the NAN;Receive the adjacent equipment
The downloading response that the downloading request is sent is responded, the adjacent equipment of the downloading response will be responded as described to be downloaded neighbouring
Equipment.
11. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface and one or more program,
Wherein, one or more of programs are stored in the memory, and are configured to be executed by the processor, the journey
Sequence includes the steps that requiring the instruction in any one of 1-5 method for perform claim.
12. a kind of computer readable storage medium, which is characterized in that it is used to store computer program, wherein the computer
Program makes computer execute the method according to claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810824280.6A CN109040213B (en) | 2018-07-23 | 2018-07-23 | File downloading method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810824280.6A CN109040213B (en) | 2018-07-23 | 2018-07-23 | File downloading method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109040213A true CN109040213A (en) | 2018-12-18 |
CN109040213B CN109040213B (en) | 2021-06-08 |
Family
ID=64645820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810824280.6A Active CN109040213B (en) | 2018-07-23 | 2018-07-23 | File downloading method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040213B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246185A (en) * | 2018-07-31 | 2019-01-18 | Oppo广东移动通信有限公司 | Document down loading method and Related product |
CN109660632A (en) * | 2019-01-21 | 2019-04-19 | 联动优势电子商务有限公司 | A kind of document down loading method and system |
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN111405003A (en) * | 2020-03-05 | 2020-07-10 | 维沃移动通信有限公司 | Resource loading method and electronic equipment |
CN111629065A (en) * | 2020-06-05 | 2020-09-04 | 宁波方太厨具有限公司 | Method and system for controlling OTA (over the air) upgrade of equipment in networking system |
CN112104990A (en) * | 2019-05-30 | 2020-12-18 | 北京小米移动软件有限公司 | Resource downloading method, device and storage medium |
WO2021057503A1 (en) * | 2019-09-26 | 2021-04-01 | 华为技术有限公司 | Method and apparatus for downloading data packet |
CN112769887A (en) * | 2019-11-06 | 2021-05-07 | 佛山市云米电器科技有限公司 | File downloading method, system, device and computer readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103457999A (en) * | 2013-08-06 | 2013-12-18 | 北京大学深圳研究生院 | P2P document transmission method based on NDN network architecture |
CN103686753A (en) * | 2012-09-10 | 2014-03-26 | 华为技术有限公司 | Method and device for resource sharing in device-to-device communication |
CN105898550A (en) * | 2016-04-29 | 2016-08-24 | 清华大学 | End-to-end peer video assistance transmission method |
US20170006594A1 (en) * | 2015-06-30 | 2017-01-05 | Beijing Zhigu Rui Tuo Tech Co., Ltd | Message transmitting method, message receiving method and apparatuses thereof |
CN107222554A (en) * | 2017-06-27 | 2017-09-29 | 山东中创软件商用中间件股份有限公司 | A kind of document transmission method and system |
CN107277134A (en) * | 2017-06-19 | 2017-10-20 | 网宿科技股份有限公司 | A kind of data transmission method and system based on peer-to-peer network |
CN108023864A (en) * | 2016-10-28 | 2018-05-11 | 中国移动通信有限公司研究院 | Streaming Media method for pushing and device |
EP3306997A4 (en) * | 2015-07-27 | 2018-06-27 | Huawei Technologies Co., Ltd. | Data packet transmission method and device |
CN108235363A (en) * | 2017-12-30 | 2018-06-29 | 广东欧珀移动通信有限公司 | terminal wireless data transmission method, device, terminal and storage medium |
-
2018
- 2018-07-23 CN CN201810824280.6A patent/CN109040213B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686753A (en) * | 2012-09-10 | 2014-03-26 | 华为技术有限公司 | Method and device for resource sharing in device-to-device communication |
CN103457999A (en) * | 2013-08-06 | 2013-12-18 | 北京大学深圳研究生院 | P2P document transmission method based on NDN network architecture |
US20170006594A1 (en) * | 2015-06-30 | 2017-01-05 | Beijing Zhigu Rui Tuo Tech Co., Ltd | Message transmitting method, message receiving method and apparatuses thereof |
EP3306997A4 (en) * | 2015-07-27 | 2018-06-27 | Huawei Technologies Co., Ltd. | Data packet transmission method and device |
CN105898550A (en) * | 2016-04-29 | 2016-08-24 | 清华大学 | End-to-end peer video assistance transmission method |
CN108023864A (en) * | 2016-10-28 | 2018-05-11 | 中国移动通信有限公司研究院 | Streaming Media method for pushing and device |
CN107277134A (en) * | 2017-06-19 | 2017-10-20 | 网宿科技股份有限公司 | A kind of data transmission method and system based on peer-to-peer network |
CN107222554A (en) * | 2017-06-27 | 2017-09-29 | 山东中创软件商用中间件股份有限公司 | A kind of document transmission method and system |
CN108235363A (en) * | 2017-12-30 | 2018-06-29 | 广东欧珀移动通信有限公司 | terminal wireless data transmission method, device, terminal and storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246185A (en) * | 2018-07-31 | 2019-01-18 | Oppo广东移动通信有限公司 | Document down loading method and Related product |
CN109246185B (en) * | 2018-07-31 | 2021-03-12 | Oppo广东移动通信有限公司 | File downloading method and related product |
CN109660632A (en) * | 2019-01-21 | 2019-04-19 | 联动优势电子商务有限公司 | A kind of document down loading method and system |
CN112104990A (en) * | 2019-05-30 | 2020-12-18 | 北京小米移动软件有限公司 | Resource downloading method, device and storage medium |
WO2021057503A1 (en) * | 2019-09-26 | 2021-04-01 | 华为技术有限公司 | Method and apparatus for downloading data packet |
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN112769887A (en) * | 2019-11-06 | 2021-05-07 | 佛山市云米电器科技有限公司 | File downloading method, system, device and computer readable storage medium |
CN112769887B (en) * | 2019-11-06 | 2023-05-09 | 佛山市云米电器科技有限公司 | File downloading method, system, equipment and computer readable storage medium |
CN111405003A (en) * | 2020-03-05 | 2020-07-10 | 维沃移动通信有限公司 | Resource loading method and electronic equipment |
CN111405003B (en) * | 2020-03-05 | 2023-05-02 | 维沃移动通信有限公司 | Resource loading method and electronic equipment |
CN111629065A (en) * | 2020-06-05 | 2020-09-04 | 宁波方太厨具有限公司 | Method and system for controlling OTA (over the air) upgrade of equipment in networking system |
Also Published As
Publication number | Publication date |
---|---|
CN109040213B (en) | 2021-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040213A (en) | Document down loading method and Related product | |
CN111937421B (en) | Method and device for subscribing service | |
CN105981445B (en) | Business manipulation between WLAN and cellular network | |
CN105530682B (en) | A kind of terminal access method and relevant device | |
CN109691179A (en) | A kind of conversation shift method and apparatus | |
CN105338511B (en) | Network topology hidden method and equipment | |
CN113891423A (en) | Method and device for transmitting response message | |
CN112152853A (en) | Equipment network distribution method and device, computer-readable storage medium and electronic device | |
CN109246185A (en) | Document down loading method and Related product | |
CN109561138A (en) | Document down loading method and Related product | |
CN109005044A (en) | Data transfer control method and relevant apparatus | |
CN104883290A (en) | Contact person online status notification method and apparatus | |
CN111263338A (en) | Network distribution method of Bluetooth Mesh network and related network distribution equipment and system | |
US11012373B2 (en) | Method, device and system for resource allocation | |
CN105828402A (en) | Blind redirection method, core network and base station | |
CN105430636A (en) | SIM card management method and system | |
CN112566078A (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
CN107872533B (en) | Information-pushing method, device, server and storage medium | |
CN104509133B (en) | Device-to-device closes in service method, base station and the user equipment for transmitting signal | |
CN107426090B (en) | Information processing method, device, medium, electronic device, server and system | |
CN104754601B (en) | A kind of concealed nodes detection method, network node and server | |
CN109089246A (en) | data transmission method and related product | |
CN104541552B (en) | Management according to telephone expenses service condition to being roamed in communication network | |
US20220345943A1 (en) | Collaborative neighbour relation information | |
CN106102023A (en) | A kind of base station obtains method, base station and the user terminal of UE cluster multi call business |
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 |