WO2017004894A1 - 一种资源共享方法、终端设备、应用服务器及系统 - Google Patents

一种资源共享方法、终端设备、应用服务器及系统 Download PDF

Info

Publication number
WO2017004894A1
WO2017004894A1 PCT/CN2015/089898 CN2015089898W WO2017004894A1 WO 2017004894 A1 WO2017004894 A1 WO 2017004894A1 CN 2015089898 W CN2015089898 W CN 2015089898W WO 2017004894 A1 WO2017004894 A1 WO 2017004894A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
resource information
resource
terminal device
sharing
Prior art date
Application number
PCT/CN2015/089898
Other languages
English (en)
French (fr)
Inventor
康望星
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017004894A1 publication Critical patent/WO2017004894A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • the present invention relates to a sharing technology in the field of communications, and in particular, to a resource sharing method, a terminal device, an application server, and a system.
  • terminal devices especially smart terminals
  • information sharing between terminals for example, including sharing interfaces between two terminal devices, thereby sharing information in the interface.
  • the mere sharing of information does not provide users with more usage scenarios, which cannot improve the user experience.
  • the embodiments of the present invention provide a resource sharing method, a terminal device, an application server, and a system, which can solve at least the above problems in the prior art.
  • the embodiment of the invention provides a resource sharing method, which is applied to a first terminal device, and the method includes:
  • N resource information corresponding to the N second terminal devices from the application server side where N is a positive integer greater than or equal to 1; wherein the resource information includes at least hardware resource information and/or software resource information;
  • the establishing a connection with the selected target terminal and sharing the software resource or hardware resource of the target terminal includes:
  • the obtaining, by the application server side, the N resource information corresponding to the N second terminal devices includes:
  • M is a positive integer greater than or equal to N;
  • the selecting a target terminal from the N second terminal devices based on the N resource information includes:
  • the method further includes:
  • the embodiment of the invention further provides a resource sharing method, which is applied to an application server, and the method includes:
  • N according to the resource information obtaining request, N resource information corresponding to the N second terminal devices returned by the first terminal device, where N is a positive integer greater than or equal to 1, so that the first terminal device is based on the N resource information, selecting a target terminal from the N second terminal devices.
  • An embodiment of the present invention provides a terminal device, including:
  • a wireless access module configured to initiate a resource information acquisition request to the network side application server
  • a resource sharing management module configured to acquire, from the application server side, N resource information corresponding to the N second terminal devices, where N is a positive integer greater than or equal to 1; wherein the resource information includes at least hardware resource information and / or software resource information; selecting a target terminal from the N second terminal devices based on the N resource information;
  • the direct connection management module is configured to establish a connection with the selected target terminal and share software resources or hardware resources of the target terminal.
  • the terminal device further includes: a session control module, configured to generate a sharing request;
  • the wireless access module is further configured to initiate a sharing request to the target terminal by using the application server, where the sharing request includes at least description information about a software resource or a hardware resource that needs to be shared; Receiving, by the application server, the confirmation information for the sharing request fed back by the target terminal, establishing a connection with the target terminal and sharing software resources or hardware resources of the target terminal.
  • the terminal device further includes: a location acquiring module, configured to obtain the first First location information of a terminal device;
  • the resource sharing management module is further configured to acquire second location information of the M second terminal devices from the application server; M is a positive integer greater than or equal to N; based on the first location information and the M The second location information is used to determine the N second terminal devices that meet the first preset condition; wherein the second preset condition indicates that the distance between the second terminal device and the first terminal device is less than a threshold value; obtaining N resource information corresponding to the N second terminal devices.
  • the resource sharing management module is specifically configured to select, according to the N resource information, at least one second terminal device that meets a second preset condition, where the second preset condition represents the The second terminal device is capable of providing resources required by the first terminal device; and selecting a target terminal from the at least one second terminal device.
  • the terminal device further includes: a resource description storage module, configured to obtain the self resource information;
  • the wireless access module is further configured to send self resource information to the application server.
  • An embodiment of the present invention provides an application server, including:
  • a receiving module configured to receive a resource information acquisition request sent by the first terminal device
  • a sending module configured to: based on the resource information obtaining request, N resource information corresponding to the N second terminal devices returned by the first terminal device, where N is a positive integer greater than or equal to 1, such that the first The terminal device selects a target terminal from the N second terminal devices based on the N resource information.
  • the embodiment of the invention provides a resource sharing system, and the system includes:
  • the first terminal device is configured to initiate a resource information acquisition request to the network side application server, and obtain N resource information corresponding to the N second terminal devices from the application server side, where N is a positive integer greater than or equal to 1;
  • the resource information includes at least hardware resource information And/or software resource information; selecting a target terminal from the N second terminal devices based on the N resource information; establishing a connection with the selected target terminal and sharing software resources or hardware resources of the target terminal ;
  • the application server is configured to receive the resource information acquisition request sent by the first terminal device, and the N resource information corresponding to the N second terminal devices that are returned to the first terminal device according to the resource information acquisition request.
  • the resource sharing method, the terminal device, the application server, and the system provided by the present invention acquire N resource information of the N second terminal devices by using the application server, based on the software resource information and/or hardware in the N resource information.
  • the resource information selects a target terminal, establishes a connection with the selected target terminal, and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of the other terminal devices, and provides more usage scenarios for the terminal device, thereby improving the operation experience of the user.
  • FIG. 1 is a schematic flowchart 1 of a resource sharing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of selecting N second terminal devices according to an embodiment of the present invention.
  • FIG. 3 is a schematic view of an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart 2 of an embodiment of the present invention.
  • FIG. 6 is a second schematic flowchart of a resource sharing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an application server according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a system structure according to an embodiment of the present invention.
  • An embodiment of the present invention provides a resource sharing method, which is applied to a first terminal device, as shown in FIG. 1 , and includes:
  • Step 11 Initiating a resource information acquisition request to the network side application server
  • Step 12 Obtain N resource information corresponding to the N second terminal devices from the application server side, where N is a positive integer greater than or equal to 1; the resource information includes at least hardware resource information and/or software resource information;
  • Step 13 Select a target terminal from the N second terminal devices based on the N resource information.
  • Step 14 Establish a connection with the selected target terminal and share software resources or hardware resources of the target terminal.
  • the resource information obtaining request may include the identifier information of the first terminal device.
  • the sending of the resource information obtaining request enables the application server to learn that the first terminal device has a requirement for acquiring resources of other terminal devices.
  • the resource information includes at least hardware resource information and/or software resource information.
  • the hardware resource information is at least one type of hardware resource information
  • the software resource information is at least one piece of software resource information
  • the hardware resource information may include at least one of the following: a hardware name, a hardware model, a hardware usage, and the like
  • the resource information may include at least one of the following: a software name, a software version number, software usage, and the like.
  • the application server in this embodiment may be an application server in an IP Multimedia Sub-System (IMS).
  • IMS IP Multimedia Sub-System
  • the first terminal device in the embodiment may initiate a resource information acquisition request to an application server in the IMS system by using a Rich Communication Suite (RCS).
  • RCS Rich Communication Suite
  • the first terminal device may access the application server in the IMS through a mobile communication network, or a WIFI.
  • N resource information including:
  • Step 121 Acquire first location information of the first terminal device.
  • Step 122 Acquire second location information of the M second terminal devices from the application server; M is a positive integer greater than or equal to N;
  • Step 123 Determine, according to the first location information and the M second location information, N second terminal devices that meet the first preset condition, where the second preset condition represents the second terminal The distance between the device and the first terminal device is less than a first threshold;
  • Step 124 Obtain N resource information corresponding to the N second terminal devices.
  • the first threshold value may be a value set according to an actual situation, and is set according to a maximum distance that the two terminal devices establish a direct connection, for example, may be within 30 meters.
  • Both the first location information and the second location information may include longitude information and dimension information.
  • the method for acquiring the first location information of the first terminal device may be: enabling the GPS function in the first terminal device, and acquiring the first location information of the first terminal device by using the GPS function.
  • the identifier information of the first terminal device may be associated with the first location information, and sent to the The application server is used to make other second terminal devices use.
  • the first terminal device may acquire the first location information periodically, for example, may acquire and update the first location information every 10 minutes, or may acquire and update the first location information every 5 minutes.
  • the determining, by the first location information and the M second location information, the N second terminal devices that meet the first preset condition may be: based on the first location information and the M Two-position information, respectively calculating a distance between the first terminal device and the M second terminal devices, and selecting a distance from the M second terminal devices with the first terminal device N second terminal devices less than the first threshold.
  • the method for calculating the distance between the first terminal device and the second terminal device may be respectively calculating a longitude difference and a latitude difference between the first terminal device and the second terminal device, and calculating the distance by using the two difference values.
  • the selecting the target terminal from the N second terminal devices based on the N resource information includes:
  • the user can see that the resource information of the device 1 includes the information of the hardware 1 and the hardware 2; the resource information of the device 2 includes the hardware 2 and the software 1 and the software 2; and the resource information of the device 3 includes the hardware 1 and the hardware.
  • the number of selected target terminals in the embodiment may not be limited to one, that is, one target terminal may be selected, or multiple target terminals may be selected.
  • the user may select both the terminal 1 and the terminal 3 as the target terminal, or only one terminal 1 as the target terminal.
  • Establishing a connection with the selected target terminal and sharing software resources or hardware resources of the target terminal including:
  • the description information of the software resource or the hardware resource that needs to be shared in the sharing request may include at least one of the following: a name of a software resource or a hardware resource to be shared, a model of a hardware resource to be shared, or a software resource. version of.
  • the target terminal may parse the sharing request, extract a name or a model of a software resource or a hardware resource from the sharing request, or extract a name of a software resource or a hardware resource and a version, whether the software resource or the hardware resource is in an idle state based on the information in the sharing request, and if yes, the application server may feed back the confirmation information for the sharing request to the first terminal device, otherwise, The application server feeds back the rejection information for the sharing request to the first terminal device.
  • the sending manner of the sharing request in this embodiment may be to edit the sharing request according to the format of the SDP message body.
  • the establishing a connection with the target terminal and sharing the software resource or the hardware resource of the target terminal may include: enabling a direct communication function of the first terminal device, by using the direct connection communication function and the The target terminal establishes a second connection, and acquires software resources or hardware resources of the target terminal by using the second connection; and uses the software resource or hardware resource for processing.
  • the direct connection communication function may be Bluetooth, WIFI, or the like.
  • a usage scenario of the embodiment may be: the first terminal device needs to perform an imaging operation, and the brightness of the flash is lower than the brightness requirement, and the application server detects the plurality of second terminal devices within the direct connection distance; And acquiring the resource information of the plurality of second terminal devices by using the application server; selecting a target terminal capable of providing a flash based on resource information of the plurality of second terminal devices; and initiating a sharing request to the target terminal, if receiving the target terminal Confirmation information of the sharing request, establish a connection with the target terminal, and then control the target The flash of the terminal is turned on; shooting is performed using its own flash and the flash of the target terminal as a light source.
  • the software resources of the target terminal can also be shared, for example, when the first terminal device needs to use instant communication for communication, but the current communication is not installed by itself.
  • the software may detect at least one second terminal device in the direct connection range through the application server; select a target terminal with instant communication software; and after receiving the sharing request to the target terminal, if receiving the confirmation information returned by the target terminal, the target and the target.
  • the terminal establishes a connection; acquires the right to use the instant messaging software of the target terminal through the connection, controls the instant messaging software to be turned on, and performs communication processing.
  • the first terminal device After the operation of the foregoing step 14 in the embodiment ends, that is, after the sharing ends, the first terminal device also sends a message that the sharing session ends to the target terminal, and ends the sharing session between the two terminals.
  • the message that the sharing session ends may be sent to the target terminal through the application server, or may be sent through the direct connection communication unit.
  • the resource sharing processing procedure between the RCS user and the application server of the IMS core network is shown in FIG. 4.
  • the sharing of resources is implemented between the terminals by establishing a sharing session.
  • the terminal A is the first terminal device and the terminal B is the target device.
  • Terminal A acts as a shared initiator, and terminal A initiates a sharing request by sending an INVITE request to terminal B.
  • the INVITE message is sent to the terminal B via an application server dedicated to session establishment of the IMS core network.
  • the SDP message body is carried in the INVITE message, and the content of the message body is the sharing requirement of the originating terminal A.
  • terminal B After receiving the INVITE message, terminal B returns 180Trying to the terminal B to share the request.
  • the request to receive the confirmation message indicates that the sharing request of the terminal A has been received.
  • the terminal B parses the INVITE message sharing request and the SDP message body therein, and obtains the resource and sharing requirement that the originating end wants to share, and compares the specific description information of the resource of the terminal to determine whether to accept the request. If the request is accepted, a response message of 200 OK is returned to the terminal A as the confirmation information for the sharing request, wherein the SDP message body is also carried, and the content thereof is generated according to the specific description information of the resource requested by the terminal B.
  • terminal A After receiving the 200 OK response, terminal A compares the content in the SDP message body with its own sharing requirement. If the requirement is met, the terminal A sends a receiving acknowledgement ACK to the terminal B. At this point, the sharing session between terminals A and B is established, and the next sharing operation can be performed.
  • Both the initiator and the requested end can actively end the sharing.
  • the initiating terminal A actively ends the sharing, and sends a termination request (BYE request) to the terminal B.
  • the terminal B After receiving the request, the terminal B sends a 200 OK response as the response information of the end request.
  • terminal A receives 200 OK, the sharing session ends.
  • the messages in it can also be extended.
  • a field is added in the INVITE message, which is used to indicate what resources the initiator wants to share on the requested end.
  • the SDP message body of the message is extended. The extension of the message body is performed according to the specific shared resource, and the purpose is to be able to clearly describe the sharing requirement of the initiator and the specific information of the shared resource of the requested end.
  • An RCS terminal initiates resource sharing in two scenarios.
  • Scenario 1 Terminal A can select a resource of terminal B to initiate resource sharing by viewing the sharable resources that can be directly connected to terminal B.
  • the terminal A may also initiate resource sharing when the terminal resource cannot meet the requirements of the application, and search in the sharable resources of all directly connectable terminals, and finally find the most The appropriate terminal B's shareable resources then initiate resource sharing to it.
  • Terminal A sends an INVITE message containing a sharing request to terminal B to start establishing a sharing session.
  • the SDP message body of the INVITE message is generated by the session control module according to the sharing requirement.
  • the terminal B After receiving the INVITE message, the terminal B parses the INVITE message and its message body, and receives the sharing request of the terminal A.
  • the terminal B obtains the specific description information of the resource that the terminal A wants to share through the sharing request, and then compares the sharing requirement with the specific description information of the resource to see whether the sharing requirement of the terminal A can be satisfied.
  • the terminal B sends a 200 OK response message to the terminal A as the acknowledgment information for the sharing request, and the message also carries the SDP message body, where is the specific description information of the requested resource of the terminal B.
  • the terminal A After receiving the response message of 200 OK, the terminal A sends an ACK response confirmation message to the terminal B to perform the next sharing operation.
  • terminal A determines that the sharing has failed.
  • the method provided by the embodiment further includes: acquiring the self resource information; and sending the self resource information to the application server, so that the application server provides the terminal device for the terminal device other than the first terminal device Resource information of a terminal device.
  • the other second terminal devices can share the hardware resources or software resources of the first terminal device by transmitting their own resource information to the application server.
  • the N resource information of the N second terminal devices can be obtained by the application server, and the target terminal is selected and selected based on the software resource information and/or the hardware resource information in the N resource information.
  • the target terminal establishes a connection and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of other terminal devices, thereby providing more use scenarios for the terminal device and improving the operation of the user. Experience.
  • An embodiment of the present invention provides a resource sharing method, which is applied to an application server. As shown in FIG. 6, the method includes:
  • Step 61 Receive a resource information acquisition request sent by the first terminal device.
  • Step 62 N resource information corresponding to the N second terminal devices returned by the first terminal device, based on the resource information acquisition request, N is a positive integer greater than or equal to 1, so that the first terminal device Selecting a target terminal from the N second terminal devices based on the N resource information.
  • the resource information includes at least hardware resource information and/or software resource information.
  • the hardware resource information is at least one type of hardware resource information
  • the software resource information is at least one piece of software resource information
  • the hardware resource information may include at least one of the following: a hardware name, a hardware model, a hardware usage, and the like
  • the resource information may include at least one of the following: a software name, a software version number, software usage, and the like.
  • the application server in this embodiment may be an application server in an IP Multimedia Sub-System (IMS).
  • IMS IP Multimedia Sub-System
  • the first terminal device in the embodiment may initiate a resource information acquisition request to an application server in the IMS system by using a Rich Communication Suite (RCS).
  • RCS Rich Communication Suite
  • the first terminal device may access the application server in the IMS through a mobile communication network, or a WIFI.
  • the application server provided by the embodiment may further receive and save location information uploaded by the first terminal device and the N second terminal devices, where the location information includes longitude information and latitude information.
  • the identifier information of the first terminal device may be associated with the first location information, and sent to the The application server is used to make other second terminal devices use.
  • the first terminal device may acquire the first location information periodically, for example, may acquire and update the first location information every 10 minutes, or may acquire and update the first location information every 5 minutes.
  • a usage scenario of the embodiment may be: the first terminal device needs to perform an imaging operation, and the brightness of the flash is lower than the brightness requirement, and the application server detects the plurality of second terminal devices within the direct connection distance; And acquiring the resource information of the plurality of second terminal devices by using the application server; selecting a target terminal capable of providing a flash based on resource information of the plurality of second terminal devices; and initiating a sharing request to the target terminal, if receiving the target terminal
  • the confirmation information of the sharing request establishes a connection with the target terminal, and then controls the flash of the target terminal to be turned on; and uses its own flash and the flash of the target terminal as a light source for shooting.
  • the software resources of the target terminal can also be shared, for example, when the first terminal device needs to use instant communication for communication, but the current communication is not installed by itself.
  • the software may detect at least one second terminal device in the direct connection range through the application server; select a target terminal with instant communication software; and after receiving the sharing request to the target terminal, if receiving the confirmation information returned by the target terminal, the target and the target.
  • the terminal establishes a connection; acquires the right to use the instant messaging software of the target terminal through the connection, controls the instant messaging software to be turned on, and performs communication processing.
  • the first terminal device also sends a message that the sharing session ends to the target terminal, and ends the sharing session between the two terminals.
  • the N resource information of the N second terminal devices can be obtained by the application server, and the target terminal is selected and selected based on the software resource information and/or the hardware resource information in the N resource information.
  • the target terminal establishes a connection and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of other terminal devices, thereby providing more use scenarios for the terminal device and improving the operation of the user. Experience.
  • An embodiment of the present invention provides a terminal device, as shown in FIG. 7, including:
  • a wireless access module 71 configured to initiate a resource information acquisition request to the network side application server;
  • the resource sharing management module 72 is configured to obtain, from the application server side, N resource information corresponding to the N second terminal devices, where N is a positive integer greater than or equal to 1; wherein the resource information includes at least hardware resource information. And/or software resource information; selecting a target terminal from the N second terminal devices based on the N resource information;
  • the direct connection management module 73 is configured to establish a connection with the selected target terminal and share software resources or hardware resources of the target terminal.
  • the terminal device further includes: a resource description storage module 74, configured to acquire the self resource information; correspondingly, the wireless access module 71 is further configured to send the self resource information to the application server.
  • a resource description storage module 74 configured to acquire the self resource information
  • the wireless access module 71 is further configured to send the self resource information to the application server.
  • the resource information obtaining request may include the identifier information of the first terminal device.
  • the sending of the resource information obtaining request enables the application server to learn that the first terminal device has a requirement for acquiring resources of other terminal devices.
  • the resource information includes at least hardware resource information and/or software resource information.
  • the hardware resource information is at least one type of hardware resource information
  • the software resource information is at least one piece of software resource information
  • the hardware resource information may include at least one of the following: a hardware name, a hardware model, a hardware usage, and the like
  • the resource information may include at least one of the following: a software name, a software version number, software usage, and the like.
  • the application server in this embodiment may be an application server in an IP Multimedia Sub-System (IMS).
  • IMS IP Multimedia Sub-System
  • the first terminal device in the embodiment may be connected to the IMS system through a rich communication suite (RCS, Rich Communication Suite).
  • RCS Rich Communication Suite
  • the application server in the system initiates a resource information acquisition request.
  • the first terminal device may access the application server in the IMS through a mobile communication network, or a WIFI.
  • the terminal device further includes: a session control module 75, configured to generate a sharing request; correspondingly, the wireless access module 71 is further configured to initiate a sharing request to the target terminal by using the application server, where the sharing request is At least the description information of the software resource or the hardware resource that is required to be shared is included, where the software resource or the hardware resource is a software resource or a hardware resource; if the target server receives the feedback of the target terminal through the application server The confirmation information of the sharing request establishes a connection with the target terminal and shares software resources or hardware resources of the target terminal.
  • a session control module 75 configured to generate a sharing request
  • the wireless access module 71 is further configured to initiate a sharing request to the target terminal by using the application server, where the sharing request is At least the description information of the software resource or the hardware resource that is required to be shared is included, where the software resource or the hardware resource is a software resource or a hardware resource; if the target server receives the feedback of the target terminal through the application server The confirmation information of the sharing request
  • the resource sharing management module 72 is provided with a resource sharing management application, and the resource sharing management application is responsible for the terminal interacting with the UI of the user in the resource sharing process.
  • the resource sharing management module 72 is specifically configured to complete the functions of tidying up the sharable resources of the terminal, initiating a resource sharing request, receiving and processing a sharing request, and the like.
  • the resource description storage module 74 is configured to store specific information of the terminal hardware and software resources, and the direct connection management module 73 is configured to acquire and manage the directly connectable terminal list.
  • the session control protocol is an implementation of the SIP protocol, and the session description protocol is an implementation of the SDP protocol; each of the lowest access modules corresponds to an access function of each network.
  • the wireless access module in this embodiment may be dedicated to accessing the mobile communication network, that is, the wireless access module includes a mobile communication module.
  • the direct connection communication module may include a WIFI function, a Bluetooth function, and the like.
  • the terminal device further includes: a location obtaining module 76, configured to acquire first location information of the first terminal device; and correspondingly, the resource sharing management module 72 is further configured to acquire M second terminals from the application server.
  • the second location information of the device; M is a positive integer greater than or equal to N; and determining, according to the first location information and the M second location information, N second terminal devices that meet the first preset condition;
  • the second preset condition characterizes the first The distance between the two terminal devices and the first terminal device is less than the first threshold; and the N resource information corresponding to the N second terminal devices are obtained.
  • the first threshold value may be a value set according to an actual situation, and is set according to a maximum distance that the two terminal devices establish a direct connection, for example, may be within 30 meters.
  • Both the first location information and the second location information may include longitude information and dimension information.
  • the location acquiring module may include a GPS function, and the first location information of the first terminal device is obtained by using a GPS function.
  • the identifier information of the first terminal device may be associated with the first location information, and sent to the The application server is used to make other second terminal devices use.
  • the first terminal device may acquire the first location information periodically, for example, may acquire and update the first location information every 10 minutes, or may acquire and update the first location information every 5 minutes.
  • the resource sharing management module 72 is further configured to calculate a distance between the first terminal device and the M second terminal devices based on the first location information and the M second location information, respectively, from the M
  • the N terminal devices select N second terminal devices whose distance from the first terminal device is less than the first threshold.
  • the method for calculating the distance between the first terminal device and the second terminal device may be respectively calculating a longitude difference and a latitude difference between the first terminal device and the second terminal device, and calculating the distance by using the two difference values.
  • the resource sharing management module 72 is specifically configured to select, according to the N resource information, at least one second terminal device that meets a second preset condition, where the second preset condition represents the second terminal.
  • the device is capable of providing resources required by the first terminal device; and selecting a target terminal from the at least one second terminal device.
  • the user can see that the resource information of device one includes hardware one and hard.
  • the second terminal device that meets the first preset condition includes the device one and the device three.
  • the number of selected target terminals in the embodiment may not be limited to one, that is, one target terminal may be selected, or multiple target terminals may be selected.
  • the user may select both the terminal 1 and the terminal 3 as the target terminal, or only one terminal 1 as the target terminal.
  • the wireless access module 71 is specifically configured to initiate a sharing request to the target terminal by using the application server, where the sharing request includes at least description information about software resources or hardware resources that need to be shared;
  • the software resource or hardware resource is a software resource or a hardware resource;
  • the description information of the software resource or the hardware resource that needs to be shared in the sharing request may include at least one of the following: a name of a software resource or a hardware resource to be shared, a software resource to be shared, or a model of a hardware resource or version.
  • the target terminal may parse the sharing request, extract a name or a model of a software resource or a hardware resource from the sharing request, or extract a name of a software resource or a hardware resource and a version, whether the software resource or the hardware resource is in an idle state based on the information in the sharing request, and if yes, the application server may feed back the confirmation information for the sharing request to the first terminal device, otherwise, The application server feeds back the rejection information for the sharing request to the first terminal device.
  • the sending manner of the sharing request in this embodiment may be to edit the sharing request according to the format of the SDP message body.
  • the establishing a connection with the target terminal and sharing the software resource or the hardware resource of the target terminal may include: starting a direct communication unit of the first terminal device, by using the direct connection communication unit and the The target terminal establishes a second connection, and acquires software resources or hardware resources of the target terminal by using the second connection; and uses the software resource or hardware resource for processing.
  • the direct communication unit may be a Bluetooth unit, a WIFI unit, or the like.
  • a usage scenario of the embodiment may be: the first terminal device needs to perform an imaging operation, and the brightness of the flash is lower than the brightness requirement, and the application server detects the plurality of second terminal devices within the direct connection distance; And acquiring the resource information of the plurality of second terminal devices by using the application server; selecting a target terminal capable of providing a flash based on resource information of the plurality of second terminal devices; and initiating a sharing request to the target terminal, if receiving the target terminal
  • the confirmation information of the sharing request establishes a connection with the target terminal, and then controls the flash of the target terminal to be turned on; and uses its own flash and the flash of the target terminal as a light source for shooting.
  • the software resources of the target terminal can also be shared, for example, when the first terminal device needs to use instant communication for communication, but the current communication is not installed by itself.
  • the software may detect at least one second terminal device in the direct connection range through the application server; select a target terminal with instant communication software; and after receiving the sharing request to the target terminal, if receiving the confirmation information returned by the target terminal, the target and the target.
  • the terminal establishes a connection; acquires the right to use the instant messaging software of the target terminal through the connection, controls the instant messaging software to be turned on, and performs communication processing.
  • the direct connection management module 73 also sends a message that the sharing session ends to the target terminal, and ends the sharing session between the two terminals.
  • the message that the sharing session ends may be sent to the target terminal through the application server, or may be sent through the direct connection communication unit.
  • the resource sharing processing procedure between the RCS user and the application server of the IMS core network is shown in FIG. 4.
  • the sharing of resources is implemented between the terminals by establishing a sharing session.
  • the terminal A is the first terminal device and the terminal B is the target device.
  • Terminal A acts as a shared initiator, and terminal A initiates a sharing request by sending an INVITE request to terminal B.
  • the INVITE message is sent to the terminal B via an application server dedicated to session establishment of the IMS core network. Each time a INVITE message arrives, it will return a 100Trying message to the previous node to notify the previous node that the INVITE message has been received.
  • the SDP message body is carried in the INVITE message, and the content of the message body is the sharing requirement of the originating terminal A. After receiving the INVITE message, terminal B returns 180 Trying to terminal B, indicating that the sharing request of terminal A has been received.
  • the terminal B parses the INVITE message sharing request and the SDP message body therein, and obtains the resource and sharing requirement that the originating end wants to share, and compares the specific description information of the resource of the terminal to determine whether to accept the request. If the request is accepted, a 200 OK response is returned to the terminal A, which also carries the SDP message body, and the content thereof is generated according to the specific description information of the resource requested by the terminal B.
  • terminal A After receiving the 200 OK response, terminal A compares the content in the SDP message body with its own sharing requirement. If the requirement is met, the terminal A sends an ACK to the terminal B. At this point, the sharing session between terminals A and B is established, and the next sharing operation can be performed.
  • Both the initiator and the requested end can actively end the sharing.
  • the initiating terminal A actively ends the sharing, and sends a BYE request to the terminal B. After receiving the request, the terminal B sends a 200 OK response. After terminal A receives 200 OK, the sharing session ends.
  • the messages in it can also be extended.
  • INVITE A field is added to the message, which is used to indicate what resources the originator wants to share on the requested end.
  • the SDP message body of the message is extended. The extension of the message body is performed according to the specific shared resource, and the purpose is to be able to clearly describe the sharing requirement of the initiator and the specific information of the shared resource of the requested end.
  • An RCS terminal initiates resource sharing in two scenarios.
  • Scenario 1 Terminal A can select a resource of terminal B to initiate resource sharing by viewing the sharable resources that can be directly connected to terminal B.
  • the resource sharing management application transmits the resource to be shared to the resource sharing management module through the interface parameter by invoking the interface of the resource sharing management module, and initiates resource sharing at the same time.
  • scenario 2 when the terminal A uses an application, it can also initiate resource sharing when the terminal resource cannot meet the requirements of the application.
  • An application that cannot satisfy the requirement initiates resource sharing by calling an interface of the resource sharing management module, and passes the sharing requirement to the resource sharing management module through the interface parameter.
  • the resource sharing management module searches for the sharable resources of all directly connectable terminals according to the sharing requirement, and finally finds a most suitable contiguous resource of the terminal B, and then initiates resource sharing to the same.
  • the resource sharing management module then sends an INVITE message through the session control module to start establishing a sharing session.
  • the SDP message body of the INVITE message is generated by the session control module according to the sharing requirement.
  • the session control module parses the INVITE message and its message body, and notifies the resource sharing management module to receive the resource information acquisition request of the terminal A.
  • the resource sharing management module of the terminal B obtains the resource and the sharing requirement that the terminal A wants to share from the notification message of the session control module, obtains the specific description information of the resource from the resource description storage module, and then describes the sharing requirement and the specific description of the resource. The information is compared to see if it can meet the sharing requirements of terminal A.
  • the resource sharing management module of terminal B accepts the resource letter of terminal A.
  • the session control module sends a 200 OK response message to the terminal A through the wireless access module, and the message also carries the SDP message body, where is the specific description information of the requested resource of the terminal B.
  • the session control module After the terminal A receives the 200 OK message, the session control module sends an ACK confirmation message to the terminal B, and the resource sharing management module notifies the upper layer application sharing session establishment, and can perform the next sharing operation.
  • the resource sharing management module 70 rejects the resource information obtaining request of the terminal A, and the session control module 75 sends a 603 Reject message to the terminal A. After the terminal A receives the message, the resource sharing management module 72 notifies the upper application that the sharing fails.
  • the N resource information of the N second terminal devices can be obtained by the application server, and the target terminal is selected and selected based on the software resource information and/or the hardware resource information in the N resource information.
  • the target terminal establishes a connection and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of the other terminal devices, and provides more usage scenarios for the terminal device, thereby improving the operation experience of the user.
  • This embodiment provides an application server, as shown in FIG. 8, including:
  • the receiving module 81 is configured to receive a resource information acquisition request sent by the first terminal device
  • the sending module 82 is configured to: based on the resource information obtaining request, N resource information corresponding to the N second terminal devices that are returned to the first terminal device, where N is a positive integer greater than or equal to 1, so that the first A terminal device selects a target terminal from the N second terminal devices based on the N resource information.
  • the resource information includes at least hardware resource information and/or software resource information.
  • the hardware resource information is at least one of hardware resource information and software resource information.
  • the software resource information may include at least one of the following: a hardware name, a hardware model, a hardware usage, and the like; the software resource information may include at least one of the following: a software name, a software version number, and a software usage. Situation, etc.
  • the application server in this embodiment may be an application server in an IP Multimedia Sub-System (IMS).
  • IMS IP Multimedia Sub-System
  • the first terminal device in the embodiment may initiate a resource information acquisition request to an application server in the IMS system by using a Rich Communication Suite (RCS).
  • RCS Rich Communication Suite
  • the first terminal device may access the application server in the IMS through a mobile communication network, or a WIFI.
  • the application server provided by the embodiment may further receive and save location information uploaded by the first terminal device and the N second terminal devices, where the location information includes longitude information and latitude information.
  • the identifier information of the first terminal device may be associated with the first location information, and sent to the The application server is used to make other second terminal devices use.
  • the first terminal device may acquire the first location information periodically, for example, may acquire and update the first location information every 10 minutes, or may acquire and update the first location information every 5 minutes.
  • a usage scenario of the embodiment may be: the first terminal device needs to perform an imaging operation, and the brightness of the flash is lower than the brightness requirement, and the application server detects the plurality of second terminal devices within the direct connection distance; And acquiring the resource information of the plurality of second terminal devices by using the application server; selecting a target terminal capable of providing a flash based on resource information of the plurality of second terminal devices; and initiating a sharing request to the target terminal, if receiving the target terminal
  • the confirmation information of the sharing request establishes a connection with the target terminal, and then controls the flash of the target terminal to be turned on; and uses its own flash and the flash of the target terminal as a light source for shooting.
  • the software resources of the target terminal can also be shared, for example, when the first terminal device needs to use instant communication for communication, but the current communication is not installed by itself.
  • the software may detect at least one second terminal device in the direct connection range through the application server; select a target terminal with instant communication software; and after receiving the sharing request to the target terminal, if receiving the confirmation information returned by the target terminal, the target and the target.
  • the terminal establishes a connection; acquires the right to use the instant communication software of the target terminal through the connection, controls the instant communication software that turns on the target terminal, and performs communication processing.
  • the first terminal device also sends a message that the sharing session ends to the target terminal, and ends the sharing session between the two terminals.
  • the N resource information of the N second terminal devices can be obtained by the application server, and the target terminal is selected and selected based on the software resource information and/or the hardware resource information in the N resource information.
  • the target terminal establishes a connection and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of the other terminal devices, and provides more usage scenarios for the terminal device, thereby improving the operation experience of the user.
  • This embodiment provides a resource sharing system, as shown in FIG. 9, including:
  • the first terminal device 91 is configured to initiate a resource information acquisition request to the network side application server, and acquire N resource information corresponding to the N second terminal devices from the application server side, where N is a positive integer greater than or equal to 1;
  • the resource information includes at least hardware resource information and/or software resource information; selecting, according to the N resource information, a target terminal from the N second terminal devices; establishing a connection with the selected target terminal and Sharing software resources or hardware resources of the target terminal;
  • the application server 92 is configured to receive the resource information sent by the first terminal device. And obtaining N resource information corresponding to the N second terminal devices that are returned to the first terminal device, based on the resource information acquisition request.
  • the N resource information of the N second terminal devices can be obtained by the application server, and the target terminal is selected and selected based on the software resource information and/or the hardware resource information in the N resource information.
  • the target terminal establishes a connection and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of the other terminal devices, and provides more usage scenarios for the terminal device, thereby improving the operation experience of the user.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented in the form of hardware. It can also be implemented in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the resource sharing method, the terminal device, the application server, and the system provided by the present invention acquire N resource information of the N second terminal devices by using the application server, based on the software resource information and/or hardware in the N resource information.
  • the resource information selects a target terminal, establishes a connection with the selected target terminal, and shares resources of the target terminal. In this way, the terminal device can share the software resources or hardware resources of the other terminal devices, and provides more usage scenarios for the terminal device, thereby improving the operation experience of the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种资源共享方法、终端设备、应用服务器及系统,所述方法包括:向网络侧应用服务器发起资源信息获取请求;从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。

