CN113079545B - Network sharing method and device and electronic equipment - Google Patents

Network sharing method and device and electronic equipment Download PDF

Info

Publication number
CN113079545B
CN113079545B CN202110332861.XA CN202110332861A CN113079545B CN 113079545 B CN113079545 B CN 113079545B CN 202110332861 A CN202110332861 A CN 202110332861A CN 113079545 B CN113079545 B CN 113079545B
Authority
CN
China
Prior art keywords
electronic device
network
target
resource
resources
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
CN202110332861.XA
Other languages
Chinese (zh)
Other versions
CN113079545A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110332861.XA priority Critical patent/CN113079545B/en
Publication of CN113079545A publication Critical patent/CN113079545A/en
Application granted granted Critical
Publication of CN113079545B publication Critical patent/CN113079545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]

Landscapes

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

Abstract

The embodiment of the application discloses a network sharing method, a device and electronic equipment, wherein the method comprises the following steps: sending a first request for acquiring the target resource to at least one second electronic device, wherein the first request is used for the at least one second electronic device to respectively cache sub-resources of the target resource according to the network state of the second electronic device; the first electronic device and the at least one second electronic device are located in the same local area network; at least one sub-resource is accessed to at least one second electronic device over a local area network. According to the embodiment of the application, the convenience of viewing at least part of target resources can be improved.

Description

