CN104038511A - Resource management method and apparatus - Google Patents

Resource management method and apparatus Download PDF

Info

Publication number
CN104038511A
CN104038511A CN201310067866.XA CN201310067866A CN104038511A CN 104038511 A CN104038511 A CN 104038511A CN 201310067866 A CN201310067866 A CN 201310067866A CN 104038511 A CN104038511 A CN 104038511A
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.)
Granted
Application number
CN201310067866.XA
Other languages
Chinese (zh)
Other versions
CN104038511B (en
Inventor
张向国
王灿
戴辉
李小丁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310067866.XA priority Critical patent/CN104038511B/en
Publication of CN104038511A publication Critical patent/CN104038511A/en
Application granted granted Critical
Publication of CN104038511B publication Critical patent/CN104038511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a resource management method and apparatus. The method is applied to a first electronic device with a first client capable of providing a resource management platform, and comprises: when the first electronic device is at a work state and the first electronic device is connected with at least one other electronic device comprising a second electronic device, obtaining a first group of resources corresponding to first services from the first electronic device and the second electronic device; obtaining a second group of resources corresponding to the second services from the first electronic device and the second; and generating a resource management interface which can be displayed on the display unit of the first electronic device.

Description

A kind of method for managing resource and device
Technical field
The present invention relates to electronic applications, relate in particular to a kind of method for managing resource and device.
Background technology
At present, conventional P C and notebook are very universal, smart mobile phone, panel computer, intelligent television, Intelligent set top box etc. have presented the growth of blast, computing capability and the storage capacity of these intelligent terminals are all greatly improved, for equipment self, the resource having is also more and more.As: smart mobile phone/panel computer has touch-screen, and the incoming traffic that carries out man-machine interaction by finger has born advantage; Concerning intelligent television, large scale screen business has born advantage, for user, sees that HDTV (High-Definition Television)/film/picture has better user to experience than mobile phone/panel computer/PC; For PC equipment, the business such as print service, projection ripe and convenience very.Different smart machines has different features, all has separately the irreplaceable device resource of other equipment.
At present, the smart machine kind that user has is more and more, and some users have multiple smart machine even simultaneously.In this case, same user, different user will produce for the interactive operation demand between many equipment thereupon.Such as: user can control intelligent television by the input of mobile phone/panel computer, makes up intelligent television and can not carry out by finger the deficiency of touch-control man-machine interaction; Intelligent television is shared with smart mobile phone/panel computer by the large scale screen of self and uses, and makes up the deficiency that mobile phone/panel computer can not large-screen be watched; Smart mobile phone/panel computer/intelligent television completes printing by the print capacity of PC, makes up deficiency that self can not directly connect by printer etc.Very many of such user's scene, but a common ground had, be all to miscellaneous equipment by the resource sharing of equipment of itself.Due to current terminal equipment very many, how by the intelligent terminal resource sharing of these numerous and complicated, to give other terminal equipment, these device resources are carried out to unified management, need a set of total solution to solve.
In prior art, interconnected solution between many equipment is very many, each producer all certain or a plurality of agreement based in the proprietary protocols such as upnp, igrs, bonjour, alljoyn, xmpp realizes the automatic discovery between equipment, then on this basis, realizes the business of self.
But in the process of present inventor's invention technical scheme in realizing the embodiment of the present application, find that above-mentioned technology at least exists following technical problem:
For different electronic equipments, the business of equipment is not extracted to unified management, each business is discrete, by the way to manage of a desktop, does not manage these business.
Summary of the invention
The application is by providing a kind of method for managing resource and device, solved in prior art the technical problem for the resource shortage unified management of distinct electronic apparatuses.
On the one hand, the application provides following technical scheme by the application's a embodiment:
A method for managing resource, is applied to have in the first electronic equipment of the first client that resource management platform can be provided, and described method comprises:
At described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
From described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, wherein, described the first business and described the second business are not identical business;
Generate a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
Preferably, described from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business, specifically comprise:
Obtain the first resource list of described the first electronic equipment, and obtain the Secondary resource list of described the second electronic equipment;
Based on described first resource list and described Secondary resource list, obtain the first group resource corresponding with described the first business.
Preferably, described first resource list, comprising:
The first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment, the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform;
Described Secondary resource list, comprising:
The second system software registration information of the software resource in the second operating system of described the second electronic equipment, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment.
Preferably, described based on described first resource list and described Secondary resource list, obtain the first group resource corresponding with described the first business, specifically comprise:
Based on described first resource list, obtain the first's resource in described the first electronic equipment corresponding with described the first business;
Based on described Secondary resource list, obtain the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
Preferably, described in obtain described the second electronic equipment Secondary resource list, specifically comprise:
The first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described third communication agreement, communicate with described the second electronic equipment, to obtain described Secondary resource list.
Preferably, described based on described third communication agreement, communicate with described the second electronic equipment, to obtain described Secondary resource list, specifically comprise:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
By described the first routed path, obtain a second communication file that comprises described Secondary resource list, wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
Described second communication file is resolved, obtain described Secondary resource list.
Preferably, described generation one can be presented at the resource management interface on the display unit of described the first electronic equipment, specifically comprises:
Merge described first resource list and described Secondary resource list, obtain a platform resource list for described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
Based on described first group of log-on message and described second group of log-on message, generate respectively described the first business operation object and described the second business operation object;
At least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
On the other hand, the application, by the application's a embodiment, provides following technical scheme:
A kind of resource acquiring method, be applied to have in the first electronic equipment of the first client that resource management platform can be provided, described the first electronic equipment is in working order time, on the first display unit of described the first electronic equipment, can show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business, described method comprises:
Detect the first operation of the first business operation object whether having on corresponding described resource management interface;
When described the first operation being detected, respond described the first operation, generate the first operational order;
Carry out described the first operational order, call the first group resource corresponding with described the first business operation object, and realize first business corresponding with described the first business operation object by described first group of resource.
Preferably, described the first operational order of described execution, calls the first group resource corresponding with described the first business operation object, and realizes first business corresponding with described the first business operation object by described first group of resource, specifically comprises:
Obtain the platform resource list of described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource, wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
Based on described first group of log-on message, call described first group of resource, to realize described the first business.
Preferably, described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
Preferably, described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Detect described first group of resource and whether all belong to described the first electronic equipment, obtain the first testing result;
When described the first testing result shows that described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, call described first group of resource, to realize described the first business.
Preferably, described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
When described the first testing result shows described first group of resource, not while all belonging to described the first electronic equipment, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
Based on described platform resource list, obtain the second portion resource registering information of second portion resource, wherein, described second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
Based on described first resource registering information, call described first resource;
Based on described second portion resource registering information, from described the second electronic equipment, call described second portion resource, so that described the first electronic equipment can be realized described the first business based on described first resource and described second portion resource.
Preferably, described based on described second portion resource registering information, from described the second electronic equipment, call described second portion resource, specifically comprise:
The first communication protocol of the first electronic equipment described in automatic acquisition, and obtain the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the second portion resource in described the second electronic equipment.
Preferably, described based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the second portion resource in described the second electronic equipment, specifically comprise:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
By described secondary route path, send the first communication file to described the second electronic equipment, to call described second portion resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
Again on the one hand, based on same inventive concept, the application, by an embodiment, provides following technical scheme:
A device, is applied in the first electronic equipment, and described device comprises:
Client, is arranged in the first electronic equipment, specifically comprises:
The first acquiring unit, be used at described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
Second acquisition unit, for from described the first electronic equipment and described the second electronic equipment, obtains the second group resource corresponding with the second business, and wherein, described the first business and described the second business are not identical business;
The first generation unit, for generating a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
Preferably, described the first acquiring unit, specifically comprises:
First obtains subelement, for obtaining the first resource list of described the first electronic equipment, and obtains the Secondary resource list of described the second electronic equipment;
Second obtains subelement, for based on described first resource list and described Secondary resource list, obtains the first group resource corresponding with described the first business.
Preferably, described first resource list, comprising:
The first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment, the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform;
Described Secondary resource list, comprising:
The second system software registration information of the software resource in the second operating system of described the second electronic equipment, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment.
Preferably, described second obtains subelement, specifically comprises:
The first acquisition module, for based on described first resource list, obtains the first's resource in described the first electronic equipment corresponding with described the first business;
The second acquisition module, for based on described Secondary resource list, obtains the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
Preferably, described first obtains subelement, specifically comprises:
The 3rd acquisition module, for obtaining described first resource list;
The 4th acquisition module, for the first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
The 5th acquisition module, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
First communication module, for based on described third communication agreement, communicates with described the second electronic equipment, to obtain described Secondary resource list.
Preferably, described first communication module, specifically comprises:
The first chooser module, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
First obtains submodule, for by described the first routed path, obtains a second communication file that comprises described Secondary resource list, and wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
The first analyzing sub-module, for described second communication file is resolved, obtains described Secondary resource list.
Preferably, described the first generation unit, specifically comprises:
First merges subelement, for merging described first resource list and described Secondary resource list, obtains a platform resource list for described resource management platform;
The 3rd obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
First generates subelement, for based on described first group of log-on message and described second group of log-on message, generates respectively described the first business operation object and described the second business operation object;
Second generates subelement, be used at least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
Preferably, described client, also comprises:
The first display unit, for at described the first electronic equipment in working order time, show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business,
The first detecting unit, for detection of the first operation that whether has the first business operation object on corresponding described resource management interface;
The second generation unit, for when described the first operation being detected, responds described the first operation, generates the first operational order;
The first performance element, for carrying out described the first operational order, calls the first group resource corresponding with described the first business operation object, and realizes first business corresponding with described the first business operation object by described first group of resource.
Preferably, described the first performance element, specifically comprises:
The 4th obtains subelement, for obtaining the platform resource list of described resource management platform;
The 5th obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource, and wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
First calls subelement, for based on described first group of log-on message, calls described first group of resource, to realize described the first business.
Preferably, described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
Preferably, described first calls subelement, specifically comprises:
Whether first detection module, all belong to described the first electronic equipment for detection of described first group of resource, obtains the first testing result;
The first calling module, when showing that when described the first testing result described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, calls described first group of resource, to realize described the first business.
Preferably, described first calls subelement, specifically comprises:
First detection module, for based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
The 6th acquisition module, being used for is not while all belonging to described the first electronic equipment when described the first testing result shows described first group of resource, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
The 7th acquisition module, for based on described platform resource list, obtains the second portion resource registering information of second portion resource, wherein, described second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
The second calling module, for based on described first resource registering information, calls described first resource;
The 3rd calling module, be used for based on described second portion resource registering information, described the first electronic equipment from described the second electronic equipment, calls described second portion resource, so that can be realized described the first business based on described first resource and described second portion resource.
Preferably, described the 3rd calling module, specifically comprises:
Second obtains submodule, for the first communication protocol of the first electronic equipment described in automatic acquisition, and obtains the second communication agreement of described the second electronic equipment;
The 3rd obtains submodule, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
The first communicator module, for based on described the 3rd agreement, communicates with described the second electronic equipment, so that described the first electronic equipment calls the described second portion resource in described the second electronic equipment.
Preferably, described the first communicator module, specifically comprises:
The first selection unit, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
First sends unit, for passing through described secondary route path, send the first communication file to described the second electronic equipment, to call described second portion resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
Preferably, described device also comprises:
Exploitation end, for unified api interface is provided, so that developer, based on described api interface, designs the described platform software resource to described resource management platform.
The one or more technical schemes that provide in the embodiment of the present application, at least have following technique effect or advantage:
1, in the application real, execute in example, employing is from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business, from described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, generate a resource management interface that can be presented on the display unit of described the first electronic equipment, solved in prior art the technical problem for the resource shortage unified management of distinct electronic apparatuses, realized on intelligent terminal and shared framework by setting up the device resource of lightweight, by discrete smart machine contact together, formed discrete " cloud ", and the achieved business of the resource that each electronic equipment is had is presented in a resource management interface with the form of shortcut icon, thereby the technique effect that the use of giving user brings convenience.
2, in the application one embodiment, described resource management platform has been unified the various communication protocols (as: upnp, alljoyn, bonjour, igrs, xmpp etc.) in current local area network (LAN), wide area network intelligent interconnection technology, has realized the technique effect of free communication between distinct electronic apparatuses.
3, in the application one embodiment, on a resource management interface, show the operand (as: icon of print service) of miscellaneous service, and detect user and use an operation of carrying out described business, from the second electronic equipment, obtain for realizing the second portion resource of described business, and cooperatively interact with the first's resource in described the first electronic equipment, jointly formed for realizing the needed first group of resource of the first business, realized easily from the second electronic equipment Gains resources and realized the technique effect of corresponding service.
4, in the application one embodiment, provide unified application programming interface to use to developer, realized developer has been liberated out from the communication details of bottom, only need to be concerned about the technique effect of service logic.
5,, in the application one embodiment, described resource management platform has development of resources mode flexibly (as: web exploitation or native exploitation etc.), has realized the multifarious technique effect of development scheme.
6, in the application one embodiment, the resource on user, user's equipment, subscriber equipment has been carried out to unified management, realized the technique effect that facilitates developer to call.
7, in the application one embodiment, by by device resource service, by the discovery of messaging bus middleware completing user, equipment, service, the route of message, and the client of resource and service end (that is: resource client) are unified to abstract management, realized quickly and easily from business to calling resource technique effect.
Accompanying drawing explanation
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 Gains resources 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;
Fig. 5 is that the client of resource management platform in the embodiment of the present application three is obtained the schematic diagram of the various ways of resource requirement based on business;
Fig. 6 is the method flow diagram of the exploitation end issuing service/resource of resource management platform in the embodiment of the present application three;
Fig. 7 is the method flow diagram that the client of resource management platform in the embodiment of the present application three is found other clients automatically;
Fig. 8 is the method flow diagram that the client of resource management platform in the embodiment of the present application three manages resource;
Fig. 9 is (business) client of resource management platform in the embodiment of the present application three and the flow chart that (resource) client is carried out data interaction;
Figure 10 be the client of resource management platform in the embodiment of the present application three when realizing a business, obtain the method flow diagram of the corresponding resource of this business;
Figure 11 is resource entity (service) the life cycle management flow chart of resource management platform in the embodiment of the present application three.
Embodiment
The embodiment of the present application is by providing a kind of method for managing resource and device, solved in prior art the technical problem for the resource shortage unified management of distinct electronic apparatuses.
The technical scheme of the embodiment of the present application is for solving the problems of the technologies described above, and general thought is as follows:
First, at described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
Then, from described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, wherein, described the first business and described the second business are not identical business;
Finally, generate a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
Visible, owing to generating a resource management interface that can be presented on the display unit of described the first electronic equipment, so, solved in prior art the technical problem for the resource shortage unified management of distinct electronic apparatuses.
In order better to understand technique scheme, below in conjunction with Figure of description and concrete execution mode, technique scheme is described in detail.
Embodiment mono-
As shown in Figure 1, a kind of method for managing resource, is applied in first electronic equipment at the first client place of the resource management platform in the application.
First, execution step 101, that is: at described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
In specific implementation process, described electronic equipment can be smart mobile phone or panel computer or intelligent television or PC, for described electronic equipment, is which kind of electronic equipment, and the embodiment of the present application is not done concrete restriction.Described the first electronic equipment has the first operating system, described the first operating system can be Android operating system, (SuSE) Linux OS, Windows operating system, IOS operating system etc., for the concrete system why of described the first operating system, the embodiment of the present application is not done concrete restriction.Described the first electronic equipment has the first software resource based on described the first operating system, and the first platform software resource based on described resource management platform, and the first hardware resource of described the first electronic equipment.When realizing described the first business, need to call described first group of resource, but described the first electronic equipment does not have whole described first group of resources, may only there is described first group of resource part wherein, or described first group of resource do not belong to described the first electronic equipment.
Described from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business, specifically comprise:
Obtain the first resource list of described the first electronic equipment, and obtain the Secondary resource list of described the second electronic equipment;
Based on described first resource list and described Secondary resource list, obtain the first group resource corresponding with described the first business.
In specific implementation process, described the first electronic equipment has the Resources list (that is: described first resource list), in described the Resources list, record: the first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment application software resources of the application layer on described the first operating system upper strata (that is :), the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform, described Secondary resource list, comprise: the second system software registration information of the software resource in described the second electronic equipment in the second operating system, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment,
Wherein, the following information that contains its corresponding resource in described log-on message:
The type of described resource, as: be the platform software resource of hardware resource or systems soft ware resource or resource management platform;
The business that can realize of described resource, as, (PC) print service, (intelligent television) screen business, (smart mobile phone/panel computer) incoming traffic etc.;
The position of described resource, that is: the electronic equipment at described resource place, and the memory location of associated documents;
The call method of described resource, that is: call instruction or the data of described resource, as: when the resource that will call is the print service on a PC, described the first client should send to described PC the second client specifically control instruction and relevant print data.
Described based on described first resource list and described Secondary resource list, obtain the first group resource corresponding with described the first business, specifically comprise:
Based on described first resource list, obtain the first's resource in described the first electronic equipment corresponding with described the first business;
Based on described Secondary resource list, obtain the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
In specific implementation process, the first group of resource that realizes described the first business may be in same electronic equipment, but in two electronic equipments, that is: first's resource of described the first electronic equipment and the second portion resource of described the second electronic equipment.When obtaining this two parts resource, first resource list that should be based on the first electronic equipment and the Secondary resource list of described the second electronic equipment, search the log-on message of this two parts resource, and based on each self-corresponding log-on message of this two parts resource, this two parts resource is called.
Described Secondary resource list of obtaining described the second electronic equipment, specifically comprises:
The first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described third communication agreement, communicate with described the second electronic equipment, to obtain described Secondary resource list.
In specific implementation process, when described the first electronic equipment and described the second electronic equipment communicate, the first client of described the first electronic equipment can be found the first communication protocol of described the first electronic equipment and the second communication agreement of described the second electronic equipment automatically.Generally, the communication protocol of electronic equipment has a lot, as: pnp agreement, alljoyn agreement, bonjour agreement, igrs agreement, xmpp etc., and the communication protocol of the first electronic equipment and described the second electronic equipment is different, now, the communication protocol that need to unify the first electronic equipment and the second electronic equipment, the method that the embodiment of the present application is taked is: from the first communication protocol of described the first electronic equipment and the second communication agreement of described the second electronic equipment, select the communication protocol of alternative optimum, that is: third communication agreement, common communication protocol as described two electronic equipments.
Described based on described third communication agreement, communicate with described the second electronic equipment, to obtain described Secondary resource list, specifically comprise:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
By described the first routed path, obtain a second communication file that comprises described Secondary resource list, wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
Described second communication file is resolved, obtain described Secondary resource list.
In specific implementation process, the communication information of the embodiment of the present application to the first electronic equipment and the second electronic equipment, and first communication information between client and the first operating system of the first electronic equipment, there is following message format reduction: owing to realizing different business, have different data formats, so here, call the instruction of resource and the particular content of data is transparent for the messaging bus under described resource management platform, messaging bus is only concerned about the source and destination of coming of message.This programme is abstract by business is carried out, and the data of business are encapsulated, and has added header information, in order to describe source, place to go, type of communication information etc.
Message format encapsulates by unified xml form, and the framework internal unity of described resource management platform is used this form to communicate.
After execution of step 101, just can perform step 102, that is: from described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, wherein, described the first business and described the second business are not identical business;
In specific implementation process, the concrete grammar of performing step 102 is identical with step 101, repeats no more herein.
After execution of step 102, just can perform step 103, that is: generate a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business.
In specific implementation process, the first described business operation object or the second business operation object, be specially: for starting the shortcut of described the first business or described the second business, as: shortcut icon or shortcut list, for described the first business operation object and described the second business operation object, be specially which kind of form, the embodiment of the present application is not done concrete restriction.
Described generation one can be presented at the resource management interface on the display unit of described the first electronic equipment, specifically comprises:
Merge described first resource list and described Secondary resource list, obtain a platform resource list for described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
Based on described first group of log-on message and described second group of log-on message, generate respectively described the first business operation object and described the second business operation object;
At least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
In specific implementation process, as: as described in the first electronic equipment be a smart mobile phone, the electronic equipment being connected with it has panel computer, intelligent television, PC, by step 101 and step 102, acquisition is achieved as follows the resource registering information of business resource requirement: the incoming traffic of panel computer/smart mobile phone, the screen business of intelligent television, print service of PC etc., every business based on above-mentioned, generate a resource management interface, in described resource management interface, show the shortcut icon of above-mentioned each business, user can be by triggering these icons in the interactive interface at the first electronic equipment, (described resource may only belong to described the first electronic equipment to call the related resource of the business that icon is corresponding, may partly belong to described the first electronic equipment, may entirely not belong to described the first electronic equipment) yet, to realize required business.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, in the embodiment of the present application, employing is from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business, from described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, generate a resource management interface that can be presented on the display unit of described the first electronic equipment, solved in prior art the technical problem for the resource shortage unified management of distinct electronic apparatuses, realized on intelligent terminal and shared framework by setting up the device resource of lightweight, by discrete smart machine contact together, formed discrete " cloud ", and the achieved business of the resource that each electronic equipment is had is presented in a resource management interface with the form of shortcut icon, thereby the technique effect that the use of giving user brings convenience.
2, in the embodiment of the present application, described resource management platform has been unified the various communication protocols (as: upnp, alljoyn, bonjour, igrs, xmpp etc.) in current local area network (LAN), wide area network intelligent interconnection technology, has realized the technique effect of free communication between distinct electronic apparatuses.
Embodiment bis-
As shown in Figure 2, a kind of resource acquiring method, be applied to have in the first electronic equipment of the first client that resource management platform can be provided, described the first electronic equipment is in working order time, on the first display unit of described the first electronic equipment, can show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business, described method comprises:
Execution step 201 detects the first operation of the first business operation object whether having on corresponding described resource management interface that is:;
In specific implementation process, described the first electronic equipment can be a smart mobile phone, and described the first business can be print service, but described smart mobile phone itself does not have described print service.The first described business operation object can be on described mobile phone screen, to show that one for a shortcut icon corresponding with starting described print service.
After execution of step 201, just can perform step 202, that is: when described the first operation being detected, respond described the first operation, generate the first operational order;
In specific implementation process, the first described operation can be that user has triggered described print icon, described the first client detects after described the first operation, generate the first operational order, described the first operating operation instruction is used for controlling the second electronic equipment (as: PC) and realizes described print service.
After execution step 202, just can perform step 203, that is: carry out described the first operational order, call the first group resource corresponding with described the first business operation object, and realize first business corresponding with described the first business operation object by described first group of resource.
Described the first operational order of described execution, calls the first group resource corresponding with described the first business operation object, and realizes first business corresponding with described the first business operation object by described first group of resource, specifically comprises:
Obtain the platform resource list of described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource, wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
Based on described first group of log-on message, call described first group of resource, to realize described the first business.
Described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
In specific implementation process, described smart mobile phone need to be carried out print service, prints a Text document of storing in described smart mobile phone, but described print service need to, under the cooperation of PC, allow PC remove to control a printer and print described Text document.In described mobile phone, only browse the software of browsing of described Text document, but there is no to print the print software of described Text document, on by wired or wireless connected mode and the online described PC of described smart mobile phone, there is the print software of printing described Text document, described software and the described printer software browsed has jointly formed described mobile phone and is realizing first group of required resource of print service, described in including, browses the log-on message of software and the log-on message of described print software in described platform resource list.
Described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Detect described first group of resource and whether all belong to described the first electronic equipment, obtain the first testing result;
When described the first testing result shows that described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, call described first group of resource, to realize described the first business.
In specific implementation process, if described the first electronic equipment is described PC, described PC will be carried out a print service, print a Text document, and realize the resource described in described print service, that is: Text document browsing software and print software are all on described PC, so, the PC of telling directly calls described software resource and the print software resource browsed, and just can realize the business of browsing and print described Text document.
Described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
When described the first testing result shows described first group of resource, not while all belonging to described the first electronic equipment, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
Based on described platform resource list, obtain the second portion resource registering information of second portion resource, wherein, second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
Based on described first resource registering information, call described first resource;
Based on described second portion resource registering information, from described the second electronic equipment, call described Secondary resource, so that described the first electronic equipment can be realized described the first business based on described first resource and described second portion resource.
In specific implementation process, on described smart mobile phone, there is described Text document browsing software, on PC, have described print software, based on described first resource log-on message, the described Text document browsing software of finding, and described in calling, browse software and browse described Text document; Based on described Secondary resource log-on message, on described PC, find the log-on message of described print software, and call the described print software of described PC, make described PC control again the printer being connected with its machine and print described Text document.
Described based on described Secondary resource log-on message, from described the second electronic equipment, call described Secondary resource, specifically comprise:
The first communication protocol of the first electronic equipment described in automatic acquisition, and obtain the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the Secondary resource in described the second electronic equipment.
In specific implementation process, when described smart mobile phone obtains the print software resource of described PC by the client of the resource management platform of the embodiment of the present application, should first set up and the communicating by letter of described PC, because described mobile phone and described PC have different communication protocol (as: upnp agreement, alljoyn agreement, bonjour agreement, igrs agreement, xmpp agreement etc.), so, described resource management platform is unified the communication protocol of described PC and described smart mobile phone, that is:
By being arranged on the first client on described smart mobile phone, automatically find the first communication protocol of described mobile phone; By being arranged on the second client in described PC, obtain the second communication agreement of described PC, described resource management platform optimizes the communication protocol (that is: described third communication agreement) that conduct is common from these two communication protocols again.
Described based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the Secondary resource in described the second electronic equipment, specifically comprise:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
By described secondary route path, send the first communication file to described the second electronic equipment, to call described second portion resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
In specific implementation process, when described smart mobile phone will be realized print service, the first client in described smart mobile phone is set up and is communicated by letter with described the 3rd agreement of the second client in PC based on unified, described the first client is selected the routed path of alternative optimum, to described the second client, send described the first communication file, in described the first communication file, comprise for calling control command and the described Text document information of described PC print software, described the first client encapsulates described control command and described Text document information, become described first communication information.
In specific implementation process, the communication information of the embodiment of the present application to the first electronic equipment and the second electronic equipment, and first communication information between client and the first operating system of the first electronic equipment, there is following message format reduction: owing to realizing different business, have different data formats, so here, call the instruction of resource and the particular content of data is transparent for the messaging bus under described resource management platform, messaging bus is only concerned about the source and destination of coming of message.This programme is abstract by business is carried out, and the data of business are encapsulated, and has added header information.
In specific implementation process, described the first communication file comprises Head part and Body part:
Head comprises:
From: the equipment user of representative operation service customer end, that is: the equipment user of a certain business of program request.
To: the equipment user of representative operation service resources, that is: the equipment user who carries out described business resource requirement.
Client: represent client, (because an equipment may have a lot of clients).
Resource: represent resource, (because ether equipment may have a lot of resources).
Check value: as, whether cryptographic Hash is correct for verifying the data Data of business.
Body comprises:
Data: represent the data content of business, (between service customer end and resource mutual data content).
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
In the embodiment of the present application, on a resource management interface, show the operand (as: icon of print service) of miscellaneous service, and detect user and use an operation of carrying out described business, from the second electronic equipment, obtain for realizing the second portion resource of described business, and cooperatively interact with the first's resource in described the first electronic equipment, jointly formed for realizing the needed first group of resource of the first business, solved in prior art, the technical problem of resource-sharing inconvenience, realized easily from the second electronic equipment Gains resources and realized the technique effect of a specific transactions.
Embodiment tri-
Based on same inventive concept, the embodiment of the present application provides method for managing resource in embodiment mono-, and the corresponding device of method (that is: described resource management platform) of Gains resources in embodiment bis-.
As shown in Figure 3, a kind of device, be applied in the first electronic equipment, described device comprises:
Client, is arranged in the first electronic equipment, specifically comprises:
The first acquiring unit 301, be used at described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
Second acquisition unit 302, for from described the first electronic equipment and described the second electronic equipment, obtains the second group resource corresponding with the second business, and wherein, described the first business and described the second business are not identical business;
The first generation unit 303, for generating a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
In specific implementation process, described the first electronic equipment can be smart mobile phone or panel computer or intelligent television or PC or intelligent game computer etc., for described the first electronic equipment which kind of electronic equipment specifically, the embodiment of the present application is not done concrete restriction.
In specific implementation process, the first operating system of described the first electronic equipment can be different operating system, as: Android operating system, (SuSE) Linux OS, Windows operating system, IOS operating system, so it is multiple that described client also has accordingly, be applied to Android operating system Android client, be applied to (SuSE) Linux OS linuxn client, be applied to Windows operating system window client, be applied to IOS client of IOS operating system etc.
Described the first acquiring unit 301, specifically comprises:
First obtains subelement, for obtaining the first resource list of described the first electronic equipment, and obtains the Secondary resource list of described the second electronic equipment;
Second obtains subelement, for based on described first resource list and described Secondary resource list, obtains the first group resource corresponding with described the first business.
Described first resource list, comprising:
The first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment, the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform;
Described Secondary resource list, comprising:
The second system software registration information of the software resource in described the second electronic equipment in the second operating system, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment.
Described second obtains subelement, specifically comprises:
The first acquisition module, for based on described first resource list, obtains the first's resource in described the first electronic equipment corresponding with described the first business;
The second acquisition module, for based on described Secondary resource list, obtains the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
Described first obtains subelement, specifically comprises:
The 3rd acquisition module, for obtaining described first resource list;
The 4th acquisition module, for the first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
The 5th acquisition module, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
First communication module, for based on described third communication agreement, communicates with described the second electronic equipment, to obtain described Secondary resource list.
Described first communication module, specifically comprises:
The first chooser module, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
First obtains submodule, for by described the first routed path, obtains a second communication file that comprises described Secondary resource list, and wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
The first analyzing sub-module, for described second communication file is resolved, obtains described Secondary resource list.
Described the first generation unit 303, specifically comprises:
First merges subelement, for merging described first resource list and described Secondary resource list, obtains a platform resource list for described resource management platform;
The 3rd obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
First generates subelement, for based on described first group of log-on message and described second group of log-on message, generates respectively described the first business operation object and described the second business operation object;
Second generates subelement, be used at least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
Described client, also comprises:
The first display unit 304, for at described the first electronic equipment in working order time, show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business,
The first detecting unit 305, for detection of the first operation that whether has the first business operation object on corresponding described resource management interface;
The second generation unit 306, for when described the first operation being detected, responds described the first operation, generates the first operational order;
The first performance element 307, for carrying out described the first operational order, calls the first group resource corresponding with described the first business operation object, and realizes first business corresponding with described the first business operation object by described first group of resource.
Described the first performance element 307, specifically comprises:
The 4th obtains subelement, for obtaining the platform resource list of described resource management platform;
The 5th obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource, and wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
First calls subelement, for based on described first group of log-on message, calls described first group of resource, to realize described the first business.
Described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
Described first calls subelement, specifically comprises:
Whether first detection module, all belong to described the first electronic equipment for detection of described first group of resource, obtains the first testing result;
The first calling module, when showing that when described the first testing result described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, calls described first group of resource, to realize described the first business.
Described first calls subelement, specifically comprises:
First detection module, for based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
The 6th acquisition module, being used for is not while all belonging to described the first electronic equipment when described the first testing result shows described first group of resource, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
The 7th acquisition module, for based on described platform resource list, obtains the second portion resource registering information of second portion resource, wherein, described second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
The second calling module, for based on described first resource registering information, calls described first resource;
The 3rd calling module, be used for based on described second portion resource registering information, described the first electronic equipment from described the second electronic equipment, calls described second portion resource, so that can be realized described the first business based on described first resource and described second portion resource.
Described the 3rd calling module, specifically comprises:
Second obtains submodule, for the first communication protocol of the first electronic equipment described in automatic acquisition, and obtains the second communication agreement of described the second electronic equipment;
The 3rd obtains submodule, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
The first communicator module, for based on described the 3rd agreement, communicates with described the second electronic equipment, so that described the first electronic equipment calls the Secondary resource in described the second electronic equipment.
The submodule of described the first communication, specifically comprises:
The first selection unit, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
First sends unit, for passing through described secondary route path, send the first communication file to described the second electronic equipment, to call described Secondary resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
Described device (that is: resource management platform) also comprises:
Exploitation end, for unified api interface is provided, so that the api interface of developer based on described designs the described platform software resource to described resource management platform.
In specific implementation process, described device (resource management platform) provides unified application programming interface, for developer, the platform software of design based on described resource management platform, and support web exploitation (as: HTML5 technology), the native exploitation based on described device operation system etc.
As shown in Figure 4, the embodiment of the present application provides described resource management platform system framework figure (smart machine of take is example, and miscellaneous equipment is roughly the same), as follows:
1, (business) client is to many equipment rooms resource sharing scheme and the system software architecture thereof of (resource) client.
On described platform architecture (Framework) upper strata, it is the platform software resource of described resource management platform, the interface layer of described platform software resource based on described resource management platform designs, described interface layer has unified application programming interface API, and the API that described platform software can provide based on described resource management platform carries out Software for Design.
From the angle of business and resource, the client of described resource management platform can be divided into service customer end and resource client two parts:
Service customer end: as shown in Figure 4, " service customer end " represents the client that needs demand (telecommunication) service in described resource management platform, described resource management platform provides an interactive interface to described business, for user, select to control, described service interaction interface, be called service customer end herein, as: Printing, input client, screen client, the applied business of Desktop Browser(based on browser, as: the application under HTML5 technology) etc., wherein, when carrying out Desktop Browser class business, can use " core library " and " virtual machine " as shown in Figure 4.
Resource client: as shown in Figure 4, " resource client " representative is for providing the client of the required resource of execution business to service customer end.Because the required resource of business of service customer end institute program request can be dispersed on different electronic equipments, and due to standby development of resources mode variation, there is the resource based on webserver exploitation, there is the resource based on device operating system exploitation, this programme has carried out unified management to device resource, and device resource is described by service (Service) entity.Described resource management platform provides the resource management for the corresponding resource of business, resource management list based on individual electronic equipment, call easily the corresponding corresponding resource of each business, as: print service, screen service, input service or album-service (this service can be provided by panel computer).
2, messaging bus: the core of this programme, the routing mechanism of definition message stipulations, message, automatic device discovery management etc.
This part is divided into 4 points:
A2), be responsible for unified (upnp/alljoyn/bonjour/igrs/xmpp etc.) and automatically find agreement, provide unified interface to use to the application layer on upper strata.
B2), management automatically finds agreement, selects best route pass-along message.(the message here comprise the message of system framework inside and the message in operation flow)
C2), message format reduction: because different business has different data formats, so here, the data content of business itself is transparent for messaging bus, and messaging bus is only concerned about the source and destination of coming of message.This programme is abstract by business is carried out, and the data of business are encapsulated, and has added header information;
Wherein, header information comprises:
From: the equipment user of representative operation service customer end, that is: the equipment user of a certain business of program request.
To: the equipment user of representative operation service resources, that is: the equipment user who carries out described business resource requirement.
Client: represent client, (because an equipment may have a lot of clients).
Resource: represent resource, (because ether equipment may have a lot of resources).
Check value: as, whether cryptographic Hash is correct for verifying the data of business.
Message format encapsulates by unified xml form, and framework internal unity is used this form to communicate.
D2), message transformer:
Due to business numerous and complicated, scheme inside is for unified business datum form, and the data format of the transducer unified message that gives information, if: json is to the conversion of xml etc.
3, client connection management:
In business development process, may there be various clients, this programme carries out unified management to various clients.
A3), SocketService is in charge of the client connection of Socket class.
B3), WebSocketService is responsible for browser client websocket connection.
C3), in framework ClientManager to a3) and b3) client carry out uniform registration and management.
This module manages by the connection of the client to different, for messaging bus distributes message to client, provides basis.
4, equipment resource management:
Due to the variation of device resource development scheme, there is the resource based on webserver exploitation, there is the resource based on device operating system exploitation, this programme has carried out unified management to device resource.Device resource is described by service (Service) entity.
A4), this programme manages webserver by WebServerService, be responsible for webserver startup, stop.Resource is developed by the distinctive service development technology (as: servlet technology) in webserver.
B4), resource Native mode is developed.
C4), scheme by ServiceManager to a4) and b4) resource of two kinds of exploitations carry out unified registration and management.
This module manages by the resource to different, for messaging bus distributes message to resource, provides basis.
5, P2P module:
At many device resources, share in process, because each equipment is after NAT, for the resource in access means successfully, this module is responsible for NAT and is passed through, the transfer of data between finishing equipment.This module is described by P2PService in scheme.
6, Media module:
This module is responsible for the mutual of stream medium data between equipment.
7, equipment/user's management
This part is divided into several parts:
A7), equipment control:
This part is mainly used to the smart machine that management is found by messaging bus.
Business development personnel can be known by this part equipment and the device service list of local area network (LAN).
B7), user management:
This part is mainly managed the user who finds by messaging bus.Business development personnel can be known the list of devices (user may have a plurality of equipment) that buddy list in wide area network and good friend have by this part.
C7), the management of this machine equipment, this part is managed the information of this machine equipment.
D7), equipment room information exchange module, this part can initiatively be initiated obtain equipment/user information request after equipment or user find, by messaging bus, sends to other equipment, other equipment feed back to this equipment by the equipment of self or user profile.By this process, every equipment can be found detailed device/user profile of the other side each other automatically.
E7), the Resources list acquisition module, equipment can be initiated the Resources list that the Resources list request command obtains miscellaneous equipment.
8, system interface part:
For service customer end: interface mainly contains request and onResponse interface; Request is used for initiating request, and onResponse is used for processing the response message of returning.
For resource client: interface mainly contains onRequest and response interface; OnRequest is used for processing the request message that receives client, and response interface is used for responding client-requested.
The 1st above point~8th is the framework (Framework) of described resource management platform, the operating system (as: Android, Linux, Windows, IOS) of described resource management platform based on smart machine and designing, further says that the application programming interface API that the operating system of the electronic equipment based on concrete provides designs.
In described resource management platform, the message routing module of having unified in device discovery protocol layer, application layer, platform software is organized these scattered modules, device discovery protocol layer as outside connect be connected with miscellaneous equipment, application layer is as all application programs connections based on this platform development on this machine equipment; Message routing module is responsible for message to send to correctly, fast in the application program (or service) of this machine equipment or the application program (or service) of the outer miscellaneous equipment connecting.
Resource management platform in the application is mainly by IPC between unified device discovery protocol, unified business (application program) trafficwise, unified application program, by message routing subsystem, solves the facility of business (application) developer development equipment synergistic application.
As shown in Figure 5, Fig. 5 is that the client of resource management platform in the embodiment of the present application three is obtained the schematic diagram of the various ways of resource requirement based on business, be positioned at the service needed that client on the first electronic equipment can be based on user, get the resource of the first electronic equipment, can also be after the first electronic equipment and the second electronic equipment be set up and to be communicated by letter, Gains resources from the second electronic equipment.As development of resources personnel, the resource of developing can be distributed on the first electronic equipment, also can be distributed on cloud server, so that the first electronic equipment (or second electronic equipment) need to be accessed high in the clouds to obtain needed resource based on own service.The resource that is stored in cloud server herein not only comprises the platform software of developing based on described resource management platform, also comprises the hardware resource (as: FM module, GPS module etc.) that remote server provides simultaneously.
As shown in Figure 6, Fig. 6 is the method flow diagram of the exploitation end issuing service/resource of resource management platform in the embodiment of the present application three, itself asks the business development personnel of resource management platform described in embodiment, based on service needed, to developing business resource requirement, pack, file after packing is binary code form, and has the descriptor of the xml form of described business and resource requirement.Business development personnel issue developed new business, as: be arranged on intelligent electronic device, or upload on Cloud Server.
As shown in Figure 7, Fig. 7 is the client of resource management platform in the embodiment of the present application three method flow diagram of automatically finding other clients (the B equipment/good friend of take finds that A equipment/good friend is as example, other roughly the same):
Party A-subscriber's electronic equipment starts described resource management platform Framework;
Then associated process starts (that is: LauncherService starts), and this interval scale A electronic equipment or party A-subscriber reach the standard grade;
By the communication protocol in the messaging bus in system framework Framework (as: Alljoyn agreement or XMPP agreement), in network, declare oneself to reach the standard grade;
Now, the messaging bus of B good friend's B electronic equipment, in listening state, listens to described A equipment or A good friend's the information of reaching the standard grade;
B electronic equipment upgrades online list of devices or the online buddy list in its equipment control list.
In specific implementation process, on A electronic equipment and B electronic equipment, can have a plurality of clients, described a plurality of clients have respectively resource separately simultaneously, and described a plurality of clients can be found mutually based on this method, and set up good friend's relation, share resource separately.
As shown in Figure 8, Fig. 8 is the method flow diagram (intelligent terminal of take is example) that the client of resource management platform in the embodiment of the present application three manages resource:
First, start described resource management platform (that is: Framework starts);
The resource installation directory of the local electronic equipment of client scan, has the log-on message based on the needed respective resources of each business (as: systems soft ware resource, platform software resource, hardware resource) in described resource installation directory;
Then, the resource that client scan Cloud Server can provide, (as: the platform software resource that cloud server is registered, and the software resource of other electronic equipments or hardware resource);
The resource package informatin that client provides described local resource bag and Cloud Server is resolved;
Client is carried out unified management to the resource obtaining in above-mentioned two class resource bags, and on a display unit, generates the corresponding operand (as: starting the shortcut icon of business) based on business.
As shown in Figure 9, Fig. 9 is the method flow diagram (business and resource run on different smart machines, the corresponding service customer end of A, the corresponding resource client of B) that (business) client of the demand (telecommunication) service of resource management platform in the embodiment of the present application three is carried out data interaction from (resource) client that corresponding resource is provided:
The solicited message of transmission one business of the client of the above resource management platform of A electronic equipment;
Described request information exchange is crossed the interface layer of described resource management platform, and the messaging bus of the messaging bus based on described resource management platform and B electronic equipment communicates;
Described solicited message, by messaging bus and the Message routing mechanism of B electronic equipment, has access to resource requirement;
Described resource (software resource and/or hardware resource) is made response based on described service request, and gives described A electronic equipment by result feedback.
In specific implementation process, described resource management platform supports a plurality of business to move, simultaneously online, use simultaneously simultaneously; For same equipment, if have a plurality of application software need simultaneously device discovery module and need to be with miscellaneous equipment communicate time, need to carry out the concurrency management of application program time, the communication protocol that can apply in the embodiment of the present application can a plurality of business of concurrency management.
As shown in figure 10, Figure 10 is the client of resource management platform in the embodiment of the present application method flow diagram when realizing a business;
First the client of A equipment is initiated a service request, and the system framework Framework side interface layer of described this resource management platform of service requesting information process also reaches Framework Logical processing unit side by Framework Message routing mechanism.In described Framework Logical processing unit side, this introduces a decision logic, for judging that the needed resource of business that described client initiates, whether all at local (A equipment), obtains a judged result;
Described, judgment result is that while being, initiate service processes, call local service bag administration module, based on described Framework side interface layer, call described resource (comprising: the platform software resource of the hardware resource of the software resource of application layer, A equipment, the distolateral described resource management platform of A device client in the system layer of A equipment), to realize described business;
When stating that the determination result is NO, by framework Framework side, based on preferred communication protocol (Alljoyn or xmpp), to set up and communicate by letter with B electronic equipment, transmission one is for searching the Query Information that whether has required described resource at B electronic equipment; B electronic equipment is initiated a service processes based on described inquiry request, by the Framework side Message routing mechanism of B equipment, initiate B device service to assure the inquiry of reason, after inquiring resource requirement, based on described routing mechanism, to A equipment, provide described resource.
As shown in figure 11, Figure 11 is resource entity (service) the life cycle management flow chart of resource management platform in the embodiment of the present application three:
Execution step 1101 is received a service request at platform framework Framework side joint that is:;
Execution step 1102, that is: enter service lifecycle and manage;
Execution step 1103 judges that whether described request is for starting a service that is:;
When judgment result is that of described step 1103 is, execution step 1104 sends one for starting the solicited message of described service to control logic unit corresponding to described service that is:;
Execution step 1105 coordinates resource processes said request information corresponding to described service, so that described service starts smoothly that is:;
In described step 1106, in described step 1103, when the determination result is NO, continue to judge that whether described request is for exiting a service;
When judgment result is that of described step 1106 is, execution step 1107, the control logic unit to described service sends one for finishing the solicited message of described business;
Execution step 1108, that is: coordinate resource corresponding to described service to exit solicited message described in processing, so that described service finishes smoothly;
Execution step 1109 judges whether described service is normally exited that is:;
When judgment result is that of described step 1109 is, execution step 1110 initiates to described framework side the notice that described business has exited that is:;
Execution step 1111, that is: the running status of upgrading described business is halted state (Stop state);
In described step 1109, when the determination result is NO, execution step 1113 is done wrong processing to described business process that is:, business described in compulsory withdrawal;
After execution of step 1113, continue to carry out described step 1110, step 1111, step 1112, finally finish this service lifecycle management.
The electronic equipment of introducing due to the present embodiment is method for managing resource in enforcement the embodiment of the present application one, and the resource management platform that in embodiment bis-, resource acquiring method adopts, so the method for managing resource based on introducing in the embodiment of the present application and resource acquiring method, those skilled in the art can understand the present embodiment electronic equipment embodiment with and various version, so the method how realizing in the embodiment of the present application for this electronic equipment at this is introduced no longer in detail.As long as those skilled in the art implement the electronic equipment that in the embodiment of the present application, method for managing resource and resource acquiring method adopt, all belong to the scope of the application institute wish protection.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
1, in the embodiment of the present application, provide unified application programming interface to use to developer, realized developer has been liberated out from the communication details of bottom, only need to be concerned about the technique effect of service logic.
2, in the embodiment of the present application, described resource management platform has development of resources mode flexibly, is not limited to certain concrete development technique (as: web exploitation or native exploitation etc.), has realized the multifarious technique effect of development scheme.
3, in the embodiment of the present application, the resource on user, user's equipment, subscriber equipment has been carried out to unified management, realized the technique effect that facilitates developer to call.
4, in the embodiment of the present application, by by device resource service, by the discovery of messaging bus middleware completing user, equipment, service, the route of message, and the client of resource and service end (that is: resource client) are unified to abstract management, realized from business to calling resource technique effect fast, easily.
With FM broadcast receiver business, give an example again below, as: as described in the first electronic equipment be a PC, described PC does not have FM broadcast receiver chip, described the second electronic equipment is a mobile phone, described mobile phone has FM broadcast receiver chip, it (can be the software of described cell phone system that described PC can be installed a FM broadcast receiver software, or the software on described resource management platform), and the client of resource management platform that can be by the embodiment of the present application, on a resource management interface, click the icon of FM broadcast receiver business, from described mobile phone, obtain the hardware resource of described FM chip, to realize broadcast receiver business.
With the screen business of intelligent television, give an example again below, as: a mobile phone is play a 1080P high-definition movie in its RAM (random access memory) card on an intelligent television, can pass through the client of the resource management platform of the embodiment of the present application, on a resource management interface, click the icon of screen business, and the video data information of described 1080P high-definition movie is passed to described intelligent television in real time, described intelligent television is just play described high-definition movie.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the business of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the business of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the business of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (29)

1. a method for managing resource, is applied to have in the first electronic equipment of the first client that resource management platform can be provided, and it is characterized in that, described method comprises:
At described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
From described the first electronic equipment and described the second electronic equipment, obtain the second group resource corresponding with the second business, wherein, described the first business and described the second business are not identical business;
Generate a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
2. the method for claim 1, is characterized in that, described from described the first electronic equipment and described the second electronic equipment, obtains the first group resource corresponding with the first business, specifically comprises:
Obtain the first resource list of described the first electronic equipment, and obtain the Secondary resource list of described the second electronic equipment;
Based on described first resource list and described Secondary resource list, obtain the first group resource corresponding with described the first business.
3. method as claimed in claim 2, is characterized in that, described first resource list, comprising:
The first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment, the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform;
Described Secondary resource list, comprising:
The second system software registration information of the software resource in the second operating system of described the second electronic equipment, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment.
4. method as claimed in claim 2, is characterized in that, described based on described first resource list and described Secondary resource list, obtains the first group resource corresponding with described the first business, specifically comprises:
Based on described first resource list, obtain the first's resource in described the first electronic equipment corresponding with described the first business;
Based on described Secondary resource list, obtain the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
5. method as claimed in claim 4, is characterized in that, described in obtain described the second electronic equipment Secondary resource list, specifically comprise:
The first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described third communication agreement, communicate with described the second electronic equipment, to obtain described Secondary resource list.
6. method as claimed in claim 5, is characterized in that, described based on described third communication agreement, communicates with described the second electronic equipment, to obtain described Secondary resource list, specifically comprises:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
By described the first routed path, obtain a second communication file that comprises described Secondary resource list, wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
Described second communication file is resolved, obtain described Secondary resource list.
7. method as claimed in claim 6, is characterized in that, described generation one can be presented at the resource management interface on the display unit of described the first electronic equipment, specifically comprises:
Merge described first resource list and described Secondary resource list, obtain a platform resource list for described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
Based on described first group of log-on message and described second group of log-on message, generate respectively described the first business operation object and described the second business operation object;
At least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
8. a resource acquiring method, be applied to have in the first electronic equipment of the first client that resource management platform can be provided, it is characterized in that, described the first electronic equipment is in working order time, on the first display unit of described the first electronic equipment, can show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business, described method comprises:
Detect the first operation of the first business operation object whether having on corresponding described resource management interface;
When described the first operation being detected, respond described the first operation, generate the first operational order;
Carry out described the first operational order, call the first group resource corresponding with described the first business operation object, and realize first business corresponding with described the first business operation object by described first group of resource.
9. method as claimed in claim 8, it is characterized in that described the first operational order of described execution calls the first group resource corresponding with described the first business operation object, and realize first business corresponding with described the first business operation object by described first group of resource, specifically comprise:
Obtain the platform resource list of described resource management platform;
Based on described platform resource list, obtain first group of log-on message of described first group of resource, wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
Based on described first group of log-on message, call described first group of resource, to realize described the first business.
10. method as claimed in claim 9, is characterized in that, described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
11. methods as claimed in claim 9, is characterized in that, described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Detect described first group of resource and whether all belong to described the first electronic equipment, obtain the first testing result;
When described the first testing result shows that described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, call described first group of resource, to realize described the first business.
12. methods as claimed in claim 9, is characterized in that, described based on described first group of log-on message, call described first group of resource, to realize described the first business, specifically comprise:
Based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
When described the first testing result shows described first group of resource, not while all belonging to described the first electronic equipment, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
Based on described platform resource list, obtain the second portion resource registering information of second portion resource, wherein, described second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
Based on described first resource registering information, call described first resource;
Based on described second portion resource registering information, from described the second electronic equipment, call described second portion resource, so that described the first electronic equipment can be realized described the first business based on described first resource and described second portion resource.
13. methods as claimed in claim 12, is characterized in that, described based on described second portion resource registering information, call described second portion resource from described the second electronic equipment, specifically comprise:
The first communication protocol of the first electronic equipment described in automatic acquisition, and obtain the second communication agreement of described the second electronic equipment;
Based on described the first communication protocol and described second communication agreement, obtain third communication agreement, wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
Based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the second portion resource in described the second electronic equipment.
14. methods as claimed in claim 13, is characterized in that, described based on described the 3rd agreement, communicate with described the second electronic equipment, so that described the first electronic equipment calls the second portion resource in described the second electronic equipment, specifically comprise:
Based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
By described secondary route path, send the first communication file to described the second electronic equipment, to call described second portion resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
15. 1 kinds of devices, are applied to, in the first electronic equipment, it is characterized in that, described device comprises:
Client, is arranged in the first electronic equipment, specifically comprises:
The first acquiring unit, be used at described the first electronic equipment in working order, and when described the first electronic equipment is connected with at least one other electronic equipment that comprises the second electronic equipment, from described the first electronic equipment and described the second electronic equipment, obtain the first group resource corresponding with the first business;
Second acquisition unit, for from described the first electronic equipment and described the second electronic equipment, obtains the second group resource corresponding with the second business, and wherein, described the first business and described the second business are not identical business;
The first generation unit, for generating a resource management interface that can be presented on the display unit of described the first electronic equipment, on described resource management interface, at least comprise the first business operation object corresponding with described the first business and with at least two business operation objects of the second business operation object corresponding to described the second business;
Wherein, described the first electronic equipment has the first operating system, described the second electronic equipment has the second operating system, described the first operating system and described the second operating system are identical or different operating system, described the second electronic equipment is provided with the second client that described resource management platform can be provided, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources.
16. devices as claimed in claim 15, is characterized in that, described the first acquiring unit, specifically comprises:
First obtains subelement, for obtaining the first resource list of described the first electronic equipment, and obtains the Secondary resource list of described the second electronic equipment;
Second obtains subelement, for based on described first resource list and described Secondary resource list, obtains the first group resource corresponding with described the first business.
17. devices as claimed in claim 16, is characterized in that, described first resource list, comprising:
The first system software registration information of the systems soft ware resource in the first operating system of described the first electronic equipment, the first hardware log-on message with the hardware resource of described the first electronic equipment, the first platform software log-on message with the platform software resource of described the first client, wherein, the software resource of described platform software resource for developing based on described resource management platform;
Described Secondary resource list, comprising:
The second system software registration information of the software resource in the second operating system of described the second electronic equipment, the second hardware log-on message of the hardware resource in described the second electronic equipment, and the second platform software log-on message of the platform software resource of the second client in described the second electronic equipment.
18. devices as claimed in claim 16, is characterized in that, described second obtains subelement, specifically comprises:
The first acquisition module, for based on described first resource list, obtains the first's resource in described the first electronic equipment corresponding with described the first business;
The second acquisition module, for based on described Secondary resource list, obtains the second portion resource in described the second electronic equipment corresponding with described the first business;
Wherein, described first resource and described second portion resource form described first group of resource.
19. devices as claimed in claim 16, is characterized in that, described first obtains subelement, specifically comprises:
The 3rd acquisition module, for obtaining described first resource list;
The 4th acquisition module, for the first communication protocol of the first electronic equipment described in automatic acquisition, and the second communication agreement of described the second electronic equipment;
The 5th acquisition module, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
First communication module, for based on described third communication agreement, communicates with described the second electronic equipment, to obtain described Secondary resource list.
20. devices as claimed in claim 19, is characterized in that, described first communication module, specifically comprises:
The first chooser module, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified the first pre-conditioned routed path;
First obtains submodule, for by described the first routed path, obtains a second communication file that comprises described Secondary resource list, and wherein, described second communication file is that described the second client encapsulates the file of rear acquisition to described Secondary resource list;
The first analyzing sub-module, for described second communication file is resolved, obtains described Secondary resource list.
21. devices as claimed in claim 20, is characterized in that, described the first generation unit, specifically comprises:
First merges subelement, for merging described first resource list and described Secondary resource list, obtains a platform resource list for described resource management platform;
The 3rd obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource and second group of log-on message of described second group of resource;
First generates subelement, for based on described first group of log-on message and described second group of log-on message, generates respectively described the first business operation object and described the second business operation object;
Second generates subelement, be used at least based on described the first business operation object and described the second business operation object, generate described resource management interface, wherein, described resource management interface is a man-machine interactive interface, can respond the operation of user at least described the first business operation object, call at least the first group resource corresponding with described the first operand, and realize at least the first business corresponding with described the first operand by described at least the first group resource.
22. devices as claimed in claim 15, is characterized in that, described client, also comprises:
The first display unit, for at described the first electronic equipment in working order time, show a resource management interface, on described resource management interface to should have comprise the first business operation object corresponding with the first business and with at least two business operation objects of the second business operation object corresponding to the second business, wherein, the corresponding first group of resource of described the first business operation object, the corresponding second group of resource of described the second business operation object, described first group of resource comprises at least one first hardware/software resources, described second group of resource comprises at least one second hardware/software resources, described at least one first hardware/software resources is the hardware/software resources in the second electronic equipment being connected with described the first electronic equipment with at least one hardware/software resources in described at least one second hardware/software resources, described the first business and described the second business are not identical business,
The first detecting unit, for detection of the first operation that whether has the first business operation object on corresponding described resource management interface;
The second generation unit, for when described the first operation being detected, responds described the first operation, generates the first operational order;
The first performance element, for carrying out described the first operational order, calls the first group resource corresponding with described the first business operation object, and realizes first business corresponding with described the first business operation object by described first group of resource.
23. devices as claimed in claim 22, is characterized in that, described the first performance element, specifically comprises:
The 4th obtains subelement, for obtaining the platform resource list of described resource management platform;
The 5th obtains subelement, for based on described platform resource list, obtains first group of log-on message of described first group of resource, and wherein, described first group of log-on message comprises realizes described in described the first service needed the log-on message of all resources in first group of resource;
First calls subelement, for based on described first group of log-on message, calls described first group of resource, to realize described the first business.
24. devices as claimed in claim 23, is characterized in that, described platform resource list, comprising:
The first platform software log-on message of the platform software resource of the first hardware log-on message of the hardware resource of the first system software registration information of the software resource of described first operating system of described the first electronic equipment, described the first electronic equipment, described the first client; With
The second platform software log-on message of the platform software resource of the second hardware log-on message of the hardware resource of the second system software registration information of the software resource of described second operating system of described the second electronic equipment, described the second electronic equipment, described the second client.
25. devices as claimed in claim 23, is characterized in that, described first calls subelement, specifically comprises:
Whether first detection module, all belong to described the first electronic equipment for detection of described first group of resource, obtains the first testing result;
The first calling module, when showing that when described the first testing result described first group of resource all belongs to described the first electronic equipment, based on first group of resource registering information, calls described first group of resource, to realize described the first business.
26. devices as claimed in claim 23, is characterized in that, described first calls subelement, specifically comprises:
First detection module, for based on described platform resource list, whether the resource detecting in described first group of resource all belongs to described the first electronic equipment, obtains the first testing result;
The 6th acquisition module, being used for is not while all belonging to described the first electronic equipment when described the first testing result shows described first group of resource, based on described platform resource list, obtain first's resource registering information of first's resource, wherein, described first resource belongs to described first group of resource, and the resource having for described the first electronic equipment;
The 7th acquisition module, for based on described platform resource list, obtains the second portion resource registering information of second portion resource, wherein, described second portion resource belongs to described first group of resource, and has for described the second electronic equipment, and the resource not having for described the first electronic equipment;
The second calling module, for based on described first resource registering information, calls described first resource;
The 3rd calling module, be used for based on described second portion resource registering information, described the first electronic equipment from described the second electronic equipment, calls described second portion resource, so that can be realized described the first business based on described first resource and described second portion resource.
27. devices as claimed in claim 26, is characterized in that, described the 3rd calling module, specifically comprises:
Second obtains submodule, for the first communication protocol of the first electronic equipment described in automatic acquisition, and obtains the second communication agreement of described the second electronic equipment;
The 3rd obtains submodule, for based on described the first communication protocol and described second communication agreement, obtains third communication agreement, and wherein, described third communication agreement is described the first communication protocol or described second communication agreement;
The first communicator module, for based on described the 3rd agreement, communicates with described the second electronic equipment, so that described the first electronic equipment calls the described second portion resource in described the second electronic equipment.
28. devices as claimed in claim 27, is characterized in that, described the first communicator module, specifically comprises:
The first selection unit, for based on described third communication agreement, from least one routed path of described the first electronic equipment and described the second electric room, selector is unified pre-conditioned secondary route path;
First sends unit, for passing through described secondary route path, send the first communication file to described the second electronic equipment, to call described second portion resource, wherein, in described the first communication file, comprise for calling the instruction and data of described second portion resource, and described the first communication file is that described in one, the first client encapsulates the file of rear acquisition to described instruction and data, described the second client can be resolved described the first communication file, obtain described instruction and data, and call described second portion resource by described the second operating system, to coordinate described the first electronic equipment, realize described the first business.
29. devices as claimed in claim 15, is characterized in that, described device also comprises:
Exploitation end, for unified api interface is provided, so that developer, based on described api interface, designs the described platform software resource to described resource management platform.
CN201310067866.XA 2013-03-04 2013-03-04 A kind of method for managing resource and device Active CN104038511B (en)

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 true CN104038511A (en) 2014-09-10
CN104038511B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980520A (en) * 2015-06-30 2015-10-14 青岛海尔智能家电科技有限公司 Notification message receiving method, device and system
CN107818015A (en) * 2017-10-25 2018-03-20 广东欧珀移动通信有限公司 A kind of system resource call method and relevant device
CN111010712A (en) * 2019-12-16 2020-04-14 烽火通信科技股份有限公司 Centralized resource management system and method
CN113938720A (en) * 2020-07-13 2022-01-14 华为技术有限公司 Multi-device cooperation method, electronic device and multi-device cooperation system

Citations (6)

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

Patent Citations (6)

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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980520A (en) * 2015-06-30 2015-10-14 青岛海尔智能家电科技有限公司 Notification message receiving method, device and system
CN104980520B (en) * 2015-06-30 2021-08-31 青岛海尔智能家电科技有限公司 Notification message receiving method, device and system
CN107818015A (en) * 2017-10-25 2018-03-20 广东欧珀移动通信有限公司 A kind of system resource call method and relevant device
CN107818015B (en) * 2017-10-25 2021-08-06 Oppo广东移动通信有限公司 System resource calling method and related equipment
CN111010712A (en) * 2019-12-16 2020-04-14 烽火通信科技股份有限公司 Centralized resource management system and method
CN113938720A (en) * 2020-07-13 2022-01-14 华为技术有限公司 Multi-device cooperation method, electronic device and multi-device cooperation system
WO2022012444A1 (en) * 2020-07-13 2022-01-20 华为技术有限公司 Multi-device collaboration method, electronic device, and multi-device collaboration system
CN113938720B (en) * 2020-07-13 2023-11-17 华为技术有限公司 Multi-device cooperation method, electronic device and multi-device cooperation system

Also Published As

Publication number Publication date
CN104038511B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
AU2022211850B2 (en) Application function implementation method and electronic device
US20110066971A1 (en) Method and apparatus for providing application interface portions on peripheral computing devices
CN111049935B (en) System for remotely controlling electronic equipment and electronic equipment thereof
WO2023093429A1 (en) Micro-application running method and apparatus, and device, storage medium and program product
EP3979589A1 (en) Image acquisition method, device, server and storage medium
CN105872578A (en) Invoking method and server
CN104038511A (en) Resource management method and apparatus
CN114422350B (en) Public cloud container instance creation method
CN114222003A (en) Service calling method, system, device, equipment and storage medium
KR101319815B1 (en) Cloud computing-based App implementing system using distributed multi-mobile terminal
Iyer et al. Extending android application programming framework for seamless cloud integration
CN114861154B (en) Collaborative login method
CN102508665B (en) Method for drawing application view and device for drawing application view
CN115599265A (en) Intelligent device control method, terminal device, server and storage medium
CN114071652B (en) Binding relation establishing method and related equipment
CN114675786A (en) Large-capacity storage mounting method, device, terminal and medium
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN109981793B (en) Remote input method
CN114007202A (en) Method for establishing binding relationship and related equipment
CN110971938B (en) Data transmission method, device and system
CN114896009B (en) Terminal equipment, server, theme recommendation method and storage medium
CN115297467B (en) Data domain switching method, device, terminal equipment and medium
CN114007127A (en) Display device and multi-device distribution network retry method
CN114007126A (en) Display device and multi-device network distribution method
CN116232876A (en) Minimized configuration method and device for cloud environment of coal preparation plant

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