Description

一种资源共享方法、终端设备、应用服务器及系统 技术领域
本发明涉及通信领域的共享技术,尤其涉及一种资源共享方法、终端设备、应用服务器及系统。
背景技术
近年来,终端设备,尤其是智能终端,越来越多的被用户所使用。随着智能化的提升,逐渐出现了在终端之间进行信息共享的需求,比如,包括两个终端设备之间共享界面,从而进行界面中的信息的共享。但是,仅仅进行信息的共享无法为用户提供更多的使用场景,从而无法提升用户的使用体验。
发明内容
有鉴于此,本发明实施例提供一种资源共享方法、终端设备、应用服务器及系统,能至少解决现有技术中存在的上述问题。
为达到上述目的,本发明的技术方案是这样实现的:
本发明实施例提供了一种资源共享方法,应用于第一终端设备,所述方法包括:
向网络侧应用服务器发起资源信息获取请求;
从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
与选取的所述目标终端建立连接并共享所述目标终端的软件资源或 硬件资源。
上述方案中,所述与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源,包括:
通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;
若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
上述方案中,所述从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,包括:
获取到第一终端设备的第一位置信息;
从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;
基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第二终端设备与所述第一终端设备之间的距离小于第一门限值;
获取到所述N个第二终端设备对应的N个资源信息。
上述方案中,所述基于所述N个资源信息,从所述N个第二终端设备中选取目标终端,包括:
基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;
从所述至少一个第二终端设备中选取目标终端。
上述方案中,所述方法还包括:
获取到自身资源信息;
将自身资源信息发送至所述应用服务器,使得所述应用服务器为除所述第一终端设备外的终端设备提供所述第一终端设备的资源信息。
本发明实施例还提供了一种资源共享方法,应用于应用服务器,所述方法包括:
接收到第一终端设备发来的资源信息获取请求;
基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
本发明实施例提供了一种终端设备,包括:
无线接入模块,配置为向网络侧应用服务器发起资源信息获取请求;
资源共享管理模块,配置为从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
直连管理模块,配置为与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
上述方案中,所述终端设备还包括:会话控制模块,用于生成共享请求;
相应的,所述无线接入模块,还用于通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
上述方案中,所述终端设备还包括:位置获取模块,用于获取到第 一终端设备的第一位置信息;
相应的,资源共享管理模块,还用于从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第二终端设备与所述第一终端设备之间的距离小于第一门限值;获取到所述N个第二终端设备对应的N个资源信息。
上述方案中,所述资源共享管理模块,具体用于基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;从所述至少一个第二终端设备中选取目标终端。
上述方案中,所述终端设备还包括:资源描述存储模块,用于获取到自身资源信息;
相应的,所述无线接入模块,还用于将自身资源信息发送至所述应用服务器。
本发明实施例提供了一种应用服务器,包括:
接收模块,配置为接收到第一终端设备发来的资源信息获取请求;
发送模块,配置为基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
本发明实施例提供了一种资源共享系统,所述系统包括:
第一终端设备,配置为向网络侧应用服务器发起资源信息获取请求;从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息 和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源;
应用服务器,配置为接收到第一终端设备发来的资源信息获取请求;基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息。
本发明所提供的资源共享方法、终端设备、应用服务器及系统,通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操作体验。
附图说明
图1为本发明实施例资源共享方法流程示意图一;
图2为发明实施例选取N个第二终端设备的流程示意图;
图3为本发明实施例示意图;
图4为本发明实施例示例流程一;
图5为本发明实施例示例流程二;
图6为本发明实施例资源共享方法流程示意图二;
图7为本发明实施例终端设备组成结构示意图;
图8为本发明实施例应用服务器组成结构示意图;
图9为本发明实施例系统组成结构示意图。
具体实施方式
下面结合附图及具体实施例对本发明再作进一步详细的说明。
实施例一、
本发明实施例提供了一种资源共享方法,应用于第一终端设备,如图1所示,包括:
步骤11:向网络侧应用服务器发起资源信息获取请求;
步骤12:从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;所述资源信息至少包括有硬件资源信息和/或软件资源信息;
步骤13:基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
步骤14:与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
这里,所述资源信息获取请求中可以包括有所述第一终端设备的标识信息。通过发送所述资源信息获取请求,使得应用服务器能够获知所述第一终端设备有获取其他终端设备的资源的需求。
其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
硬件资源信息为至少一种硬件资源信息、软件资源信息为至少一种软件资源信息;其中,所述硬件资源信息可以至少包括以下之一:硬件名称、硬件型号、硬件使用情况等;所述软件资源信息可以至少包括以下之一:软件名称、软件版本号、软件使用情况等。
本实施例中所述应用服务器可以为IP多媒体子系统(IMS,IP Multimedia Sub-System)中的应用服务器。本实施例中所述第一终端设备可以通过富通信套件(RCS,Rich Communication Suite),向IMS系统中的应用服务器发起资源信息获取请求。另外,所述第一终端设备可以通过移动通信网络、或者WIFI等方式接入到IMS中的应用服务器。
上述步骤12所述从所述应用服务器侧获取到N个第二终端设备对 应的N个资源信息,包括:
步骤121:获取到第一终端设备的第一位置信息;
步骤122:从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;
步骤123:基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第二终端设备与所述第一终端设备之间的距离小于第一门限值;
步骤124:获取到所述N个第二终端设备对应的N个资源信息。
其中,所述第一门限值可以为根据实际情况设置的数值,根据两个终端设备建立直连的最大距离来设置,比如,可以为30米以内。
所述第一位置信息以及所述第二位置信息中均可以包括经度信息以及维度信息。
另外,获取到所述第一终端设备的第一位置信息的方法可以为:开启所述第一终端设备中的GPS功能,通过GPS功能获取到所述第一终端设备的第一位置信息。
优选地,本实施例中所述第一终端设备获取到所述第一位置信息之后,还可以将所述第一终端设备的标识信息与所述第一位置信息进行关联,并发送至所述应用服务器以使得其他第二终端设备使用。
进一步地,第一终端设备可以为周期性的获取到第一位置信息,比如,可以为每10分钟获取并更新一次第一位置信息,或者可以为每5分钟获取并更新一次第一位置信息。
其中,所述基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备,可以为:基于所述第一位置信息以及M个第二位置信息,分别计算第一终端设备与M个第二终端设备之间的距离,从M个第二终端设备中选取与第一终端设备之间的距 离小于第一门限值的N个第二终端设备。
所述计算第一终端设备与第二终端设备之间的距离的方式可以为分别计算第一终端设备与第二终端设备的经度差值以及纬度差值,利用两个差值计算得到距离。
所述基于所述N个资源信息,从所述N个第二终端设备中选取目标终端,包括:
基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;
从所述至少一个第二终端设备中选取目标终端。
比如,图3所示,用户可以看到设备一的资源信息包括硬件一、硬件二的信息;设备二的资源信息包括硬件二以及软件一和软件二;设备三的资源信息包括硬件一、硬件二、软件一和软件二。如果用户需要共享硬件一的资源,那么符合第一预设条件的第二终端设备就包括有设备一和设备三。
另外,可以理解的是,本实施例中所述选取的目标终端的数量可以不限于一个,即,可以选取一个目标终端,也可以选取多个目标终端。以图3为例,用户可以选择终端一和终端三同时作为目标终端,也可以仅选择一个终端一作为目标终端。
所述与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源,包括:
通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;
若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件 资源或硬件资源。
其中,所述共享请求中的针对所需要共享的软件资源或硬件资源的描述信息可以至少包括以下之一:所要共享的软件资源或硬件资源的名称、所要共享的硬件资源的型号、或软件资源的版本。
相应的,所述目标终端接收到所述共享请求之后,可以解析所述共享请求,从所述共享请求中提取软件资源或硬件资源的名称、型号,或者,提取软件资源或硬件资源的名称和版本,基于所述共享请求中的信息分析所述软件资源或硬件资源是否处于空闲状态,若是,则可以通过应用服务器向所述第一终端设备反馈针对所述共享请求的确认信息,否则,通过应用服务器向所述第一终端设备反馈针对所述共享请求的拒绝信息。
优选地,本实施例中所述共享请求的发送方式可以为按照SDP消息体的格式编辑共享请求。
进一步的,所述与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源可以包括:开启所述第一终端设备的直连通信功能,通过所述直连通信功能与所述目标终端建立第二连接,通过所述第二连接获取到所述目标终端的软件资源或硬件资源;使用所述软件资源或硬件资源进行处理。
其中,所述直连通信功能可以为蓝牙、WIFI等。
本实施例的一个使用场景可以为:所述第一终端设备需要进行摄像操作,自身的闪光灯的亮度低于亮度需求,则通过应用服务器检测到直连距离之内的多个第二终端设备;再通过应用服务器获取所述多个第二终端设备的资源信息;基于所述多个第二终端设备的资源信息,选取能够提供闪光灯的目标终端;向目标终端发起共享请求,若接收到目标终端的共享请求的确认信息,则与目标终端建立连接,然后控制所述目标 终端的闪光灯开启;使用自身的闪光灯以及目标终端的闪光灯作为光源进行拍摄。
上述场景为一个硬件资源共享的实施例,通过采用本发明提供的方案,还可以共享目标终端的软件资源,比如:当第一终端设备需要使用即时通信进行通信,但是,当前自身未安装即时通信软件,可以通过应用服务器检测直连范围内的至少一个第二终端设备;选取一个具备即时通信软件的目标终端;向目标终端发起共享请求后,若接收到目标终端返回的确认信息,则与目标终端建立连接;通过连接获取到目标终端的即时通信软件的使用权,控制开启即时通信软件并且进行通信处理。
另外,本实施例上述步骤14操作结束后,即共享结束后,第一终端设备还会发送一个共享会话结束的消息给目标终端,结束两个终端间的共享会话。
其中,所述共享会话结束的消息可以为通过应用服务器向目标终端发送,或者,可以为通过直连通信单元发送。
结合图4给出RCS用户与IMS核心网的应用服务器之间的资源共享处理流程,在本实施例中,终端之间通过建立共享会话来实现资源共享。
假设图中,终端A为第一终端设备,终端B为目标设备。
终端A作为共享发起端,终端A通过向终端B发送INVITE请求来发起共享请求。INVITE消息经由IMS核心网的专门负责会话建立的应用服务器发送至终端B。INVITE消息每到达一个节点,都会向上一个节点返回100Trying的报文即接收确认消息用以通知上一节点已经收到了INVITE消息。在INVITE报文中携带了SDP消息体,消息体内容为发起终端A的共享需求。
终端B在收到INVITE报文后,向终端B返回180Trying即共享请 求接收确认消息表示已经收到了终端A的共享请求。
终端B解析INVITE消息共享请求以及其中的SDP消息体,从中获取发起端想要共享的资源和共享需求,对比本终端该资源的具体描述信息,决定是否接受请求。如果接受请求,则向终端A返回200OK的响应消息作为针对所述共享请求的确认信息,其中也携带SDP消息体,其内容则根据终端B被请求的资源的具体描述信息生成。
终端A收到200OK响应后,将SDP消息体里的内容与自身的共享需求进行对比,如果满足需求,则再发送接收确认ACK给终端B。至此,终端A与B之间的共享会话建立,可以进行下一步的共享操作。
无论是发起端还是被请求端都可以主动结束共享。在本实施例中,发起终端A主动结束共享,发送结束请求(BYE请求)给终端B,终端B收到请求后,发送200OK响应作为结束请求的响应信息。终端A收到200OK后,共享会话结束。
在建立共享会话时,还可以对其中的报文进行扩展。首先在INVITE报文中增加字段,该字段用来说明,发起端想要共享被请求端的什么资源。其次,对报文的SDP消息体进行扩展。对消息体的扩展,要根据具体的共享资源进行,目的是能够将发起端的共享需求和被请求端的共享资源的具体信息描述清楚。
结合图5给出RCS终端间共享资源的实施例。
一个RCS终端在两种场景下会发起资源共享。场景一、终端A通过查看可直连终端B的可共享资源,可以选择终端B的某个资源发起资源共享。或者,场景二、终端A在使用某个应用的过程中,发现本终端资源无法满足应用的要求时也可以发起资源共享,在所有可直连终端的可共享资源中进行查找,最终找到一个最合适的终端B的可共享资源,然后向其发起资源共享。
终端A发送INVITE消息在其中包含共享请求至终端B,开始建立共享会话。INVITE消息的SDP消息体由会话控制模块根据共享需求生成。
终端B在收到INVITE消息后,解析INVITE消息及其消息体,接收到终端A的共享请求。
终端B通过共享请求获取终端A想要共享的资源以及共享需求,获取该资源的具体描述信息,然后将共享需求和该资源的具体描述信息进行比对,看是否能满足终端A的共享需求;
如果可以满足,则终端B向终端A发送200OK的响应消息作为针对所述共享请求的确认信息,消息中同样携带SDP消息体,其中是终端B被请求资源的具体描述信息。终端A接收到200OK的响应消息后,向终端B发送ACK响应确认消息,进行下一步的共享操作。
如果终端B不能满足A的共享需求,则拒绝终端A的资源信息获取请求,向终端A发送603Reject消息。终端A收到该消息后,确定共享失败。
优选地,本实施例提供的方法还包括:获取到自身资源信息;将自身资源信息发送至所述应用服务器,使得所述应用服务器为除所述第一终端设备外的终端设备提供所述第一终端设备的资源信息。通过将自身的资源信息发送至应用服务器,使得其他第二终端设备能够共享第一终端设备的硬件资源或者软件资源。
可见,通过采用上述方案,就能够通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操 作体验。
实施例二、
本发明实施例提供了一种资源共享方法,应用于应用服务器,如图6所示,所述方法包括:
步骤61:接收到第一终端设备发来的资源信息获取请求;
步骤62:基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
硬件资源信息为至少一种硬件资源信息、软件资源信息为至少一种软件资源信息;其中,所述硬件资源信息可以至少包括以下之一:硬件名称、硬件型号、硬件使用情况等;所述软件资源信息可以至少包括以下之一:软件名称、软件版本号、软件使用情况等。
本实施例中所述应用服务器可以为IP多媒体子系统(IMS,IP Multimedia Sub-System)中的应用服务器。本实施例中所述第一终端设备可以通过富通信套件(RCS,Rich Communication Suite),向IMS系统中的应用服务器发起资源信息获取请求。另外,所述第一终端设备可以通过移动通信网络、或者WIFI等方式接入到IMS中的应用服务器。
优选地,本实施例提供的应用服务器还可以接收并保存第一终端设备以及N个第二终端设备上传的位置信息;其中,所述位置信息包括经度信息以及纬度信息。
优选地,本实施例中所述第一终端设备获取到所述第一位置信息之后,还可以将所述第一终端设备的标识信息与所述第一位置信息进行关联,并发送至所述应用服务器以使得其他第二终端设备使用。
进一步地,第一终端设备可以为周期性的获取到第一位置信息,比如,可以为每10分钟获取并更新一次第一位置信息,或者可以为每5分钟获取并更新一次第一位置信息。
本实施例的一个使用场景可以为:所述第一终端设备需要进行摄像操作,自身的闪光灯的亮度低于亮度需求,则通过应用服务器检测到直连距离之内的多个第二终端设备;再通过应用服务器获取所述多个第二终端设备的资源信息;基于所述多个第二终端设备的资源信息,选取能够提供闪光灯的目标终端;向目标终端发起共享请求,若接收到目标终端的共享请求的确认信息,则与目标终端建立连接,然后控制所述目标终端的闪光灯开启;使用自身的闪光灯以及目标终端的闪光灯作为光源进行拍摄。
上述场景为一个硬件资源共享的实施例,通过采用本发明提供的方案,还可以共享目标终端的软件资源,比如:当第一终端设备需要使用即时通信进行通信,但是,当前自身未安装即时通信软件,可以通过应用服务器检测直连范围内的至少一个第二终端设备;选取一个具备即时通信软件的目标终端;向目标终端发起共享请求后,若接收到目标终端返回的确认信息,则与目标终端建立连接;通过连接获取到目标终端的即时通信软件的使用权,控制开启即时通信软件并且进行通信处理。
另外,本实施例上述操作结束后,即共享结束后,第一终端设备还会发送一个共享会话结束的消息给目标终端,结束两个终端间的共享会话。
可见,通过采用上述方案,就能够通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操 作体验。
实施例三、
本发明实施例提供了一种终端设备,如图7所示,包括:
无线接入模块71,用于向网络侧应用服务器发起资源信息获取请求;
资源共享管理模块72,用于从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
直连管理模块73,用于与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
优选地,所述终端设备还包括:资源描述存储模块74,用于获取到自身资源信息;相应的,所述无线接入模块71,还用于将自身资源信息发送至所述应用服务器。
这里,所述资源信息获取请求中可以包括有所述第一终端设备的标识信息。通过发送所述资源信息获取请求,使得应用服务器能够获知所述第一终端设备有获取其他终端设备的资源的需求。
其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
硬件资源信息为至少一种硬件资源信息、软件资源信息为至少一种软件资源信息;其中,所述硬件资源信息可以至少包括以下之一:硬件名称、硬件型号、硬件使用情况等;所述软件资源信息可以至少包括以下之一:软件名称、软件版本号、软件使用情况等。
本实施例中所述应用服务器可以为IP多媒体子系统(IMS,IP Multimedia Sub-System)中的应用服务器。本实施例中所述第一终端设备可以通过富通信套件(RCS,Rich Communication Suite),向IMS系 统中的应用服务器发起资源信息获取请求。另外,所述第一终端设备可以通过移动通信网络、或者WIFI等方式接入到IMS中的应用服务器。
所述终端设备还包括:会话控制模块75,用于生成共享请求;相应的,所述无线接入模块71,还用于通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息,其中,所述软件资源或硬件资源为软件资源或硬件资源;若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
其中,所述资源共享管理模块72中设置有资源共享管理应用,通过所述资源共享管理应用负责终端在资源共享过程中与用户的UI交互。另外,所述资源共享管理模块72,具体用于完成整理本终端的可共享资源、发起资源共享请求、接收和处理共享请求等功能。
所述资源描述存储模块74,用于存储终端软硬件资源的具体信息;直连管理模块73,用于获取和管理可直连终端列表。优选地,所述会话控制协议是对SIP协议的实现,会话描述协议是对SDP协议的实现;最下层的各个接入模块,对应各个网络的接入功能。
另外,本实施例中所述无线接入模块可以专用于接入移动通信网络,也就是说,无线接入模块中包括有移动通信模块。所述直连通信模块中可以包括有WIFI功能以及蓝牙功能等。
所述终端设备还包括:位置获取模块76,用于获取到第一终端设备的第一位置信息;相应的,资源共享管理模块72,还用于从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第 二终端设备与所述第一终端设备之间的距离小于第一门限值;获取到所述N个第二终端设备对应的N个资源信息。
其中,所述第一门限值可以为根据实际情况设置的数值,根据两个终端设备建立直连的最大距离来设置,比如,可以为30米以内。
所述第一位置信息以及所述第二位置信息中均可以包括经度信息以及维度信息。
另外,所述位置获取模块中可以包括有GPS功能,通过GPS功能获取到所述第一终端设备的第一位置信息。
优选地,本实施例中所述第一终端设备获取到所述第一位置信息之后,还可以将所述第一终端设备的标识信息与所述第一位置信息进行关联,并发送至所述应用服务器以使得其他第二终端设备使用。
进一步地,第一终端设备可以为周期性的获取到第一位置信息,比如,可以为每10分钟获取并更新一次第一位置信息,或者可以为每5分钟获取并更新一次第一位置信息。
其中,所述资源共享管理模块72,还用于基于所述第一位置信息以及M个第二位置信息,分别计算第一终端设备与M个第二终端设备之间的距离,从M个第二终端设备中选取与第一终端设备之间的距离小于第一门限值的N个第二终端设备。所述计算第一终端设备与第二终端设备之间的距离的方式可以为分别计算第一终端设备与第二终端设备的经度差值以及纬度差值,利用两个差值计算得到距离。
所述资源共享管理模块72,具体用于基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;从所述至少一个第二终端设备中选取目标终端。
比如,图3所示,用户可以看到设备一的资源信息包括硬件一、硬 件二的信息;设备二的资源信息包括硬件二以及软件一和软件二;设备三的资源信息包括硬件一、硬件二、软件一和软件二。如果用户需要共享硬件一的资源,那么符合第一预设条件的第二终端设备就包括有设备一和设备三。
另外,可以理解的是,本实施例中所述选取的目标终端的数量可以不限于一个,即,可以选取一个目标终端,也可以选取多个目标终端。以图3为例,用户可以选择终端一和终端三同时作为目标终端,也可以仅选择一个终端一作为目标终端。
所述无线接入模块71,具体用于通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;其中,所述软件资源或硬件资源为软件资源或硬件资源;
若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
其中,所述共享请求中的针对所需要共享的软件资源或硬件资源的描述信息可以至少包括以下之一:所要共享的软件资源或硬件资源的名称、所要共享的软件资源或硬件资源的型号或版本。
相应的,所述目标终端接收到所述共享请求之后,可以解析所述共享请求,从所述共享请求中提取软件资源或硬件资源的名称、型号,或者,提取软件资源或硬件资源的名称和版本,基于所述共享请求中的信息分析所述软件资源或硬件资源是否处于空闲状态,若是,则可以通过应用服务器向所述第一终端设备反馈针对所述共享请求的确认信息,否则,通过应用服务器向所述第一终端设备反馈针对所述共享请求的拒绝信息。
优选地,本实施例中所述共享请求的发送方式可以为按照SDP消息体的格式编辑共享请求。
进一步的,所述与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源可以包括:开启所述第一终端设备的直连通信单元,通过所述直连通信单元与所述目标终端建立第二连接,通过所述第二连接获取到所述目标终端的软件资源或硬件资源;使用所述软件资源或硬件资源进行处理。
其中,所述直连通信单元可以为蓝牙单元、WIFI单元等。
本实施例的一个使用场景可以为:所述第一终端设备需要进行摄像操作,自身的闪光灯的亮度低于亮度需求,则通过应用服务器检测到直连距离之内的多个第二终端设备;再通过应用服务器获取所述多个第二终端设备的资源信息;基于所述多个第二终端设备的资源信息,选取能够提供闪光灯的目标终端;向目标终端发起共享请求,若接收到目标终端的共享请求的确认信息,则与目标终端建立连接,然后控制所述目标终端的闪光灯开启;使用自身的闪光灯以及目标终端的闪光灯作为光源进行拍摄。
上述场景为一个硬件资源共享的实施例,通过采用本发明提供的方案,还可以共享目标终端的软件资源,比如:当第一终端设备需要使用即时通信进行通信,但是,当前自身未安装即时通信软件,可以通过应用服务器检测直连范围内的至少一个第二终端设备;选取一个具备即时通信软件的目标终端;向目标终端发起共享请求后,若接收到目标终端返回的确认信息,则与目标终端建立连接;通过连接获取到目标终端的即时通信软件的使用权,控制开启即时通信软件并且进行通信处理。
另外,所述直连管理模块73,还会发送一个共享会话结束的消息给目标终端,结束两个终端间的共享会话。
其中,所述共享会话结束的消息可以为通过应用服务器向目标终端发送,或者,可以为通过直连通信单元发送。
结合图4给出RCS用户与IMS核心网的应用服务器之间的资源共享处理流程,在本实施例中,终端之间通过建立共享会话来实现资源共享。
假设图中,终端A为第一终端设备,终端B为目标设备。
终端A作为共享发起端,终端A通过向终端B发送INVITE请求来发起共享请求。INVITE消息经由IMS核心网的专门负责会话建立的应用服务器发送至终端B。INVITE消息每到达一个节点,都会向上一个节点返回100Trying的报文,用以通知上一节点已经收到了INVITE消息。在INVITE报文中携带了SDP消息体,消息体内容为发起终端A的共享需求。终端B在收到INVITE报文后,向终端B返回180Trying,表示已经收到了终端A的共享请求。
终端B解析INVITE消息共享请求以及其中的SDP消息体,从中获取发起端想要共享的资源和共享需求,对比本终端该资源的具体描述信息,决定是否接受请求。如果接受请求,则向终端A返回200OK响应,其中也携带SDP消息体,其内容则根据终端B被请求的资源的具体描述信息生成。
终端A收到200OK响应后,将SDP消息体里的内容与自身的共享需求进行对比,如果满足需求,则再发送ACK给终端B。至此,终端A与B之间的共享会话建立,可以进行下一步的共享操作。
无论是发起端还是被请求端都可以主动结束共享。在本实施例中,发起终端A主动结束共享,发送BYE请求给终端B,终端B收到请求后,发送200OK响应。终端A收到200OK后,共享会话结束。
在建立共享会话时,还可以对其中的报文进行扩展。首先在INVITE 报文中增加字段,该字段用来说明,发起端想要共享被请求端的什么资源。其次,对报文的SDP消息体进行扩展。对消息体的扩展,要根据具体的共享资源进行,目的是能够将发起端的共享需求和被请求端的共享资源的具体信息描述清楚。
结合图5给出RCS终端间共享资源的实施例。
一个RCS终端在两种场景下会发起资源共享。场景一、终端A通过查看可直连终端B的可共享资源,可以选择终端B的某个资源发起资源共享。资源共享管理应用通过调用资源共享管理模的接口,通过接口参数将想要共享的资源传递给资源共享管理模块,同时发起资源共享。或者,场景二、终端A在使用某个应用的过程中,发现本终端资源无法满足应用的要求时也可以发起资源共享。无法满足需求的应用通过调用资源共享管理模块的接口发起资源共享,并将共享需求通过接口参数传递给资源共享管理模块。资源共享管理模块根据共享需求,在所有可直连终端的可共享资源中进行查找,最终找到一个最合适的终端B的可共享资源,然后向其发起资源共享。
资源共享管理模块接着通过会话控制模块发送INVITE消息,开始建立共享会话。INVITE消息的SDP消息体由会话控制模块根据共享需求生成。终端B在收到INVITE消息后,会话控制模块会解析INVITE消息及其消息体,并通知资源共享管理模块接收到终端A的资源信息获取请求。
终端B的资源共享管理模块从会话控制模块的通知消息中获取终端A想要共享的资源以及共享需求,从资源描述存储模块获取该资源的具体描述信息,然后将共享需求和该资源的具体描述信息进行比对,看是否能满足终端A的共享需求。
如果可以满足,则终端B的资源共享管理模块接受终端A的资源信 息获取请求,会话控制模块通过无线接入模块向终端A发送200OK的响应消息,消息中同样携带SDP消息体,其中是终端B被请求资源的具体描述信息。
终端A接收到200OK消息后,会话控制模块向终端B发送ACK确认消息,资源共享管理模块通知上层应用共享会话建立,可以进行下一步的共享操作。
如果终端B不能满足A的共享需求,则资源共享管理模块70拒绝终端A的资源信息获取请求,会话控制模块75向终端A发送603Reject消息。终端A收到该消息后,资源共享管理模块72通知上层应用共享失败。
可见,通过采用上述方案,就能够通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操作体验。
实施例四、
本实施例提供了一种应用服务器,如图8所示,包括:
接收模块81,用于接收到第一终端设备发来的资源信息获取请求;
发送模块82,用于基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
硬件资源信息为至少一种硬件资源信息、软件资源信息为至少一种 软件资源信息;其中,所述硬件资源信息可以至少包括以下之一:硬件名称、硬件型号、硬件使用情况等;所述软件资源信息可以至少包括以下之一:软件名称、软件版本号、软件使用情况等。
本实施例中所述应用服务器可以为IP多媒体子系统(IMS,IP Multimedia Sub-System)中的应用服务器。本实施例中所述第一终端设备可以通过富通信套件(RCS,Rich Communication Suite),向IMS系统中的应用服务器发起资源信息获取请求。另外,所述第一终端设备可以通过移动通信网络、或者WIFI等方式接入到IMS中的应用服务器。
优选地,本实施例提供的应用服务器还可以接收并保存第一终端设备以及N个第二终端设备上传的位置信息;其中,所述位置信息包括经度信息以及纬度信息。
优选地,本实施例中所述第一终端设备获取到所述第一位置信息之后,还可以将所述第一终端设备的标识信息与所述第一位置信息进行关联,并发送至所述应用服务器以使得其他第二终端设备使用。
进一步地,第一终端设备可以为周期性的获取到第一位置信息,比如,可以为每10分钟获取并更新一次第一位置信息,或者可以为每5分钟获取并更新一次第一位置信息。
本实施例的一个使用场景可以为:所述第一终端设备需要进行摄像操作,自身的闪光灯的亮度低于亮度需求,则通过应用服务器检测到直连距离之内的多个第二终端设备;再通过应用服务器获取所述多个第二终端设备的资源信息;基于所述多个第二终端设备的资源信息,选取能够提供闪光灯的目标终端;向目标终端发起共享请求,若接收到目标终端的共享请求的确认信息,则与目标终端建立连接,然后控制所述目标终端的闪光灯开启;使用自身的闪光灯以及目标终端的闪光灯作为光源进行拍摄。
上述场景为一个硬件资源共享的实施例,通过采用本发明提供的方案,还可以共享目标终端的软件资源,比如:当第一终端设备需要使用即时通信进行通信,但是,当前自身未安装即时通信软件,可以通过应用服务器检测直连范围内的至少一个第二终端设备;选取一个具备即时通信软件的目标终端;向目标终端发起共享请求后,若接收到目标终端返回的确认信息,则与目标终端建立连接;通过连接获取到目标终端的即时通信软件的使用权,控制开启目标终端的即时通信软件并且进行通信处理。
另外,本实施例上述操作结束后,即共享结束后,第一终端设备还会发送一个共享会话结束的消息给目标终端,结束两个终端间的共享会话。
可见,通过采用上述方案,就能够通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操作体验。
实施例五、
本实施例提供了一种资源共享系统,如图9所示,包括:
第一终端设备91,用于向网络侧应用服务器发起资源信息获取请求;从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源;
应用服务器92,用于接收到第一终端设备发来的资源信息获取请 求;基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息。
本实施例中提供的第一终端设备以及应用服务器的功能如上述实施例所述,这里不做赘述。
可见,通过采用上述方案,就能够通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操作体验。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
工业实用性
本发明所提供的资源共享方法、终端设备、应用服务器及系统,通过应用服务器获取到N个第二终端设备的N个资源信息,基于所述N个资源信息中的软件资源信息和/或硬件资源信息选取目标终端,与选取的目标终端建立连接并且共享所述目标终端的资源。如此,使得终端设备能够共享其他终端设备的软件资源或硬件资源,为终端设备提供了更多的使用场景,提升了用户的操作体验。