Network sharing method and device and electronic equipment
Technical Field
The embodiment of the application relates to the field of information processing, in particular to a network sharing method, a network sharing device and electronic equipment.
Background
As electronic devices become more popular, people can view target resources (e.g., video) using the electronic devices anywhere and anytime. However, in the actual use process, the network signal of the electronic device is poor due to factors such as environment, and the target resource that the user wants to view needs to be buffered for a long time.
In carrying out the present application, the applicant has found that there are at least the following problems in the related art:
in case of poor network signals, it is inconvenient to view at least part of the target resources by the electronic device.
Disclosure of Invention
The embodiment of the application provides a network sharing method, a network sharing device and electronic equipment, which can solve the problem that at least part of target resources are inconvenient to view through the electronic equipment under the condition of poor network signals.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a network sharing method, which is applied to a first electronic device, where the method may include:
sending a first request for acquiring the target resource to at least one second electronic device, wherein the first request is used for the at least one second electronic device to respectively cache sub-resources of the target resource according to the network state of the second electronic device; the first electronic device and the at least one second electronic device are located in the same local area network;
at least one sub-resource is accessed to at least one second electronic device over a local area network.
In a second aspect, an embodiment of the present application provides another network sharing method, applied to a second electronic device, where the method may include:
Receiving a first request sent by first electronic equipment for acquiring target resources;
determining a network state of the environment in response to the first request;
caching sub-resources of the target resource according to the network state, so that the first electronic equipment can access the sub-resources through a local area network; the first electronic device and the at least one second electronic device are located in the same local area network.
In a third aspect, an embodiment of the present application provides a network sharing method, where the method is applied to a gateway of a local area network, and the method may include:
receiving a first request sent by first electronic equipment for acquiring target resources;
responding to the first request, forwarding the first request to at least one second electronic device, and respectively caching sub-resources of the target resource by the at least one second electronic device according to the network state of the second electronic device;
receiving at least one sub-resource sent by the second electronic equipment;
at least one sub-resource is forwarded to the first electronic device.
In a fourth aspect, an embodiment of the present application provides a network sharing apparatus, which may include:
the sending module is used for sending a first request for acquiring the target resource to at least one second electronic device, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device; the first electronic device and the at least one second electronic device are located in the same local area network;
And the access module is used for accessing at least one sub-resource to at least one second electronic device through a local area network.
In a fifth aspect, an embodiment of the present application provides another network sharing apparatus, which may include:
the first receiving module is used for receiving a first request sent by the first electronic equipment for acquiring the target resource.
The determining module determines a network state of the environment in response to the first request.
The caching module caches the sub-resources of the target resources according to the network state, so that the first electronic equipment can access the sub-resources through the local area network; the first electronic device and the at least one second electronic device are located in the same local area network.
In a sixth aspect, an embodiment of the present application provides a network sharing apparatus, which may include:
the second receiving module is used for receiving a first request sent by the first electronic equipment and used for acquiring the target resource.
And the forwarding module is used for responding to the first request and forwarding the first request to at least one second electronic device so as to be used for respectively caching the sub-resources of the target resource according to the network state of the second electronic device by the at least one second electronic device.
The second receiving module is further configured to receive at least one sub-resource sent by the second electronic device.
And the forwarding module is also used for forwarding the at least one sub-resource to the first electronic equipment.
In a seventh aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first, second or third aspects when executed by the processor.
In an eighth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first, second or third aspects.
In a ninth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect, the second aspect, or the third aspect.
In the embodiment of the application, a first request for acquiring the target resource is sent to at least one second electronic device which is in a local area network, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
Drawings
The application will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings in which like or similar reference characters designate like or similar features.
Fig. 1 is a flowchart of a network sharing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of turning on a hot spot broadcast according to an embodiment of the present application;
fig. 3 is a schematic diagram of a composition structure of a local area network according to an embodiment of the present application;
fig. 4 is a network sharing schematic diagram based on a local area network according to an embodiment of the present application;
fig. 5 is a flowchart of another network sharing method according to an embodiment of the present application;
fig. 6 is a flowchart of yet another network sharing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network sharing device according to an embodiment of the present application;
fig. 8 is a schematic diagram of another network sharing device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a network sharing device according to another embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application may be practiced otherwise than as specifically illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network sharing method provided by the embodiment of the application can be at least applied to the following application scenes, and is explained below.
When a user accesses a target resource (such as a video) on an electronic device, the electronic device cannot immediately load the complete target resource due to network reasons, and a player adopts a buffer mode for looking down at the same time, namely, partial resources in the downloaded target resource are read from a temporary file in advance when the resources are accessed, so that waiting time is saved, and the user can watch the downloaded target resource without finishing downloading all the resources. Many times, the network signal of the electronic device is not good due to environmental factors, and at this time, the internet surfing speed is slow, so that the target resource which the user wants to watch needs to be buffered for a long time. Similarly, downloading the target resource on the electronic device requires a long time for buffering, and the flow is wasted, so that at least part of the target resource is inconvenient to view through the electronic device.
Aiming at the problems of the related art, the embodiment of the application provides a network sharing method, a device, electronic equipment and a storage medium, which are used for solving the problem that in the related art, at least part of target resources are inconvenient to view through the electronic equipment under the condition of poor network signals.
The method provided by the embodiment of the application can be applied to the application scenes and also can be applied to any scene in which a user needs to manually switch different modes of the control equipment.
According to the method provided by the embodiment of the application, the first request for acquiring the target resource is sent to at least one second electronic device which is in the local area network, so that the at least one second electronic device respectively caches the sub-resources of the target resource according to the network state of the second electronic device; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
Based on the above application scenario, the network sharing method provided by the embodiment of the present application is described in detail below.
Fig. 1 is a flowchart of a network sharing method according to an embodiment of the present application.
As shown in fig. 1, the network sharing method may include steps 110 to 120, where the method is applied to a network sharing device, and specifically includes the following steps:
step 110, a first request for acquiring the target resource is sent to at least one second electronic device, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device; the first electronic device and the at least one second electronic device are located in the same local area network.
Step 120, accessing at least one sub-resource to at least one second electronic device via a local area network.
According to the network sharing method provided by the application, the first request for acquiring the target resource is sent to at least one second electronic device which is in a local area network, so that the at least one second electronic device respectively caches the sub-resources of the target resource according to the network state of the second electronic device; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
The contents of steps 110 to 120 are described below:
first, step 110 is referred to.
The local area network is a local area network formed by local areas, and is characterized in that the distribution area is limited in scope, and can be large or small, and can be the connection between a building and an adjacent building, and can be the connection between offices. The local area network has faster transmission speed than other networks, more stable performance, simple and easy framework and is closed. Local area networks are widely used to connect electronic devices so that they can share resources and exchange information.
Wherein, before the step of sending the first request for acquiring the target resource to the at least one second electronic device, the steps of:
receiving a first input under the condition of starting a hot spot; in response to the first input, a distributed network sharing function is turned on for forming a local area network with the second electronic device through the distributed network sharing function.
Embodiments of the application may be based on the local capabilities of a wireless local area network (Wireless Local Area Networks, WLAN) hotspot or a fifth Generation mobile communication technology (5 th-Generation, 5G). Among them, WLAN hotspots are quite convenient data transmission systems using radio frequency technology to share the internet with other electronic devices with WLAN functions. The electronic device may act as a wireless router broadcasting the wireless network out and then being received by other WLAN enabled devices. The electronic device will use its own data link to perform this function.
The distributed network sharing function may include a hot spot broadcast form, and the electronic device with the distributed network sharing function can be connected to the network to form a local area network by default only by turning on the electronic device.
As shown in fig. 2, before the step of sending a first request for acquiring a target resource to at least one second electronic device, a function of turning on a WLAN hotspot is first required in response to an input of turning on the WLAN hotspot; second, it is necessary to turn on the function of the distributed network sharing in response to the input of the distributed network sharing, and then determine what type of the first electronic device is to be present in the local area network in response to the input of whether to turn on the hot spot broadcast.
If the hot spot broadcast is opened, the first electronic device (local) is determined to be the electronic device sharing the hot spot; if the hotspot broadcast is not turned on, the first electronic device (local) is not determined to be the electronic device sharing the hotspot. The device sharing the hot spot may be any electronic device briefly forming a local area network.
As shown in fig. 3, the electronic device 1, the electronic device 2, the electronic device 3, and the electronic device n constitute a multi-machine communication mechanism including a local area network path and a wide area network (mobile network) network path. Other devices need to be linked to the hotspot network shared by the devices sharing the hotspot, which constitutes a local network path. At this time, all the electronic devices can independently surf the internet through the mobile network.
It will be appreciated that any electronic device in the local area network may initiate a first request for obtaining the target resource as the first electronic device referred to above.
That is, after the LAN is built, the electronic devices in the LAN are all equal. Thus each device may utilize the network for network acceleration, and the number of devices requesting acceleration is not limited, as long as the network is sufficient to accelerate a plurality of requesting electronic devices. The electronic equipment needing network acceleration can apply for network resources to other electronic equipment in the network, and each electronic equipment can dynamically adjust the data size of the cache resources which can help the requesting equipment according to the network condition and the traffic surplus request bandwidth.
Wherein, after the step of sending the first request for acquiring the target resource to the at least one second electronic device, the steps may further include:
receiving resource identification information sent by at least one second electronic device according to the first request; and accessing the target resource to the third electronic equipment through the local area network under the condition that the resource identification information sent by the third electronic equipment in the at least one second electronic equipment comprises the identification information of the target resource.
The target resource related to the above may be an online resource or an offline resource. If the target resource is an online resource, a first request for acquiring the target resource needs to be sent to at least one second electronic device, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device; if the target resource is an offline resource, the target resource can be accessed to the third electronic device comprising the identification information of the target resource directly through the local area network without downloading by the second electronic device.
After sending a first request for acquiring the target resource to at least one second electronic device, the first electronic device may receive resource identification information sent by the at least one second electronic device according to the first request; if the resource identification information sent by the third electronic device in the second electronic device includes the identification information of the target resource, the target resource is indicated to be stored in the third electronic device, and the first electronic device can directly access the target resource to the third electronic device through the local area network.
In a possible embodiment, in a case that a third electronic device in the at least one second electronic device determines a storage target resource according to the first request, receiving feedback information sent by the third electronic device; and accessing the target resource to the third electronic equipment through the local area network according to the feedback information.
If the third electronic device determines to store the target resource according to the first request, the target resource is an offline resource, and downloading is not needed again, and at this time, feedback information sent by the third electronic device can be received. The target resource may be accessed directly over the local area network to a third electronic device comprising identification information of the target resource based on the feedback information. Wherein the feedback information may be used to instruct the third electronic device to determine that the target resource is stored.
The step of sending, to at least one second electronic device, the first request for obtaining the target resource, where the step of caching, by the at least one second electronic device, the sub-resources of the target resource according to the network state of the second electronic device may specifically include the following steps:
and sending a first request for acquiring the target resource to at least one second electronic device, wherein the first request is used for respectively caching sub-resources of the target resource according to the network state of the second electronic device by at least one second electronic device when any electronic device determines that the target resource is not stored according to the first request, and the at least one second electronic device comprises any electronic device.
And sending a first request for acquiring the target resource to at least one second electronic device, wherein the first request is used for respectively caching sub-resources of the target resource according to the network state (mobile network condition and the residual quantity of traffic) of the second electronic device when any electronic device in the at least one second electronic device determines that the target resource is not stored according to the first request. I.e. the fragmented sub-resources of the target resource are cached on each second electronic device,
therefore, the downloading task of the buffer target resource can be dynamically distributed to at least one second electronic device in the local area network, so as to provide network acceleration for the acquisition target resource of the first electronic device in the local area network.
For example, as shown in fig. 4, for example, the electronic device 1 (i.e. the first electronic device) automatically issues a network acceleration application (i.e. the first request) due to a problem such as playing katon, and other devices allocate network resources to the devices according to their own situations to perform network acceleration.
The mobile network quality of the electronic device 2 is good, and sub-resources of the network resources of 500KB/s for caching the target resources are acquired. After receiving the network acceleration request of the device 1, the electronic device 2 determines that the network demand of the electronic device 1 is not high at present, and uses the network resource sharing 400KB/s for caching the sub-resource of the target resource to the electronic device 1.
Likewise, the mobile network of the electronic equipment 3 is better, the network is not consumed, and all 200KB/s network resources are shared to the electronic equipment 1; the mobile network of the electronic equipment 4 is good, the self consumption network is moderate, and 100KB/s network resources in 400KB/s are shared to the electronic equipment 1; the mobile network of the electronic device n is poor, the self-consumption network is moderate, and the network resources are not shared with the electronic device 1.
Namely, the electronic devices 2 to n share a certain network resource for the electronic device 1 according to the self situation to be used for caching the sub-resource of the target resource. Then the electronic device 1 has network capabilities for caching the target resource at this time: 70KB/s+400KB/s+200KB/s+100 KB/s=770 KB/s.
After network acceleration is realized, in order to save more network traffic when file sharing is realized, rapid resource sharing is realized by means of a local intranet transmission function and a data fragmentation processing mechanism.
Wherein, after the step of sending the first request for acquiring the target resource to the at least one second electronic device, the steps may further include:
receiving cache result information of sub-resources of at least one second electronic equipment cache target resource; generating a data netlist according to the cache result information; the data netlist comprises identification information of at least one second electronic device and identification information of sub-resources cached by the second electronic device.
After the at least one second electronic device caches the sub-resource of the target resource, cache result information is generated, and the first electronic device can receive the cache result information of the at least one second electronic device caching the sub-resource of the target resource; generating a data netlist according to the caching result information. The data network table is used for representing the distribution condition of the resources of each electronic device in the local area network, and is convenient for each electronic device in the local area network to access.
The data netlist may include identification information of the second electronic device and identification information of sub-resources cached by the second electronic device. Such as: device A- (01:00-05:00), i.e., identifies that device A downloaded a video clip (child asset) with a playback progress of 01:00-05:00 in the video (target asset). The video clips with the related playing progress of 01:00-05:00 may include: video clips from the playing progress of the target resource from "01:00" to the playing progress of "05:00". The device a may be identification information of the second electronic device, and (01:00-05:00) may be identification information of the sub-resource.
In one possible embodiment, a storage state of a cluster of electronic devices is obtained; determining target electronic equipment from the electronic equipment cluster according to the storage state, wherein the target electronic equipment is used for sending sub-resources of the cached target resources to the target electronic equipment by the electronic equipment except the target electronic equipment in the electronic equipment cluster, and the target electronic equipment is used for synthesizing the target resources according to the sub-resources; under the condition that target electronic equipment synthesizes target resources, accessing the target resources to the target electronic equipment through a local area network; the electronic device cluster includes: a first electronic device and at least one second electronic device.
If an electronic device in the local area network desires not only to view but also to download the target resource locally to form an offline resource, it may be determined that the target electronic device is determined from at least one second electronic device according to the storage status of the second electronic device, and in addition, if which electronic device needs to store the entire target resource, the electronic device that needs to store the entire target resource may be determined as the target electronic device referred to above.
Determining target electronic equipment, wherein the target electronic equipment is used for transmitting sub-resources of the cached target resources to the target electronic equipment by at least one second electronic equipment except the target electronic equipment so as to be used for synthesizing the target resources according to the sub-resources by the target electronic equipment; and under the condition that the target electronic equipment synthesizes the target resource, the target resource is conveniently accessed to the target electronic equipment through a local area network.
It will be appreciated that any electronic device of the local area network may send a resource request access to the target electronic device. For example, if there is a shared video file in the device 1, and the electronic device 1, the electronic device 2, the electronic device 3, … …, etc. all need to access the video file, then the devices can view the video through the local area network.
After the step of generating the data netlist according to the cached result information, the method may further include the following steps:
and under the condition that the request containing the identification information of the target sub-resource is received, accessing the target sub-resource to the second electronic equipment corresponding to the identification information containing the target sub-resource through the local area network according to the data netlist.
The presentation of the target asset may be stored as an offline asset or may be a temporary online asset for only temporary viewing. For fragmented resource access, under the condition that a request containing identification information of a target sub-resource initiated by a user is received, the target sub-resource can be directly accessed to a second electronic device corresponding to the identification information containing the target sub-resource through a local area network according to a data netlist, so that the user can wish to watch the target sub-resource in real time, and the resource discarded after watching is more convenient and faster to access.
Next, step 120 is referred to.
At least one sub-resource is accessed to at least one second electronic device over a local area network. It will be appreciated that any electronic device in the local area network, in addition to the first electronic device, may access at least one sub-resource to at least one second electronic device over the local area network.
In summary, in the embodiment of the present application, by sending a first request for obtaining a target resource to at least one second electronic device that is in a local area network, the first request is used for the at least one second electronic device to buffer sub-resources of the target resource according to a network state of the second electronic device, respectively; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
In addition, based on the above network sharing method, the embodiment of the present application further provides another network sharing method applied to the second electronic device, which is specifically described in detail with reference to fig. 5.
Fig. 5 is a flowchart of another network sharing method according to an embodiment of the present application.
As shown in fig. 5, the network sharing method may include steps 510-530, where the method is applied to a second electronic device, as follows:
step 510 receives a first request sent by a first electronic device to obtain a target resource.
Step 520 determines a network state of the environment in response to the first request.
Step 530, caching sub-resources of the target resource according to the network state, for the first electronic device to access the sub-resources through the local area network; the first electronic device and the at least one second electronic device are located in the same local area network.
According to the network sharing method provided by the application, the network state of the environment is determined by responding to the first request for acquiring the target resource sent by the first electronic equipment in the same local area network, and then the sub-resource of the target resource is cached according to the network state so as to be used for the first electronic equipment to access the sub-resource through the local area network. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
The contents of steps 510-530 are described below:
first, step 510 is referred to.
In one possible embodiment, after step 510, the following steps may be further included:
transmitting resource identification information to the first electronic device in response to the first request; and transmitting the target resource to the first electronic equipment through the local area network under the condition that the resource identification information comprises the identification information of the target resource.
In one possible embodiment, in case it is determined that the target resource is stored, feedback information is sent to the first electronic device for the first electronic device to access the target resource to the second electronic device via the local area network according to the feedback information.
Then, step 520 is referred to.
In response to the first request, a network state of the environment is determined.
Finally, step 530 is involved.
In a possible embodiment, the step of caching the sub-resource of the target resource according to the network state may specifically include the following steps:
receiving sub-resources of a target resource sent by electronic equipment in an electronic equipment cluster; synthesizing a target resource according to the sub-resource, so as to be used for the first electronic equipment to access the target resource; or sending the sub-resource of the cached target resource to the target electronic equipment, so that the target electronic equipment synthesizes the target resource according to the sub-resource; the target electronic device is determined from the electronic device cluster according to the storage state of the electronic device cluster, and the electronic device cluster comprises: a first electronic device and at least one second electronic device.
In summary, in the network sharing method shown in fig. 5, a network state of an environment is determined by responding to a first request for acquiring a target resource sent by a first electronic device in the same local area network, and then a sub-resource of the target resource is cached according to the network state, so that the first electronic device accesses the sub-resource through the local area network. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
In addition, based on the above network sharing method, the embodiment of the present application further provides a network sharing method, which is applied to a gateway of a local area network, where the local area network includes a first electronic device and at least one second electronic device, and is specifically described in detail with reference to fig. 6.
Fig. 6 is a flowchart of yet another network sharing method according to an embodiment of the present application.
As shown in fig. 6, the network sharing method may include steps 610-640, where the method is applied to a gateway of a local area network, as follows:
step 610, a first request sent by a first electronic device for obtaining a target resource is received.
In step 620, in response to the first request, forwarding the first request to the at least one second electronic device for the at least one second electronic device to buffer sub-resources of the target resource according to the network state of the second electronic device, respectively.
Step 630, at least one sub-resource sent by the second electronic device is received.
At step 640, the at least one sub-resource is forwarded to the first electronic device.
According to the network sharing method provided by the application, the first request for acquiring the target resource is forwarded to at least one second electronic device by responding to the first request sent by the first electronic device in the same local area network, so that the at least one second electronic device respectively caches the sub-resources of the target resource according to the network state of the second electronic device. Then, at least one sub-resource sent by the second electronic device is received, and the at least one sub-resource is forwarded to the first electronic device. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
First, step 610 is referred to.
In a possible embodiment, after step 610, the following steps may be further included:
receiving resource identification information sent by at least one second electronic device according to the first request; receiving a target resource sent by a third electronic device under the condition that the resource identification information sent by the third electronic device in at least one second electronic device comprises the identification information of the target resource; forwarding the target resource to the first electronic device.
If the resource identification information sent by the third electronic device in the second electronic device includes the identification information of the target resource, the target resource is indicated to be stored in the third electronic device, and the first electronic device can directly access the target resource to the third electronic device through the local area network.
Step 620 is then involved.
In step 620, the following steps may be specifically included:
and sending a first request for acquiring the target resource to at least one second electronic device, wherein the first request is used for respectively caching sub-resources of the target resource according to the network state of the second electronic device by at least one second electronic device when any electronic device determines that the target resource is not stored according to the first request, and the at least one second electronic device comprises any electronic device.
Next, step 630 is referred to.
In a possible embodiment, receiving feedback information sent by the third electronic device, where the feedback information is used to instruct the third electronic device to determine a storage target resource according to the first request; and forwarding the feedback information to the first electronic device, so that the first electronic device accesses the target resource to the third electronic device through the local area network according to the feedback information.
If the third electronic device determines to store the target resource according to the first request, the target resource is an offline resource, and downloading is not needed again, and at this time, feedback information sent by the third electronic device can be received. The target resource may be accessed directly over the local area network to a third electronic device comprising identification information of the target resource based on the feedback information. Wherein the feedback information may be used to instruct the third electronic device to determine that the target resource is stored.
In one possible embodiment, a storage state of a cluster of electronic devices is obtained; determining target electronic equipment from the electronic equipment cluster according to the storage state, wherein the target electronic equipment is used for sending sub-resources of the cached target resources to the target electronic equipment by the electronic equipment except the target electronic equipment in the electronic equipment cluster, and the target electronic equipment is used for synthesizing the target resources according to the sub-resources; the electronic device cluster includes: a first electronic device and at least one second electronic device; and forwarding the target resource to the first electronic device under the condition that the target electronic device synthesizes the target resource.
Finally, step 640 is involved.
In a possible embodiment, receiving cache result information of sub-resources of the at least one second electronic device cache target resource; generating a data netlist according to the cache result information; the data netlist comprises identification information of at least one second electronic device and identification information of sub-resources cached by the second electronic device.
After the step of generating the data netlist according to the cached result information, the method may further include the following steps:
receiving a request containing identification information of a target sub-resource; according to the data netlist, a request is sent to second electronic equipment corresponding to the identification information of the target sub-resource; receiving a target sub-resource sent by second electronic equipment corresponding to the identification information of the target sub-resource; and forwarding the target sub-resource to the first electronic device.
In summary, in the network sharing method shown in fig. 6, in response to a first request for obtaining a target resource sent by a first electronic device in the same local area network, the first request is forwarded to at least one second electronic device, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device. Then, at least one sub-resource sent by the second electronic device is received, and the at least one sub-resource is forwarded to the first electronic device. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
It should be noted that, in the network sharing method provided in the embodiment of the present application, the execution body may be a network sharing device, or a control module in the network sharing device for executing the loading network sharing method. In the embodiment of the present application, the network sharing device executes the loading network sharing method as an example, which describes the network sharing method provided in the embodiment of the present application.
In addition, based on the network sharing method shown in fig. 1, the embodiment of the application further provides a network sharing device, which is specifically described in detail with reference to fig. 7.
Fig. 7 is a schematic structural diagram of a network sharing device according to an embodiment of the present application.
As shown in fig. 7, the network sharing apparatus 700 may include:
a sending module 710, configured to send a first request for obtaining a target resource to at least one second electronic device, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device, respectively; the first electronic device and the at least one second electronic device are located in the same local area network;
an access module 720 for accessing the at least one sub-resource to the at least one second electronic device via the local area network.
According to the network sharing device provided by the embodiment of the application, the first request for acquiring the target resource is sent to at least one second electronic device which is in a local area network, so that the at least one second electronic device respectively caches the sub-resources of the target resource according to the network state of the second electronic device; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
In one possible embodiment, the network sharing apparatus 700 may further include:
and the receiving module is used for receiving the resource identification information sent by the at least one second electronic device according to the first request.
The accessing module 720 is further configured to access, when the resource identification information sent by the third electronic device in the at least one second electronic device includes identification information of the target resource, the target resource to the third electronic device through the local area network.
In a possible embodiment, the receiving module is further configured to receive feedback information sent by a third electronic device in the at least one second electronic device, where the third electronic device determines, according to the first request, to store the target resource.
The access module 720 is further configured to access the target resource to the third electronic device through the local area network according to the feedback information.
In a possible embodiment, the sending module 710 is further configured to send a first request for obtaining the target resource to at least one second electronic device, where any one of the second electronic devices determines that the target resource is not stored according to the first request, and the at least one second electronic device caches the sub-resources of the target resource according to the network state of the second electronic device, where the at least one second electronic device includes any one of the electronic devices.
In a possible embodiment, the receiving module is further configured to receive cache result information of a sub-resource of the at least one second electronic device cache target resource.
The network sharing apparatus 700 may further include:
the generating module is used for generating a data netlist according to the cache result information; the data netlist comprises identification information of at least one second electronic device and identification information of sub-resources cached by the second electronic device.
In one possible embodiment, the network sharing apparatus 700 may further include:
the acquisition module is used for acquiring the storage state of the electronic equipment cluster.
The determining module is used for determining target electronic equipment from the electronic equipment cluster according to the storage state, and is used for sending the sub-resources of the cached target resources to the target electronic equipment by the electronic equipment except the target electronic equipment in the electronic equipment cluster, so that the target electronic equipment synthesizes the target resources according to the sub-resources; the electronic device cluster includes: a first electronic device and at least one second electronic device.
And the access module 720 is configured to access the target resource to the target electronic device through the local area network in a case where the target electronic device synthesizes the target resource.
In a possible embodiment, the accessing module 720 is further configured to, in a case that a request containing identification information of the target sub-resource is received, access the target sub-resource to a second electronic device corresponding to the identification information containing the target sub-resource through a local area network according to the data netlist.
In a possible embodiment, the receiving module is further configured to receive the first input in case of turning on the hotspot.
The network sharing apparatus 700 may further include:
the starting module is further used for responding to the first input and starting the distributed network sharing function so as to form a local area network with the second electronic equipment through the distributed network sharing function.
In summary, in the embodiment of the present application, by sending a first request for obtaining a target resource to at least one second electronic device that is in a local area network, the first request is used for the at least one second electronic device to buffer sub-resources of the target resource according to a network state of the second electronic device, respectively; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
In addition, based on the network sharing method shown in fig. 5, the embodiment of the application further provides a network sharing device, which is specifically described in detail with reference to fig. 8.
Fig. 8 is a schematic diagram of another network sharing device according to an embodiment of the present application.
As shown in fig. 8, the network sharing apparatus 800 may include:
the first receiving module 810 is configured to receive a first request sent by a first electronic device to obtain a target resource.
A determination module 820 determines a network state of the environment in response to the first request.
The caching module 830 caches sub-resources of the target resource according to the network state, so as to be used for the first electronic device to access the sub-resources through the local area network; the first electronic device and the at least one second electronic device are located in the same local area network.
In one possible embodiment, the network sharing apparatus 800 may further include:
the sending module is used for responding to the first request and sending resource identification information to the first electronic equipment; and transmitting the target resource to the first electronic equipment through the local area network under the condition that the resource identification information comprises the identification information of the target resource.
In a possible embodiment, the sending module is further configured to send feedback information to the first electronic device in case it is determined that the target resource is stored, so that the first electronic device accesses the target resource to the second electronic device through the local area network according to the feedback information.
In one possible embodiment, the caching module 830 may include:
the first receiving module 810 is further configured to receive a sub-resource of the target resource sent by the electronic device in the electronic device cluster.
And the synthesis module is used for synthesizing the target resource according to the sub-resource so as to be used for the first electronic equipment to access the target resource.
The sending module is further used for sending the sub-resources of the cached target resources to the target electronic equipment, so that the target electronic equipment synthesizes the target resources according to the sub-resources; the target electronic device is determined from the electronic device cluster according to the storage state of the electronic device cluster, and the electronic device cluster comprises: a first electronic device and at least one second electronic device.
In summary, in the embodiment of the present application, the network state of the environment is determined by responding to the first request for obtaining the target resource sent by the first electronic device in the same local area network, and then the sub-resource of the target resource is cached according to the network state, so that the first electronic device accesses the sub-resource through the local area network. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
In addition, based on the network sharing method shown in fig. 6, the embodiment of the application further provides a network sharing device, which is specifically described in detail with reference to fig. 9.
Fig. 9 is a schematic diagram of a network sharing device according to another embodiment of the present application.
As shown in fig. 9, the network sharing apparatus 900 may include:
The second receiving module 910 is configured to receive a first request sent by the first electronic device to obtain a target resource.
And the forwarding module 920 is configured to forward the first request to at least one second electronic device in response to the first request, so that the at least one second electronic device caches sub-resources of the target resource according to the network state of the second electronic device.
The second receiving module 910 is further configured to receive at least one sub-resource sent by the second electronic device.
The forwarding module 920 is further configured to forward the at least one sub-resource to the first electronic device.
In a possible embodiment, the second receiving module 910 is further configured to receive resource identification information sent by at least one second electronic device according to the first request.
The second receiving module 910 is further configured to receive, when the resource identification information sent by the third electronic device in the at least one second electronic device includes identification information of the target resource, the target resource sent by the third electronic device.
The forwarding module 920 is further configured to forward the target resource to the first electronic device.
In one possible embodiment, the network sharing apparatus 900 may further include:
the sending module is used for sending a first request for acquiring the target resource to at least one second electronic device, and used for respectively caching sub-resources of the target resource according to the network state of the second electronic device by at least one second electronic device under the condition that any electronic device determines that the target resource is not stored according to the first request, wherein the at least one second electronic device comprises any electronic device.
In a possible embodiment, the second receiving module 910 is further configured to receive feedback information sent by the third electronic device, where the feedback information is used to instruct the third electronic device to determine the storage target resource according to the first request.
The forwarding module 920 is further configured to forward the feedback information to the first electronic device, so that the first electronic device accesses the target resource to the third electronic device through the local area network according to the feedback information.
In one possible embodiment, the network sharing apparatus 900 may further include:
the acquisition module is used for acquiring the storage state of the electronic equipment cluster.
The determining module is used for determining target electronic equipment from the electronic equipment cluster according to the storage state, and is used for sending the sub-resources of the cached target resources to the target electronic equipment by the electronic equipment except the target electronic equipment in the electronic equipment cluster, so that the target electronic equipment synthesizes the target resources according to the sub-resources; the electronic device cluster includes: a first electronic device and at least one second electronic device.
The forwarding module 920 is further configured to forward the target resource to the first electronic device in a case where the target electronic device synthesizes the target resource.
In a possible embodiment, the second receiving module 910 is further configured to receive cache result information of a sub-resource of the at least one second electronic device cache target resource.
The network sharing apparatus 900 may further include:
the generating module is also used for generating a data netlist according to the cache result information; the data netlist comprises identification information of at least one second electronic device and identification information of sub-resources cached by the second electronic device.
In a possible embodiment, the second receiving module 910 is further configured to receive a request that includes identification information of the target sub-resource.
And the sending module is also used for sending a request to the second electronic equipment corresponding to the identification information of the target sub-resource according to the data netlist.
The second receiving module 910 is further configured to receive a target sub-resource sent by a second electronic device corresponding to the identification information of the target sub-resource.
The forwarding module 920 is further configured to forward the target sub-resource to the first electronic device.
In summary, in the embodiment of the present application, in response to a first request for acquiring a target resource sent by a first electronic device in the same local area network, the first request is forwarded to at least one second electronic device, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device. Then, at least one sub-resource sent by the second electronic device is received, and the at least one sub-resource is forwarded to the first electronic device. Therefore, the buffer pressure of the target resource can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resource can be improved.
The network sharing device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and embodiments of the present application are not limited in particular.
The network sharing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The network sharing device provided by the embodiment of the present application can implement each process implemented by the network sharing device in the method embodiment of fig. 2 to fig. 6, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and capable of being executed on the processor 1001, where the program or the instruction implements each process of the embodiment of the chat group creation method described above when executed by the processor 1001, and the same technical effects can be achieved, and for avoiding repetition, a description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 11 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 11011, interface unit 1108, memory 1109, processor 1110, and power supply 1111. Among them, the input unit 1104 may include a graphic processor 11041 and a microphone 11042; the display unit 1106 may include a display panel 11061; the user input unit 1107 may include a touch panel 11071 and other input devices 11072; memory 1109 may include application programs and an operating system.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for powering the various components, and that the power source 1111 may be logically coupled to the processor 1110 by a power management system to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein.
A network module 1102, configured to send a first request for obtaining a target resource to at least one second electronic device, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device; the first electronic device and the at least one second electronic device are located in the same local area network;
a network module 1102 for accessing at least one sub-resource to at least one second electronic device over a local area network.
Optionally, the network module 1102 is further configured to receive resource identification information sent by at least one second electronic device according to the first request.
The network module 1102 is further configured to access, when the resource identification information sent by the third electronic device in the at least one second electronic device includes identification information of the target resource, the target resource to the third electronic device through the local area network.
Optionally, the network module 1102 is further configured to receive feedback information sent by a third electronic device in the at least one second electronic device when the third electronic device determines, according to the first request, to store the target resource.
The network module 1102 is further configured to access the target resource to the third electronic device through the local area network according to the feedback information.
Optionally, the network module 1102 is further configured to send a first request for obtaining the target resource to at least one second electronic device, where the at least one second electronic device is configured to buffer sub-resources of the target resource according to a network state of the second electronic device, and the at least one second electronic device includes any electronic device, where any electronic device determines that the target resource is not stored according to the first request.
Optionally, the network module 1102 is further configured to receive cache result information of a sub-resource of the at least one second electronic device cache target resource.
Processor 1110, further configured to generate a data netlist according to the cached result information; the data netlist comprises identification information of at least one second electronic device and identification information of sub-resources cached by the second electronic device.
Optionally, the network module 1102 is further configured to obtain a storage state of the electronic device cluster.
The processor 1110 is further configured to determine, from the electronic device cluster, a target electronic device according to the storage status, for an electronic device in the electronic device cluster other than the target electronic device to send a sub-resource of the cached target resource to the target electronic device, for the target electronic device to synthesize the target resource according to the sub-resource; the electronic device cluster includes: a first electronic device and at least one second electronic device;
the network module 1102 is further configured to access the target resource to the target electronic device through the local area network in a case where the target electronic device synthesizes the target resource.
Optionally, the network module 1102 is further configured to, when receiving a request including identification information of the target sub-resource, access, according to the data netlist, the target sub-resource to a second electronic device corresponding to the identification information including the target sub-resource through the local area network.
Optionally, the network module 1102 is further configured to receive a first input in case of turning on a hotspot.
The processor 1110 is further configured to, in response to the first input, turn on a distributed network sharing function for forming a local area network with the second electronic device through the distributed network sharing function.
In the embodiment of the application, a first request for acquiring the target resource is sent to at least one second electronic device which is in a local area network, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device; the at least one sub-resource is then accessed to the at least one second electronic device over the local area network. Therefore, the buffer pressure of the target resources can be dispersed to a plurality of second electronic devices in the local area network, and the speed of buffering the target resources can be improved, so that the convenience of viewing at least part of the target resources can be improved.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above network sharing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, a detailed description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the network sharing method embodiment can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (13)

1. A network sharing method, applied to a first electronic device, comprising:
receiving a first input under the condition that the first electronic equipment starts a wireless local area network hot spot or a fifth generation mobile communication technology hot spot;
responsive to the first input, opening a distributed network sharing function to form a local area network with at least one second electronic device through the distributed network sharing function;
sending a first request for acquiring a target resource to the at least one second electronic device, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device, and shares the network resource with the first electronic device;
and accessing at least one sub-resource to the at least one second electronic device according to the network resource shared by the at least one second electronic device through the local area network.
2. The method of claim 1, wherein after the sending the first request to the at least one second electronic device for acquisition of a target resource, the method further comprises:
receiving resource identification information sent by the at least one second electronic device according to the first request;
And accessing the target resource to the third electronic equipment through the local area network under the condition that the resource identification information sent by the third electronic equipment in the at least one second electronic equipment comprises the identification information of the target resource.
3. The method according to claim 1, wherein the method further comprises:
receiving feedback information sent by a third electronic device in the at least one second electronic device under the condition that the third electronic device determines to store the target resource according to the first request;
and accessing the target resource to the third electronic equipment through the local area network according to the feedback information.
4. The method of claim 3, wherein the sending, to the at least one second electronic device, a first request for obtaining a target resource, for the at least one second electronic device to buffer sub-resources of the target resource according to a network state of the second electronic device, respectively, includes:
and sending the first request for acquiring the target resource to the at least one second electronic device, wherein the first request is used for respectively caching sub-resources of the target resource according to the network state of the second electronic device by the at least one second electronic device when any electronic device determines that the target resource is not stored according to the first request, and the at least one second electronic device comprises any electronic device.
5. The method of claim 4, wherein after the sending the first request to the at least one second electronic device for acquisition of a target resource, the method further comprises:
receiving cache result information of sub-resources of the target resource cached by the at least one second electronic device;
generating a data netlist according to the cache result information;
the data netlist comprises identification information of the at least one second electronic device and identification information of the sub-resources cached by the second electronic device.
6. A method according to claim 1 or 3, characterized in that the method further comprises:
acquiring a storage state of an electronic equipment cluster;
determining target electronic equipment from the electronic equipment cluster according to the storage state, wherein the target electronic equipment is used for sending the sub-resources of the cached target resources to the target electronic equipment by the electronic equipment except the target electronic equipment in the electronic equipment cluster, and the target electronic equipment is used for synthesizing the target resources according to the sub-resources; the electronic device cluster includes: the first electronic device and the at least one second electronic device;
And under the condition that the target electronic equipment synthesizes the target resource, accessing the target resource to the target electronic equipment through the local area network.
7. The method of claim 5, wherein after the generating a data netlist from the cached results information, the method further comprises:
and under the condition that a request containing the identification information of the target sub-resource is received, accessing the target sub-resource to a second electronic device corresponding to the identification information containing the target sub-resource through the local area network according to the data netlist.
8. A network sharing method, applied to a second electronic device, comprising:
under the condition that a first electronic device starts a wireless local area network hot spot or a fifth generation mobile communication technology hot spot and forms a local area network with a second electronic device through a distributed network sharing function, a first request sent by the first electronic device and used for acquiring target resources is received;
determining a network state of an environment in response to the first request;
and caching the sub-resources of the target resources according to the network state, and sharing the network resources with the first electronic equipment so as to be used for the first electronic equipment to access the sub-resources through the local area network according to the network resources shared by the second electronic equipment.
9. A network sharing method, applied to a gateway of a local area network, comprising:
under the condition that a first electronic device starts a wireless local area network hot spot or a fifth generation mobile communication technology hot spot and forms a local area network with at least one second electronic device through a distributed network sharing function, a first request sent by the first electronic device and used for acquiring target resources is received;
responding to the first request, forwarding the first request to the at least one second electronic device, so that the at least one second electronic device respectively caches sub-resources of the target resource according to the network state of the second electronic device, and sharing network resources to the first electronic device;
receiving at least one sub-resource sent by the second electronic equipment;
and forwarding the at least one sub-resource to the first electronic device according to the network resource shared by the at least one second electronic device.
10. A network sharing apparatus, applied to a first electronic device, comprising:
the receiving module is used for receiving a first input under the condition of starting a wireless local area network hot spot or a fifth generation mobile communication technology hot spot;
The starting module is used for responding to the first input and starting the distributed network sharing function so as to form a local area network with at least one second electronic device through the distributed network sharing function;
a sending module, configured to send a first request for obtaining a target resource to the at least one second electronic device, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device, and shares the network resource with the first electronic device; wherein the first electronic device and the at least one second electronic device are in the same local area network;
and the access module is used for accessing at least one sub-resource to the at least one second electronic device according to the network resource shared by the at least one second electronic device through the local area network.
11. A network sharing apparatus, applied to a second electronic device, comprising:
the first receiving module is used for receiving a first request sent by the first electronic equipment for acquiring target resources under the condition that the first electronic equipment starts a wireless local area network hot spot or a fifth generation mobile communication technology hot spot and forms a local area network with the second electronic equipment through a distributed network sharing function;
A determining module, configured to determine a network state of an environment in response to the first request;
and the caching module is used for caching the sub-resources of the target resources according to the network state and sharing the network resources with the first electronic equipment so as to be used for the first electronic equipment to access the sub-resources through the local area network according to the network resources shared by the second electronic equipment.
12. A network sharing apparatus for use in a gateway of a local area network, the apparatus comprising: the second receiving module and the forwarding module;
the second receiving module is used for receiving a first request sent by the first electronic device for acquiring target resources under the condition that the first electronic device starts a wireless local area network hot spot or a fifth generation mobile communication technology hot spot and forms a local area network with at least one second electronic device through a distributed network sharing function;
the forwarding module is configured to forward the first request to the at least one second electronic device in response to the first request, so that the at least one second electronic device caches sub-resources of the target resource according to a network state of the second electronic device, and shares network resources with the first electronic device;
The second receiving module is further configured to receive at least one of the sub-resources sent by the second electronic device;
the forwarding module is further configured to forward the at least one sub-resource to the first electronic device according to the network resource shared by the at least one second electronic device.
13. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the network sharing method of any of claims 1-9.
CN202110332861.XA 2021-03-29 2021-03-29 Network sharing method and device and electronic equipment Active CN113079545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110332861.XA CN113079545B (en) 2021-03-29 2021-03-29 Network sharing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110332861.XA CN113079545B (en) 2021-03-29 2021-03-29 Network sharing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113079545A CN113079545A (en) 2021-07-06
CN113079545B true CN113079545B (en) 2023-08-25

