CN110769366A - Resource sharing method, terminal and server - Google Patents

Resource sharing method, terminal and server Download PDF

Info

Publication number
CN110769366A
CN110769366A CN201911048229.1A CN201911048229A CN110769366A CN 110769366 A CN110769366 A CN 110769366A CN 201911048229 A CN201911048229 A CN 201911048229A CN 110769366 A CN110769366 A CN 110769366A
Authority
CN
China
Prior art keywords
terminal
resource
information
shared
server
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.)
Pending
Application number
CN201911048229.1A
Other languages
Chinese (zh)
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 CN201911048229.1A priority Critical patent/CN110769366A/en
Publication of CN110769366A publication Critical patent/CN110769366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

The embodiment of the invention provides a resource sharing method, a terminal and a server. The method is applied to a first terminal, and comprises the following steps: receiving a first resource sharing operation; responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource sharing request, and sending the resource sharing request to a server; receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range. The embodiment of the invention solves the problem that the media resource is difficult to acquire under the condition that the terminal equipment is in a poor network signal in the prior art.

Description

Resource sharing method, terminal and server
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a resource sharing method, a terminal, and a server.
Background
With the rapid development of mobile communication technology, terminal devices such as smart phones have become indispensable tools in various aspects of people's lives. Various functions of the terminal are gradually improved, various intelligent services can be provided, and great convenience is brought to users.
At present, a terminal device is usually limited by a network condition during a use process, for example, when the terminal device is in a poor network signal condition, if a user needs to smoothly acquire resources such as information, video, images, etc., the following three schemes are usually required: downloading or caching related resources in advance; or other users send the data through Bluetooth, mobile hot spots and other modes; or the terminals sharing the resources are all provided with certain sharing software, so that the multi-user content sharing is realized.
However, in the first scheme, the terminal device cannot handle unexpected poor network signals, such as sudden network failure; even in the expected situation, the user easily forgets to download or cache the resource in advance; and if the user needs to acquire the resources temporarily, the advanced downloading or the caching cannot be realized.
In the second scheme, when resources are acquired by means of Bluetooth, mobile hotspots and the like, the situation that a user is not ripe nearby cannot be processed; and when the number of field acquaintances is small, the content which can be shared is limited, and the user requirements are difficult to meet.
In the third scheme, the shared terminals need to install shared software in advance, and the operation is complicated; the sharing software requires that the user sharing resources designates the file which can be shared by himself, and the user experience is very poor.
Therefore, in the case that the terminal device is in a poor network signal, it is difficult to acquire the media resource.
Disclosure of Invention
Embodiments of the present invention provide a resource sharing method, a terminal, and a server, so as to solve the problem in the prior art that it is difficult to obtain media resources when a terminal device is in a poor network signal.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a resource sharing method, where the method is applied to a first terminal, and the method includes:
receiving a first resource sharing operation;
responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource sharing request, and sending the resource sharing request to a server;
receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
In a second aspect, an embodiment of the present invention provides a resource sharing method, which is applied to a second terminal, and the method includes:
receiving a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
responding to the second resource sharing operation, and acquiring second position information, connection information and resource information of shared resources to be shared of the second terminal;
uploading the second position information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second position information; the second terminal and the first terminal are within a preset distance range.
In a third aspect, an embodiment of the present invention provides a resource sharing method, which is applied to a server, and the method includes:
receiving a resource sharing request sent by a first terminal, wherein the resource sharing request carries first position information of the first terminal;
in response to the request for resource sharing,
determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal;
and generating a shared resource list of the first terminal according to the resource information and the connection information.
In a fourth aspect, an embodiment of the present invention further provides a terminal, where the terminal is a first terminal, and the terminal includes:
a first receiving module, configured to receive a first resource sharing operation;
a first response module, configured to respond to the first resource sharing operation, acquire first location information of the first terminal, carry the first location information in a resource sharing request, and send the resource sharing request to a server;
the list receiving module is used for receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
In a fifth aspect, an embodiment of the present invention further provides a terminal, where the terminal is a second terminal, and the terminal includes:
a second receiving module, configured to receive a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
a second response module, configured to respond to the second resource sharing operation, to obtain second location information, connection information, and resource information of a shared resource to be shared of the second terminal;
the information uploading module is used for uploading the second position information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second position information; the second terminal and the first terminal are within a preset distance range.
In a sixth aspect, an embodiment of the present invention further provides a server, where the server includes:
a third receiving module, configured to receive a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal;
a third response module for responding to the resource sharing request,
determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal;
and the list generating module is used for generating a shared resource list of the first terminal according to the resource information and the connection information.
In a seventh aspect, an embodiment of the present invention further provides a terminal, where the terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the steps in the resource sharing method described above.
In an eighth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps in the resource sharing method described above.
In the embodiment of the invention, the first resource sharing operation is received; responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource acquisition request, and sending the resource acquisition request to a server; receiving a shared resource list sent by the server, wherein the shared resource list comprises resource information of shared resources of a second terminal, the distance between first positions corresponding to first position information of a first terminal is within a preset distance range; after obtaining the shared resource list, the first terminal can select a target resource from the shared resources according to the selection of the user, and connects the second terminal according to the connection information indicated in the shared resource list to obtain the target resource, so that the shared resource can be obtained by using the local area network when the network signal of the operator is poor or the flow is insufficient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a resource sharing method according to an embodiment of the present invention;
FIG. 2 shows a schematic diagram of a first example of embodiment of the invention;
FIG. 3 is a second flowchart of a resource sharing method according to an embodiment of the present invention;
FIG. 4 shows one of the schematic diagrams of a second example of embodiment of the invention;
FIG. 5 shows a second schematic diagram of a second example of an embodiment of the invention;
FIG. 6 is a third flowchart illustrating a resource sharing method according to an embodiment of the present invention;
FIG. 7 shows a flow chart of a third example of an embodiment of the invention;
FIG. 8 shows one of the schematic diagrams of a third example of embodiment of the invention;
FIG. 9 shows a second schematic diagram of a third example of an embodiment of the invention;
fig. 10 shows a block diagram of a first terminal provided by an embodiment of the invention;
fig. 11 shows a block diagram of a second terminal provided by an embodiment of the present invention;
FIG. 12 is a block diagram of a server provided by an embodiment of the present invention;
fig. 13 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a resource sharing method, which is applied to a first terminal, where the first terminal is a terminal that obtains shared resources;
the method comprises the following steps:
step 101, a first resource sharing operation is received.
The first resource sharing operation is used for acquiring shared resources; the first resource sharing operation may be triggered by a user of the first terminal; the resource allocation may also be triggered by the terminal, for example, the terminal receives a preset resource allocation command.
Step 102, responding to the first resource sharing operation, acquiring first location information of the first terminal, carrying the first location information in a resource sharing request, and sending the resource sharing request to a server.
The first terminal acquires first location information of the first terminal in response to the first resource sharing operation, and optionally, the first location information may be a current location parameter of the first terminal, and may also be commuting information or trip information with location directivity; for example, the commute information may be related information of geographical areas where the user is going to work; the trip information may be information that the user takes a vehicle.
The first location information is used for the server to aggregate shared resources for the first terminal; the first terminal sends the first position information to the server, and the server judges which terminals the first terminal can construct a local area network with according to the first position information, so that resource sharing is achieved.
103, receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first location information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
After receiving the first position information, the server screens a second terminal within a preset distance range for the first terminal according to the first position information; optionally, the preset distance range is a maximum distance range in which a local area network can be constructed; the local area network may be in the form of bluetooth, mobile hotspot, infrared or NFC, etc.
The server firstly screens a second terminal meeting the requirement for the first terminal; then, determining shared resources of a second terminal, and further acquiring resource information of the shared resources and connection information of the second terminal; specifically, the resource information may be an abstract, a name, and the like of the shared resource, and the connection information includes an optional connection mode with the second terminal when the shared resource is acquired.
After acquiring the resource information and the connection information, the server summarizes the information into a list, namely a shared resource list; sending the shared resource list to a first terminal; after receiving the shared resource list, the first terminal can select a target resource according to the selection of a user, and then connects a second terminal to which the target resource belongs according to the connection information in the shared resource list to acquire the target resource; in the process of resource sharing, the first terminal and the second terminal can establish local area network connection and transmit resources, so that the problem of acquiring media resources under the condition of poor network signals of an operator can be solved.
As a first example, referring to fig. 2, a first terminal sends a resource sharing request to a server, and the server feeds back a shared resource list to the first terminal.
And the shared resource list takes the position as an establishing condition, and the users of the two terminals can still share the resource through the server even if the users are strangers to each other. And the first terminal and the second terminal are in a one-to-many corresponding relationship, and the shared resource list can comprise shared resources of a plurality of second terminals, so that the limitation of one-to-one sharing is avoided.
In the above embodiments of the present invention, a first resource sharing operation is received; responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource acquisition request, and sending the resource acquisition request to a server; receiving a shared resource list sent by the server, wherein the shared resource list comprises resource information of shared resources of a second terminal, the distance between first positions corresponding to first position information of a first terminal is within a preset distance range; after obtaining the shared resource list, the first terminal can select a target resource from the shared resources according to the selection of a user, and is connected with the second terminal according to the connection information indicated in the shared resource list to obtain the target resource, so that the shared resource can be obtained by using a local area network when the network signal of an operator is poor or the flow is insufficient; the embodiment of the invention solves the problem that the media resource is difficult to acquire under the condition that the terminal equipment is in a poor network signal in the prior art.
Optionally, in an embodiment of the present invention, after step 103, the method includes:
receiving a shared resource selection operation;
selecting a target shared resource from the shared resources in response to the selecting operation;
according to the shared resource list, determining a target terminal to which the target shared resource belongs and target connection information of the target terminal;
and connecting the target terminal according to the target connection information to acquire the target shared resource.
After receiving the shared resource list, the first terminal can select the shared resource by the user; or presetting a selection rule of the shared resource, and automatically selecting by the first terminal according to the selection rule, wherein the selection rule can be that the resource in a certain format is preferentially selected, such as the resource in a video format is preferentially selected; or selecting according to the size of the memory occupied by the resource; thus, the selection operation may be performed by the user of the first terminal, or may be triggered by the terminal itself.
After receiving the selection operation, determining a target terminal to which the selected target shared resource belongs and target connection information of the target terminal according to a shared resource list; and then connecting the target terminal according to the target connection information to acquire the target shared resource.
Still referring to fig. 2, the first terminal sends a resource acquisition request to the second terminal, and waits for the second terminal to feed back the target shared resource.
Further, in this embodiment of the present invention, the connecting the target terminal according to the target connection information to obtain the target shared resource includes:
connecting the target terminal according to the identification number, the connection mode and the connection key of the target terminal indicated in the target connection information; the connection mode comprises at least one of Bluetooth, hot spots, Near Field Communication (NFC) and infrared.
The connection information comprises an identification number of the target terminal, a connection mode and a connection key; when the first terminal is connected with the second terminal, selecting one of the connection modes to connect with the terminal corresponding to the identification number, and sending the connection key to the target terminal; and after the target terminal verifies the first terminal according to the connection key and passes the verification, the target shared resource is sent to the first terminal.
Optionally, in an embodiment of the present invention, after step 103, the method includes:
connecting the second terminal according to the connection information;
and if the connection fails, deleting the shared resource from the shared resource list.
After receiving the shared resource list, the first terminal may attempt to connect to each of the second terminals according to connection information therein; and if the connection fails, deleting the shared resource of the failed second terminal from the shared resource list, so as to avoid occupying the memory of the first terminal.
In an embodiment of the invention, a resource sharing operation is performed by receiving a first resource sharing operation; responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource acquisition request, and sending the resource acquisition request to a server; receiving a shared resource list sent by the server, wherein the shared resource list comprises resource information of shared resources of a second terminal, the distance between first positions corresponding to first position information of a first terminal is within a preset distance range; after obtaining the shared resource list, the first terminal can select a target resource from the shared resources according to the selection of the user, and connects the second terminal according to the connection information indicated in the shared resource list to obtain the target resource, so that the shared resource can be obtained by using the local area network when the network signal of the operator is poor or the flow is insufficient.
Referring to fig. 3, another embodiment of the present invention provides a resource sharing method, where the method is applied to a second terminal, and the second terminal is a terminal providing shared resources;
the method comprises the following steps:
step 301, receiving a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user.
Wherein the second resource sharing operation is used for synchronizing the shared resource of the second terminal to a server; the second resource sharing operation may be triggered by a user of the second terminal; the resource sharing may also be triggered by the terminal, for example, when the terminal receives a preset resource sharing instruction.
Step 302, in response to the second resource sharing operation, obtaining second location information, connection information, and resource information of a shared resource to be shared of the second terminal.
The second terminal responds to the second resource sharing operation to acquire second location information of the second terminal, and optionally, the second location information may be a current location parameter of the second terminal, and may also be commuting information or trip information with location directivity; for example, the commute information may be related information of geographical areas where the user is going to work; the trip information may be information that the user takes a vehicle.
The second location information is used for the server to aggregate the shared resources of the second terminal into the shared resource list of the first terminal; and the second terminal sends the second position information to the server, and the server judges which first terminals the second terminal can construct a local area network with according to the second position information, so that resource sharing is realized.
Specifically, the resource information may be an abstract, a name, and the like of the shared resource to be shared, and the connection information includes an optional connection mode between the first terminal and the second terminal when the first terminal acquires the shared resource to be shared.
Step 303, uploading the second location information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second location information; the second terminal and the first terminal are within a preset distance range.
The second terminal uploads second position information, resource information and connection information to the server; the server firstly matches a first terminal within a preset distance range for a second terminal according to second position information, and then adds resource information and connection information to a shared resource list of the first terminal; optionally, the preset distance range is a maximum distance range in which a local area network can be constructed; the local area network may be in the form of bluetooth, mobile hotspot, infrared or NFC, etc.
After acquiring the resource information and the connection information, the server adds the information to a shared resource list of the first terminal; after receiving the shared resource list, the first terminal can select a target resource according to the selection of a user, and then connects a second terminal to which the target resource belongs according to the connection information in the shared resource list to acquire the target resource; in the process of resource sharing, the first terminal and the second terminal can establish local area network connection and transmit resources, so that the problem of acquiring media resources under the condition of poor network signals of an operator can be solved.
And the shared resource list takes the position as an establishing condition, and the users of the two terminals can still share the resource through the server even if the users are strangers to each other.
In an embodiment of the invention, a second resource sharing operation is received; responding to the second resource sharing operation, and acquiring second position information, connection information and resource information of shared resources to be shared of the second terminal; uploading the second position information, the resource information and the connection information to the server, so that the server adds the second resource information and the connection information to a shared resource list of the first terminal according to the second position information; therefore, when receiving the resource acquisition request of the first terminal, the second terminal sends the requested resource to the first terminal through the local area network, and the purpose that the local area network is used for acquiring the shared resource when the network signal of the operator is poor or the flow is insufficient is achieved. The embodiment of the invention solves the problem that the media resource is difficult to acquire under the condition that the terminal equipment is in a poor network signal in the prior art.
Optionally, in an embodiment of the present invention, after step 303, the method includes:
receiving a resource acquisition request of the first terminal; the resource obtaining request is sent by the first terminal to the second terminal through the connection information;
and responding to the resource acquisition request, and feeding back the target shared resource requested in the resource acquisition request to the first terminal.
The second terminal receives a resource acquisition request sent by the first terminal to the second terminal through the connection information, and feeds back a target shared resource requested in the resource acquisition request to the first terminal; specifically, the connection information includes an identification number, a connection mode, and a connection key of the second terminal; the second terminal acquires the connection key when receiving the resource acquisition request; and after judging that the connection key meets the key requirement preset by the second terminal, confirming that the first terminal passes verification, and sending the target shared resource to the first terminal.
Still referring to fig. 2, the second terminal sends the second location information, the resource information, and the connection information to the server, receives the resource acquisition request of the first terminal, and sends the target shared resource to the first terminal.
Optionally, in this embodiment of the present invention, the connection information includes a connection key, and the connection key is updated according to a preset update cycle;
the method further comprises the following steps:
and sending the updated connection key to the server.
And in order to ensure the data security in the resource sharing process, the connection key of the second terminal is updated according to a preset updating period, and the connection key is synchronized to the server after the update.
Optionally, in an embodiment of the present invention, the method includes:
and acquiring the shared resource of a preset application program of the second terminal.
The preset application program is an APP with a shared resource authority, and the authority can be authorized by a user in advance; the preset application program can be a video program, an audio program, a file manager program and the like. In the embodiment of the present invention, an authorization right of a shared resource is provided for a user, as a second example, referring to fig. 4, where the authorization right includes a system-level right, a shared resource key is set in a system setting menu, and the key is opened to allow a shared resource information to be synchronized with a server and a shared resource to be transmitted to a first terminal; referring to fig. 5, a shared resource key may also be set inside an Application (APP), and after the key is turned on, the shared resource key allows synchronization of shared resource information inside the APP to the server and transmission of a shared resource to the first terminal; the operating system and the APP execute resource sharing operation in the background, and a user does not sense the resource sharing operation.
In an embodiment of the present invention, a second resource sharing operation is received; responding to the second resource sharing operation, and acquiring second position information, connection information and resource information of shared resources to be shared of the second terminal; uploading the second position information, the resource information and the connection information to the server, so that the server adds the second resource information and the connection information to a shared resource list of the first terminal according to the second position information; therefore, when receiving the resource acquisition request of the first terminal, the second terminal sends the requested resource to the first terminal through the local area network, and the purpose that the local area network is used for acquiring the shared resource when the network signal of the operator is poor or the flow is insufficient is achieved.
Referring to fig. 6, another embodiment of the present invention provides a resource sharing method, where the method is applied to a server, and the server is in communication connection with a first terminal and a second terminal;
the method comprises the following steps:
step 601, receiving a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal.
The resource sharing request is used for requesting a server to aggregate shared resources for the first terminal.
Step 602, in response to the resource sharing request, determining a second terminal whose distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal.
The server judges which terminals the first terminal can construct a local area network with according to the first position information in the resource sharing request; optionally, the first location information may be a current location parameter of the first terminal, and may also be commuting information or trip information with location directivity; for example, the commute information may be related information of geographical areas where the user is going to work; the trip information may be information that the user takes a vehicle.
After receiving the first position information, the server screens a second terminal within a preset distance range for the first terminal according to the first position information; optionally, the preset distance range is a maximum distance range in which a local area network can be constructed; the local area network may be in the form of bluetooth, mobile hotspot, infrared or NFC, etc.
The server firstly screens a second terminal meeting the requirement for the first terminal; then, determining shared resources of a second terminal, and further acquiring resource information of the shared resources and connection information of the second terminal; specifically, the resource information may be an abstract, a name, and the like of the shared resource, and the connection information includes an optional connection mode with the second terminal when the shared resource is acquired.
Still referring to fig. 2, the server receives the resource sharing request of the first terminal, and also receives the second location information, the resource information, and the connection information of the second terminal; and screening the second terminal within a preset distance range from the first position information according to the second position information.
Step 603, generating a shared resource list of the first terminal according to the resource information and the connection information.
After acquiring the resource information and the connection information, the server summarizes the information into a list, namely a shared resource list; the shared resource list is sent to a first terminal, so that the first terminal can select a target resource from the shared resource list according to the selection of a user after receiving the shared resource list, and then the second terminal to which the target resource belongs is connected according to the connection information in the shared resource list to obtain the target resource; in the process of resource sharing, the first terminal and the second terminal can establish local area network connection and transmit resources, so that the problem of acquiring media resources under the condition of poor network signals of an operator can be solved.
Optionally, in this embodiment of the present invention, the step of generating the shared resource list of the first terminal according to the resource information and the connection information includes:
determining effective resources in the shared resources according to the format of the shared resources indicated in the resource information;
and generating a shared resource list of the first terminal according to the resource information and the connection information of the effective resources.
The format of the effective resource can be set by the user, for example, set to be a video format, an audio format, a file format, etc.; and invalid resources in the shared resources, such as files like program logs, need to be removed.
In the embodiment of the invention, a resource sharing request sent by a first terminal is received, wherein the resource sharing request carries first position information of the first terminal; responding to the resource sharing request, and acquiring first position information carried in the resource sharing request; determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal; generating a shared resource list of the first terminal according to the resource information and the connection information, and sending the shared resource list to the first terminal, so that the first terminal is connected with a second terminal according to the connection information indicated in the shared resource list after obtaining the shared resource list, and obtaining a target resource; when the network signal of the operator is poor or the flow is insufficient, the shared resource is obtained by using the local area network. The embodiment of the invention solves the problem that the media resource is difficult to acquire under the condition that the terminal equipment is in a poor network signal in the prior art.
As a third example, referring to fig. 7, fig. 7 shows a specific example of applying the resource sharing method provided by the embodiment of the present invention, including the following steps:
step 701, the user authorizes the APP of the second terminal and the permission of resource sharing of the operating system.
On the user layer, a user opens a local area network sharing switch inside the APP, and the switch grants the APP to send the user cache content information to the system as the permission.
And the user turns on a local area network sharing switch of the operating system, and the switch grants the operating system the authority of the user to cache the content information to the server.
Step 702, the APP provides resource information of cached resources inside the APP to the second terminal.
In the APP layer, the APP provides Resource information of cached resources inside the APP to the terminal system, and the Resource information includes basic information such as a title, a thumbnail, a Uniform Resource Locator (URL), and the like.
In step 703, the second terminal summarizes all resource information and generates a connection key.
Preferably, the join key is regenerated every 10 minutes.
In step 704, the second terminal provides the second location information, the connection information, and the resource information of the shared resource to be shared to the server.
The connection information includes a connection key and an optional local area network connection mode of the second terminal.
Step 705, the server receives a resource sharing request of the first terminal, and acquires first location information; and aggregating the shared resources of the second terminal within the preset distance range for the first terminal according to the first position information to generate a shared resource list.
The server summarizes the information of the second terminal received in step 704, may sort each shared resource according to the user preference of the first terminal, generate a shared resource list from the sorted shared resources and the information of the second terminal, and send the shared resource list to the first terminal.
In step 706, the shared resource list sent by the first terminal server attempts to connect to the terminal to which the content belongs, deletes the content that cannot be accessed from the list, and then sequentially displays the connectable resources to the push page.
Specifically, as shown in fig. 8, each shared resource includes a thumbnail, a title, an author, a summary, and the APP.
In step 707, the first terminal receives a shared resource selection operation.
As shown in fig. 8, the user of the first terminal opens the push page, switches to the "nearby" tag, and clicks the local area network sharing content of interest of the user; as shown in fig. 9, the selected content is displayed in an enlarged manner.
Step 708, the first terminal selects a target shared resource from the shared resources according to the shared resource list;
step 709, determining a target terminal to which the target shared resource belongs and target connection information of the target terminal, and connecting the target terminal according to the target connection information.
The first terminal connects with the target terminal according to the information of the identification number, the connection mode, the connection key and the like of the target terminal in the target connection information, and sends a resource acquisition request to the terminal.
Step 710, the target terminal receives the resource acquisition request and verifies the connection key; and sending the target shared resource to the first terminal after the verification is passed.
And after the first terminal receives the target shared resource, the APP corresponding to the target shared resource can be called up to be played or displayed.
In the above example, the server aggregates the resources on the second terminal, and provides the resource sharing service for the user of the first terminal in the case of limited mobile network resources. In addition, the resource sharing operation in the embodiment of the invention reduces the bandwidth pressure of network providers, and particularly, the distance between the coverage edges of two base stations can be set to be 10 minutes along a long-distance passenger line, such as a high-speed rail, so that better service can be provided for users, and the cost is saved.
With the above description of the resource sharing method according to the embodiment of the present invention, the terminal and the server according to the embodiment of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 10, an embodiment of the present invention further provides a terminal, where the terminal is a first terminal 1000, and the first terminal 1000 includes:
a first receiving module 1001, configured to receive a first resource sharing operation;
a first response module 1002, configured to, in response to the first resource sharing operation, obtain first location information of the first terminal 1000, carry the first location information in a resource sharing request, and send the resource sharing request to a server;
a list receiving module 1003, configured to receive a shared resource list sent by the server, where the shared resource list is generated by the server according to the first location information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal is within a preset distance range from the first terminal 1000.
Optionally, in this embodiment of the present invention, after receiving the shared resource list sent by the server, the terminal includes:
the operation receiving module is used for receiving the shared resource selection operation;
a target determination module for selecting a target shared resource from the shared resources in response to the selection operation;
an information determining module, configured to determine, according to the shared resource list, a target terminal to which the target shared resource belongs and target connection information of the target terminal;
and the resource acquisition module is used for connecting the target terminal according to the target connection information to acquire the target shared resource.
Optionally, in this embodiment of the present invention, the resource obtaining module is configured to:
connecting the target terminal according to the identification number, the connection mode and the connection key of the target terminal indicated in the target connection information; the connection mode comprises at least one of Bluetooth, hot spots, Near Field Communication (NFC) and infrared.
Optionally, in this embodiment of the present invention, the terminal includes:
the connection module is used for connecting the second terminal according to the connection information;
and if the connection fails, deleting the shared resource from the shared resource list.
In the above embodiment of the present invention, the first receiving module 1001 receives the first resource sharing operation; in response to the first resource sharing operation, the first response module 1002 obtains first location information of the first terminal 1000, carries the first location information in a resource obtaining request, and sends the resource obtaining request to a server; the list receiving module 1003 receives a shared resource list sent by the server, where the shared resource list includes resource information of shared resources of a second terminal whose distance between first positions corresponding to the first position information of the first terminal 1000 is within a preset distance range; after obtaining the shared resource list, the first terminal 1000 may select a target resource from the shared resources according to a selection of a user, and connect to the second terminal according to the connection information indicated in the shared resource list to obtain the target resource, so as to obtain the shared resource by using the local area network when the network signal of the operator is poor or the traffic is insufficient.
Referring to fig. 11, an embodiment of the present invention further provides a terminal, where the terminal is a second terminal 1100, and the terminal includes:
a second receiving module 1101, configured to receive a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
a second response module 1102, configured to, in response to the second resource sharing operation, obtain second location information, connection information, and resource information of a shared resource to be shared of the second terminal 1100;
an information uploading module 1103, configured to upload the second location information, the resource information, and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second location information; the second terminal 1100 is located within a preset distance range from the first terminal.
Optionally, in this embodiment of the present invention, the terminal includes:
a request receiving module, configured to receive a resource acquisition request of the first terminal; wherein, the resource obtaining request is sent by the first terminal to the second terminal 1100 through the connection information;
and the resource feedback module is used for responding to the resource acquisition request and feeding back the target shared resource requested in the resource acquisition request to the first terminal.
Optionally, in this embodiment of the present invention, the terminal includes:
a resource summarizing module, configured to obtain the shared resource of a preset application program of the second terminal 1100.
Optionally, in this embodiment of the present invention, the connection information includes a connection key, and the connection key is updated according to a preset update cycle;
the terminal further comprises:
and the key updating module is used for sending the updated connection key to the server.
In an embodiment of the present invention, the second receiving module 1101 receives a second resource sharing operation; in response to the second resource sharing operation, the second response module 1102 obtains second location information, connection information, and resource information of a shared resource to be shared of the second terminal 1100; the information uploading module 1103 uploads the second location information, the resource information, and the connection information to the server, so that the server adds the second resource information and the connection information to a shared resource list of the first terminal according to the second location information; in this way, when receiving the resource acquisition request of the first terminal, the second terminal 1100 sends the requested resource to the first terminal through the local area network, so as to acquire the shared resource by using the local area network when the network signal of the operator is poor or the traffic is insufficient.
Referring to fig. 12, an embodiment of the present invention further provides a server 1200, where the server 1200 includes:
a third receiving module 1201, configured to receive a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal;
a third response module 1202, configured to, in response to the resource sharing request, determine a second terminal whose distance between first locations corresponding to the first location information of the first terminal is within a preset distance range, and obtain resource information of shared resources of the second terminal and connection information of the second terminal;
a list generating module 1203, configured to generate a shared resource list of the first terminal according to the resource information and the connection information.
Optionally, in this embodiment of the present invention, the list generating module 1204 is configured to:
determining effective resources in the shared resources according to the format of the shared resources indicated in the resource information;
and generating a shared resource list of the first terminal according to the resource information and the connection information of the effective resources.
In the embodiment of the present invention, a third receiving module 1201 receives a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal; in response to the resource sharing request, the third response module 1202 determines a second terminal whose distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquires resource information of shared resources of the second terminal and connection information of the second terminal; the list generating module 1203 generates a shared resource list of the first terminal according to the resource information and the connection information, and sends the shared resource list to the first terminal, so that the first terminal connects to a second terminal according to the connection information indicated in the shared resource list after obtaining the shared resource list, and obtains a target resource; when the network signal of the operator is poor or the flow is insufficient, the shared resource is obtained by using the local area network.
Fig. 13 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention;
the terminal 1300 includes but is not limited to: a radio frequency unit 1301, a network module 1302, an audio output unit 1303, an input unit 1304, a sensor 1305, a display unit 1306, a user input unit 1307, an interface unit 1308, a memory 1309, a processor 1310, a power supply 1311, and the like. Those skilled in the art will appreciate that the terminal configuration shown in fig. 13 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
As an implementation manner, the radio frequency unit 1301 is configured to receive a first resource sharing operation;
a processor 1310, configured to, in response to the first resource sharing operation, obtain first location information of the first terminal, carry the first location information in a resource sharing request, and send the resource sharing request to a server;
receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
In the embodiment of the invention, a first resource sharing operation is received; responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource acquisition request, and sending the resource acquisition request to a server; receiving a shared resource list sent by the server, wherein the shared resource list comprises resource information of shared resources of a second terminal, the distance between first positions corresponding to first position information of a first terminal is within a preset distance range; after obtaining the shared resource list, the first terminal can select a target resource from the shared resources according to the selection of the user, and connects the second terminal according to the connection information indicated in the shared resource list to obtain the target resource, so that the shared resource can be obtained by using the local area network when the network signal of the operator is poor or the flow is insufficient.
As another implementation manner, the radio frequency unit 1301 is configured to receive a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
a processor 1310, configured to obtain second location information, connection information, and resource information of a shared resource to be shared of the second terminal in response to the second resource sharing operation;
uploading the second position information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second position information; the second terminal and the first terminal are within a preset distance range.
As another implementation manner, the radio frequency unit 1301 is configured to receive a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal;
the processor 1310 is configured to, in response to the resource sharing request, obtain first location information carried in the resource sharing request;
determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal;
and generating a shared resource list of the first terminal according to the resource information and the connection information.
It should be noted that, in this embodiment, the terminal 1300 may implement each process in the method embodiment of the present invention and achieve the same beneficial effects, and for avoiding repetition, details are not described here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 1301 may be configured to receive and transmit signals during a message transmission or call process, and specifically, receive downlink data from a base station and then process the received downlink data to the processor 1310; in addition, the uplink data is transmitted to the base station. In general, radio unit 1301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 1301 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 1302, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 1303 can convert audio data received by the radio frequency unit 1301 or the network module 1302 or stored in the memory 1309 into an audio signal and output as sound. Also, the audio output unit 1303 may also provide audio output related to a specific function performed by the terminal 1300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1304 is used to receive audio or video signals. The input Unit 1304 may include a Graphics Processing Unit (GPU) 13041 and a microphone 13042, and the Graphics processor 13041 processes image data of still pictures or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1306. The image frames processed by the graphic processor 13041 may be stored in the memory 1309 (or other storage medium) or transmitted via the radio frequency unit 1301 or the network module 1302. The microphone 13042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 1301 in case of a phone call mode.
Terminal 1300 can also include at least one sensor 1305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 13061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 13061 and/or backlight when the terminal 1300 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 1305 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 1306 is used to display information input by a user or information provided to the user. The Display unit 1306 may include a Display panel 13061, and the Display panel 13061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 1307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 1307 includes a touch panel 13071 and other input devices 13072. Touch panel 13071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 13071 or near touch panel 13071 using a finger, stylus, or any other suitable object or attachment). The touch panel 13071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1310, and receives and executes commands sent from the processor 1310. In addition, the touch panel 13071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 1307 may include other input devices 13072 in addition to the touch panel 13071. In particular, the other input devices 13072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 13071 can be overlaid on the display panel 13061, and when the touch panel 13071 detects a touch operation on or near the touch panel, the touch operation can be transmitted to the processor 1310 to determine the type of the touch event, and then the processor 1310 can provide a corresponding visual output on the display panel 13061 according to the type of the touch event. Although the touch panel 13071 and the display panel 13061 are shown in fig. 13 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 13071 may be integrated with the display panel 13061 to implement the input and output functions of the terminal, which is not limited herein.
An interface unit 1308 is an interface for connecting an external device to the terminal 1300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Interface unit 1308 can be used to receive input from an external device (e.g., data information, power, etc.) and transmit the received input to one or more elements within terminal 1300 or can be used to transmit data between terminal 1300 and an external device.
The memory 1309 may be used to store software programs as well as various data. The memory 1309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1309 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1310 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 1309 and calling data stored in the memory 1309, thereby monitoring the terminal as a whole. Processor 1310 may include one or more processing units; preferably, the processor 1310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1310.
The terminal 1300 may also include a power supply 1311 (e.g., a battery) for powering the various components, and preferably, the power supply 1311 may be logically coupled to the processor 1310 via a power management system that provides functionality for managing charging, discharging, and power consumption via the power management system.
In addition, terminal 1300 includes some functional modules that are not shown, and are not described herein again.
Preferably, an embodiment of the present invention further provides a terminal, including a processor 1310, a memory 1309, and a computer program stored in the memory 1309 and capable of running on the processor 1310, where the computer program, when executed by the processor 1310, implements each process of the foregoing resource sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the resource sharing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A resource sharing method is applied to a first terminal, and is characterized in that the method comprises the following steps:
receiving a first resource sharing operation;
responding to the first resource sharing operation, acquiring first position information of the first terminal, carrying the first position information in a resource sharing request, and sending the resource sharing request to a server;
receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
2. The resource sharing method according to claim 1, wherein after receiving the shared resource list sent by the server, the method comprises:
receiving a shared resource selection operation;
selecting a target shared resource from the shared resources in response to the selecting operation;
according to the shared resource list, determining a target terminal to which the target shared resource belongs and target connection information of the target terminal;
and connecting the target terminal according to the target connection information to acquire the target shared resource.
3. The resource sharing method according to claim 2, wherein the connecting the target terminal according to the target connection information to obtain the target shared resource comprises:
connecting the target terminal according to the identification number, the connection mode and the connection key of the target terminal indicated in the target connection information; the connection mode comprises at least one of Bluetooth, hot spots, Near Field Communication (NFC) and infrared.
4. The resource sharing method according to claim 1, wherein after receiving the shared resource list sent by the server, the method comprises:
connecting the second terminal according to the connection information;
and if the connection fails, deleting the shared resource from the shared resource list.
5. A resource sharing method is applied to a second terminal, and is characterized in that the method comprises the following steps:
receiving a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
responding to the second resource sharing operation, and acquiring second position information, connection information and resource information of shared resources to be shared of the second terminal;
uploading the second position information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second position information; the second terminal and the first terminal are within a preset distance range.
6. The resource sharing method according to claim 5, wherein after uploading the second location information, the resource information, and the connection information to the server, the method comprises:
receiving a resource acquisition request of the first terminal; the resource obtaining request is sent by the first terminal to the second terminal through the connection information;
and responding to the resource acquisition request, and feeding back the target shared resource requested in the resource acquisition request to the first terminal.
7. The resource sharing method according to claim 5, wherein the method comprises:
and acquiring the shared resource of a preset application program of the second terminal.
8. The resource sharing method according to claim 5, wherein the connection information includes a connection key, and the connection key is updated according to a preset update period;
the method further comprises the following steps:
and sending the updated connection key to the server.
9. A resource sharing method is applied to a server, and is characterized in that the method comprises the following steps:
receiving a resource sharing request sent by a first terminal, wherein the resource sharing request carries first position information of the first terminal;
responding to the resource sharing request, determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal;
and generating a shared resource list of the first terminal according to the resource information and the connection information.
10. The method according to claim 9, wherein the generating a shared resource list of the first terminal according to the resource information and the connection information comprises:
determining effective resources in the shared resources according to the format of the shared resources indicated in the resource information;
and generating a shared resource list of the first terminal according to the resource information and the connection information of the effective resources.
11. A terminal, the terminal being a first terminal, the terminal comprising:
a first receiving module, configured to receive a first resource sharing operation;
a first response module, configured to respond to the first resource sharing operation, acquire first location information of the first terminal, carry the first location information in a resource sharing request, and send the resource sharing request to a server;
the list receiving module is used for receiving a shared resource list sent by the server, wherein the shared resource list is generated by the server according to the first position information; the shared resource list comprises resource information of shared resources and connection information of a second terminal to which the shared resources belong; the second terminal and the first terminal are within a preset distance range.
12. A terminal, the terminal being a second terminal, the terminal comprising:
a second receiving module, configured to receive a second resource sharing operation; wherein the second resource sharing operation is sent by a server or triggered by a user;
a second response module, configured to respond to the second resource sharing operation, to obtain second location information, connection information, and resource information of a shared resource to be shared of the second terminal;
the information uploading module is used for uploading the second position information, the resource information and the connection information to the server, so that the server adds the resource information and the connection information to a shared resource list of the first terminal according to the second position information; the second terminal and the first terminal are within a preset distance range.
13. A server, characterized in that the server comprises:
a third receiving module, configured to receive a resource sharing request sent by a first terminal, where the resource sharing request carries first location information of the first terminal;
a third response module for responding to the resource sharing request,
determining a second terminal of which the distance between first positions corresponding to the first position information of the first terminal is within a preset distance range, and acquiring resource information of shared resources of the second terminal and connection information of the second terminal;
and the list generating module is used for generating a shared resource list of the first terminal according to the resource information and the connection information.
14. A terminal comprising a processor, a memory and a computer program stored on the memory and being executable on the processor, the computer program, when executed by the processor, implementing the steps of the resource sharing method according to any one of claims 1 to 4 or the steps of the resource sharing method according to any one of claims 5 to 8.
CN201911048229.1A 2019-10-30 2019-10-30 Resource sharing method, terminal and server Pending CN110769366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911048229.1A CN110769366A (en) 2019-10-30 2019-10-30 Resource sharing method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911048229.1A CN110769366A (en) 2019-10-30 2019-10-30 Resource sharing method, terminal and server