Claims (13)

  1. 一种资源共享方法,应用于第一终端设备,所述方法包括:
    向网络侧应用服务器发起资源信息获取请求;
    从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;
    基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
    与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
  2. 根据权利要求1所述的方法,其中,所述与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源,包括:
    通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;
    若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
  3. 根据权利要求1所述的方法,其中,所述从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,包括:
    获取到第一终端设备的第一位置信息;
    从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;
    基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第二终端设备与所述第一终端设备之间的距离小于第一门限值;
    获取到所述N个第二终端设备对应的N个资源信息。
  4. 根据权利要求1-3任一项所述的方法,其中,所述基于所述N个资源信息,从所述N个第二终端设备中选取目标终端,包括:
    基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;
    从所述至少一个第二终端设备中选取目标终端。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    获取到自身资源信息;
    将自身资源信息发送至所述应用服务器,使得所述应用服务器为除所述第一终端设备外的终端设备提供所述第一终端设备的资源信息。
  6. 一种资源共享方法,应用于应用服务器,所述方法包括:
    接收到第一终端设备发来的资源信息获取请求;
    基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
  7. 一种终端设备,包括:
    无线接入模块,配置为向网络侧应用服务器发起资源信息获取请求;
    资源共享管理模块,用于从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;
    直连管理模块,配置为与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
  8. 根据权利要求7所述的终端设备,其中,所述终端设备还包括: 会话控制模块,配置为生成共享请求;
    相应的,所述无线接入模块,配置为通过所述应用服务器向所述目标终端发起共享请求,所述共享请求中至少包括有针对所需要共享的软件资源或硬件资源的描述信息;若通过所述应用服务器接收到所述目标终端反馈的针对所述共享请求的确认信息,则与所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源。
  9. 根据权利要求7所述的终端设备,其中,所述终端设备还包括:位置获取模块,配置为获取到第一终端设备的第一位置信息;
    相应的,资源共享管理模块,配置为从所述应用服务器获取到M个第二终端设备的第二位置信息;M为大于等于N的正整数;基于所述第一位置信息以及所述M个第二位置信息,确定符合第一预设条件的N个第二终端设备;其中,所述第二预设条件表征所述第二终端设备与所述第一终端设备之间的距离小于第一门限值;获取到所述N个第二终端设备对应的N个资源信息。
  10. 根据权利要求7-9任一项所述的终端设备,其中,
    所述资源共享管理模块,配置为基于所述N个资源信息,选取到符合第二预设条件的至少一个第二终端设备;其中,所述第二预设条件表征所述第二终端设备能够提供所述第一终端设备所需资源;从所述至少一个第二终端设备中选取目标终端。
  11. 根据权利要求7所述的终端设备,其中,所述终端设备还包括:资源描述存储模块,配置为获取到自身资源信息;
    相应的,所述无线接入模块,配置为将自身资源信息发送至所述应用服务器。
  12. 一种应用服务器,包括:
    接收模块,配置为接收到第一终端设备发来的资源信息获取请求;
    发送模块,配置为基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息,N为大于等于1的正整数,以使得所述第一终端设备基于所述N个资源信息,从所述N个第二终端设备中选取目标终端。
  13. 一种资源共享系统,所述系统包括:
    第一终端设备,配置为向网络侧应用服务器发起资源信息获取请求;从所述应用服务器侧获取到N个第二终端设备对应的N个资源信息,N为大于等于1的正整数;其中,所述资源信息至少包括有硬件资源信息和/或软件资源信息;基于所述N个资源信息,从所述N个第二终端设备中选取目标终端;与选取的所述目标终端建立连接并共享所述目标终端的软件资源或硬件资源;
    应用服务器,配置为接收到第一终端设备发来的资源信息获取请求;基于所述资源信息获取请求,向所述第一终端设备返回的N个第二终端设备对应的N个资源信息。