Family

ID=76611037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110332861.XA Active CN113079545B (en) 2021-03-29 2021-03-29 Network sharing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113079545B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922539A (en) * 2019-04-30 2019-06-21 Oppo广东移动通信有限公司 Method for connecting network and Related product
CN110049531A (en) * 2019-04-22 2019-07-23 Oppo广东移动通信有限公司 Network resources locating method and relevant apparatus
CN110719319A (en) * 2019-09-18 2020-01-21 维沃移动通信有限公司 Resource sharing method, device, terminal equipment and storage medium
WO2020238751A1 (en) * 2019-05-28 2020-12-03 阿里巴巴集团控股有限公司 Resource access method under serverless architecture, device, system, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049531A (en) * 2019-04-22 2019-07-23 Oppo广东移动通信有限公司 Network resources locating method and relevant apparatus
CN109922539A (en) * 2019-04-30 2019-06-21 Oppo广东移动通信有限公司 Method for connecting network and Related product
WO2020238751A1 (en) * 2019-05-28 2020-12-03 阿里巴巴集团控股有限公司 Resource access method under serverless architecture, device, system, and storage medium
CN110719319A (en) * 2019-09-18 2020-01-21 维沃移动通信有限公司 Resource sharing method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113079545A (en) 2021-07-06

Similar Documents

