CN109168158A - Resource downloading method and relevant apparatus - Google Patents

Resource downloading method and relevant apparatus Download PDF

Info

Publication number
CN109168158A
CN109168158A CN201810898579.6A CN201810898579A CN109168158A CN 109168158 A CN109168158 A CN 109168158A CN 201810898579 A CN201810898579 A CN 201810898579A CN 109168158 A CN109168158 A CN 109168158A
Authority
CN
China
Prior art keywords
resource
information resources
equipment
adjacent equipment
information
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
Application number
CN201810898579.6A
Other languages
Chinese (zh)
Other versions
CN109168158B (en
Inventor
胡亚东
柯世兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810898579.6A priority Critical patent/CN109168158B/en
Publication of CN109168158A publication Critical patent/CN109168158A/en
Application granted granted Critical
Publication of CN109168158B publication Critical patent/CN109168158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal

Abstract

This application discloses a kind of resource downloading method and relevant apparatus, applied to electronic equipment, the electronic equipment has neighbouring sensing network NAN to connect with the foundation of multiple adjacent equipments, it include: in the downloading request for detecting first resource, the relevant information of Secondary resource is obtained from the multiple adjacent equipment, the Secondary resource is the data resource stored in the multiple adjacent equipment;The relevant information of the relevant information of the first resource and the Secondary resource is compared, determine information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, and the 4th resource is the data resource in the first resource in addition to the information resources;The information resources are obtained by the neighbouring sensing network, the 4th resource is obtained by mobile network.The application is conducive to electronic equipment and improves the efficiency of resource acquisition, while saving data traffic.

Description

Resource downloading method and relevant apparatus
Technical field
This application involves electronic technology field more particularly to a kind of resource downloading methods and relevant apparatus.
Background technique
With a large amount of popularization and applications of electronic equipment (such as mobile phone, tablet computer), the application that electronic equipment can be supported More and more, function is stronger and stronger, and electronic equipment develops towards diversification, personalized direction, becomes target object life In indispensable appliance and electronic.Neighbouring sensing network (neighborhood aware networking, NAN) is set in electronics Using coming between standby, NAN network refers to that in the network, each NAN equipment is all direct or indirect and links together, information It can directly circulate, be the local area network interconnected of equipment more than one, resource-sharing can be carried out between more equipment.
Summary of the invention
The embodiment of the present application provides a kind of resource downloading method and relevant apparatus, is conducive to electronic equipment and improves resource acquisition Efficiency, while saving data traffic.
In a first aspect, the embodiment of the present application provides a kind of resource downloading method, it is applied to electronic equipment, the electronic equipment There is neighbouring sensing network NAN to connect with the foundation of multiple adjacent equipments, which comprises
In the downloading request for detecting first resource, the related letter of Secondary resource is obtained from the multiple adjacent equipment Breath, the Secondary resource are the data resource stored in the multiple adjacent equipment;
The relevant information of the relevant information of the first resource and the Secondary resource is compared, determines information resources With the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, the described 4th Resource is the data resource in the first resource in addition to the information resources;
The information resources are obtained by the neighbouring sensing network, the 4th resource is obtained by mobile network.
Second aspect, the embodiment of the present application provide a kind of resource shared device, are applied to electronic equipment, the electronic equipment There is neighbouring sensing network NAN to connect with the foundation of multiple adjacent equipments, the resource shared device includes detection unit, processing unit And acquiring unit, wherein
The detection unit, for being obtained from the multiple adjacent equipment in the downloading request for detecting first resource The relevant information of Secondary resource is taken, the Secondary resource is the data resource stored in the multiple adjacent equipment;
The processing unit, for carrying out the relevant information of the first resource and the relevant information of the Secondary resource It compares, determines that information resources and the 4th resource, the information resources are identical in the first resource and the Secondary resource Data resource, the 4th resource are the data resource in the first resource in addition to the information resources;
The acquiring unit is obtained for obtaining the information resources by the neighbouring sensing network by mobile network Take the 4th resource.
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, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Figure 1A is a kind of schematic diagram of the program running space of smart phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 1 C is a kind of network architecture diagram of NAN provided by the embodiments of the present application;
Fig. 1 D is a kind of schematic diagram of a scenario for starting network function provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of resource downloading method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another resource downloading method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another resource downloading method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of resource shared device provided by the embodiments of the present application.
Specific implementation
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 The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It is described in detail separately below.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising 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.
As shown in Figure 1A, the electronic equipments such as smart phone are typically provided with program running space at present, and program operation is empty Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more A application program is the third party application of electronic equipment installation, and resource downloading method described in the embodiment of the present application is corresponding Software algorithm operate in user's space, operating system space motion has the operating system of electronic equipment.
The electronic equipment can specifically run the Mobile operating system iOS of Android android system, Apple Inc.'s exploitation Deng not doing unique restriction herein.As shown in Figure 1B, by taking electronic equipment operation has android system as an example, corresponding user Space includes the application layer (Applications) in the android system, and operating system space may include the Android system Application framework layer (Application Framework), system Runtime Library layer (including system Runtime Library layer in system Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies It include all kinds of application programs directly interacted with user, or the service routine for running on backstage write by Java language on layer. For example, the program for the common basic function realized on smart phone, such as short message service (Short Messaging Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System Runtime Library layer is the support of application framework, provides service for the various components in android system.System Runtime Library layer by System class libraries and Android are constituted when running.It include core library and Dalvik virtual machine two parts when Android is run.Linux Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication Function.
Electronic equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device (example Such as smartwatch, Intelligent bracelet, pedometer), calculate equipment or be connected to other processing equipments of radio modem, with And various forms of user equipmenies (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.
The neighbouring perception of neighbouring sensing network (Neighborhood Aware Networking, NAN), also known as Wireless Fidelity Network (WirelessFidelity Alliance, Wi-FiAlliance) is retouched using NAN in the embodiment of the present application It states.The NAN function is mainly used for realizing that real-time high-efficiency discovery mechanism improves application here and now to extend Wi-Fi function Experience.Establish and continue discovering device and service before connection within the scope of Wi-Fi, equipment without be connected to mobile broadband net or Wi-Fi infrastructure network, can component N AN a kind of quick sensing networking mode.It can not only be created using this new technology The social application built, such as help it is found that meeting good friend, information or service near its requirement, and can be connectionless In the case of exchange small segment information, such as by location information carry discovery frame discover beacon in, pass through discovery frame interaction Carry out information interchange etc..In addition, also being improved environment sensing function.Because terminal is not necessarily to connect by network by NAN It connects and user is informed into experience around user, as long as the same terminal for supporting NAN function of Wi-Fi Aware discovery, can establish Wi-Fi Direct or infrastructure connection, and then a variety of experience are provided.NAN function can help user to use them as a result, The information received completes more multitask, from discovery information to final activity, makes to be supplemented based on neighbouring experience.
Fig. 1 C is please referred to, Fig. 1 C 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, the first adjacent equipment, the second adjacent equipment, third adjacent equipment, can be deposited in certain practical application In greater number of adjacent equipment, it is not limited here.And electronic equipment in above-mentioned NAN and adjacent equipment support NAN function Can, NAN function is opened before running the application.NAN function can be the similar Wi-Fi that opens and switch or open corresponding control The similar movements such as the button of NAN function processed are triggered, and as shown in figure iD, neighbouring sensing network and cable network are opening state 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 To be the current location of electronic equipment, such as: parking lot, market, highway etc., operating parameter is also possible to electronic equipment Foreground application, such as: application, the application for being related to adjacent network comprising positioning service etc., it is not limited here.Wherein, exist When neighbouring sensing network, wireless network and cable network are switched on, it can determine that electronic equipment has according to preset priority orders Which kind of network body uses.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of resource downloading method, it is applied to Electronic equipment, the electronic equipment have neighbouring sensing network NAN to connect with the foundation of multiple adjacent equipments.This resource downloading method packet It includes:
S201, the electronic equipment are obtained from the multiple adjacent equipment in the downloading request for detecting first resource The relevant information of Secondary resource is taken, the Secondary resource is the data resource stored in the multiple adjacent equipment.
Wherein, first resource can be video resource, music sources, file resource etc., in the case where detecting first resource When carrying request, the relevant information of Secondary resource can be got from multiple adjacent equipments, Secondary resource is multiple adjacent equipments The local resource of middle storage, so that electronic equipment will be seen that the resource situation in adjacent equipment.Secondary resource and first resource Resource type it is identical.
Wherein, the relevant information of Secondary resource is used to indicate the resource situation of Secondary resource, for example, Secondary resource is video When resource, the relevant information of Secondary resource can be the inventory of video name, when Secondary resource is file resource, Secondary resource Relevant information can be file name inventory.
S202, the electronic equipment carry out the relevant information of the first resource and the relevant information of the Secondary resource It compares, determines that information resources and the 4th resource, the information resources are identical in the first resource and the Secondary resource Data resource, the 4th resource are the data resource in the first resource in addition to the information resources.
Wherein, electronic equipment determines the relevant information of first resource, by the relevant information of first resource and Secondary resource Relevant information is compared, and determines that information resources and the 4th resource, information resources are identical in first resource and Secondary resource Resource, the 4th resource are the resource in first resource in addition to information resources, and first resource includes information resources and the 4th resource.
S203, the electronic equipment obtain the information resources by the neighbouring sensing network, are obtained by mobile network Take the 4th resource.
Wherein, information resources are that electronic equipment can be provided by the data that adjacent network is got from multiple adjacent equipments Source, the 4th resource are the resource that electronic equipment can not be obtained from adjacent equipment.
Wherein, in the case where electronic equipment does not connect wifi, the 4th resource that can be obtained by data network, thus Complete first resource is obtained according to information resources and the 4th resource.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
It is described that the information resources are obtained by the neighbouring sensing network, comprising: to determine in a possible example At least one adjacent equipment of the information resources is stored in the multiple adjacent equipment;From at least one described adjacent equipment It is middle to obtain the information resources.
Wherein, information resources belong to a part of first resource, while also belonging to a part of Secondary resource, electronic equipment At least one adjacent equipment of information resources is stored in confirmable multiple adjacent equipment, thus from third is therefrom got Resource.
As it can be seen that electronic equipment passes through adjacent network from least one adjacent equipment for being stored with information resources in this example The speed of middle acquisition information resources, data acquisition compares mobile network faster and safety is higher, to pass through mobile network again The 4th resource is obtained, complete first resource can be obtained.
In a possible example, the information resources are stored at least in the multiple adjacent equipment of determination One adjacent equipment, comprising: determine multiple target adjacent equipments that the information resources are stored in the multiple adjacent equipment; Determine the data transmission bauds of the multiple target adjacent equipment;Data transmission speed is chosen from the multiple target adjacent equipment Degree is greater than at least one target adjacent equipment of pre-set velocity;It determines described in being obtained from least one described target adjacent equipment Information resources.
Wherein, electronic equipment is connected with multiple adjacent equipments, determines multiple neighbours that information resources are stored in adjacent equipment Nearly equipment is target adjacent equipment, determines the data transmission bauds of multiple target adjacent equipments, chooses from multiple adjacent equipments Data transmission bauds is greater than at least one target adjacent equipment of pre-set velocity, so as to from least one target adjacent equipment Middle acquisition information resources.
As it can be seen that in this example, the target adjacent equipment for being stored with information resources has multiple, determines each target adjacent equipment Data transmission bauds, choose data transmission bauds be greater than pre-set velocity at least one adjacent equipment and therefrom obtain third provide Source is conducive to improve the time for reducing and obtaining information resources, improves the acquisition efficiency of data resource.
In a possible example, the determination obtains the third money from least one described target adjacent equipment Source, comprising: determine the adjacent equipment number at least one described target adjacent equipment;The third is provided according to the number Source is split to obtain more parts of data resources, the corresponding adjacent equipment of every part of data resource;Parallel from least one described mesh Corresponding data resource, which is obtained, in each target adjacent equipment in mark adjacent equipment obtains the information resources.
Wherein it is determined that the number of at least one target adjacent equipment, due to each of at least one target adjacent equipment It is all stored with information resources in target adjacent equipment, therefore can be carried out information resources according to the number of target adjacent equipment Fractionation obtains most data resources, the corresponding target adjacent equipment of every part of data resource, so as to from each adjacent equipment The middle different piece for obtaining information resources, finally obtains complete information resources.
As it can be seen that information resources are carried out according to the number of adjacent equipment at least one target adjacent equipment in this example It splits, so as to which by the different component parts for getting information resources from each adjacent equipment, last arriving is complete Information resources are conducive to the acquisition efficiency for improving resource.
In a possible example, the first resource is music sources, and the relevant information of the first resource includes First music inventory, the relevant information of the Secondary resource include the second music inventory;The correlation by the first resource Information and the relevant information of the Secondary resource are compared, and determine information resources and the 4th resource, comprising: determine described first Identical more song songs are target music track in music inventory and the second music inventory;Determine the information resources For the target music purpose data resource, the 4th resource be in the first music inventory except the target song it The data resource of outer music track.
Wherein, when first resource is music sources, the relevant information of first resource includes corresponding first music inventory, The relevant information of Secondary resource includes the second music inventory, and first music inventory and the second music inventory are compared, and is determined Not only more song songs in first music inventory but also in the second music inventory were target music track, target music track pair The data resource answered is information resources, and the corresponding data money of music track except target music track is gone out in first music inventory Source is the 4th resource.
For example, include music track A, music track B, music track C, music track D in first music inventory, the In two music inventories include music track A, music track B, music track C, music track E, music track F, music track G, To can determine that information resources are music track A, music track B, the corresponding data resource of music track C, the 4th resource is sound The corresponding data resource of melody mesh D.
As it can be seen that, when first resource is music sources, the relevant information of first resource is that first music is clear in this example Single, the relevant information of Secondary resource is the second music inventory, to can determine the corresponding music track of information resources and the 4th money The corresponding music track in source is conducive to electronic equipment and obtains a part of music track from adjacent equipment, then passes through mobile network A part of music track is obtained, to get complete first resource.
In a possible example, the relevant information that Secondary resource is obtained from the multiple adjacent equipment, packet It includes: obtaining the adjacent equipment in the neighbouring sensing network and the linkage record between the electronic equipment;According to the connection Record the intimate angle value determined between the adjacent equipment and the electronic equipment;It is greater than preset threshold in the intimate angle value The relevant information of the Secondary resource is obtained in multiple adjacent equipments.
Wherein, electronic equipment, can be with when obtaining the relevant information of Secondary resource from adjacent equipments multiple in multiple NAN Multiple adjacent equipments in NAN and the linkage record between electronic equipment are obtained, adjacent equipment and electricity are determined according to linkage record Intimate angle value between sub- equipment, linkage record include the note whether adjacent equipment connect and carry out data transmission with electronic equipment Record, and connection number, electronic equipment can choose multiple adjacent equipments that intimate angle value is greater than preset threshold, to obtain the The relevant information of two resources.
As it can be seen that in this example, electronic equipment is available and NAN in multiple adjacent equipments between intimate angle value, and And the intimate angle value of selection is greater than multiple adjacent equipments of preset threshold, so as to obtain the second money from multiple adjacent equipment The relevant information in source, since the intimate angle value between multiple adjacent equipments and electronic equipment is higher, multiple adjacent equipment For reliable and safe adjacent equipment, be conducive to the safety and reliability for improving output transmission process.
It is described that the information resources are obtained by the neighbouring sensing network in a possible example, pass through movement After network obtains the 4th resource, the method also includes: the information resources and the 4th resource are merged, Obtain the first resource.
Wherein, electronic equipment can determine the 4th resource after information resources have been determined, pass through neighbour to be performed simultaneously Information resources are obtained in nearly network, the 4th resource is obtained by mobile network, information resources and the 4th resource are merged, are obtained To complete first resource.
As it can be seen that first resource is split as information resources and the 4th resource in this example, electronic equipment can be by neighbouring Network obtains information resources, obtains the 4th resource by mobile network, rather than directly obtains first resource by mobile network, The efficiency for not only increasing data transmission, can also save data traffic.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of resource provided by the embodiments of the present application The flow diagram of method for down loading, is applied to electronic equipment, and the electronic equipment and the foundation of multiple adjacent equipments have neighbouring perception Network N AN connection.As shown, this resource downloading method includes:
S301, the electronic equipment are obtained from the multiple adjacent equipment in the downloading request for detecting first resource The relevant information of Secondary resource is taken, the Secondary resource is the data resource stored in the multiple adjacent equipment.
S302, the electronic equipment carry out the relevant information of the first resource and the relevant information of the Secondary resource It compares, determines that information resources and the 4th resource, the information resources are identical in the first resource and the Secondary resource Data resource, the 4th resource are the data resource in the first resource in addition to the information resources.
S303, the electronic equipment determine at least one neighbour that the information resources are stored in the multiple adjacent equipment Nearly equipment.
S304, the electronic equipment obtains the information resources from least one described adjacent equipment, and passes through movement Network obtains the 4th resource.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
In addition, electronic equipment obtains third from least one adjacent equipment for being stored with information resources by adjacent network The speed of resource, data acquisition compares mobile network faster and safety is higher, so that passing through mobile network again obtains the 4th money Complete first resource can be obtained in source.
It is consistent with described Fig. 2, embodiment shown in Fig. 3, referring to Fig. 4, Fig. 4 is one kind provided by the embodiments of the present application The flow diagram of resource downloading method, is applied to electronic equipment, and the electronic equipment and the foundation of multiple adjacent equipments have neighbouring Sensing network NAN connection.As shown, this resource downloading method includes:
S401, the electronic equipment are obtained from the multiple adjacent equipment in the downloading request for detecting first resource The relevant information of Secondary resource is taken, the Secondary resource is the data resource stored in the multiple adjacent equipment.
S402, the electronic equipment carry out the relevant information of the first resource and the relevant information of the Secondary resource It compares, determines that information resources and the 4th resource, the information resources are identical in the first resource and the Secondary resource Data resource, the 4th resource are the data resource in the first resource in addition to the information resources.
S403, the electronic equipment determine that multiple targets that the information resources are stored in the multiple adjacent equipment are adjacent Nearly equipment.
S404, the electronic equipment determine the data transmission bauds of the multiple target adjacent equipment.
S405, the electronic equipment choose data transmission bauds greater than pre-set velocity from the multiple target adjacent equipment At least one target adjacent equipment.
S406, the electronic equipment obtains the information resources from least one described target adjacent equipment, and passes through Mobile network obtains the 4th resource.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
In addition, electronic equipment obtains third from least one adjacent equipment for being stored with information resources by adjacent network The speed of resource, data acquisition compares mobile network faster and safety is higher, so that passing through mobile network again obtains the 4th money Complete first resource can be obtained in source.
In addition, the target adjacent equipment for being stored with information resources have it is multiple, determine each target adjacent equipment data pass Defeated speed chooses data transmission bauds and is greater than at least one adjacent equipment of pre-set velocity and therefrom obtains information resources, favorably The time for obtaining information resources is reduced in improving, improves the acquisition efficiency of data resource.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, the electronic equipment 500 operation have one or more application program and operating system, As shown, the electronic equipment 500 includes processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in the memory 520, and are configured by the processor 510 execute, and one or more of programs 521 include the instruction for executing following steps;
In the downloading request for detecting first resource, the related letter of Secondary resource is obtained from the multiple adjacent equipment Breath, the Secondary resource are the data resource stored in the multiple adjacent equipment;
The relevant information of the relevant information of the first resource and the Secondary resource is compared, determines information resources With the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, the described 4th Resource is the data resource in the first resource in addition to the information resources;
The information resources are obtained by the neighbouring sensing network, the 4th resource is obtained by mobile network.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
In a possible example, in terms of the information resources by the neighbouring sensing network acquisition, institute It states the instruction in program to be specifically used for executing following operation: determining and be stored with the information resources in the multiple adjacent equipment At least one adjacent equipment;The information resources are obtained from least one described adjacent equipment.
In a possible example, the information resources are stored with extremely in the multiple adjacent equipment of the determination In terms of a few adjacent equipment, the instruction in described program is specifically used for executing following operation: determining the multiple adjacent equipment In be stored with multiple target adjacent equipments of the information resources;Determine the data transmission speed of the multiple target adjacent equipment Degree;Selection data transmission bauds is neighbouring greater than at least one target of pre-set velocity from the multiple target adjacent equipment sets It is standby;Determination obtains the information resources from least one described target adjacent equipment.
In a possible example, the third is obtained from least one described target adjacent equipment in the determination In terms of resource, the instruction in described program is specifically used for executing following operation: determining at least one described target adjacent equipment Adjacent equipment number;The information resources are split according to the number to obtain more parts of data resources, every part of data money Source corresponds to an adjacent equipment;The acquisition pair from each target adjacent equipment at least one described target adjacent equipment parallel The data resource answered obtains the information resources.
In a possible example, the first resource is music sources, and the relevant information of the first resource includes First music inventory, the relevant information of the Secondary resource include the second music inventory;In the phase by the first resource The relevant information for closing information and the Secondary resource is compared, in terms of determining information resources and the 4th resource, in described program Instruction be specifically used for executing following operation: determine identical mostly first in the first music inventory and the second music inventory Music track is target music track;Determine the information resources be the target music purpose data resource, the described 4th Resource is the data resource of the music track in the first music inventory in addition to the target song.
In a possible example, in the relevant information side for obtaining Secondary resource from the multiple adjacent equipment Face, the instruction in described program are specifically used for executing following operation: obtaining the adjacent equipment in the neighbouring sensing network and institute State the linkage record between electronic equipment;It is determined between the adjacent equipment and the electronic equipment according to the linkage record Intimate angle value;The related letter of the Secondary resource is obtained in multiple adjacent equipments that the intimate angle value is greater than preset threshold Breath.
It is described that the information resources are obtained by the neighbouring sensing network in a possible example, pass through movement After network obtains the 4th resource, the instruction in described program is specifically used for executing following operation: by the information resources It is merged with the 4th resource, obtains the first resource.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method Method.Resource shared device 600 as shown in FIG. 6, is applied to the electronic equipment, and the electronic equipment includes a Mike Wind, the resource shared device include detection unit 601, processing unit 602 and acquiring unit 603, wherein
The detection unit 601, for detect first resource downloading request when, from the multiple adjacent equipment The relevant information of Secondary resource is obtained, the Secondary resource is the data resource stored in the multiple adjacent equipment;
The processing unit 602, for by the relevant information of the relevant information of the first resource and the Secondary resource It is compared, determines that information resources and the 4th resource, the information resources are phase in the first resource and the Secondary resource Same data resource, the 4th resource are the data resource in the first resource in addition to the information resources;
The acquiring unit 603 passes through mobile network for obtaining the information resources by the neighbouring sensing network Obtain the 4th resource.
Wherein, the resource shared device can also include storage unit 604, for storing the program code of electronic equipment And data.The detection unit 601, processing unit 602 and acquiring unit 603 can be processor, and storage unit 604 can be Memory.
As can be seen that in the embodiment of the present application, electronic equipment first in the downloading request for detecting first resource, from The relevant information of Secondary resource is obtained in the multiple adjacent equipment, the Secondary resource is to store in the multiple adjacent equipment Data resource determine secondly, the relevant information of the relevant information of the first resource and the Secondary resource is compared Information resources and the 4th resource, the information resources are identical data resource in the first resource and the Secondary resource, 4th resource is the data resource in the first resource in addition to the information resources, finally, passing through the neighbouring sense Hownet network obtains the information resources, obtains the 4th resource by mobile network.Since electronic equipment is detecting first When the downloading request of resource, the relevant information of Secondary resource can be got from multiple adjacent equipments, according to Secondary resource Relevant information determination can by information resources that adjacent network is obtained from adjacent equipment and obtained by data network the Four resources, first resource are made of information resources and the 4th resource, to be conducive to improve data acquisition efficiency and save data Flow.
In a possible example, in terms of the information resources by the neighbouring sensing network acquisition, institute Processing unit 602 is stated to be specifically used for: determine be stored in the multiple adjacent equipment the information resources at least one is neighbouring Equipment;And for obtaining the information resources from least one described adjacent equipment.
In a possible example, the information resources are stored with extremely in the multiple adjacent equipment of the determination In terms of a few adjacent equipment, the processing unit 602 is specifically used for: determining and is stored with described the in the multiple adjacent equipment Multiple target adjacent equipments of three resources;And the data transmission bauds for determining the multiple target adjacent equipment;And For choosing from the multiple target adjacent equipment, data transmission bauds is neighbouring greater than at least one target of pre-set velocity to be set It is standby;And the information resources are obtained from least one described target adjacent equipment for determining.
In a possible example, the third is obtained from least one described target adjacent equipment in the determination In terms of resource, the processing unit 602 is specifically used for: determining the adjacent equipment number at least one described target adjacent equipment Mesh;And for the information resources to be split according to the number to obtain more parts of data resources, every part of data resource pair Answer an adjacent equipment;And for being obtained from each target adjacent equipment at least one described target adjacent equipment parallel Corresponding data resource is taken to obtain the information resources.
In a possible example, the first resource is music sources, and the relevant information of the first resource includes First music inventory, the relevant information of the Secondary resource include the second music inventory;In the phase by the first resource The relevant information for closing information and the Secondary resource is compared, and in terms of determining information resources and the 4th resource, the processing is single Member 602 is specifically used for: determining that identical more song songs are mesh in the first music inventory and the second music inventory Mark music track;And for determining that the information resources are the target music purpose data resource, the 4th resource For the data resource of the music track in the first music inventory in addition to the target song.
In a possible example, in the relevant information side for obtaining Secondary resource from the multiple adjacent equipment Face, the detection unit 601 are specifically used for: obtaining the adjacent equipment in the neighbouring sensing network and between the electronic equipment Linkage record;And for determining the cohesion between the adjacent equipment and the electronic equipment according to the linkage record Value;And the related letter for obtaining the Secondary resource in multiple adjacent equipments that the intimate angle value is greater than preset threshold Breath.
It is described that the information resources are obtained by the neighbouring sensing network in a possible example, pass through movement After network obtains the 4th resource, the acquiring unit 603 is also used to: by the information resources and the 4th resource into Row merges, and obtains the first resource.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned 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 actions and modules 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 said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
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 realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, 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.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, 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 May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: 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, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of resource downloading method, which is characterized in that be applied to electronic equipment, the electronic equipment and multiple adjacent equipments are built It is vertical to have neighbouring sensing network NAN connection, which comprises
In the downloading request for detecting first resource, the relevant information of Secondary resource is obtained from the multiple adjacent equipment, The Secondary resource is the data resource stored in the multiple adjacent equipment;
The relevant information of the relevant information of the first resource and the Secondary resource is compared, determines information resources and Four resources, the information resources are identical data resource in the first resource and the Secondary resource, the 4th resource For the data resource in the first resource in addition to the information resources;
The information resources are obtained by the neighbouring sensing network, the 4th resource is obtained by mobile network.
2. the method according to claim 1, wherein described obtain the third by the neighbouring sensing network Resource, comprising:
Determine at least one adjacent equipment that the information resources are stored in the multiple adjacent equipment;
The information resources are obtained from least one described adjacent equipment.
3. according to the method described in claim 2, it is characterized in that, being stored in the multiple adjacent equipment of the determination described At least one adjacent equipment of information resources, comprising:
Determine multiple target adjacent equipments that the information resources are stored in the multiple adjacent equipment;
Determine the data transmission bauds of the multiple target adjacent equipment;
Selection data transmission bauds is neighbouring greater than at least one target of pre-set velocity from the multiple target adjacent equipment sets It is standby;
Determination obtains the information resources from least one described target adjacent equipment.
4. according to the method described in claim 3, it is characterized in that, the determination is from least one described target adjacent equipment Obtain the information resources, comprising:
Determine the adjacent equipment number at least one described target adjacent equipment;
The information resources are split according to the number to obtain more parts of data resources, the corresponding neighbour of every part of data resource Nearly equipment;
Corresponding data resource is obtained from each target adjacent equipment at least one described target adjacent equipment parallel to obtain To the information resources.
5. method according to claim 1-4, which is characterized in that the first resource is music sources, described The relevant information of first resource includes first music inventory, and the relevant information of the Secondary resource includes the second music inventory;Institute It states and the relevant information of the relevant information of the first resource and the Secondary resource is compared, determine information resources and the 4th Resource, comprising:
Determine that identical more song songs are target music track in the first music inventory and the second music inventory;
Determine that the information resources are the target music purpose data resource, the 4th resource is that the first music is clear The data resource of music track in list in addition to the target song.
6. the method according to claim 1, wherein described obtain Secondary resource from the multiple adjacent equipment Relevant information, comprising:
Obtain the adjacent equipment in the neighbouring sensing network and the linkage record between the electronic equipment;
The intimate angle value between the adjacent equipment and the electronic equipment is determined according to the linkage record;
The relevant information of the Secondary resource is obtained in multiple adjacent equipments that the intimate angle value is greater than preset threshold.
7. method according to claim 1-6, which is characterized in that described to be obtained by the neighbouring sensing network The information resources, after obtaining the 4th resource by mobile network, the method also includes:
The information resources and the 4th resource are merged, the first resource is obtained.
8. a kind of resource shared device, which is characterized in that be applied to electronic equipment, the electronic equipment and multiple adjacent equipments are built Vertical to have neighbouring sensing network NAN connection, the resource shared device includes detection unit, processing unit and acquiring unit, wherein
The detection unit, for obtaining the from the multiple adjacent equipment in the downloading request for detecting first resource The relevant information of two resources, the Secondary resource are the data resource stored in the multiple adjacent equipment;
The processing unit, for comparing the relevant information of the relevant information of the first resource and the Secondary resource It is right, determine that information resources and the 4th resource, the information resources are identical number in the first resource and the Secondary resource According to resource, the 4th resource is the data resource in the first resource in addition to the information resources;
The acquiring unit obtains institute by mobile network for obtaining the information resources by the neighbouring sensing network State the 4th resource.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7.
CN201810898579.6A 2018-08-08 2018-08-08 Resource downloading method and related device Active CN109168158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810898579.6A CN109168158B (en) 2018-08-08 2018-08-08 Resource downloading method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810898579.6A CN109168158B (en) 2018-08-08 2018-08-08 Resource downloading method and related device

Publications (2)

Publication Number Publication Date
CN109168158A true CN109168158A (en) 2019-01-08
CN109168158B CN109168158B (en) 2021-04-13

Family

ID=64895194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810898579.6A Active CN109168158B (en) 2018-08-08 2018-08-08 Resource downloading method and related device

Country Status (1)

Country Link
CN (1) CN109168158B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159645A (en) * 2007-11-08 2008-04-09 中国传媒大学 Design method and network structure of mutual server facing to P2P application
CN101873348A (en) * 2010-06-09 2010-10-27 清华大学 Cloud storage system based on network gateway devices and network access method thereof
CN102546728A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Peer-to-peer network resource downloading method
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN103685472A (en) * 2013-11-20 2014-03-26 卓易畅游(北京)科技有限公司 Method and equipment used for providing resource information corresponding to mobile equipment
CN106465092A (en) * 2014-06-02 2017-02-22 高通股份有限公司 Peer discovery in neighbor awareness networking (nan) aided data link networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159645A (en) * 2007-11-08 2008-04-09 中国传媒大学 Design method and network structure of mutual server facing to P2P application
CN101873348A (en) * 2010-06-09 2010-10-27 清华大学 Cloud storage system based on network gateway devices and network access method thereof
CN102546728A (en) * 2010-12-27 2012-07-04 北大方正集团有限公司 Peer-to-peer network resource downloading method
CN103036597A (en) * 2012-12-12 2013-04-10 华为终端有限公司 Method and device of sharing resources among devices in close range
CN103685472A (en) * 2013-11-20 2014-03-26 卓易畅游(北京)科技有限公司 Method and equipment used for providing resource information corresponding to mobile equipment
CN106465092A (en) * 2014-06-02 2017-02-22 高通股份有限公司 Peer discovery in neighbor awareness networking (nan) aided data link networks

Also Published As

Publication number Publication date
CN109168158B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN107635078A (en) Game control method and equipment
CN106332307A (en) Method for application program access to network and mobile terminal
CN108536480B (en) Input method configuration method and related product
CN108733797A (en) Document handling method and relevant apparatus
CN104219391A (en) Communication request responding method and device and mobile terminal based on double card
CN107832142A (en) The resource allocation method and equipment of application program
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN107832111A (en) Game application control method and equipment
CN106105168A (en) A kind of method, terminal and portable electric appts calling transfer
CN108647050A (en) Application program launching method, device and mobile terminal
CN110083433A (en) Embedded software running method and device, terminal and computer readable storage medium
CN106454975A (en) Hotspot network switching method and terminal equipment
CN106209608A (en) The method and device that the difference of a kind of chat message synchronizes
CN108092784A (en) A kind of method, terminal and computer-readable medium for creating group
CN109275125A (en) Resource share method and relevant apparatus
CN109195149A (en) NAN scanning adjusting method and relevant device
CN107670276B (en) Game application control method and equipment
CN105138107B (en) Downloading method of mobile terminal, device and mobile terminal
CN108494851B (en) Application program recommended method, device and server
CN109587053A (en) Network shunt method and relevant device
CN108762983A (en) Multi-medium data restoration methods and device
CN104052801A (en) Information processing method and electronic equipment
CN109168158A (en) Resource downloading method and relevant apparatus
CN107463524A (en) A kind of method and relevant device for accessing data
CN106502809B (en) A kind of multi-platform application program adaptation method, device and terminal device

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