PCT/CN2015/089898 2015-07-06 2015-09-17 一种资源共享方法、终端设备、应用服务器及系统 WO2017004894A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510392323.4 2015-07-06
CN201510392323.4A CN106331050A (zh) 2015-07-06 2015-07-06 一种资源共享方法、终端设备、应用服务器及系统

Publications (1)

Publication Number Publication Date
WO2017004894A1 true WO2017004894A1 (zh) 2017-01-12

Family

ID=57684812

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089898 WO2017004894A1 (zh) 2015-07-06 2015-09-17 一种资源共享方法、终端设备、应用服务器及系统

Country Status (2)

Country Link
CN (1) CN106331050A (zh)
WO (1) WO2017004894A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104741A (zh) * 2020-09-21 2020-12-18 北京指掌易科技有限公司 资源共享方法、装置、系统及网关控制器
US11086234B2 (en) 2017-11-08 2021-08-10 Asml Netherlands B.V. Substrate holder and a method of manufacturing a device
CN113296648A (zh) * 2021-05-13 2021-08-24 维沃移动通信有限公司 显示方法、显示装置和电子设备
CN113820960A (zh) * 2021-09-16 2021-12-21 珠海格力电器股份有限公司 设备资源共享系统、方法、装置、智能设备和存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973082B (zh) * 2017-03-07 2020-02-18 广州酷狗计算机科技有限公司 资源标识分享方法及装置
CN114003187A (zh) * 2020-07-28 2022-02-01 惠州视维新技术有限公司 一种硬件共享方法及装置
CN112291775A (zh) * 2020-10-19 2021-01-29 深圳市中诺通讯有限公司 终端获取业务的方法及设备
CN113596798A (zh) * 2021-08-04 2021-11-02 惠州Tcl云创科技有限公司 资源共享方法及装置
CN114710442B (zh) * 2022-04-28 2023-04-25 浙江美云数据科技有限公司 一种基于物联网的数字乡村管理系统
CN115442477A (zh) * 2022-08-31 2022-12-06 联想(北京)有限公司 一种控制方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771707A (zh) * 2010-02-08 2010-07-07 中兴通讯股份有限公司 实现终端间资源共享的方法、资源处理系统及终端
CN101977221A (zh) * 2010-10-27 2011-02-16 宇龙计算机通信科技(深圳)有限公司 实现资源共享的方法、装置及系统
CN102118447A (zh) * 2011-03-16 2011-07-06 宇龙计算机通信科技(深圳)有限公司 资源管理的方法及移动终端
CN102437997A (zh) * 2010-09-29 2012-05-02 Tcl集团股份有限公司 一种基于igrs的屏幕共享方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1160911C (zh) * 2002-09-06 2004-08-04 联想(北京)有限公司 家庭主干网中实现设备间动态组网与资源共享的方法
CN101212446A (zh) * 2006-12-29 2008-07-02 朗迅科技公司 移动多媒体内容共享应用系统
CN102223411B (zh) * 2011-06-15 2013-12-25 奇智软件(北京)有限公司 采用p2p 技术下载文件的方法和系统、客户端
CN103379107A (zh) * 2012-04-26 2013-10-30 中兴通讯股份有限公司 网络设备能力共享方法及装置、网络设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771707A (zh) * 2010-02-08 2010-07-07 中兴通讯股份有限公司 实现终端间资源共享的方法、资源处理系统及终端
CN102437997A (zh) * 2010-09-29 2012-05-02 Tcl集团股份有限公司 一种基于igrs的屏幕共享方法
CN101977221A (zh) * 2010-10-27 2011-02-16 宇龙计算机通信科技(深圳)有限公司 实现资源共享的方法、装置及系统
CN102118447A (zh) * 2011-03-16 2011-07-06 宇龙计算机通信科技(深圳)有限公司 资源管理的方法及移动终端

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11086234B2 (en) 2017-11-08 2021-08-10 Asml Netherlands B.V. Substrate holder and a method of manufacturing a device
CN112104741A (zh) * 2020-09-21 2020-12-18 北京指掌易科技有限公司 资源共享方法、装置、系统及网关控制器
CN112104741B (zh) * 2020-09-21 2024-02-02 北京指掌易科技有限公司 资源共享方法、装置、系统及网关控制器
CN113296648A (zh) * 2021-05-13 2021-08-24 维沃移动通信有限公司 显示方法、显示装置和电子设备
CN113820960A (zh) * 2021-09-16 2021-12-21 珠海格力电器股份有限公司 设备资源共享系统、方法、装置、智能设备和存储介质