Publication Publication Date Title
US20220368733A1 (en) Interaction method and apparatus, and electronic device
JP2018505504A (en) Advertisement push system, apparatus and method
US10264053B2 (en) Method, apparatus, and system for data transmission between multiple devices
CN103166941A (en) Data sharing method and device
CN106658064B (en) Virtual gift display method and device
CN114125482B (en) Live broadcast continuous wheat processing method, electronic equipment and storage medium
CN113141524B (en) Resource transmission method, device, terminal and storage medium
CN103716227A (en) Method and device for performing information interaction in instant messenger
CN103259861A (en) Method and system for recording and watching network videos
CN103634660A (en) Method and device for controlling video playing of smart television through mobile communication terminal
USRE44989E1 (en) Method and system for distributed streaming service of portable devices
CN113014972A (en) Screen projection method, device and system
CN108566706B (en) Flash lamp control method and device, terminal equipment and storage medium
CN111465076A (en) Connection method and device of wireless local area network and computer storage medium
WO2018161788A1 (en) Multimedia data sharing method and device
US20220095020A1 (en) Method for switching a bit rate, and electronic device
CN113325980B (en) Control method, control device, electronic equipment and readable storage medium
US20040229655A1 (en) Mobile terminal having time shift function and method thereof
CN113079545B (en) Network sharing method and device and electronic equipment
WO2023246757A1 (en) Computing power service method and apparatus, and terminal
CN112784201B (en) Webpage display method, device, terminal and storage medium
KR20020085747A (en) Realtime/on-demand wireless sightseeing information multicasting system using mobile terminal and method thereof
KR20130077246A (en) Method and system for reducing excessive process of panorama moving picture by cpu on smart-tv
KR100434762B1 (en) On-demand/reservation type wireless multicasting system of using mobile terminal and method thereof
CN100507848C (en) Computer system and data downloading method thereof

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