CN109040213B - File downloading method and related product - Google Patents

File downloading method and related product Download PDF

Info

Publication number
CN109040213B
CN109040213B CN201810824280.6A CN201810824280A CN109040213B CN 109040213 B CN109040213 B CN 109040213B CN 201810824280 A CN201810824280 A CN 201810824280A CN 109040213 B CN109040213 B CN 109040213B
Authority
CN
China
Prior art keywords
file
downloaded
segment
equipment
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810824280.6A
Other languages
Chinese (zh)
Other versions
CN109040213A (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 CN201810824280.6A priority Critical patent/CN109040213B/en
Publication of CN109040213A publication Critical patent/CN109040213A/en
Application granted granted Critical
Publication of CN109040213B publication Critical patent/CN109040213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a file downloading method and a related product, wherein the method comprises the following steps: acquiring the file memory size and the wireless network rate of a file to be downloaded; acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters; dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment; acquiring a file segment to be downloaded by the electronic equipment and each equipment in the target adjacent equipment to obtain a plurality of file segments to be downloaded; and integrating data of the plurality of file fragments to be downloaded to obtain the file to be downloaded. By the aid of the method and the device, downloading efficiency can be improved.

Description

File downloading method and related product
Technical Field
The application relates to the technical field of communication, and mainly relates to a file downloading method and a related product.
Background
With the development of communication technology and electronic device technology, more and more functions are integrated on electronic devices (such as mobile phones, tablet computers, and the like), downloading files directly through the electronic devices becomes a common thing, and how to increase the file downloading rate is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a file downloading method and a related product, which can be used for downloading through adjacent equipment in a NAN or a wireless network in electronic equipment, so that the downloading speed is increased.
In a first aspect, an embodiment of the present application provides a file downloading method, including:
acquiring the file memory size and the wireless network rate of a file to be downloaded;
acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters;
dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment;
acquiring a file segment to be downloaded by the electronic equipment and each equipment in the plurality of target adjacent equipment to obtain a plurality of file segments to be downloaded;
and performing data integration on the plurality of file fragments to be downloaded to obtain the file to be downloaded.
In a second aspect, an embodiment of the present application provides a file downloading apparatus, including:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the file memory size and the wireless network rate of a file to be downloaded; acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters;
the dividing unit is used for dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each of the plurality of target adjacent equipment;
the acquiring unit is further configured to acquire the to-be-downloaded file segments downloaded by the electronic device and each device in the plurality of target neighboring devices, so as to obtain a plurality of to-be-downloaded file segments;
and the integration unit is used for performing data integration on the plurality of file fragments to be downloaded to obtain the files to be downloaded.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for some or all of the steps described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program makes a computer perform some or all of the steps as described in the first aspect of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
after the file downloading method and the related products are adopted, the file memory size and the wireless network rate of a file to be downloaded are obtained, the downloading parameters of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device are obtained to obtain a plurality of downloading parameters, the file to be downloaded is divided based on the file memory size, the wireless network rate and the plurality of downloading parameters, the file segment to be downloaded corresponding to the electronic device and each device in the plurality of target adjacent devices is determined, the file segment to be downloaded, downloaded by the electronic device and each device in the plurality of target adjacent devices, is obtained to obtain a plurality of file segments to be downloaded, and the file to be downloaded is obtained by integrating data of the plurality of file segments to be downloaded. Therefore, the corresponding fragments to be downloaded are downloaded through a wireless network in the electronic equipment, the corresponding fragments to be downloaded are downloaded respectively by the target adjacent equipment in the NAN connected with the electronic equipment and are sent to the electronic equipment through the NAN, then, the data integration is carried out on the fragments to be downloaded, and the electronic equipment can acquire the complete file to be downloaded, so that the downloading speed is increased.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1A is a schematic view of a NAN according to an embodiment of the present disclosure;
fig. 1B is a schematic view of a scenario for starting a network function according to an embodiment of the present application;
fig. 1C is a schematic flowchart of a file downloading method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a file downloading device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
A Neighbor Awareness Network (NAN), also called a Wireless Fidelity (Wi-Fi) awareness network, is described in the embodiments of the present application by using the NAN.
The NAN function is mainly used for realizing a real-time efficient discovery mechanism, so that the Wi-Fi function is expanded, and the application experience at the moment is improved. The device and the service are continuously discovered in the Wi-Fi range before connection is established, the device does not need to be connected to a mobile broadband network or a Wi-Fi infrastructure network, and a fast awareness networking mode of a component NAN can be achieved. The social application created by the new technology can be adopted, for example, people can be helped to find nearby friends, information or services meeting the requirements of the people, small-section information can be exchanged under the condition of no connection, for example, position information is carried in a discovery frame discover beacon, information exchange is carried out through interaction of the discovery frame, and the like. In addition, the environment sensing function is improved. Because the terminals do not need to rely on network connection to inform the surrounding experience of the users to the users through the NAN, as long as the Wi-Fi Aware discovers the terminals which also support the NAN function, the Wi-Fi Direct or infrastructure connection can be established, and then multiple experiences are provided. Thus, the NAN functionality may help users complete more tasks using the information they receive, from discovering information to eventual activities, supplementing the proximity-based experience.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices, and a neighboring device also belongs to one of the electronic devices, and the device of the NAN that is accessed together with the electronic device is referred to as a neighboring device in this application.
Referring to fig. 1A, fig. 1A is a network architecture diagram of a NAN according to an embodiment of the present disclosure, where the network architecture diagram includes an electronic device and a first neighboring device, a second neighboring device, and a third neighboring device.
And the electronic device and the plurality of adjacent devices all support the NAN function, and the NAN function is turned on before the application is run. The NAN function may be triggered by similar actions like turning on a Wi-Fi switch or turning on a button for controlling the NAN function, as shown in fig. 1B, the neighbor awareness network and the wired network are in an on state, and the wireless network is in an off state; and the system can also be automatically started when the operation parameters meet certain conditions, wherein: the operating parameter may be a current location of the electronic device, for example: parking area, market, highway etc. the operating parameter also can be electronic equipment's foreground application, for example: applications including location services, applications involving neighboring networks, and the like, are not limited herein.
In one embodiment, the method further comprises: acquiring an access request sent by adjacent equipment; and if the adjacent equipment is successfully verified, establishing the NAN connection with the adjacent equipment.
In the embodiment of the present application, the verification method is not limited, and an association relationship between the neighboring device and the electronic device may be obtained, and when the association relationship is greater than a threshold, it is determined that the neighboring device is verified successfully; whether the identification information of the adjacent equipment is blacklisted or not can be judged, if yes, the verification of the adjacent equipment is determined to be failed; and the distance between the adjacent equipment and the electronic equipment and the network state can be acquired, and if the distance is smaller than a preset distance or the network state is stable, the verification success of the adjacent equipment is determined, and the like. It can be appreciated that authenticating neighboring devices to access the NAN may improve security of the NAN.
The following describes embodiments of the present application in detail.
The embodiment of the application provides a file downloading method and a related product, which can be used for downloading through adjacent equipment in a NAN or a wireless network in electronic equipment, so that the downloading speed is increased.
Referring to fig. 1C, an embodiment of the present application provides a flowchart illustrating a file downloading method. Specifically, as shown in fig. 1C, a file downloading method applied to the electronic device includes:
s101: and acquiring the file memory size and the wireless network rate of the file to be downloaded.
In this embodiment of the application, the file to be downloaded may be an image, a video, an audio, an installation package, and the like, which are not limited herein, and the file to be downloaded may be a file to be downloaded by an electronic device, or a file in a download request that the electronic device receives from other electronic devices.
The size of the file memory is the number of bytes of the actual content, Byte is used as a measurement unit, and when the content of the file does not change, the size of the file memory does not change.
The wireless network rate may be a maximum access rate allocated for downloading a file to be downloaded in a hotspot to which the electronic device accesses, wherein: the hotspot can be a router or other electronic equipment; the wireless network may include, but is not limited to Wi-Fi.
In one embodiment, the method further comprises: if the size of the file memory is smaller than a preset threshold value, determining the estimated downloading time length according to the wireless network rate and the size of the file memory; if the estimated downloading time length is greater than the preset time length, executing the step S102; if the file memory size is greater than or equal to the preset threshold, the step S102 is executed.
The preset threshold and the preset time duration are not limited, the preset threshold is assumed to be 10M, the preset time duration is 10min, if the size of the file memory of the file to be downloaded is 8M, and the wireless network rate is 356kb/s, the size of the file memory is smaller than the preset threshold, the estimated downloading time duration is determined to be approximately equal to 8 × 1024/356 ≈ 23 according to the wireless network rate and the size of the file memory, the estimated downloading time duration is larger than the preset time duration, so that the downloading parameters of each target adjacent device are obtained, namely the file to be downloaded is assisted by the target adjacent device, and the downloading rate can be improved.
It can be understood that, when the electronic device receives a download request of a file to be downloaded, the size of the file memory of the file to be downloaded is obtained, and if the size of the file memory is greater than or equal to a preset threshold, the download parameters of each target neighboring device corresponding to the NAN accessed by the electronic device are obtained, that is, the target neighboring device assists in downloading the file to be downloaded, so that the download rate can be increased. If the size of the file memory is smaller than the preset threshold value, acquiring a wireless network rate distributed by the electronic device for the file to be downloaded, calculating an estimated downloading time length according to the wireless network rate and the size of the file memory, and if the estimated downloading time length is larger than the preset time length, acquiring downloading parameters of each target adjacent device corresponding to a NAN (neighbor access network) accessed by the electronic device, namely, downloading the file to be downloaded by the target adjacent device in an auxiliary manner, so that the downloading rate can be improved. Otherwise, the wireless network of the electronic equipment can be adopted to download the file to be downloaded.
S102: the method comprises the steps of obtaining a plurality of downloading parameters of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by the electronic device to obtain the plurality of downloading parameters.
In this embodiment of the application, the NAN includes an electronic device and a plurality of neighboring devices, and the target neighboring device may be any one of the plurality of neighboring devices, may also be a device in the neighboring devices that allows the electronic device to download the file to be downloaded, and may also be a device in the neighboring devices that caches the file to be downloaded, which is not limited herein.
In one embodiment, the method further comprises: broadcasting the download request to a plurality of neighboring devices corresponding to the NAN; receiving a downloading response sent by the adjacent equipment in response to the downloading request, and taking the adjacent equipment responding to the downloading response as the adjacent equipment to be downloaded; acquiring downloading parameters of the adjacent equipment to be downloaded; and if the downloading parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment.
Wherein: the download response is used to inform the electronic device that the neighboring device allows the electronic device to help the electronic device to download the file to be downloaded, and in the present application, the neighboring device that sends the download response to the electronic device in the NAN is used as the street presence device to be downloaded.
In this embodiment of the application, the download parameters may include a distance to the electronic device, an association relationship with the electronic device, a network rate of the target neighboring device, a remaining memory size, and other dimensional information, which is not limited herein.
The preset condition corresponding to the network rate of the to-be-downloaded neighboring device may be greater than a threshold, or the size of the remaining memory of the to-be-downloaded neighboring device may be greater than a threshold, or the distance between the to-be-downloaded neighboring device and the electronic device may be smaller than a threshold, or the association relationship is greater than a threshold, and the like, which is not limited herein.
It can be understood that the electronic device broadcasts the download request to a plurality of neighboring devices in the accessed NAN, and then responds to the download request, the neighboring device that sends the download response to the electronic device is taken as the neighboring device to be downloaded, so that the neighboring device that does not send the download response is not disturbed in the downloading process. And then, acquiring the downloading parameters of the adjacent equipment to be downloaded, judging whether the downloading parameters meet preset conditions, if so, determining that the adjacent equipment to be downloaded is the target adjacent equipment, and selecting the target adjacent equipment based on the downloading parameters, so that the success rate and the efficiency of downloading the file fragments to be downloaded by the target adjacent equipment are improved.
In one embodiment, the method further comprises: performing weighted calculation according to the plurality of pieces of dimension information and a preset weight corresponding to each piece of dimension information in the plurality of pieces of dimension information to obtain an evaluation value corresponding to the to-be-downloaded adjacent device; and if the evaluation value is larger than the evaluation threshold value, determining that the downloading parameters of the to-be-downloaded adjacent equipment meet the preset conditions.
Wherein: and setting a preset weight value for each dimension in advance, and thus, carrying out weighted calculation according to the corresponding preset weight value and the dimension information corresponding to the dimension to obtain an evaluation value corresponding to the to-be-downloaded adjacent equipment. And then, presetting an evaluation threshold, and determining that the downloading parameters of the to-be-downloaded adjacent equipment meet the preset conditions when the evaluation value is greater than the evaluation threshold, or else, not meeting the preset conditions, so that the to-be-downloaded adjacent equipment is evaluated from all aspects, the accuracy of determining the target adjacent equipment is improved, and the success rate and the efficiency of downloading the to-be-downloaded file segments by the target adjacent equipment are improved.
For example, assume that the dimensions and their corresponding dimension information are: the distance between the to-be-downloaded neighboring device and the electronic device is 10M, the association value between the to-be-downloaded neighboring device and the electronic device is 0.7, the network rate of the to-be-downloaded neighboring device is 2M/s, and the remaining memory size is 20G, if the distance between the to-be-downloaded neighboring device and the electronic device, the association value between the to-be-downloaded neighboring device and the electronic device, the network rate of the to-be-downloaded neighboring device, and the remaining memory size respectively correspond to preset weights of 0.2, 0.3, and 0.2, the evaluation value is equal to 10 × 0.2+0.7 × 0.3+2 × 0.3+20 × 0.2 ═ 6.81, and if the evaluation threshold is 5, the to-be-downloaded neighboring device is determined to be the target neighboring device.
In one embodiment, the method further comprises: broadcasting a transmission request of the file to be downloaded to a plurality of adjacent devices corresponding to the NAN; and receiving a transmission response sent by the neighboring equipment in response to the transmission request, and taking the neighboring equipment responding to the transmission response as the target neighboring equipment.
Wherein: the transmission request is used for indicating the neighboring device to inquire whether the file to be downloaded is cached, the transmission response is used for informing the electronic device that the file to be downloaded is cached in the neighboring device, and further, the transmission response is also used for informing the electronic device that the neighboring device allows the file to be downloaded to be transmitted to the electronic device.
It can be understood that, if the electronic device broadcasts a transmission request for the file to be downloaded to a plurality of neighboring devices in the accessed NAN, the neighboring devices that respond to the transmission request and send a transmission response to the electronic device are taken as target neighboring devices, and thus, the target neighboring devices that are used in the downloading process all include the file to be downloaded, so that the file does not need to be downloaded again, and the transmission efficiency is improved.
Further, the method further comprises: receiving a transmission response sent by the adjacent equipment in response to the transmission request, and taking the adjacent equipment responding to the transmission response as adjacent equipment to be downloaded; acquiring downloading parameters of the adjacent equipment to be downloaded; and if the downloading parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment.
It can be understood that, if the electronic device broadcasts a transmission request for the file to be downloaded to a plurality of neighboring devices in the accessed NAN, the neighboring devices that respond to the transmission request and send transmission responses to the electronic device are used as target neighboring devices, and thus, the target neighboring devices that are used in the downloading process all include the file to be downloaded, so that the file does not need to be downloaded again, and the transmission efficiency is improved. And then, acquiring the downloading parameters of the adjacent equipment to be downloaded, judging whether the downloading parameters meet preset conditions, if so, determining that the adjacent equipment to be downloaded is the target adjacent equipment, and selecting the target adjacent equipment based on the downloading parameters, thereby further improving the success rate and the efficiency of the target adjacent equipment for transmitting the file fragments to be downloaded.
S103: and dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
In the embodiment of the application, the file to be downloaded is divided according to the file memory size, the wireless network rate and the downloading parameters to obtain the file segments to be downloaded, then the file segments to be downloaded are respectively distributed to the electronic equipment and the target adjacent equipment, and the electronic equipment and the target adjacent equipment download the corresponding file segments to be downloaded, so that the equipment downloads synchronously, and the downloading efficiency can be improved.
In an embodiment, the dividing the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of download parameters, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices includes: obtaining an evaluation value corresponding to each download parameter in the plurality of download parameters to obtain a plurality of evaluation values; dividing the file to be downloaded based on the file memory size, the wireless network rate and the evaluation values, and determining a file segment to be downloaded corresponding to each device in the electronic device and the target adjacent devices.
As for the method for obtaining the evaluation value, reference may be made to a method for obtaining the evaluation value of the to-be-downloaded neighboring device, and details thereof are not repeated herein.
It can be understood that the evaluation values corresponding to the download parameters are obtained, and the file to be downloaded is divided according to the file memory size, the wireless network rate and the evaluation values corresponding to the download parameters to obtain the plurality of electronic devices and the file segment to be downloaded corresponding to each device in each target neighboring device.
In an embodiment, the dividing the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of evaluation values, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices includes: determining a target downloading time length according to the number of the target adjacent devices and the plurality of evaluation values; determining the size of a first segment memory of a file segment to be downloaded corresponding to the electronic equipment according to the target downloading time length and the wireless network rate; determining the size of the residual memory according to the difference value between the size of the file memory and the size of the first segment memory; dividing the residual memory size according to the evaluation values to obtain a plurality of second segment memory sizes, wherein each second segment memory size corresponds to one target adjacent device; and dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
Wherein: the target downloading time length is the estimated time length of downloading each target adjacent device and transmitting the file segment to be downloaded; because the evaluation value is obtained according to the downloading parameter of the corresponding target adjacent device, the target downloading time length can be determined according to the number of the target adjacent devices and the plurality of evaluation values, the synchronization time of the electronic device for obtaining the plurality of file segments to be downloaded can be prolonged, and the downloading efficiency of the files to be downloaded is improved.
That is, determining a target downloading time length according to the number of target neighboring devices and a plurality of evaluation values, determining a time for the electronic device to acquire each file segment to be downloaded, then determining a first segment memory size of the file segment to be downloaded corresponding to the electronic device according to the target downloading time length and a wireless network rate, determining a remaining memory size corresponding to the plurality of target neighboring devices according to a difference between the file memory size and the first segment memory size, allocating a corresponding second segment memory size to each target neighboring device according to the previously obtained evaluation value and remaining memory size of each target neighboring device, thus determining the first segment memory size corresponding to the electronic device and the second segment memory size corresponding to each target neighboring device, and then dividing the file to be downloaded according to the first segment memory size and each second segment memory size, therefore, the file segments to be downloaded corresponding to the electronic equipment and each target adjacent equipment are determined, namely, the file size of the file segment to be downloaded is determined firstly, and then the file to be downloaded is divided to obtain a plurality of file segments to be downloaded, so that the synchronization time of the electronic equipment for obtaining the plurality of file segments to be downloaded is conveniently prolonged, and the downloading efficiency of the file to be downloaded is improved.
S104: and acquiring the file segments to be downloaded by the electronic equipment and each equipment in the target adjacent equipment to obtain a plurality of file segments to be downloaded.
In the embodiment of the application, the downloading efficiency can be improved by downloading the file segments to be downloaded, which are allocated to the electronic equipment and each target adjacent equipment in advance by the electronic equipment.
S105: and integrating data of the plurality of file fragments to be downloaded to obtain the file to be downloaded.
In the embodiment of the application, the files to be downloaded are divided, and each file segment to be downloaded can be numbered, so that data integration can be performed according to the sequence of the numbers when data are integrated, and no limitation is imposed on how the file segments to be downloaded are numbered.
In an embodiment, the obtaining the file to be downloaded by integrating data according to the plurality of file fragments to be downloaded includes: dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the number of the file segment to be downloaded corresponding to each of the electronic device and the plurality of target adjacent devices to obtain a plurality of numbers; and performing data integration on the plurality of file fragments to be downloaded according to the sequence of the plurality of numbers to obtain the file to be downloaded.
It can be understood that after the size of the first segment memory and the size of the plurality of second segment memories are determined, the file to be downloaded can be divided according to the sizes of the memories, the file segment to be downloaded corresponding to each of the electronic device and the plurality of target adjacent devices can be determined, and numbering is performed according to the relationship between the file segment to be downloaded and the file to be downloaded, so that when the electronic device obtains the plurality of file segments to be downloaded with numbers, data integration can be directly performed according to the number sequence of the file segments to be downloaded to obtain the file to be downloaded, and thus, the efficiency of data integration is improved. In addition, the missing segments to be downloaded can be searched according to the serial numbers, and the fault processing capacity is improved.
In one embodiment, the method further comprises: when the target downloading duration is reached, acquiring a plurality of target numbers corresponding to the plurality of file fragments to be downloaded; if the difference between the plurality of numbers and the plurality of target numbers is one reference number, determining that the target adjacent equipment corresponding to the reference number is reference adjacent equipment; and if the reference adjacent equipment fails, acquiring the file segment to be downloaded corresponding to the reference adjacent equipment by adopting the alternative equipment.
The reference number is a number corresponding to a file segment to be downloaded which is not received when the target downloading duration is reached, and in the application, the target adjacent device corresponding to the reference number is the reference adjacent device. The method for detecting the fault of the reference adjacent equipment is not limited, and fault information sent by the reference adjacent equipment can be acquired; downloading parameters of the reference adjacent equipment can also be obtained, and if the downloading parameters do not meet the preset conditions, the reference adjacent equipment is determined to be in fault; and if the estimated downloading time corresponding to the downloading process is greater than a threshold value, determining that the reference adjacent equipment has a fault and the like.
The alternative device may be the electronic device itself, or may be one of the devices other than the reference proximity device in the plurality of target proximity devices, which is closest to the reference proximity device, fastest in network speed, or highest in evaluation value, and is not limited herein.
It can be understood that, when the target downloading duration allocated for downloading the file segments to be downloaded reaches, the reference neighboring device is determined according to the target numbers corresponding to the acquired multiple file segments to be downloaded and the numbers allocated in advance, and when the reference neighboring device fails, the candidate device is adopted to acquire the file segments to be downloaded corresponding to the reference neighboring device, so that the failure handling capability can be improved, and the downloading rate can be improved.
In the file downloading method shown in fig. 1C, a file memory size and a wireless network rate of a file to be downloaded are obtained, then a downloading parameter of each of a plurality of target neighboring devices corresponding to a neighbor awareness network NAN to which an electronic device is accessed is obtained to obtain a plurality of downloading parameters, the file to be downloaded is divided based on the file memory size, the wireless network rate and the plurality of downloading parameters, a file segment to be downloaded corresponding to the electronic device and each of the plurality of target neighboring devices is determined, a file segment to be downloaded, which is downloaded by the electronic device and each of the plurality of target neighboring devices, is obtained to obtain a plurality of file segments to be downloaded, and the file to be downloaded is obtained by integrating data of the plurality of file segments to be downloaded. Therefore, the corresponding fragments to be downloaded are downloaded through a wireless network in the electronic equipment, the corresponding fragments to be downloaded are downloaded respectively by the target adjacent equipment in the NAN connected with the electronic equipment and are sent to the electronic equipment through the NAN, then, the data integration is carried out on the fragments to be downloaded, and the electronic equipment can acquire the complete file to be downloaded, so that the downloading speed is increased.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a file downloading device according to an embodiment of the present application, and as shown in fig. 2, the file downloading device 200 includes:
the obtaining unit 201 is configured to obtain a file memory size and a wireless network rate of a file to be downloaded; acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters;
the dividing unit 202 is configured to divide the file to be downloaded based on the file memory size, the wireless network rate, and the multiple download parameters, and determine a file segment to be downloaded corresponding to each of the electronic device and the multiple target neighboring devices;
the obtaining unit 201 is further configured to obtain a plurality of to-be-downloaded file segments obtained by obtaining the to-be-downloaded file segments downloaded by the electronic device and each device in the plurality of target neighboring devices;
the integration unit 203 is configured to perform data integration on the multiple file segments to be downloaded to obtain the file to be downloaded.
It can be understood that the obtaining unit 201 obtains a file memory size and a wireless network rate of a file to be downloaded, obtains a plurality of download parameters from a download parameter of each of a plurality of target neighboring devices corresponding to a neighbor awareness network NAN to which the electronic device is accessed, the dividing unit 202 divides the file to be downloaded based on the file memory size, the wireless network rate and the download parameters, determines a file segment to be downloaded corresponding to the electronic device and each of the plurality of target neighboring devices, obtains a plurality of file segments to be downloaded from the electronic device and each of the plurality of target neighboring devices by the obtaining unit 201, and integrates data of the file segments to be downloaded by the integrating unit 203 to obtain the file to be downloaded. Therefore, the corresponding fragments to be downloaded are downloaded through a wireless network in the electronic equipment, the corresponding fragments to be downloaded are downloaded respectively by the target adjacent equipment in the NAN connected with the electronic equipment and are sent to the electronic equipment through the NAN, then, the data integration is carried out on the fragments to be downloaded, and the electronic equipment can acquire the complete file to be downloaded, so that the downloading speed is increased.
In a possible example, the obtaining unit 201 is further configured to obtain an evaluation value corresponding to each of the plurality of download parameters to obtain a plurality of evaluation values;
in the aspect of dividing the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of download parameters, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices, the dividing unit 202 is specifically configured to divide the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of evaluation values, and determine the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices.
In a possible example, in the aspect that the file to be downloaded is divided based on the file memory size, the wireless network rate and the plurality of evaluation values, and a file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices is determined, the dividing unit 202 is specifically configured to determine a target downloading time length according to the number of the target neighboring devices and the plurality of evaluation values; determining the size of a first segment memory of a file segment to be downloaded corresponding to the electronic equipment according to the target downloading time length and the wireless network rate; determining the size of the residual memory according to the difference value between the size of the file memory and the size of the first segment memory; dividing the residual memory size according to the evaluation values to obtain a plurality of second segment memory sizes, wherein each second segment memory size corresponds to one target adjacent device; and dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
In a possible example, the dividing unit 202 is further configured to divide the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determine that the number of the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices obtains a plurality of numbers;
in the aspect of obtaining the file to be downloaded by performing data integration according to the plurality of file segments to be downloaded, the integration unit 203 is further configured to perform data integration on the plurality of file segments to be downloaded according to the sequence of the plurality of numbers to obtain the file to be downloaded.
In a possible example, the obtaining unit 201 is further configured to obtain a downloading parameter of a neighboring device to be downloaded; if the download parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment;
the apparatus 200 further comprises:
a communication unit 204, configured to broadcast the download request to a plurality of neighboring devices corresponding to the NAN; and receiving a downloading response sent by the adjacent equipment in response to the downloading request, and taking the adjacent equipment responding to the downloading response as the adjacent equipment to be downloaded.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is identical to the embodiment shown in fig. 1C. As shown in fig. 3, the electronic device 300 comprises a processor 310, a memory 320, a communication interface 330, and one or more programs 340, wherein the one or more programs 340 are stored in the memory 320 and configured to be executed by the processor 310, and wherein the program 340 comprises instructions for:
acquiring the file memory size and the wireless network rate of a file to be downloaded;
acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters;
dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment;
acquiring a file segment to be downloaded by the electronic equipment and each equipment in the target adjacent equipment to obtain a plurality of file segments to be downloaded;
and integrating data of the plurality of file fragments to be downloaded to obtain the file to be downloaded.
It can be understood that the electronic device 300 obtains a file memory size and a wireless network rate of a file to be downloaded, obtains a plurality of download parameters from a download parameter of each of a plurality of target neighboring devices corresponding to a neighbor awareness network NAN to which the electronic device is accessed, divides the file to be downloaded based on the file memory size, the wireless network rate and the download parameters, determines a file segment to be downloaded corresponding to the electronic device and each of the plurality of target neighboring devices, obtains a plurality of file segments to be downloaded from the electronic device and each of the plurality of target neighboring devices, and integrates data of the plurality of file segments to be downloaded to obtain the file to be downloaded. Therefore, the corresponding fragments to be downloaded are downloaded through a wireless network in the electronic equipment and the corresponding fragments to be downloaded are downloaded respectively by the target adjacent equipment in the NAN connected with the electronic equipment and are sent to the electronic equipment through the NAN, then, the data integration is carried out on the fragments to be downloaded, and the electronic equipment can obtain the complete file to be downloaded, so that the downloading speed is increased.
In a possible example, in the aspect that the file to be downloaded is divided based on the file memory size, the wireless network rate, and the multiple download parameters, and the file segment to be downloaded corresponding to each of the electronic device and the multiple target neighboring devices is determined, the instructions in the program 340 are specifically configured to perform the following operations:
obtaining an evaluation value corresponding to each download parameter in the plurality of download parameters to obtain a plurality of evaluation values;
dividing the file to be downloaded based on the file memory size, the wireless network rate and the evaluation values, and determining a file segment to be downloaded corresponding to each device in the electronic device and the target adjacent devices.
In a possible example, in the aspect that the file to be downloaded is divided based on the file memory size, the wireless network rate, and the plurality of evaluation values, and a file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices is determined, the instructions in the program 340 are specifically configured to perform the following operations:
determining a target downloading time length according to the number of the target adjacent devices and the plurality of evaluation values;
determining the size of a first segment memory of a file segment to be downloaded corresponding to the electronic equipment according to the target downloading time length and the wireless network rate;
determining the size of the residual memory according to the difference value between the size of the file memory and the size of the first segment memory;
dividing the residual memory size according to the evaluation values to obtain a plurality of second segment memory sizes, wherein each second segment memory size corresponds to one target adjacent device;
and dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
In a possible example, in the aspect of performing data integration according to the multiple fragments of the file to be downloaded to obtain the file to be downloaded, the instructions in the program 340 are specifically configured to perform the following operations:
dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the number of the file segment to be downloaded corresponding to each of the electronic device and the plurality of target adjacent devices to obtain a plurality of numbers;
and performing data integration on the plurality of file fragments to be downloaded according to the sequence of the plurality of numbers to obtain the file to be downloaded.
In one possible example, the instructions in the program 340 are further operable to:
broadcasting the download request to a plurality of neighboring devices corresponding to the NAN;
receiving a downloading response sent by the adjacent equipment in response to the downloading request, and taking the adjacent equipment responding to the downloading response as the adjacent equipment to be downloaded;
acquiring downloading parameters of the adjacent equipment to be downloaded;
and if the downloading parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for causing a computer to execute a part or all of the steps of any one of the methods as described in the method embodiments, and the computer includes an electronic device.
Embodiments of the application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package and the computer comprises the electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will also appreciate that the embodiments described in this specification are presently preferred and that no particular act or mode of operation is required in the present application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a hardware mode or a software program mode.
The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A method for downloading a file, comprising:
the electronic equipment acquires the file memory size and the wireless network rate of a file to be downloaded;
the electronic equipment acquires a download parameter of each piece of target neighbor equipment corresponding to a Neighbor Awareness Network (NAN) accessed by the electronic equipment to obtain a plurality of download parameters;
the electronic equipment divides the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determines a file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment;
the electronic equipment acquires the file segments to be downloaded, which are downloaded by the electronic equipment and each equipment in the target adjacent equipment, so as to obtain a plurality of file segments to be downloaded;
and the electronic equipment performs data integration on the plurality of file fragments to be downloaded to obtain the file to be downloaded.
2. The method of claim 1, wherein the dividing the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of download parameters, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices comprises:
obtaining an evaluation value corresponding to each download parameter in the plurality of download parameters to obtain a plurality of evaluation values;
dividing the file to be downloaded based on the file memory size, the wireless network rate and the evaluation values, and determining a file segment to be downloaded corresponding to each device in the electronic device and the target adjacent devices.
3. The method according to claim 2, wherein the dividing the file to be downloaded based on the file memory size, the wireless network rate, and the plurality of evaluation values, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices comprises:
determining a target downloading time length according to the number of the target adjacent devices and the plurality of evaluation values;
determining the size of a first segment memory of a file segment to be downloaded corresponding to the electronic equipment according to the target downloading time length and the wireless network rate;
determining the size of the residual memory according to the difference value between the size of the file memory and the size of the first segment memory;
dividing the size of the residual memory according to the evaluation values to obtain a plurality of second segment memories, wherein each second segment memory corresponds to one target adjacent device;
and dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
4. The method according to claim 3, wherein the performing data integration according to the plurality of file fragments to be downloaded to obtain the file to be downloaded comprises:
dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, determining the number of the file segment to be downloaded corresponding to the electronic equipment and each of the plurality of target adjacent equipment, and obtaining a plurality of numbers;
and performing data integration on the plurality of file fragments to be downloaded according to the sequence of the plurality of numbers to obtain the file to be downloaded.
5. The method according to any one of claims 1-4, further comprising:
broadcasting a download request to a plurality of neighboring devices corresponding to the NAN;
receiving a downloading response sent by the adjacent equipment in response to the downloading request, and taking the adjacent equipment responding to the downloading response as the adjacent equipment to be downloaded;
acquiring downloading parameters of the adjacent equipment to be downloaded;
and if the downloading parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment.
6. A file downloading apparatus, comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring the file memory size and the wireless network rate of a file to be downloaded; acquiring a downloading parameter of each device in a plurality of target adjacent devices corresponding to an adjacent perception network NAN accessed by an electronic device to obtain a plurality of downloading parameters;
the dividing unit is used for dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of downloading parameters, and determining a file segment to be downloaded corresponding to the electronic equipment and each of the plurality of target adjacent equipment;
the acquiring unit is further configured to acquire the to-be-downloaded file segments downloaded by the electronic device and each device in the plurality of target neighboring devices, so as to obtain a plurality of to-be-downloaded file segments;
and the integration unit is used for performing data integration on the plurality of file fragments to be downloaded to obtain the files to be downloaded.
7. The apparatus according to claim 6, wherein the obtaining unit is further configured to obtain an evaluation value corresponding to each of the plurality of download parameters, so as to obtain a plurality of evaluation values;
in the aspect of dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of download parameters, and determining the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices, the dividing unit is specifically configured to divide the file to be downloaded based on the file memory size, the wireless network rate and the plurality of evaluation values, and determine the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices.
8. The apparatus according to claim 7, wherein in the aspect of dividing the file to be downloaded based on the file memory size, the wireless network rate and the plurality of evaluation values, and determining the segment of the file to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices, the dividing unit is specifically configured to determine a target download duration according to the number of the target neighboring devices and the plurality of evaluation values; determining the size of a first segment memory of a file segment to be downloaded corresponding to the electronic equipment according to the target downloading time length and the wireless network rate; determining the size of the residual memory according to the difference value between the size of the file memory and the size of the first segment memory; dividing the size of the residual memory according to the evaluation values to obtain a plurality of second segment memories, wherein each second segment memory corresponds to one target adjacent device; and dividing the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, and determining the file segment to be downloaded corresponding to the electronic equipment and each equipment in the plurality of target adjacent equipment.
9. The apparatus according to claim 8, wherein the dividing unit is further configured to divide the file to be downloaded according to the size of the first segment memory and the sizes of the plurality of second segment memories, determine the number of the file segment to be downloaded corresponding to each of the electronic device and the plurality of target neighboring devices, and obtain a plurality of numbers;
the integration unit is further configured to perform data integration on the plurality of file segments to be downloaded according to the sequence of the plurality of numbers to obtain the file to be downloaded.
10. The apparatus according to any one of claims 6 to 9, wherein the obtaining unit is further configured to obtain a download parameter of a neighboring device to be downloaded; if the download parameters of the to-be-downloaded adjacent equipment meet preset conditions, taking the to-be-downloaded adjacent equipment as the target adjacent equipment;
the device further comprises:
a communication unit, configured to broadcast a download request to a plurality of neighboring devices corresponding to the NAN; and receiving a downloading response sent by the adjacent equipment in response to the downloading request, and taking the adjacent equipment responding to the downloading response as the adjacent equipment to be downloaded.
11. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-5.
12. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201810824280.6A 2018-07-23 2018-07-23 File downloading method and related product Active CN109040213B (en)

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 CN109040213A (en) 2018-12-18
CN109040213B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110825402B (en) * 2019-09-26 2021-06-22 华为技术有限公司 Method and device for downloading data packet
CN110784520A (en) * 2019-09-30 2020-02-11 北京字节跳动网络技术有限公司 File downloading method and device and electronic equipment
CN112769887B (en) * 2019-11-06 2023-05-09 佛山市云米电器科技有限公司 File downloading method, system, equipment and computer readable storage medium
CN111405003B (en) * 2020-03-05 2023-05-02 维沃移动通信有限公司 Resource loading method and electronic equipment
CN111629065B (en) * 2020-06-05 2021-10-29 宁波方太厨具有限公司 Method and system for controlling OTA (over the air) upgrade of equipment in networking system

Citations (4)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257958B (en) * 2015-06-30 2019-10-15 北京智谷睿拓技术服务有限公司 Message method, message receival method and its device
CN105898550B (en) * 2016-04-29 2019-03-05 清华大学 A kind of method that end-to-end reciprocity video assists transmission
CN107277134B (en) * 2017-06-19 2020-08-04 网宿科技股份有限公司 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
EP3306997A4 (en) * 2015-07-27 2018-06-27 Huawei Technologies Co., Ltd. Data packet transmission method and device
CN108023864A (en) * 2016-10-28 2018-05-11 ***通信有限公司研究院 Streaming Media method for pushing and device

Also Published As

Publication number Publication date
CN109040213A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109040213B (en) File downloading method and related product
EP3725062B1 (en) Electronic device for performing network connection based on data transmission of application and method thereof
CN109246185B (en) File downloading method and related product
US9332378B2 (en) Wireless communication device for performing different wireless communications
CN108353351B (en) Method for selecting service network, network equipment and management equipment
CN110113737B (en) Method and apparatus for connecting short-range wireless communication in terminal
JP2023520478A (en) Configuration information transmission method and device, communication device and storage medium
CN110881207B (en) Network slice selection method and related product
WO2016187955A1 (en) Position management method of terminal, paging method, device, and terminal
CN109743783B (en) Data transmission control method and related product
CN108282846B (en) Service request processing method and device
US20170265127A1 (en) Device and method for accessing multiple networks in wireless communication system
JP6097411B2 (en) Data transmission method, apparatus and system
US20230094982A1 (en) Method and device for communication processing
KR20160138055A (en) Method and apparatus for fast ip address assignment
KR100735664B1 (en) Apparatus and method for providing service status using access class barred list in mobile communication system
WO2017125025A1 (en) Call method, device, system, and storage medium
US20230180178A1 (en) Paging processing method and apparatus, user equipment, base station, and storage medium
CN111065139B (en) Method and device for starting up and attaching Internet of things device
CN114125974B (en) Cell selection method, device, terminal and storage medium
CN110475315B (en) Network connection control method and related product
WO2023065255A1 (en) Cell reselection method and apparatus, communication device, and storage medium
CN109275125B (en) Resource sharing method, device, equipment and storage medium
KR20210068464A (en) Apparatus and method for performing group communication
CN109120677B (en) File downloading method and related product

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