Also Published As

Publication number Publication date
CN106331050A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
WO2017004894A1 (zh) 一种资源共享方法、终端设备、应用服务器及系统
US11418552B2 (en) Device service capability discovery
US9210536B2 (en) Method for establishing device-to-device communication
EP2760227B1 (en) Methods and Apparatus to Facilitate Device-to-Device Communication
US10028204B2 (en) Supporting device-to-device communication in a rich communication service context
US6862277B2 (en) Method and apparatus for multi-media communication over multiple networks
WO2023071915A1 (zh) 业务设置方法和装置、存储介质及电子设备
US20110131332A1 (en) Method and apparatus for transferring a media session
JP2021518075A (ja) サービス加入方法および装置
US10237704B2 (en) Service implementation method and apparatus in wireless communication system
US20200389501A1 (en) Methods and user equipment for exchanging service capabilities
WO2016210109A1 (en) Mechanisms to support adaptive constrained application protocol (coap) streaming for internet of things (iot) systems
US20140089431A1 (en) Instant messaging method, terminal, server, and system
KR20150074005A (ko) 준비되지 않은 단말의 호출 기법
US20230169066A1 (en) Temporary shared storage
US10602092B2 (en) Personalized audio-video invitations via peer-to-peer connection
EP3114821B1 (en) Method and devices for establishing a connection between a seeker device and a target device
KR102208187B1 (ko) 몰입형 소셜 센터 세션에서 컨텐츠 시청 및 통신을 통합하기 위한 방법 및 시스템
CN112470543B (zh) 执行群组通信的装置和方法
WO2015117442A1 (zh) 融合通信终端发现以及能力探测的处理方法及装置
US9686648B2 (en) Method, a server and a computer program for local discovery
CN107770035B (zh) 一种推送离线通知的方法和装置
US10404534B2 (en) Method and device for networking intelligent terminals
WO2016131250A1 (zh) 资源共享方法、装置及系统
US10306469B2 (en) Metadata delivery method for prose communication and related apparatuses using the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15897550

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15897550

Country of ref document: EP

Kind code of ref document: A1