Publications (1)

Publication Number Publication Date
CN110769366A true CN110769366A (en) 2020-02-07

Family

ID=69333313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911048229.1A Pending CN110769366A (en) 2019-10-30 2019-10-30 Resource sharing method, terminal and server

Country Status (1)

Country Link
CN (1) CN110769366A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291758A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN114124979A (en) * 2020-08-10 2022-03-01 中国移动通信有限公司研究院 Method and device for resource sharing between nodes and nodes
CN115052184A (en) * 2022-06-02 2022-09-13 北京达佳互联信息技术有限公司 Content sharing method and device, electronic equipment, storage medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
US20130054697A1 (en) * 2011-08-26 2013-02-28 Pantech Co., Ltd. System and method for sharing content using near field communication in a cloud network
CN103458057A (en) * 2013-09-30 2013-12-18 小米科技有限责任公司 Resource acquiring method, device and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054697A1 (en) * 2011-08-26 2013-02-28 Pantech Co., Ltd. System and method for sharing content using near field communication in a cloud network
CN102546835A (en) * 2012-03-08 2012-07-04 腾讯科技(深圳)有限公司 Method for sharing contents, terminal, server and system
CN103458057A (en) * 2013-09-30 2013-12-18 小米科技有限责任公司 Resource acquiring method, device and server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124979A (en) * 2020-08-10 2022-03-01 中国移动通信有限公司研究院 Method and device for resource sharing between nodes and nodes
CN112291758A (en) * 2020-10-29 2021-01-29 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN112291758B (en) * 2020-10-29 2023-12-05 维沃移动通信有限公司 File sharing method, file sharing device and electronic equipment
CN115052184A (en) * 2022-06-02 2022-09-13 北京达佳互联信息技术有限公司 Content sharing method and device, electronic equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
EP2437463B1 (en) Apparatus and method for providing service in service zone
CN110166439B (en) Equipment sharing method, terminal, router and server
CN110831109B (en) Network selection method, terminal, network indication method and network side equipment
WO2021104246A1 (en) Network connection method and electronic device
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN109257793B (en) Network connection method, device, equipment and storage medium
CN110769366A (en) Resource sharing method, terminal and server
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
CN107948919B (en) Shared information processing method and mobile terminal
CN108282759B (en) Service processing method and mobile communication terminal
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN109819016B (en) Information issuing method, information receiving method and mobile terminal based on block chain
CN109358940A (en) Desktop synchronization, mobile terminal and computer readable storage medium
CN110475312B (en) Access control method, message broadcasting method and related equipment
CN108009031B (en) Application program control method and mobile terminal
CN110673725A (en) Wearable device control method, wearable device, and computer-readable storage medium
CN111163449B (en) Application sharing method, first electronic device and computer-readable storage medium
CN112752353B (en) Connection method and terminal equipment
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN110958644A (en) Terminal equipment capability information processing method and related equipment
CN112584334B (en) Out-of-order delivery function indication method, control method and related equipment
CN109739406B (en) File sending method and terminal
CN111278114B (en) Power control method, terminal equipment and network side equipment
CN110990029A (en) Application processing method and electronic equipment
CN109165197B (en) File processing method, terminal and server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication