CN104038511B - A kind of method for managing resource and device - Google Patents
A kind of method for managing resource and device Download PDFInfo
- Publication number
- CN104038511B CN104038511B CN201310067866.XA CN201310067866A CN104038511B CN 104038511 B CN104038511 B CN 104038511B CN 201310067866 A CN201310067866 A CN 201310067866A CN 104038511 B CN104038511 B CN 104038511B
- Authority
- CN
- China
- Prior art keywords
- resource
- electronic equipment
- business
- group
- software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of method for managing resource and device, methods described is applied in the first electronic equipment with the first client that can provide resource management platform, including:In first electronic equipment in working condition, and when first electronic equipment is connected with least one other electronic equipment including the second electronic equipment, from first electronic equipment and second electronic equipment, first group of resource corresponding with the first business is obtained;From first electronic equipment and second electronic equipment, second group of resource corresponding with the second business is obtained;Generation one can be shown in the resource management interface on the display unit of first electronic equipment.
Description
Technical field
The present invention relates to electronic applications, more particularly to a kind of method for managing resource and device.
Background technology
At present, traditional PC and notebook are popularized very much, smart mobile phone, tablet personal computer, intelligent television, Intelligent set top box
Etc. the growth for presenting blast, the computing capability and storage capacity of these intelligent terminals are obtained for very big raising, right
For equipment itself, the resource possessed is also more and more.Such as:Smart mobile phone/tablet personal computer has touch-screen, is entered by finger
The incoming traffic of row man-machine interaction has born advantage;For intelligent television, large scale screen business has innately excellent
Gesture, sees that HDTV/film/picture has more preferable Consumer's Experience than mobile phone/tablet personal computer/PC for user;For PC equipment,
The business such as print service, projection are very ripe and conveniently.The characteristics of different smart machines has different, is each owned by not
The irreplaceable device resource of equipment.
At present, the smart machine species that user possesses is more and more, and some users even possess a variety of smart machines simultaneously.
In this case, same user, different user will be produced therewith for the interactive operation demand between many equipment.Such as:
User can control intelligent television by the input of mobile phone/tablet personal computer, and making up intelligent television can not be touched by finger
Control the deficiency of man-machine interaction;The large scale screen of itself is shared with smart mobile phone/tablet personal computer and used by intelligent television, makes up hand
Machine/tablet personal computer is unable to the deficiency of giant-screen viewing;Smart mobile phone/tablet personal computer/intelligent television comes by PC print capacity
Printing is completed, deficiency of printer etc. can not be directly connected to by making up itself.Such user's scene is very more, but suffers from
One common ground, is all to miscellaneous equipment by the resource sharing of equipment of itself.Because current terminal device is unusual
It is many, how other terminal devices are given by the intelligent terminal resource sharing of these numerous and complicateds, these device resources are carried out
Unified management is, it is necessary to which the solution of complete set is solved.
In the prior art, the Interworking Solution between many equipment is very more, each producer be all based on upnp, igrs,
Some or multiple agreements in the proprietary protocols such as bonjour, alljoyn, xmpp realize the automatic discovery between equipment, so
The business of itself is realized on the basis of this afterwards.
But present inventor is during inventive technique scheme in realizing the embodiment of the present application, above-mentioned technology is found extremely
There is following technical problem less:
For different electronic equipments, the business of equipment unified management is not extracted into, each business is discrete
, manage these business not over the way to manage of a desktop.
The content of the invention
The application solves by providing a kind of method for managing resource and device and is directed to distinct electronic apparatuses in the prior art
Resource shortage unified management technical problem.
On the one hand, the application provides following technical scheme by the embodiment of the application:
A kind of method for managing resource, sets applied to the first electronics with the first client that can provide resource management platform
In standby, methods described includes:
In first electronic equipment in working condition, and in first electronic equipment with including the second electronic equipment
During at least one other electronic equipment connection, from first electronic equipment and second electronic equipment, obtain and first
The corresponding first group of resource of business;
From first electronic equipment and second electronic equipment, second group of money corresponding with the second business is obtained
Source, wherein, first business and second business are the business differed;
Generation one can be shown in the resource management interface on the display unit of first electronic equipment, the resource pipe
Managing at least includes the first business operation object corresponding with first business and corresponding with second business the on interface
At least two business operation objects of two business operation objects;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operation system
System, first operating system is identical or different operating system, second electronic equipment with second operating system
The second client of the resource management platform can be provided by being provided with, first group of resource include at least one first hardware/
Software resource, second group of resource includes at least one second hardware/software resources, at least one described first hardware/soft
At least one hardware/software resources is and first electronics in part resource and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of equipment connection.
Preferably, it is described from first electronic equipment and second electronic equipment, obtain corresponding with the first business
First group of resource, specifically include:
The first resource list of first electronic equipment is obtained, and obtains the Secondary resource row of second electronic equipment
Table;
Based on the first resource list and the Secondary resource list, first group corresponding with first business is obtained
Resource.
Preferably, the first resource list, including:
The first system software registration information of system software resource in first operating system of first electronic equipment,
With the platform software resource of the first hardware log-on message of the hardware resource of first electronic equipment, and first client
The first platform software log-on message, wherein, the platform software resource for based on the resource management platform developed it is soft
Part resource;
The Secondary resource list, including:
The second system software registration information of software resource in second operating system of second electronic equipment, it is described
Second hardware log-on message of the hardware resource in the second electronic equipment, and the second client in second electronic equipment
Second platform software log-on message of platform software resource.
Preferably, it is described to be based on the first resource list and the Secondary resource list, obtain and first business
Corresponding first group of resource, is specifically included:
Based on the first resource list, first in first electronic equipment corresponding with first business is obtained
Part resource;
Based on the Secondary resource list, second in second electronic equipment corresponding with first business is obtained
Part resource;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
Preferably, the Secondary resource list for obtaining second electronic equipment, is specifically included:
Automatically obtain the first communication protocol of first electronic equipment, and second electronic equipment the second communication protocols
View;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the described 3rd
Communication protocol is first communication protocol or second communication protocol;
Based on the third communication agreement, communicated, arranged with obtaining the Secondary resource with second electronic equipment
Table.
Preferably, it is described to be based on the third communication agreement, communicated with second electronic equipment, it is described to obtain
Secondary resource list, is specifically included:
Based on the third communication agreement, from first electronic equipment and at least one of second electric room
Selector unifies the first routed path of preparatory condition in routed path;
By first routed path, second communication file for including the Secondary resource list is obtained, wherein, institute
State the file obtained after the second communication file is packaged for second client to the Secondary resource list;
Second communication file is parsed, the Secondary resource list is obtained.
Preferably, the generation one can be shown in resource management circle on the display unit of first electronic equipment
Face, is specifically included:
Merge the first resource list and the Secondary resource list, obtaining one is used in the resource management platform
Platform resource list;
Based on the platform resource list, the first group of log-on message and second group of money of first group of resource are obtained
Second group of log-on message in source;
Based on first group of log-on message and second group of log-on message, first business operation pair is generated respectively
As with the second business operation object;
The first business operation object and the second business operation object are at least based on, resource management circle is generated
Face, wherein, the resource management interface is a man-machine interactive interface, can respond user at least described first business operation pair
The operation of elephant, calls at least first group resource corresponding with first operation object, and pass through at least first group resource
Realize at least the first business corresponding with first operation object.
On the other hand, there is provided following technical scheme by the embodiment of the application by the application:
A kind of resource acquiring method, sets applied to the first electronics with the first client that can provide resource management platform
In standby, first electronic equipment can be shown in working condition on the first display unit of first electronic equipment
On one resource management interface, the resource management interface to should have including the first business operation object corresponding with the first business and
At least two business operation objects of the second business operation object corresponding with the second business, wherein, first business operation
Object first group of resource of correspondence, second group of resource of the second business operation object correspondence, first group of resource is included at least
One the first hardware/software resources, second group of resource includes at least one second hardware/software resources, described at least one
In individual first hardware/software resources and at least one described second hardware/software resources at least one hardware/software resources be with
Hardware/software resources in second electronic equipment of the first electronic equipment connection, first business and second industry
The business for being engaged in differing, methods described includes:
Detect whether the first operation of the first business operation object on the correspondence resource management interface;
When detecting first operation, first operation is responded, the first operational order is generated;
First operational order is performed, first group of resource corresponding with the first business operation object is called, and lead to
Cross first group of resource and realize the first business corresponding with the first business operation object.
Preferably, it is described to perform first operational order, call and the first business operation object corresponding first
Group resource, and the first business corresponding with the first business operation object is realized by first group of resource, specifically include:
Obtain the platform resource list of the resource management platform;
Based on the platform resource list, first group of log-on message of first group of resource is obtained, wherein, described first
Group log-on message, which is included, realizes that first business needs the log-on message of all resources in first group of resource;
Based on first group of log-on message, first group of resource is called, to realize first business.
Preferably, the platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, institute
State the hardware resource of the first electronic equipment the first hardware log-on message, the first of the platform software resource of first client
Platform software log-on message;With
The second system software registration information of the software resource of second operating system of second electronic equipment, institute
State the hardware resource of the second electronic equipment the second hardware log-on message, the second of the platform software resource of second client
Platform software log-on message.
Preferably, it is described to be based on first group of log-on message, first group of resource is called, to realize first industry
Business, is specifically included:
Detect whether first group of resource all belongs to first electronic equipment, obtain the first testing result;
When first testing result shows that first group of resource all belongs to first electronic equipment, based on
One group of resource registering information, calls first group of resource, to realize first business.
Preferably, it is described to be based on first group of log-on message, first group of resource is called, to realize first industry
Business, is specifically included:
Based on the platform resource list, detect whether the resource in first group of resource all belongs to first electricity
Sub- equipment, obtains the first testing result;
When first testing result shows that first group of resource is not all of belonging to first electronic equipment, base
In the platform resource list, the Part I resource registering information of Part I resource is obtained, wherein, the Part I money
Source belongs to first group of resource, and the resource having for first electronic equipment;
Based on the platform resource list, the Part II resource registering information of Part II resource is obtained, wherein, it is described
Part II resource belongs to first group of resource, and has for second electronic equipment, without being set for first electronics
The standby resource having;
Based on the Part I resource registering information, the Part I resource is called;
Based on the Part II resource registering information, the Part II is called to provide from second electronic equipment
Source, so that first electronic equipment can realize described first based on the Part I resource and the Part II resource
Business.
Preferably, it is described to be based on the Part II resource registering information, called from second electronic equipment described
Part II resource, is specifically included:
Automatically the first communication protocol of first electronic equipment is obtained, and obtains the second of second electronic equipment and is led to
Believe agreement;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the described 3rd
Communication protocol is first communication protocol or second communication protocol;
Based on the 3rd agreement, communicated with second electronic equipment, so that first electronic equipment is called
Part II resource in second electronic equipment.
Preferably, it is described to be based on the 3rd agreement, communicated with second electronic equipment, so that first electricity
Part II resource in second electronic equipment described in sub- equipment calls, is specifically included:
Based on the third communication agreement, from first electronic equipment and at least one of second electric room
Selector unifies the secondary route path of preparatory condition in routed path;
By the secondary route path, the first communication file is sent to second electronic equipment, to call described the
Two part resources, wherein, the instruction and data for being used for calling the Part II resource is included in first communication file, and
First communication file is the file that obtains after the first client described in one is packaged to the instruction and data, described the
Two clients can be parsed to first communication file, obtain the instruction and data, and operate by described second
System calls the Part II resource, to coordinate first electronic equipment to realize first business.
Another further aspect, based on same inventive concept, there is provided following technical scheme by an embodiment by the application:
A kind of device, applied in the first electronic equipment, described device includes:
Client, in the first electronic equipment, is specifically included:
First acquisition unit, in first electronic equipment in working condition, and first electronic equipment with
When at least one other electronic equipment including the second electronic equipment is connected, from first electronic equipment and second electronics
In equipment, first group of resource corresponding with the first business is obtained;
Second acquisition unit, for from first electronic equipment and second electronic equipment, obtaining and the second industry
It is engaged in corresponding second group of resource, wherein, first business and second business are the business differed;
First generation unit, the resource pipe on the display unit of first electronic equipment can be shown in for generating one
Manage interface, at least include on the resource management interface the first business operation object corresponding with first business and with it is described
At least two business operation objects of the corresponding second business operation object of the second business;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operation system
System, first operating system is identical or different operating system, second electronic equipment with second operating system
The second client of the resource management platform can be provided by being provided with, first group of resource include at least one first hardware/
Software resource, second group of resource includes at least one second hardware/software resources, at least one described first hardware/soft
At least one hardware/software resources is and first electronics in part resource and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of equipment connection.
Preferably, the first acquisition unit, is specifically included:
First obtains subelement, the first resource list for obtaining first electronic equipment, and obtains described second
The Secondary resource list of electronic equipment;
Second obtains subelement, for based on the first resource list and the Secondary resource list, obtain with it is described
The corresponding first group of resource of first business.
Preferably, the first resource list, including:
The first system software registration information of system software resource in first operating system of first electronic equipment,
With the platform software resource of the first hardware log-on message of the hardware resource of first electronic equipment, and first client
The first platform software log-on message, wherein, the platform software resource for based on the resource management platform developed it is soft
Part resource;
The Secondary resource list, including:
The second system software registration information of software resource in second operating system of second electronic equipment, it is described
Second hardware log-on message of the hardware resource in the second electronic equipment, and the second client in second electronic equipment
Second platform software log-on message of platform software resource.
Preferably, described second subelement is obtained, specifically included:
First acquisition module, for based on the first resource list, obtaining corresponding with first business described the
Part I resource in one electronic equipment;
Second acquisition module, for based on the Secondary resource list, obtaining corresponding with first business described the
Part II resource in two electronic equipments;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
Preferably, described first subelement is obtained, specifically included:
3rd acquisition module, for obtaining the first resource list;
4th acquisition module, the first communication protocol for obtaining first electronic equipment automatically, and second electricity
Second communication protocol of sub- equipment;
5th acquisition module, for based on first communication protocol and second communication protocol, obtaining the third communication
Agreement, wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication module, for based on the third communication agreement, being communicated with second electronic equipment, to obtain
Obtain the Secondary resource list.
Preferably, the first communication module, is specifically included:
First choice submodule, for based on the third communication agreement, from first electronic equipment and described second
Selector unifies the first routed path of preparatory condition at least one routed path of electric room;
First acquisition submodule, for by first routed path, obtaining one and including the Secondary resource list
Second communication file, wherein, second communication file is that second client is packaged to the Secondary resource list
The file obtained afterwards;
First analyzing sub-module, for being parsed to second communication file, obtains the Secondary resource list.
Preferably, first generation unit, is specifically included:
First merges subelement, for merging the first resource list and the Secondary resource list, and obtaining one is used for
Platform resource list in the resource management platform;
3rd obtains subelement, for based on the platform resource list, obtaining first group of note of first group of resource
Second group of log-on message of volume information and second group of resource;
First generation subelement, for based on first group of log-on message and second group of log-on message, giving birth to respectively
Into the first business operation object and the second business operation object;
Second generation subelement, for being at least based on the first business operation object and second business operation pair
As, the resource management interface is generated, wherein, the resource management interface is a man-machine interactive interface, can respond user couple
The operation of at least described first business operation object, calls at least first group resource corresponding with first operation object, and
At least the first business corresponding with first operation object is realized by least first group resource.
Preferably, the client, in addition to:
First display unit, for when first electronic equipment is in working condition, showing a resource management interface, institute
State on resource management interface to that should have including the first business operation object corresponding with the first business and corresponding with the second business
At least two business operation objects of the second business operation object, wherein, first group of money of the first business operation object correspondence
Source, second group of resource of the second business operation object correspondence, first group of resource includes at least one first hardware/software
Resource, second group of resource includes at least one second hardware/software resources, at least one first hardware/software money
At least one hardware/software resources is and first electronic equipment in source and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of connection, first business and second business are the business differed;
First detection unit, for detecting whether there is the first business operation object on the correspondence resource management interface
First operation;
Second generation unit, for when detecting first operation, responding first operation, generation first is operated
Instruction;
First execution unit, for performing first operational order, is called corresponding with the first business operation object
First group of resource, and pass through first group of resource and realize corresponding with the first business operation object the first business.
Preferably, first execution unit, is specifically included:
4th obtains subelement, the platform resource list for obtaining the resource management platform;
5th obtains subelement, for based on the platform resource list, obtaining first group of note of first group of resource
Volume information, wherein, first group of log-on message, which is included, realizes that first business needs all moneys in first group of resource
The log-on message in source;
First calls subelement, for based on first group of log-on message, first group of resource being called, to realize
State the first business.
Preferably, the platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, institute
State the hardware resource of the first electronic equipment the first hardware log-on message, the first of the platform software resource of first client
Platform software log-on message;With
The second system software registration information of the software resource of second operating system of second electronic equipment, institute
State the hardware resource of the second electronic equipment the second hardware log-on message, the second of the platform software resource of second client
Platform software log-on message.
Preferably, described first subelement is called, specifically included:
First detection module, for detecting whether first group of resource all belongs to first electronic equipment, is obtained
First testing result;
First calling module, for showing that first group of resource all belongs to described first when first testing result
During electronic equipment, based on first group of resource registering information, first group of resource is called, to realize first business.
Preferably, described first subelement is called, specifically included:
First detection module, for whether based on the platform resource list, detecting the resource in first group of resource
First electronic equipment is all belonged to, the first testing result is obtained;
6th acquisition module, for showing that first group of resource is not all of belonging to described when first testing result
During the first electronic equipment, based on the platform resource list, the Part I resource registering information of Part I resource is obtained, its
In, the Part I resource belongs to first group of resource, and the resource having for first electronic equipment;
7th acquisition module, for based on the platform resource list, obtaining the Part II resource of Part II resource
Log-on message, wherein, the Part II resource belongs to first group of resource, and has for second electronic equipment, and
The resource not having for first electronic equipment;
Second calling module, for based on the Part I resource registering information, calling the Part I resource;
3rd calling module, for based on the Part II resource registering information, being adjusted from second electronic equipment
With the Part II resource, so that first electronic equipment can be based on the Part I resource and the Part II
Resource realizes first business.
Preferably, the 3rd calling module, is specifically included:
Second acquisition submodule, the first communication protocol for obtaining first electronic equipment automatically, and obtain described
Second communication protocol of the second electronic equipment;
3rd acquisition submodule, for based on first communication protocol and second communication protocol, obtaining threeway
Believe agreement, wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication submodule, for based on the 3rd agreement, being communicated with second electronic equipment, so that institute
State the first electronic equipment and call the Part II resource in second electronic equipment.
Preferably, the first communication submodule, is specifically included:
First choice unit, for based on the third communication agreement, from first electronic equipment and the described second electricity
Selector unifies the secondary route path of preparatory condition at least one routed path of sub- equipment room;
First sends unit, for by the secondary route path, sending the first communication file to second electronics
Equipment, to call the Part II resource, wherein, being included in first communication file is used to call the Part II to provide
The instruction and data in source, and first communication file is after the first client described in one is packaged to the instruction and data
The file of acquisition, second client can be parsed to first communication file, obtain the instruction and data, and
The Part II resource is called by second operating system, to coordinate first electronic equipment to realize first industry
Business.
Preferably, described device also includes:
End, the unified api interface for providing are developed, so that developer is based on the api interface, to described to described
The platform software resource of resource management platform is designed.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
1st, in the application real one applies example, using from first electronic equipment and second electronic equipment, obtain
First group of resource corresponding with the first business, from first electronic equipment and second electronic equipment, is obtained and second
The corresponding second group of resource of business, generation one can be shown in resource management circle on the display unit of first electronic equipment
Face, solves the technical problem being managed collectively in the prior art for the resource shortage of distinct electronic apparatuses, realizes in intelligence
Share framework by setting up the device resource of lightweight in terminal, by discrete smart machine contact together, form one
Individual discrete " cloud ", and business achieved by the resource that each electronic equipment is had shows in the form of shortcut icon
In a resource management interface, so that the technique effect that the use to user is brought convenience.
2nd, in the embodiment of the application one, it is intelligently mutual that the resource management platform has unified current LAN, wide area network
Various communication protocols in connection technology(Such as:Upnp, alljoyn, bonjour, igrs, xmpp etc.), realize different electronics and set
The technique effect of free communication between standby.
3rd, in the embodiment of the application one, the operation object of miscellaneous service is shown on a resource management interface(Such as:Beat
The icon of print business), and detect that user, with the operation for performing the business, obtains for realizing institute from the second electronic equipment
The Part II resource of business is stated, and is cooperated with the Part I resource in first electronic equipment, is collectively constituted
For realizing first group of resource required for the first business, realize and easily obtain resource from the second electronic equipment and realize corresponding
The technique effect of business.
4th, use, realize to developer there is provided unified application programming interface in the embodiment of the application one
Developer has been liberated from the communication details of bottom out, only need to be concerned about the technique effect of service logic.
5th, in the embodiment of the application one, described resource management platform has flexible development of resources mode(Such as:web
Exploitation or native exploitations etc.), realize the multifarious technique effect of development scheme.
6th, in the embodiment of the application one, unified pipe has been carried out to the resource on user, the equipment of user, user equipment
Reason, realizes the technique effect for facilitating developer to call.
7th, in the embodiment of the application one, by by device resource service, by messaging bus middleware complete user,
Equipment, the discovery of service, the route of message, and to the client and service end of resource(I.e.:Resource client end)Uniformly taken out
Orthicon is managed, and is realized quickly and easily from business to calling resources technology effect.
Brief description of the drawings
Fig. 1 is the flow chart of method for managing resource in the embodiment of the present application one;
Fig. 2 is the flow chart of the method for acquisition resource in the embodiment of the present application two;
Fig. 3 is the structured flowchart of device in the embodiment of the present application three;
Fig. 4 is the system architecture diagram of resource management platform in the embodiment of the present application three;
A variety of sides of Fig. 5 resources for needed for the client of resource management platform in the embodiment of the present application three is obtained based on business
The schematic diagram of formula;
Fig. 6 is the method flow diagram of exploitation end issuing service/resource of resource management platform in the embodiment of the present application three;
Fig. 7 is that the client of resource management platform in the embodiment of the present application three finds the method flow of other clients automatically
Figure;
The method flow diagram that Fig. 8 is managed for the client of resource management platform in the embodiment of the present application three to resource;
Fig. 9 is resource management platform in the embodiment of the present application three(Business)Client with(Resource)Client carries out data
Interactive flow chart;
Figure 10 be the embodiment of the present application three in resource management platform client when realizing a business, obtain the business pair
Answer the method flow diagram of resource;
Figure 11 is the resource entity of resource management platform in the embodiment of the present application three(Service)Life cycle management flow chart.
Embodiment
The embodiment of the present application solves by providing a kind of method for managing resource and device and is directed to different electricity in the prior art
The technical problem of the resource shortage unified management of sub- equipment.
The technical scheme of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
First, in first electronic equipment in working condition, and in first electronic equipment with including the second electronics
During at least one other electronic equipment connection of equipment, from first electronic equipment and second electronic equipment, obtain
First group of resource corresponding with the first business;
Then, from first electronic equipment and second electronic equipment, corresponding with the second business second is obtained
Group resource, wherein, first business and second business are the business differed;
Finally, generation one can be shown in the resource management interface on the display unit of first electronic equipment, described
On resource management interface at least include the first business operation object corresponding with first business and with second business pair
At least two business operation objects of the second business operation object answered;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operation system
System, first operating system is identical or different operating system, second electronic equipment with second operating system
The second client of the resource management platform can be provided by being provided with, first group of resource include at least one first hardware/
Software resource, second group of resource includes at least one second hardware/software resources, at least one described first hardware/soft
At least one hardware/software resources is and first electronics in part resource and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of equipment connection.
It can be seen that, because generation one can be shown in the resource management interface on the display unit of first electronic equipment,
So, solve the technical problem being managed collectively in the prior art for the resource shortage of distinct electronic apparatuses.
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper
Technical scheme is stated to be described in detail.
Embodiment one
As shown in figure 1, a kind of method for managing resource, the first client institute applied to the resource management platform in the application
The first electronic equipment in.
First, step 101 is performed, i.e.,:In first electronic equipment in working condition, and in first electronic equipment
When being connected with least one other electronic equipment including the second electronic equipment, from first electronic equipment and second electricity
In sub- equipment, first group of resource corresponding with the first business is obtained;
In specific implementation process, the electronic equipment can be smart mobile phone or tablet personal computer or intelligent television or
Which kind of electronic equipment PC, be for the electronic equipment, and the embodiment of the present application is not particularly limited.First electronic equipment
With the first operating system, first operating system can be Android operation system, (SuSE) Linux OS, Windows
Operating system, IOS etc., for first operating system it is specific why system, the embodiment of the present application, which is not done, to be had
Body is limited.First electronic equipment has the first software resource based on first operating system, and based on the resource
First platform software resource of management platform, and first electronic equipment the first hardware resource.Realizing first industry
, it is necessary to call first group of resource during business, but first electronic equipment is without whole first group of resources, may
Only there is first group of resource part therein, or first group of resource is all not belonging to first electronic equipment.
It is described from first electronic equipment and second electronic equipment, obtain it is corresponding with the first business first group
Resource, is specifically included:
The first resource list of first electronic equipment is obtained, and obtains the Secondary resource row of second electronic equipment
Table;
Based on the first resource list and the Secondary resource list, first group corresponding with first business is obtained
Resource.
In specific implementation process, first electronic equipment has a Resources list(I.e.:The first resource list),
There is record in described the Resources list:System software resource in first operating system of first electronic equipment(I.e.:Described
The application software resources of the application layer on the first operating system upper strata)The first system software registration information, and first electronics
First hardware log-on message of the hardware resource of equipment, and the platform software resource of first client the first platform software
Log-on message, wherein, the platform software resource is the software resource developed based on the resource management platform;Described second
The Resources list, including:The second system software registration letter of software resource in second electronic equipment in the second operating system
Second hardware log-on message of the hardware resource in breath, second electronic equipment, and second in second electronic equipment
Second platform software log-on message of the platform software resource of client;
Wherein, the following information containing the resource corresponding to it in the log-on message:
The type of the resource, such as:For hardware resource or the platform software of system software resource or resource management platform
Resource;
The business that can be realized of the resource, e.g.,(PC)Print service,(Intelligent television)Screen business,(Intelligence
Energy mobile phone/tablet personal computer)Incoming traffic etc.;
The position of the resource, i.e.,:Electronic equipment where the resource, and its associated documents storage location;
The call method of the resource, i.e.,:Instruction or the data of the resource are called, such as:When the resource to be called is one
During print service on PC, first client should be sent to the specific manipulation instruction of the second client of the PC
And related print data.
It is described to be based on the first resource list and the Secondary resource list, obtain corresponding with first business the
One group of resource, is specifically included:
Based on the first resource list, first in first electronic equipment corresponding with first business is obtained
Part resource;
Based on the Secondary resource list, second in second electronic equipment corresponding with first business is obtained
Part resource;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
In specific implementation process, realize that first group of resource of first business may be in same electronic equipment
In, but in two electronic equipments, i.e.,:The Part I resource of first electronic equipment and second electronic equipment
Part II resource.When obtaining this two parts resource, first resource list and described second that should be based on the first electronic equipment
The Secondary resource list of electronic equipment, searches the log-on message of this two parts resource, and each correspond to based on this two parts resource
Log-on message, this two parts resource is called.
The Secondary resource list for obtaining second electronic equipment, is specifically included:
Automatically obtain the first communication protocol of first electronic equipment, and second electronic equipment the second communication protocols
View;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the described 3rd
Communication protocol is first communication protocol or second communication protocol;
Based on the third communication agreement, communicated, arranged with obtaining the Secondary resource with second electronic equipment
Table.
It is described when first electronic equipment is communicated with second electronic equipment in specific implementation process
First client of the first electronic equipment can find the first communication protocol and described second of first electronic equipment automatically
Second communication protocol of electronic equipment.Under normal circumstances, the communication protocol of electronic equipment has a lot, such as:Pnp agreements, alljoyn
Agreement, bonjour agreements, igrs agreements, xmpp etc., and the communication protocol of the first electronic equipment and the second described electronic equipment
It is different, at this time, it may be necessary to the communication protocol of unified first electronic equipment and the second electronic equipment, what the embodiment of the present application was taken
Method is:From the first communication protocol of first electronic equipment and the second communication protocol of second electronic equipment, choosing
The communication protocol of alternative optimum, i.e.,:Third communication agreement, is used as the common communication protocol of described two electronic equipments.
It is described to be based on the third communication agreement, communicated with second electronic equipment, to obtain second money
Source list, is specifically included:
Based on the third communication agreement, from first electronic equipment and at least one of second electric room
Selector unifies the first routed path of preparatory condition in routed path;
By first routed path, second communication file for including the Secondary resource list is obtained, wherein, institute
State the file obtained after the second communication file is packaged for second client to the Secondary resource list;
Second communication file is parsed, the Secondary resource list is obtained.
In specific implementation process, the embodiment of the present application to the first electronic equipment and the communication information of the second electronic equipment,
And first client and the first electronic equipment the first operating system between communication information, have following message format reduction:
Due to realizing, different business has different data formats, so herein, calling in the instruction of resource and the specific of data
It is transparent for the messaging bus under the resource management platform to hold, and what messaging bus was only concerned message carrys out source and destination
Ground.This programme is abstract by being carried out to business, and the data to business are encapsulated, and add header information, to describe to lead to
Believe source, place to go, type of message etc..
Message format is encapsulated by unified xml forms, and the lower portion of the resource management platform uniformly makes
Communicated with this form.
After execution of step 101, it is possible to perform step 102, i.e.,:From first electronic equipment and described second
In electronic equipment, second group of resource corresponding with the second business is obtained, wherein, first business is with second business for not
Identical business;
In specific implementation process, realize that the specific method of step 102 is identical with step 101, here is omitted.
After execution of step 102, it is possible to perform step 103, i.e.,:Generation one can be shown in first electronics
At least include on resource management interface on the display unit of equipment, the resource management interface corresponding with first business
At least two business operation objects of the first business operation object and the second business operation object corresponding with second business.
In specific implementation process, described the first business operation object or the second business operation object are specially:For
Start the shortcut of first business or second business, such as:Shortcut icon or shortcut list, for institute
State which kind of form the first business operation object and the second business operation object are specially, the embodiment of the present application does not do specific limit
System.
The generation one can be shown in the resource management interface on the display unit of first electronic equipment, specific bag
Include:
Merge the first resource list and the Secondary resource list, obtaining one is used in the resource management platform
Platform resource list;
Based on the platform resource list, the first group of log-on message and second group of money of first group of resource are obtained
Second group of log-on message in source;
Based on first group of log-on message and second group of log-on message, first business operation pair is generated respectively
As with the second business operation object;
The first business operation object and the second business operation object are at least based on, resource management circle is generated
Face, wherein, the resource management interface is a man-machine interactive interface, can respond user at least described first business operation pair
The operation of elephant, calls at least first group resource corresponding with first operation object, and pass through at least first group resource
Realize at least the first business corresponding with first operation object.
In specific implementation process, such as:First electronic equipment is a smart mobile phone, the electronic equipment being connected with it
There are tablet personal computer, intelligent television, PC, by step 101 and step 102, obtain the resource of resource needed for realizing following business
Log-on message:The incoming traffic of tablet personal computer/smart mobile phone, the screen business of intelligent television, the print service of PC etc., base
In above-mentioned every business, generate in a resource management interface, the resource management interface and show the quick of above-mentioned each business
Mode icon, user can call the corresponding business of icon by triggering these icons in the interactive interface of the first electronic equipment
Related resource(The resource may only belong to first electronic equipment, may partly belong to first electronic equipment, also may be used
First electronic equipment can be not belonging to entirely), to realize required business.
Technical scheme in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
1st, in the embodiment of the present application, using from first electronic equipment and second electronic equipment, obtain with
The corresponding first group of resource of first business, from first electronic equipment and second electronic equipment, is obtained and the second industry
It is engaged in corresponding second group of resource, generation one can be shown in resource management circle on the display unit of first electronic equipment
Face, solves the technical problem being managed collectively in the prior art for the resource shortage of distinct electronic apparatuses, realizes in intelligence
Share framework by setting up the device resource of lightweight in terminal, by discrete smart machine contact together, form one
Individual discrete " cloud ", and business achieved by the resource that each electronic equipment is had shows in the form of shortcut icon
In a resource management interface, so that the technique effect that the use to user is brought convenience.
2nd, in the embodiment of the present application, the resource management platform has unified current LAN, wide area network intelligent interconnection
Various communication protocols in technology(Such as:Upnp, alljoyn, bonjour, igrs, xmpp etc.), realize distinct electronic apparatuses
Between free communication technique effect.
Embodiment two
As shown in Fig. 2 a kind of resource acquiring method, applied to the first client that can provide resource management platform
In first electronic equipment, first electronic equipment is in working condition, in the first display unit of first electronic equipment
On can show on a resource management interface, the resource management interface to that should have including the first business corresponding with the first business
At least two business operation objects of operation object and the second business operation object corresponding with the second business, wherein, described
One business operation object, first group of resource of correspondence, second group of resource of the second business operation object correspondence, first group of money
Source includes at least one first hardware/software resources, and second group of resource includes at least one second hardware/software resources,
At least one hardware at least one described first hardware/software resources and at least one described second hardware/software resources/soft
Part resource is the hardware/software resources in the second electronic equipment for be connected with first electronic equipment, first business and
Second business is the business differed, and methods described includes:
Step 201 is performed, i.e.,:Detect whether the of the first business operation object on the correspondence resource management interface
One operation;
In specific implementation process, first electronic equipment can be a smart mobile phone, and first business can be
Print service, but the smart mobile phone does not have described print service in itself.The first described business operation object can be
Display one is used for a shortcut icon corresponding with starting the print service on the mobile phone screen.
After execution of step 201, it is possible to perform step 202, i.e.,:When detecting first operation, response
First operation, generates the first operational order;
In specific implementation process, described first operation can be that user triggers described print icon, described the
One client is detected after first operation, generates the first operational order, and the first operation operational order is used to control the
Two electronic equipments(Such as:PC)Realize described print service.
After performing step 202, it is possible to perform step 203, i.e.,:First operational order is performed, is called and institute
The corresponding first group of resource of the first business operation object is stated, and is realized and first business operation by first group of resource
Corresponding first business of object.
It is described to perform first operational order, first group of resource corresponding with the first business operation object is called,
And the first business corresponding with the first business operation object is realized by first group of resource, specifically include:
Obtain the platform resource list of the resource management platform;
Based on the platform resource list, first group of log-on message of first group of resource is obtained, wherein, described first
Group log-on message, which is included, realizes that first business needs the log-on message of all resources in first group of resource;
Based on first group of log-on message, first group of resource is called, to realize first business.
The platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, institute
State the hardware resource of the first electronic equipment the first hardware log-on message, the first of the platform software resource of first client
Platform software log-on message;With
The second system software registration information of the software resource of second operating system of second electronic equipment, institute
State the hardware resource of the second electronic equipment the second hardware log-on message, the second of the platform software resource of second client
Platform software log-on message.
In specific implementation process, the smart mobile phone needs to perform print service, prints in the smart mobile phone and stores
A Text documents, but described print service needed under the cooperation of PC, allows PC to go control one printer printing described
Text documents.The software that browses of the Text documents is only browsed in the mobile phone, but can not print the Text
The print software of document, by wired or wireless connected mode and the online PC of the smart mobile phone, with beating
Print the print software of the Text documents, it is described to browse software and the printer software has collectively constituted the mobile phone in reality
First group of resource needed for existing print service, includes log-on message and the institute for browsing software in the platform resource list
State the log-on message of print software.
It is described to be based on first group of log-on message, first group of resource is called, to realize first business, specifically
Including:
Detect whether first group of resource all belongs to first electronic equipment, obtain the first testing result;
When first testing result shows that first group of resource all belongs to first electronic equipment, based on
One group of resource registering information, calls first group of resource, to realize first business.
In specific implementation process, if first electronic equipment is the PC, the PC will perform a printing
Business, prints a Text documents, and realizes the resource described in the print service, i.e.,:Text document browsings software and printing are soft
Part is all on the PC, then, tell that PC is directly invoked and described browse software resource and print software resource, it becomes possible to
Realize the business for browsing and printing the Text documents.
It is described to be based on first group of log-on message, first group of resource is called, to realize first business, specifically
Including:
Based on the platform resource list, detect whether the resource in first group of resource all belongs to first electricity
Sub- equipment, obtains the first testing result;
When first testing result shows that first group of resource is not all of belonging to first electronic equipment, base
In the platform resource list, the Part I resource registering information of Part I resource is obtained, wherein, the Part I money
Source belongs to first group of resource, and the resource having for first electronic equipment;
Based on the platform resource list, the Part II resource registering information of Part II resource is obtained, wherein, second
Part resource belongs to first group of resource, and has for second electronic equipment, without having for first electronic equipment
Some resources;
Based on the Part I resource registering information, the first resource is called;
Based on the Part II resource registering information, the Secondary resource is called from second electronic equipment, with
First electronic equipment is set to realize first business based on the Part I resource and the Part II resource.
In specific implementation process, there is the Text document browsings software on the smart mobile phone, there is described on PC
Print software, based on the first resource log-on message, the Text document browsings software found, and call and described browse soft
Part browses the Text documents;The note of the print software is found on the PC based on the Secondary resource log-on message
Volume information, and the print software of the PC is called, make the PC control the printer being connected with its machine to print institute again
State Text documents.
It is described to be based on the Secondary resource log-on message, the Secondary resource is called from second electronic equipment, is had
Body includes:
Automatically the first communication protocol of first electronic equipment is obtained, and obtains the second of second electronic equipment and is led to
Believe agreement;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the described 3rd
Communication protocol is first communication protocol or second communication protocol;
Based on the 3rd agreement, communicated with second electronic equipment, so that first electronic equipment is called
Secondary resource in second electronic equipment.
In specific implementation process, the client for the resource management platform for passing through the embodiment of the present application in the smart mobile phone
When obtaining the print software resource of the PC, the communication with the PC should be first set up, due to the mobile phone and the PC
With different communication protocol(Such as:Upnp agreements, alljoyn agreements, bonjour agreements, igrs agreements, xmpp agreements etc.),
So, the resource management platform is unified to the communication protocol of the PC and the smart mobile phone, i.e.,:
By the first client on the smart mobile phone, the first communication protocol of the mobile phone is found automatically;
The second communication protocol of the PC, the resource management platform are obtained by the second client in the PC again
Preferably go out one from the two communication protocols and be used as common communication protocol(I.e.:Described third communication agreement).
It is described to be based on the 3rd agreement, communicated with second electronic equipment, so that first electronic equipment
The Secondary resource in second electronic equipment is called, is specifically included:
Based on the third communication agreement, from first electronic equipment and at least one of second electric room
Selector unifies the secondary route path of preparatory condition in routed path;
By the secondary route path, the first communication file is sent to second electronic equipment, to call described the
Two part resources, wherein, the instruction and data for being used for calling the Part II resource is included in first communication file, and
First communication file is the file that obtains after the first client described in one is packaged to the instruction and data, described the
Two clients can be parsed to first communication file, obtain the instruction and data, and operate by described second
System calls the Part II resource, to coordinate first electronic equipment to realize first business.
In specific implementation process, when the smart mobile phone will realize print service, first in the smart mobile phone
The second client in client and PC sets up communication, the first client selection based on unified the 3rd agreement
One optimal routed path, sends in first communication file, first communication file to second client and includes
Control instruction and the Text document information for calling the PC print software, first client is by the control
Instruction and the Text document information are packaged, and become first communication information.
In specific implementation process, the embodiment of the present application to the first electronic equipment and the communication information of the second electronic equipment,
And first client and the first electronic equipment the first operating system between communication information, have following message format reduction:
Due to realizing, different business has different data formats, so herein, calling in the instruction of resource and the specific of data
It is transparent for the messaging bus under the resource management platform to hold, and what messaging bus was only concerned message carrys out source and destination
Ground.This programme is abstract by being carried out to business, and the data to business are encapsulated, and add header information.
In specific implementation process, first communication file includes Head parts and Body parts:
Head is included:
From:The equipment user of operation service customer end is represented, i.e.,:The equipment user of a certain business of program request.
To:The equipment user of operation service resources is represented, i.e.,:The equipment user of resource needed for performing the business.
Client:Represent client,(Because an equipment may have many clients).
Resource:Represent resource,(Because ether equipment may have many resources).
Check value:Such as, cryptographic Hash, for verifying whether the data Data of business is correct.
Body is included:
Data:The data content of business is represented,(The data content interacted between service customer end and resource).
Technical scheme in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
In the embodiment of the present application, the operation object of miscellaneous service is shown on a resource management interface(Such as:Print industry
The icon of business), and detect that user, with the operation for performing the business, obtains for realizing the industry from the second electronic equipment
The Part II resource of business, and cooperated with the Part I resource in first electronic equipment, having collectively constituted is used for
First group of resource required for the first business is realized, is solved in the prior art the inconvenient technical problem of resource-sharing is realized
Easily resource is obtained from the second electronic equipment and realize the technique effect of specific transactions.
Embodiment three
Based on same inventive concept, the embodiment of the present application provides method for managing resource in embodiment one, and embodiment two
Device corresponding to the middle method for obtaining resource(I.e.:The resource management platform).
As shown in Figure 3, a kind of device, applied in the first electronic equipment, described device includes:
Client, in the first electronic equipment, is specifically included:
First acquisition unit 301, in first electronic equipment in working condition, and in first electronic equipment
When being connected with least one other electronic equipment including the second electronic equipment, from first electronic equipment and second electricity
In sub- equipment, first group of resource corresponding with the first business is obtained;
Second acquisition unit 302, for from first electronic equipment and second electronic equipment, obtaining and second
The corresponding second group of resource of business, wherein, first business and second business are the business differed;
First generation unit 303, the money on the display unit of first electronic equipment can be shown in for generating one
On source control interface, the resource management interface at least include the first business operation object corresponding with first business and with
At least two business operation objects of the corresponding second business operation object of second business;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operation system
System, first operating system is identical or different operating system, second electronic equipment with second operating system
The second client of the resource management platform can be provided by being provided with, first group of resource include at least one first hardware/
Software resource, second group of resource includes at least one second hardware/software resources, at least one described first hardware/soft
At least one hardware/software resources is and first electronics in part resource and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of equipment connection.
In specific implementation process, first electronic equipment can be smart mobile phone or tablet personal computer or intelligence electricity
Depending on or PC or intelligent game computer etc., be specifically which kind of electronic equipment for first electronic equipment, the application is implemented
Example is not particularly limited.
In specific implementation process, the first operating system of first electronic equipment can be different operating systems,
Such as:Android operation system, (SuSE) Linux OS, Windows operating system, IOS, so described client
Also have a variety of accordingly, i.e., applied to Android operation system Android client, applied to (SuSE) Linux OS Linux
Client, applied to Windows operating system window client, applied to IOS clients of IOS etc..
The first acquisition unit 301, is specifically included:
First obtains subelement, the first resource list for obtaining first electronic equipment, and obtains described second
The Secondary resource list of electronic equipment;
Second obtains subelement, for based on the first resource list and the Secondary resource list, obtain with it is described
The corresponding first group of resource of first business.
The first resource list, including:
The first system software registration information of system software resource in first operating system of first electronic equipment,
With the platform software resource of the first hardware log-on message of the hardware resource of first electronic equipment, and first client
The first platform software log-on message, wherein, the platform software resource for based on the resource management platform developed it is soft
Part resource;
The Secondary resource list, including:
The second system software registration information of software resource in second electronic equipment in the second operating system, it is described
Second hardware log-on message of the hardware resource in the second electronic equipment, and the second client in second electronic equipment
Second platform software log-on message of platform software resource.
Described second obtains subelement, specifically includes:
First acquisition module, for based on the first resource list, obtaining corresponding with first business described the
Part I resource in one electronic equipment;
Second acquisition module, for based on the Secondary resource list, obtaining corresponding with first business described the
Part II resource in two electronic equipments;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
Described first obtains subelement, specifically includes:
3rd acquisition module, for obtaining the first resource list;
4th acquisition module, the first communication protocol for obtaining first electronic equipment automatically, and second electricity
Second communication protocol of sub- equipment;
5th acquisition module, for based on first communication protocol and second communication protocol, obtaining the third communication
Agreement, wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication module, for based on the third communication agreement, being communicated with second electronic equipment, to obtain
Obtain the Secondary resource list.
The first communication module, is specifically included:
First choice submodule, for based on the third communication agreement, from first electronic equipment and described second
Selector unifies the first routed path of preparatory condition at least one routed path of electric room;
First acquisition submodule, for by first routed path, obtaining one and including the Secondary resource list
Second communication file, wherein, second communication file is that second client is packaged to the Secondary resource list
The file obtained afterwards;
First analyzing sub-module, for being parsed to second communication file, obtains the Secondary resource list.
First generation unit 303, is specifically included:
First merges subelement, for merging the first resource list and the Secondary resource list, and obtaining one is used for
Platform resource list in the resource management platform;
3rd obtains subelement, for based on the platform resource list, obtaining first group of note of first group of resource
Second group of log-on message of volume information and second group of resource;
First generation subelement, for based on first group of log-on message and second group of log-on message, giving birth to respectively
Into the first business operation object and the second business operation object;
Second generation subelement, for being at least based on the first business operation object and second business operation pair
As, the resource management interface is generated, wherein, the resource management interface is a man-machine interactive interface, can respond user couple
The operation of at least described first business operation object, calls at least first group resource corresponding with first operation object, and
At least the first business corresponding with first operation object is realized by least first group resource.
The client, in addition to:
First display unit 304, for when first electronic equipment is in working condition, showing resource management circle
On face, the resource management interface to should have including the first business operation object corresponding with the first business and with the second business pair
At least two business operation objects of the second business operation object answered, wherein, the first business operation object correspondence first
Group resource, the second business operation object second group of resource of correspondence, first group of resource include at least one first hardware/
Software resource, second group of resource includes at least one second hardware/software resources, at least one described first hardware/soft
At least one hardware/software resources is and first electronics in part resource and at least one described second hardware/software resources
Hardware/software resources in second electronic equipment of equipment connection, first business is differed with second business
Business;
First detection unit 305, for detecting whether there is the first business operation pair on the correspondence resource management interface
The first operation of elephant;
Second generation unit 306, for when detecting first operation, responding first operation, generation first
Operational order;
First execution unit 307, for performing first operational order, is called and the first business operation object pair
The first group of resource answered, and the first business corresponding with the first business operation object is realized by first group of resource.
First execution unit 307, is specifically included:
4th obtains subelement, the platform resource list for obtaining the resource management platform;
5th obtains subelement, for based on the platform resource list, obtaining first group of note of first group of resource
Volume information, wherein, first group of log-on message, which is included, realizes that first business needs all moneys in first group of resource
The log-on message in source;
First calls subelement, for based on first group of log-on message, first group of resource being called, to realize
State the first business.
The platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, institute
State the hardware resource of the first electronic equipment the first hardware log-on message, the first of the platform software resource of first client
Platform software log-on message;With
The second system software registration information of the software resource of second operating system of second electronic equipment, institute
State the hardware resource of the second electronic equipment the second hardware log-on message, the second of the platform software resource of second client
Platform software log-on message.
Described first calls subelement, specifically includes:
First detection module, for detecting whether first group of resource all belongs to first electronic equipment, is obtained
First testing result;
First calling module, for showing that first group of resource all belongs to described first when first testing result
During electronic equipment, based on first group of resource registering information, first group of resource is called, to realize first business.
Described first calls subelement, specifically includes:
First detection module, for whether based on the platform resource list, detecting the resource in first group of resource
First electronic equipment is all belonged to, the first testing result is obtained;
6th acquisition module, for showing that first group of resource is not all of belonging to described when first testing result
During the first electronic equipment, based on the platform resource list, the Part I resource registering information of Part I resource is obtained, its
In, the Part I resource belongs to first group of resource, and the resource having for first electronic equipment;
7th acquisition module, for based on the platform resource list, obtaining the Part II resource of Part II resource
Log-on message, wherein, the Part II resource belongs to first group of resource, and has for second electronic equipment, and
The resource not having for first electronic equipment;
Second calling module, for based on the Part I resource registering information, calling the Part I resource;
3rd calling module, for based on the Part II resource registering information, being adjusted from second electronic equipment
With the Part II resource, so that first electronic equipment can be based on the Part I resource and the Part II
Resource realizes first business.
3rd calling module, is specifically included:
Second acquisition submodule, the first communication protocol for obtaining first electronic equipment automatically, and obtain described
Second communication protocol of the second electronic equipment;
3rd acquisition submodule, for based on first communication protocol and second communication protocol, obtaining threeway
Believe agreement, wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication submodule, for based on the 3rd agreement, being communicated with second electronic equipment, so that institute
State the first electronic equipment and call Secondary resource in second electronic equipment.
The submodule of first communication, is specifically included:
First choice unit, for based on the third communication agreement, from first electronic equipment and the described second electricity
Selector unifies the secondary route path of preparatory condition at least one routed path of sub- equipment room;
First sends unit, for by the secondary route path, sending the first communication file to second electronics
Equipment, to call the Secondary resource, wherein, being included in first communication file is used to call the Part II resource
Instruction and data, and first communication file is to be obtained after the first client described in one is packaged to the instruction and data
File, second client can parse to first communication file, obtain the instruction and data, and pass through
Second operating system calls the Part II resource, to coordinate first electronic equipment to realize first business.
Described device(I.e.:Resource management platform)Also include:
Develop end, the unified api interface for providing, so that developer is based on described api interface, to described to institute
The platform software resource for stating resource management platform is designed.
In specific implementation process, described device(Resource management platform)Unified application programming interface is provided, supplied
Developer uses, and designs the platform software based on the resource management platform, and support web exploitations(Such as:HTML5 technologies),
Native exploitations based on described device operating system etc..
As shown in figure 4, the embodiment of the present application provides described resource management platform system framework figure (with a smart machine
Exemplified by, miscellaneous equipment is similar), it is as follows:
1、(Business)Client is arrived(Resource)The many equipment room resource sharing schemes and its system software architecture of client.
In the platform architecture(Framework)Upper strata is the platform software resource of the resource management platform, described
Interface layer of the platform software resource based on the resource management platform is designed, and described interface layer has unified application journey
Sequence DLL API, the API that described platform software can be provided based on the resource management platform carries out Software for Design.
From business and the angle of resource, the client of the resource management platform can be divided into service customer end and resource client
Hold two parts:
Service customer end:As shown in figure 4, " service customer end ", which is represented in the resource management platform, needs demand (telecommunication) service
Client, the resource management platform provides an interactive interface to the business, selects to control for user, described business is handed over
Mutual interface, referred to herein as service customer end, such as:Printing, input client, screen client end, Desktop Browser
(Applied business based on browser, such as:Application under HTML5 technologies)Deng, wherein, performing Desktop Browser class industry
During business, " core library " and " virtual machine " as shown in Figure 4 can be used.
Resource client end:As shown in figure 4, " resource client end " is represented needed for for providing execution business to service customer end
Resource client.By the resource needed for the business of service customer end institute program request can be dispersed on different electronic equipments,
And due to standby development of resources mode variation, have the resource developed based on webserver, there is what is developed based on device operating system
Resource, this programme has carried out unified management to device resource, and device resource passes through service(Service)Entity is described.Institute
The resource management platform offer stated is for the resource management of business correspondence resource, the resource management list based on individual electronic equipment,
The resource corresponding to corresponding each business is easily called, such as:Print service, screen service, input service or album-service
(This service can be provided by tablet personal computer).
2nd, messaging bus:The core of this programme, defines message stipulations, the routing mechanism of message, automatic device discovery management
Deng.
The part is divided at 4 points:
a2), be responsible for unified (upnp/alljoyn/bonjour/igrs/xmpp etc.) and find agreement automatically there is provided unified
Interface is used to the application layer on upper strata.
b2), management is automatic finds agreement, selection Optimization route transmission message.(message here is included inside system framework
Message and operation flow in message)
c2), message format reduction:Because different business has different data formats, so herein, business is in itself
Data content be transparent for messaging bus, what messaging bus was only concerned message carrys out source and destination.This programme leads to
Cross abstract to business progress, the data to business are encapsulated, and add header information;
Wherein, header information is included:
From:The equipment user of operation service customer end is represented, i.e.,:The equipment user of a certain business of program request.
To:The equipment user of operation service resources is represented, i.e.,:The equipment user of resource needed for performing the business.
Client:Represent client,(Because an equipment may have many clients).
Resource:Represent resource,(Because ether equipment may have many resources).
Check value:Such as, cryptographic Hash, for verifying whether the data of business are correct.
Message format is encapsulated by unified xml forms, and lower portion is unified to be communicated using this form.
d2), message transformer:
Due to business numerous and complicated, there is provided message transformer unified message for uniform traffic data format for conceptual internal
Data format, such as:Json is to xml conversion etc..
3rd, client connection management:
During business development, there may be various clients, this programme is unified to various clients
Management.
A3), SocketService is responsible for the client connection of Socket classes.
B3), WebSocketService is responsible for the websocket connections of browser clients.
C3), in framework ClientManager to a3)And b3)Client carries out uniform registration and management.
The module is managed by the connection to different clients, and distributing message to client for messaging bus provides
Basis.
4th, equipment resource management:
Due to the variation of device resource development scheme, there is the resource developed based on webserver, have based on equipment operation system
The resource of system exploitation, this programme has carried out unified management to device resource.Device resource passes through service(Service)Entity comes
Description.
a4), this programme webserver is managed by WebServerService, be responsible for webserver and open
Dynamic, stopping.Resource passes through the distinctive service development technology in webserver(Such as:Servlet technologies)Develop.
b4), resource Native modes develop.
c4), scheme by ServiceManager to a4) and b4)The unified registration of two kinds of resources progress developed and pipe
Reason.
The module distributes message to resource by being managed to different resources, for messaging bus and provides basis.
5th, P2P modules:
During many device resources are shared, because each equipment is in behind NAT, in order in successfully access equipment
Resource, the module is responsible for NAT and passes through, and completes the data transfer between equipment.The module passes through P2PService in scheme
To describe.
6th, Media modules:
The module is responsible for the interaction of stream medium data between equipment.
7th, the management of equipment/user
This part is divided into several parts:
a7), equipment control:
The part is mainly used to the smart machine that management is found by messaging bus.
Business development personnel can know equipment and the device service list of LAN by the part.
b7), user management:
The part mainly manages the user found by messaging bus.Business development personnel can be known extensively by the part
The list of devices that buddy list and good friend in the net of domain possess(One user may have multiple equipment).
c7), local equipment management, the part manage local equipment information.
d7), equipment room information exchange module, the part can actively initiate to obtain after equipment or user have found equipment/
User information request, other equipment is sent to by messaging bus, and other equipment feeds back the equipment of itself or user profile
Give the equipment.By this process, every equipment can find detailed device/user profile of other side automatically each other.
e7), the Resources list acquisition module, equipment can initiate the Resources list request command obtain miscellaneous equipment resource row
Table.
8th, system interface part:
For service customer end:Interface mainly has request and onResponse interfaces;Request is used for initiating request,
OnResponse is used for handling the response message of return.
For resource client end:Interface mainly has onRequest and response interfaces;OnRequest is used for handling connecing
The request message of client is received, response interfaces are used for responding client request.
The 1st point~the 8th point above is the framework of the resource management platform(Framework), the resource management
Operating system of the platform based on smart machine(Such as:Android、Linux、Windows、IOS)And design, it is furtherly base
The application programming interface API provided in the operating system of a specific electronic equipment is designed.
In the resource management platform, the message unified in device discovery protocol layer, application layer, platform software
Routing module gets up these scattered modular organisations, and device discovery protocol layer is connected as external connection with miscellaneous equipment
Connect, application layer is connected as all application programs based on this platform development on local equipment;Message routing module is responsible for
Message correctly, is quickly sent to the application program of local equipment(Or service)Or the application of the miscellaneous equipment connected outside
Program(Or service)In.
Resource management platform in the application mainly finds agreement, uniform traffic by Unified Device(Application program)Industry
IPC between business mode, unified application program, business solved by Message Routing Subsystem(Using)Developer's development equipment is assisted
With the facility of application.
As shown in figure 5, Fig. 5 is based on providing needed for business is obtained for the client of resource management platform in the embodiment of the present application three
The schematic diagram of the various ways in source, client on the first electronic equipment can the business based on user need, get the
The resource of one electronic equipment, can also be after the first electronic equipment and the second electronic equipment be set up and communicated, from the second electronic equipment
Upper acquisition resource.As development of resources personnel, it be able to can also be issued by the resource developed issue on the first electronic equipment
On cloud server, so that the first electronic equipment(Or second electronic equipment)High in the clouds is accessed the need for based on own service to obtain
Required resource.The resource for being stored in cloud server herein is not only flat including what is developed based on the resource management platform
Platform software, while also including the hardware resource that remote server is provided(Such as:FM modules, GPS module etc.).
As shown in fig. 6, Fig. 6 is the side of exploitation end issuing service/resource of resource management platform in the embodiment of the present application three
Method flow chart, itself asks the business development personnel of resource management platform described in embodiment, is needed based on business, to be developed
Resource is packed needed for business, and the file after packing is binary code form, and with the business and required resource
The description information of xml forms.Business development personnel issue to the new business developed, such as:Installed in intelligent electronic device
On, or upload on Cloud Server.
As shown in fig. 7, the client that Fig. 7 is resource management platform in the embodiment of the present application three finds other clients automatically
Method flow diagram (so that B device/good friend finds A equipment/good friend as an example, other similar):
Party A-subscriber's electronic equipment starts the resource management platform Framework;
Then associated process starts(I.e.:LauncherService starts), this interval scale A electronic equipments or party A-subscriber are
Reach the standard grade;
Pass through the communication protocol in the messaging bus in system framework Framework(Such as:Alljoyn agreements or XMPP associations
View)Declare oneself to reach the standard grade into network;
Now, the messaging bus of the B electronic equipments of B good friends is in listening state, listens to the A equipment or A good friends
Reach the standard grade information;
B electronic equipments update online equipment list or online buddy list in its equipment control list.
In specific implementation process, there can be multiple client simultaneously on A electronic equipments and B electronic equipments, it is described
Multiple client respectively have respective resource, described multiple client can mutually be found based on this method, and be set up
Friend relation, shares respective resource.
As shown in figure 8, the side that the client that Fig. 8 is resource management platform in the embodiment of the present application three is managed to resource
Method flow chart (by taking an intelligent terminal as an example):
First, the resource management platform is started (i.e.:Framework starts);
Have in the resource installation directory of the local electronic equipment of client scan, the resource installation directory based on each business
Required respective resources(Such as:System software resource, platform software resource, hardware resource)Log-on message;
Then, the resource that client scan Cloud Server can be provided,(Such as:The platform software that cloud server is registered
Resource, and other electronic equipments software resource or hardware resource);
The resource package informatin that client is provided described local resource bag and Cloud Server is parsed;
Client is managed collectively to the resource obtained in above-mentioned two classes resource bag, and is generated on a display unit
Corresponding operation object based on business(Such as:The shortcut icon of startup business).
As shown in figure 9, Fig. 9 is the demand (telecommunication) service of resource management platform in the embodiment of the present application three(Business)Client with
Correspondence resource is provided(Resource)Client carries out the method flow diagram of data interaction(Business runs on different intelligence from resource
In equipment, A correspondences service customer end, B correspondence resource clients end):
The solicited message of the business of transmission one of the client of the resource management platform on A electronic equipments;
The solicited message is by the interface layer of the resource management platform, and based on the message of the resource management platform
Bus is communicated with the messaging bus of B electronic equipments;
Described solicited message has access to required resource by the messaging bus and Message routing mechanism of B electronic equipments;
The resource(Software resource, and/or hardware resource)Responded based on the service request, and result is fed back
To the A electronic equipments.
In specific implementation process, the resource management platform supports multiple business to run simultaneously, while make online, simultaneously
With;For same equipment, if multiple application software need equipment discovery module simultaneously and need to enter with miscellaneous equipment
Row communication when, need carry out application program concurrency management when, can apply the embodiment of the present application in communication protocol can be concurrent
Manage multiple business.
As shown in Figure 10, Figure 10 is side of the client of resource management platform in the embodiment of the present application when realizing a business
Method flow chart;
The client of A equipment initiates a service request first, and the service requesting information passes through this resource management
The system framework Framework side interfaces layer of platform simultaneously reaches Framework logics by Framework Message routing mechanisms
Processing unit side.In the Framework Logical processing units side, this introduces a decision logic, for judging the client
Whether the resource required for the business that client is initiated is all local(In A equipment), obtain a judged result;
In the judged result for when being, initiation service processes call local service bag management module, based on described
Framework side interfaces layer, calls the resource(Including:The software resource of application layer in the system layer of A equipment, A equipment it is hard
The platform software resource of resource management platform described in part resource, A device clients side), to realize the business;
When it is no to state judged result, by framework Framework sides, based on preferred communication protocol(Alljoyn or
xmpp), set up and communicate with B electronic equipments, send one is used to search whether have looking into for the required resource in B electronic equipments
Ask information;B electronic equipments are based on the inquiry request and initiate a service processes, are route by the Framework sides message of B device
Mechanism, is initiated after the inquiry managed B device services package, the resource needed for inquiring, based on the routing mechanism, to A equipment
The resource is provided.
As shown in figure 11, Figure 11 is the resource entity of resource management platform in the embodiment of the present application three(Service)Life cycle
Management flow chart:
Step 1101 is performed, i.e.,:A service request is received in platform framework Framework side joints;
Step 1102 is performed, i.e.,:Into service lifecycle management;
Step 1103 is performed, i.e.,:Judge whether the request is used to start a service;
When the judged result of the step 1103 is is, step 1104 is performed, i.e.,:Patrolled to the corresponding control of the service
Collect unit and send a solicited message for being used to start the service;
Step 1105 is performed, i.e.,:The corresponding resource of the service is coordinated to handle the solicited message, so that the service is suitable
Profit starts;
In the step 1106, when the judged result of the step 1103 is no, continuation judges whether the request is used
In exiting a service;
When the judged result of the step 1106 is is, step 1107 is performed, i.e., to the control logic list of the service
Member sends a solicited message for being used to terminate the business;
Step 1108 is performed, i.e.,:Coordinate and exit solicited message described in the corresponding resource processing of the service, so that the clothes
Business smoothly terminates;
Step 1109 is performed, i.e.,:Judge whether the service is normally exited;
When the judged result of the step 1109 is is, step 1110 is performed, i.e.,:Initiated to the framework sides
The notice that the business has logged out;
Step 1111 is performed, i.e.,:The running status for updating the business is halted state(Stop states);
When the judged result of the step 1109 is no, step 1113 is performed, i.e.,:Wrong place is done to the business process
Reason, business described in compulsory withdrawal;
After execution of step 1113, the step 1110, step 1111, step 1112 are continued executing with, finally terminates this
Secondary service lifecycle management.
By the electronic equipment that the present embodiment is introduced is method for managing resource in implementation the embodiment of the present application one, and implement
The resource management platform that resource acquiring method is used in example two, so based on the resource management described in the embodiment of the present application
Method and resource acquiring method, those skilled in the art can understand the embodiment of the electronic equipment of the present embodiment
And its various change form, so how to realize that the method in the embodiment of the present application is no longer detailed for the electronic equipment at this
Introduce.Used as long as those skilled in the art implement method for managing resource and resource acquiring method in the embodiment of the present application
Electronic equipment, belong to the scope to be protected of the application.
Technical scheme in above-mentioned the embodiment of the present application, at least has the following technical effect that or advantage:
1st, used in the embodiment of the present application there is provided unified application programming interface to developer, realizing makes
Developer has liberated out from the communication details of bottom, only need to be concerned about the technique effect of service logic.
2nd, in the embodiment of the present application, described resource management platform has flexible development of resources mode, is not limited to
Certain specific development technique(Such as:Web is developed or native is developed etc.), realize the multifarious technique effect of development scheme.
3rd, in the embodiment of the present application, the resource on user, the equipment of user, user equipment is managed collectively,
Realize the technique effect for facilitating developer to call.
4th, in the embodiment of the present application, by by device resource service, completing user by messaging bus middleware, setting
Standby, service discovery, the route of message, and to the client and service end of resource(I.e.:Resource client end)Carry out unified abstract
Management, is realized from business to calling resource fast, easily technique effect.
Illustrated again with FM radio business below, such as:First electronic equipment is a PC, and the PC does not have
There are FM radio chips, second electronic equipment is a mobile phone, and the mobile phone there are FM radio chips, and the PC can be installed
One FM radio softwares(Can be the software on the software or the resource management platform of the cell phone system), and can pass through
The client of the resource management platform of the embodiment of the present application, clicks on the icon of FM radio business on a resource management interface,
The hardware resource of the FM chips is obtained from the mobile phone, to realize radio business.
Illustrated again with the screen business of intelligent television below, such as:One mobile phone is by a 1080P height in its RAM card
Clear film is played on an intelligent television, can be by the client of the resource management platform of the embodiment of the present application, in a resource pipe
The icon that screen business is clicked on interface is managed, and the video data information of the 1080P high-definition movies is passed in real time described
Intelligent television, the intelligent television just plays the high-definition movie.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation
The form of product.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the business specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The business specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of business specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (29)
1. a kind of method for managing resource, applied to the first electronic equipment with the first client that can provide resource management platform
In, it is characterised in that methods described includes:
In first electronic equipment in working condition, and in first electronic equipment with including the second electronic equipment at least
During one other electronic equipment connection, from first electronic equipment and second electronic equipment, obtain and the first business
Corresponding first group of resource;
From first electronic equipment and second electronic equipment, second group of resource corresponding with the second business is obtained, its
In, first business and second business are the business differed;
Generation one can be shown in the resource management interface on the display unit of first electronic equipment, resource management circle
At least include the first business operation object corresponding with first business and the second industry corresponding with second business on face
At least two business operation objects of operation object of being engaged in;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operating system, institute
It is identical or different operating system that the first operating system, which is stated, with second operating system, and second electronic equipment is provided with
The second client of the resource management platform can be provided, first group of resource is provided including at least one first hardware/software
Source, second group of resource includes at least one second hardware/software resources, at least one described first hardware/software resources
It is to connect with first electronic equipment with least one hardware/software resources at least one described second hardware/software resources
Hardware/software resources in the second electronic equipment connect.
2. the method as described in claim 1, it is characterised in that described to be set from first electronic equipment and second electronics
In standby, first group of resource corresponding with the first business is obtained, is specifically included:
The first resource list of first electronic equipment is obtained, and obtains the Secondary resource list of second electronic equipment;
Based on the first resource list and the Secondary resource list, first group of money corresponding with first business is obtained
Source.
3. method as claimed in claim 2, it is characterised in that the first resource list, including:
The first system software registration information of system software resource in first operating system of first electronic equipment, and institute
State the first hardware log-on message of the hardware resource of the first electronic equipment, and first client platform software resource
One platform software log-on message, wherein, the platform software resource is provided for the software developed based on the resource management platform
Source;
The Secondary resource list, including:
The second system software registration information of software resource in second operating system of second electronic equipment, described second
Second hardware log-on message of the hardware resource in electronic equipment, and the second client in second electronic equipment platform
Second platform software log-on message of software resource.
4. method as claimed in claim 2, it is characterised in that described to be based on the first resource list and the Secondary resource
List, obtains first group of resource corresponding with first business, specifically includes:
Based on the first resource list, the Part I in first electronic equipment corresponding with first business is obtained
Resource;
Based on the Secondary resource list, the Part II in second electronic equipment corresponding with first business is obtained
Resource;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
5. method as claimed in claim 4, it is characterised in that the Secondary resource row of acquisition second electronic equipment
Table, is specifically included:
Automatically obtain the first communication protocol of first electronic equipment, and second electronic equipment the second communication protocol;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the third communication
Agreement is first communication protocol or second communication protocol;
Based on the third communication agreement, communicated with second electronic equipment, to obtain the Secondary resource list.
6. method as claimed in claim 5, it is characterised in that described to be based on the third communication agreement, with the described second electricity
Sub- equipment is communicated, and to obtain the Secondary resource list, is specifically included:
Based on the third communication agreement, from least one route of first electronic equipment and second electric room
Selector unifies the first routed path of preparatory condition in path;
By first routed path, second communication file for including the Secondary resource list is obtained, wherein, described the
Two communication files are the file obtained after second client is packaged to the Secondary resource list;
Second communication file is parsed, the Secondary resource list is obtained.
7. method as claimed in claim 6, it is characterised in that the generation one can be shown in first electronic equipment
Resource management interface on display unit, is specifically included:
Merge the first resource list and the Secondary resource list, obtain a platform being used in the resource management platform
The Resources list;
Based on the platform resource list, the first group of log-on message and second group of resource of first group of resource are obtained
Second group of log-on message;
Based on first group of log-on message and second group of log-on message, generate respectively the first business operation object and
The second business operation object;
The first business operation object and the second business operation object are at least based on, the resource management interface is generated,
Wherein, the resource management interface is a man-machine interactive interface, can respond user at least described first business operation object
Operation, call at least first group resource corresponding with first operation object, and it is real to pass through at least first group resource
Existing at least the first business corresponding with first operation object.
8. a kind of resource acquiring method, applied to the first electronic equipment with the first client that can provide resource management platform
In, it is characterised in that first electronic equipment is in working condition, on the first display unit of first electronic equipment
It can show and be grasped on a resource management interface, the resource management interface to that should have including the first business corresponding with the first business
Make at least two business operation objects of object and the second business operation object corresponding with the second business, wherein, described first
Business operation object first group of resource of correspondence, second group of resource of the second business operation object correspondence, first group of resource
Including at least one the first hardware/software resources, second group of resource includes at least one second hardware/software resources, institute
State at least one hardware/software at least one first hardware/software resources and at least one described second hardware/software resources
Resource is the hardware/software resources in the second electronic equipment being connected with first electronic equipment, first business and institute
It is the business differed to state the second business, and first electronic equipment has the first operating system, the second electronic equipment tool
There is the second operating system, first operating system is identical or different operating system with second operating system, described
Second electronic equipment, which is provided with, can provide the second client of the resource management platform;Methods described includes:
Detect whether the first operation of the first business operation object on the correspondence resource management interface;
When detecting first operation, first operation is responded, the first operational order is generated;
First operational order is performed, first group of resource corresponding with the first business operation object is called, and pass through institute
State first group of resource and realize the first business corresponding with the first business operation object.
9. method as claimed in claim 8, it is characterised in that execution first operational order, is called and described
The corresponding first group of resource of one business operation object, and realized and the first business operation object by first group of resource
Corresponding first business, is specifically included:
Obtain the platform resource list of the resource management platform;
Based on the platform resource list, first group of log-on message of first group of resource is obtained, wherein, first group of note
Volume packet is containing the log-on message for realizing all resources in the first business needs first group of resource;
Based on first group of log-on message, first group of resource is called, to realize first business.
10. method as claimed in claim 9, it is characterised in that the platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, described
The first hardware log-on message, the first platform of the platform software resource of first client of the hardware resource of one electronic equipment
Software registration information;With
The second system software registration information of the software resource of second operating system of second electronic equipment, described
The second hardware log-on message, the second platform of the platform software resource of second client of the hardware resource of two electronic equipments
Software registration information.
11. method as claimed in claim 9, it is characterised in that described to be based on first group of log-on message, described the is called
One group of resource, to realize first business, is specifically included:
Detect whether first group of resource all belongs to first electronic equipment, obtain the first testing result;
When first testing result shows that first group of resource all belongs to first electronic equipment, based on first group
Resource registering information, calls first group of resource, to realize first business.
12. method as claimed in claim 9, it is characterised in that described to be based on first group of log-on message, described the is called
One group of resource, to realize first business, is specifically included:
Based on the platform resource list, detect whether the resource in first group of resource all belongs to first electronics and set
It is standby, obtain the first testing result;
When first testing result shows that first group of resource is not all of belonging to first electronic equipment, based on institute
Platform resource list is stated, the Part I resource registering information of Part I resource is obtained, wherein, the Part I resource category
In first group of resource, and the resource having for first electronic equipment;
Based on the platform resource list, the Part II resource registering information of Part II resource is obtained, wherein, described second
Part resource belongs to first group of resource, and has for second electronic equipment, without having for first electronic equipment
Some resources;
Based on the Part I resource registering information, the Part I resource is called;
Based on the Part II resource registering information, the Part II resource is called from second electronic equipment, with
First electronic equipment is set to realize first business based on the Part I resource and the Part II resource.
13. method as claimed in claim 12, it is characterised in that described to be based on the Part II resource registering information, from
The Part II resource is called in second electronic equipment, is specifically included:
Automatically the first communication protocol of first electronic equipment is obtained, and obtains the second communication protocols of second electronic equipment
View;
Based on first communication protocol and second communication protocol, third communication agreement is obtained, wherein, the third communication
Agreement is first communication protocol or second communication protocol;
Based on the third communication agreement, communicated with second electronic equipment, so that first electronic equipment is called
Part II resource in second electronic equipment.
14. method as claimed in claim 13, it is characterised in that described to be based on the third communication agreement, with described second
Electronic equipment is communicated, so that first electronic equipment calls the Part II resource in second electronic equipment, tool
Body includes:
Based on the third communication agreement, from least one route of first electronic equipment and second electric room
Selector unifies the secondary route path of preparatory condition in path;
By the secondary route path, the first communication file is sent to second electronic equipment, to call described second
Divide resource, wherein, the instruction and data for being used for calling the Part II resource is included in first communication file, and it is described
First communication file is the file obtained after the first client described in one is packaged to the instruction and data, second visitor
Family end can be parsed to first communication file, obtain the instruction and data, and pass through second operating system
The Part II resource is called, to coordinate first electronic equipment to realize first business.
15. a kind of device, applied in the first electronic equipment, it is characterised in that described device includes:
First client, in the first electronic equipment, is specifically included:
First acquisition unit, in first electronic equipment in working condition, and in first electronic equipment with including
During at least one other electronic equipment connection of the second electronic equipment, from first electronic equipment and second electronic equipment
In, obtain first group of resource corresponding with the first business;
Second acquisition unit, for from first electronic equipment and second electronic equipment, obtaining and the second business pair
The second group of resource answered, wherein, first business and second business are the business differed;
First generation unit, resource management circle on the display unit of first electronic equipment can be shown in for generating one
At least include the first business operation object corresponding with first business on face, the resource management interface and with described second
At least two business operation objects of the corresponding second business operation object of business;
Wherein, first electronic equipment has the first operating system, and second electronic equipment has the second operating system, institute
It is identical or different operating system that the first operating system, which is stated, with second operating system, and second electronic equipment is provided with
The second client of the resource management platform can be provided, first group of resource is provided including at least one first hardware/software
Source, second group of resource includes at least one second hardware/software resources, at least one described first hardware/software resources
It is to connect with first electronic equipment with least one hardware/software resources at least one described second hardware/software resources
Hardware/software resources in the second electronic equipment connect.
16. device as claimed in claim 15, it is characterised in that the first acquisition unit, is specifically included:
First obtains subelement, the first resource list for obtaining first electronic equipment, and obtains second electronics
The Secondary resource list of equipment;
Second obtains subelement, for based on the first resource list and the Secondary resource list, obtaining and described first
The corresponding first group of resource of business.
17. device as claimed in claim 16, it is characterised in that the first resource list, including:
The first system software registration information of system software resource in first operating system of first electronic equipment, and institute
State the first hardware log-on message of the hardware resource of the first electronic equipment, and first client platform software resource
One platform software log-on message, wherein, the platform software resource is provided for the software developed based on the resource management platform
Source;
The Secondary resource list, including:
The second system software registration information of software resource in second operating system of second electronic equipment, described second
Second hardware log-on message of the hardware resource in electronic equipment, and the second client in second electronic equipment platform
Second platform software log-on message of software resource.
18. device as claimed in claim 16, it is characterised in that described second obtains subelement, specifically includes:
First acquisition module, for based on the first resource list, obtaining first electricity corresponding with first business
Part I resource in sub- equipment;
Second acquisition module, for based on the Secondary resource list, obtaining second electricity corresponding with first business
Part II resource in sub- equipment;
Wherein, first group of resource described in the Part I resource and the Part II resource composition.
19. device as claimed in claim 16, it is characterised in that described first obtains subelement, specifically includes:
3rd acquisition module, for obtaining the first resource list;
4th acquisition module, the first communication protocol for obtaining first electronic equipment automatically, and second electronics are set
The second standby communication protocol;
5th acquisition module, for based on first communication protocol and second communication protocol, obtaining third communication agreement,
Wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication module, for based on the third communication agreement, being communicated with second electronic equipment, to obtain
State Secondary resource list.
20. device as claimed in claim 19, it is characterised in that the first communication module, is specifically included:
First choice submodule, for based on the third communication agreement, from first electronic equipment and second electronics
Selector unifies the first routed path of preparatory condition at least one routed path of equipment room;
First acquisition submodule, the second of the Secondary resource list is included for by first routed path, obtaining one
Communication file, wherein, second communication file is to be obtained after second client is packaged to the Secondary resource list
The file obtained;
First analyzing sub-module, for being parsed to second communication file, obtains the Secondary resource list.
21. device as claimed in claim 20, it is characterised in that first generation unit, is specifically included:
First merges subelement, for merging the first resource list and the Secondary resource list, obtains one for described
Platform resource list in resource management platform;
3rd obtains subelement, for based on the platform resource list, obtaining first group of registration letter of first group of resource
Second group of log-on message of breath and second group of resource;
First generation subelement, for based on first group of log-on message and second group of log-on message, institute to be generated respectively
State the first business operation object and the second business operation object;
Second generation subelement, it is raw for being at least based on the first business operation object and the second business operation object
Into the resource management interface, wherein, the resource management interface is a man-machine interactive interface, can respond user at least institute
The operation of the first business operation object is stated, at least first group resource corresponding with first operation object is called, and pass through institute
State at least first group resource and realize at least the first business corresponding with first operation object.
22. device as claimed in claim 15, it is characterised in that first client, in addition to:
First display unit, for when first electronic equipment is in working condition, showing a resource management interface, the money
To that should have including the first business operation object corresponding with the first business and corresponding with the second business second on source control interface
At least two business operation objects of business operation object, wherein, first group of resource of the first business operation object correspondence, institute
The second business operation object second group of resource of correspondence is stated, first group of resource includes at least one first hardware/software resources,
Second group of resource includes at least one second hardware/software resources, at least one described first hardware/software resources and institute
It is what is be connected with first electronic equipment to state at least one hardware/software resources at least one second hardware/software resources
Hardware/software resources in second electronic equipment, first business and second business are the business differed;
First detection unit, for detecting whether there is first of the first business operation object on the correspondence resource management interface
Operation;
Second generation unit, for when detecting first operation, responding first operation, the operation of generation first refers to
Order;
First execution unit, for performing first operational order, calls corresponding with the first business operation object
One group of resource, and the first business corresponding with the first business operation object is realized by first group of resource.
23. device as claimed in claim 22, it is characterised in that first execution unit, is specifically included:
4th obtains subelement, the platform resource list for obtaining the resource management platform;
5th obtains subelement, for based on the platform resource list, obtaining first group of registration letter of first group of resource
Breath, wherein, first group of log-on message, which is included, realizes that first business needs all resources in first group of resource
Log-on message;
First calls subelement, for based on first group of log-on message, calling first group of resource, to realize described
One business.
24. device as claimed in claim 23, it is characterised in that the platform resource list, including:
The first system software registration information of the software resource of first operating system of first electronic equipment, described
The first hardware log-on message, the first platform of the platform software resource of first client of the hardware resource of one electronic equipment
Software registration information;With
The second system software registration information of the software resource of second operating system of second electronic equipment, described
The second hardware log-on message, the second platform of the platform software resource of second client of the hardware resource of two electronic equipments
Software registration information.
25. device as claimed in claim 23, it is characterised in that described first calls subelement, specifically includes:
First detection module, for detecting whether first group of resource all belongs to first electronic equipment, obtains first
Testing result;
First calling module, for showing that first group of resource all belongs to first electronics when first testing result
During equipment, based on first group of resource registering information, first group of resource is called, to realize first business.
26. device as claimed in claim 23, it is characterised in that described first calls subelement, specifically includes:
First detection module, for based on the platform resource list, detecting whether the resource in first group of resource is whole
Belong to first electronic equipment, obtain the first testing result;
6th acquisition module, for showing that first group of resource is not all of belonging to described first when first testing result
During electronic equipment, based on the platform resource list, the Part I resource registering information of Part I resource is obtained, wherein,
The Part I resource belongs to first group of resource, and the resource having for first electronic equipment;
7th acquisition module, for based on the platform resource list, obtaining the Part II resource registering of Part II resource
Information, wherein, the Part II resource belongs to first group of resource, and has for second electronic equipment, without for
The resource that first electronic equipment has;
Second calling module, for based on the Part I resource registering information, calling the Part I resource;
3rd calling module, for based on the Part II resource registering information, institute to be called from second electronic equipment
Part II resource is stated, so that first electronic equipment can be based on the Part I resource and the Part II resource
Realize first business.
27. device as claimed in claim 26, it is characterised in that the 3rd calling module, is specifically included:
Second acquisition submodule, the first communication protocol for obtaining first electronic equipment automatically, and obtain described second
Second communication protocol of electronic equipment;
3rd acquisition submodule, for based on first communication protocol and second communication protocol, obtaining third communication association
View, wherein, the third communication agreement is first communication protocol or second communication protocol;
First communication submodule, for based on the third communication agreement, being communicated with second electronic equipment, so that institute
State the first electronic equipment and call the Part II resource in second electronic equipment.
28. device as claimed in claim 27, it is characterised in that the first communication submodule, is specifically included:
First choice unit, for based on the third communication agreement, being set from first electronic equipment with second electronics
Selector unifies the secondary route path of preparatory condition at least one routed path between standby;
First sends unit, for by the secondary route path, sending the first communication file to second electronic equipment,
To call the Part II resource, wherein, being included in first communication file is used to call the Part II resource
Instruction and data, and first communication file is to be obtained after the first client described in one is packaged to the instruction and data
File, second client can parse to first communication file, obtain the instruction and data, and pass through
Second operating system calls the Part II resource, to coordinate first electronic equipment to realize first business.
29. device as claimed in claim 15, it is characterised in that described device also includes:
End, the unified api interface for providing are developed, so that developer is based on the api interface, it is flat to the resource management
The platform software resource of platform is designed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310067866.XA CN104038511B (en) | 2013-03-04 | 2013-03-04 | A kind of method for managing resource and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310067866.XA CN104038511B (en) | 2013-03-04 | 2013-03-04 | A kind of method for managing resource and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104038511A CN104038511A (en) | 2014-09-10 |
CN104038511B true CN104038511B (en) | 2017-08-29 |
Family
ID=51469100
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310067866.XA Active CN104038511B (en) | 2013-03-04 | 2013-03-04 | A kind of method for managing resource and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104038511B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980520B (en) * | 2015-06-30 | 2021-08-31 | 青岛海尔智能家电科技有限公司 | Notification message receiving method, device and system |
CN107818015B (en) * | 2017-10-25 | 2021-08-06 | Oppo广东移动通信有限公司 | System resource calling method and related equipment |
CN111010712B (en) * | 2019-12-16 | 2022-11-25 | 烽火通信科技股份有限公司 | Centralized resource management system and method |
CN113938720B (en) * | 2020-07-13 | 2023-11-17 | 华为技术有限公司 | Multi-device cooperation method, electronic device and multi-device cooperation system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
US20080189312A1 (en) * | 2007-02-05 | 2008-08-07 | Microsoft Corporation | Techniques to manage a taxonomy system for heterogeneous resource domain |
CN101895448A (en) * | 2010-06-12 | 2010-11-24 | 广东中大讯通软件科技有限公司 | System for implementing digital home entertainment-oriented interactive service |
US20100332986A1 (en) * | 2009-06-26 | 2010-12-30 | Hon Hai Precision Industry Co., Ltd. | Embedded electronic device and method for controlling multimedia files therein |
CN102082992A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团山西有限公司 | Mobile office system and implementation method thereof |
CN102135965A (en) * | 2010-01-26 | 2011-07-27 | 上海美你德软件有限公司 | Resource classification management method, system and electronic equipment based on user activity background |
-
2013
- 2013-03-04 CN CN201310067866.XA patent/CN104038511B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083537A (en) * | 2006-05-31 | 2007-12-05 | 华为技术有限公司 | Method, apparatus and system for realizing device management |
US20080189312A1 (en) * | 2007-02-05 | 2008-08-07 | Microsoft Corporation | Techniques to manage a taxonomy system for heterogeneous resource domain |
US20100332986A1 (en) * | 2009-06-26 | 2010-12-30 | Hon Hai Precision Industry Co., Ltd. | Embedded electronic device and method for controlling multimedia files therein |
CN102082992A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团山西有限公司 | Mobile office system and implementation method thereof |
CN102135965A (en) * | 2010-01-26 | 2011-07-27 | 上海美你德软件有限公司 | Resource classification management method, system and electronic equipment based on user activity background |
CN101895448A (en) * | 2010-06-12 | 2010-11-24 | 广东中大讯通软件科技有限公司 | System for implementing digital home entertainment-oriented interactive service |
Also Published As
Publication number | Publication date |
---|---|
CN104038511A (en) | 2014-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10892955B1 (en) | Management of a network via a GUI of user relationships | |
CN107239416B (en) | Computer system for providing uniform abstract representation for intelligent equipment and implementation method | |
CN107636584B (en) | Follow mode and position tagging of virtual workspace viewports in a collaborative system | |
CN106464746B (en) | Support the method and non-transitory computer-readable media and system of the failure transfer in event stream processing system | |
CN108737242A (en) | The system that conversation content is provided | |
CN101889427A (en) | Distribution method,operation method and system of application system in mobile communication network | |
CN105809356A (en) | Information system resource management method based on application integrated cloud platform | |
CN113902866B (en) | Double-engine driven digital twin system | |
WO2015077259A1 (en) | Image sharing for online collaborations | |
KR102425168B1 (en) | Image acquisition methods, devices, servers and storage media | |
CN103329087A (en) | GUI generator, integrated circuit, GUI generating method, and GUI generating program | |
JP7407928B2 (en) | File comments, comment viewing methods, devices, computer equipment and computer programs | |
CN104038511B (en) | A kind of method for managing resource and device | |
CN103677970A (en) | System and method for achieving combination display of terminal local desktop and far-end virtual desktop | |
CN106850384A (en) | A kind of method and mobile terminal for realizing accessing equipment in LAN | |
CN104298492B (en) | A kind of remote mobile terminal control method and system | |
Chmielewski et al. | Application architectures for smart multi-device applications | |
Martinez-Pabon et al. | Smart TV‐Smartphone Multiscreen Interactive Middleware for Public Displays | |
CN103179102B (en) | A kind of desktop virtual method, equipment and system | |
KR101319815B1 (en) | Cloud computing-based App implementing system using distributed multi-mobile terminal | |
CN114816082A (en) | Input control method and device applied to cloud application and electronic equipment | |
Iyer et al. | Extending android application programming framework for seamless cloud integration | |
CN105204748A (en) | Terminal interaction method and device | |
CN112698829B (en) | Abnormal resource positioning method and device, storage medium and electronic equipment | |
JP2021005353A (en) | Cloud search-based recommendation method, apparatus, device, and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |