CN104917799A - Resource sharing method, resource gateway, first node and second node - Google Patents

Resource sharing method, resource gateway, first node and second node Download PDF

Info

Publication number
CN104917799A
CN104917799A CN201410094877.1A CN201410094877A CN104917799A CN 104917799 A CN104917799 A CN 104917799A CN 201410094877 A CN201410094877 A CN 201410094877A CN 104917799 A CN104917799 A CN 104917799A
Authority
CN
China
Prior art keywords
section point
resource
node
power consumption
average power
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
CN201410094877.1A
Other languages
Chinese (zh)
Other versions
CN104917799B (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.)
China Mobile Group Guangxi Co Ltd
Original Assignee
China Mobile Group Guangxi Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Guangxi Co Ltd filed Critical China Mobile Group Guangxi Co Ltd
Priority to CN201410094877.1A priority Critical patent/CN104917799B/en
Publication of CN104917799A publication Critical patent/CN104917799A/en
Application granted granted Critical
Publication of CN104917799B publication Critical patent/CN104917799B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a resource sharing method which comprises the following steps: when a first node is in a first working state, the first node establishes first communication with a resource gateway based on a hyper-text transfer protocol HTTP1.1; the first node sends a first request to the resource gateway based on the first communication, wherein the first request is used for obtaining second node relevant information corresponding to the second node from the resource gateway; the first node receives a first request response fed back by the resource gateway based on the first communication and obtains the second node relevant information from the first request response; and the first node obtains a first resource from the second node based on the second node relevant information. Meanwhile, the invention also discloses the resource gateway, the first node and the second node.

Description

A kind of resource sharing method, resource gateway, first node and Section Point
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of resource sharing method, resource gateway, first node and Section Point.
Background technology
Along with the development of science and technology, the life of people come into by increasing electronic equipment, brings many facilities.Further, these electronic equipments can realize sharing of resource in a home network.
In the prior art, each electronic equipment adopts the agreement under UPnP AV framework to carry out transfer of data mostly, thus realizes the resource sharing between each electronic equipment.
But, because the type of the agreement support under UPnP AV framework excessively wide (such as: support independently DVD device plays with share), this has very high requirement to electronic equipment in compatible, cause electronic equipment very large compared with difficulty during highly compatible in realization, often need to spend a large amount of costs that electronic equipment just can be made to obtain higher compatibility.
Summary of the invention
The embodiment of the present application, by providing a kind of resource sharing method, solves owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework in prior art, and causes electronic equipment not easily to realize the technical problem of higher compatibility.
First aspect, the application provides following technical scheme by an embodiment of the application:
A kind of resource sharing method, comprising:
When first node is in the first operating state, described first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
Described first node, based on described first communication, sends the first request to described resource gateway, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Described first node, based on described first communication, receives the first request response of described resource gateway feedback, and obtains described Section Point relevant information from described first request response;
Described first node, based on described Section Point relevant information, obtains first resource from described Section Point.
Due to, HTTP1.1(HTTP-Hypertext transfer protocol1.1, HTML (Hypertext Markup Language) 1.1) be present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
Optionally, described first node, based on described Section Point relevant information, obtains first resource from described Section Point, comprising:
Described first node obtains described first time period and/or described second time period from described first request response;
At described first node based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second operating state, described first node, based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Described first node, based on described first communication, receives the second request response of described resource gateway feedback, and obtains described first resource from described second request response.
Optionally, described first node, based on described Section Point relevant information, obtains described first resource to described Section Point, comprising:
Described first node obtains described first time period and/or described second time period from described first request response;
At described first node based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second resting state, described first operating state is adjusted to the first resting state by described first node; Wherein, when described first node is in described first operating state, the average power consumption of described first node is the 3rd average power consumption; When described first node is in described first resting state, the average power consumption of described first node is the 4th average power consumption, and described 4th average power consumption is less than described 3rd average power consumption;
When current time is the initial time of described first time period, described first resting state is adjusted to described first operating state by described first node;
Described first node, based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Described first node, based on described first communication, receives the second request response of described resource gateway feedback, and obtains described first resource from described second request response.
As shown from the above technical solution, first node confirm Section Point is current be in resting state time, first node also enters resting state, when Section Point enters operating state by resting state, first node enters operating state again, send the second request to obtain first resource to resource gateway, thus realize the technique effect of the electric energy saving first node.
Second aspect, the application provides following technical scheme by an embodiment of the application:
A kind of resource sharing method, comprising:
When resource gateway is in running order, described resource gateway sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Described resource gateway, based on described first communication, receives the first request that described first node sends, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Described resource gateway, based on described first communication, sends the first request response comprising described Section Point relevant information, obtains first resource to enable described first node based on described Section Point relevant information from described Section Point to described first node.
Due to, HTTP1.1 is present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, resource gateway sets up the first communication based on HTTP HTTP1.1 agreement and first node, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, at described resource gateway based on described first communication, before receiving the first request of described first node transmission, described method also comprises:
Described resource gateway sets up second communication based on described HTTP HTTP1.1 agreement and described Section Point;
Described resource gateway, based on described second communication, receives the described Section Point relevant information that described Section Point sends.
Optionally, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
Optionally, at described resource gateway based on described first communication, after described first node sends the first request response comprising described Section Point relevant information, described method also comprises:
Described resource gateway, based on described first communication, receives the second request for obtaining described first resource that described first node sends;
Described second request, based on described second communication, is sent to described Section Point by described resource gateway;
Described resource gateway, based on described second communication, receives the second request response comprising described first resource of described Section Point feedback;
Described second request response, based on described first communication, is sent to described first node by described resource gateway.
As shown from the above technical solution, the contact communication of first node and Section Point is all pass on by resource gateway, thus achieves the technique effect by resource gateway, first node and Section Point being carried out to data monitoring.
Optionally, described resource gateway remains operating state.
As shown from the above technical solution, because resource gateway is in running order all the time, make the first request that first node any time is sent, response can be made in time, thus which ensure that the QoS(Quality of Service of resource gateway, service quality).
The third aspect, the application provides following technical scheme by an embodiment of the application:
A kind of resource sharing method, comprising:
When Section Point is in the second operating state, described Section Point sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
Described Section Point is based on described second communication, Section Point relevant information is sent to described resource gateway, to enable first node obtain described Section Point relevant information from described resource gateway, and obtain first resource based on described Section Point relevant information from described Section Point.
Due to, HTTP1.1 is present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, Section Point sets up second communication based on HTTP HTTP1.1 agreement and resource gateway, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, at described Section Point based on described second communication, after described resource gateway sends Section Point relevant information, described method also comprises:
Described Section Point receives the second request that described resource gateway sends, and described second request obtains the request of the first resource of described Section Point for first node;
Described Section Point, based on described second communication, sends the second request response comprising described first resource to described resource gateway.
Optionally, at described Section Point based on described second communication, before sending Section Point relevant information to described resource gateway, described method also comprises:
Described Section Point determines the very first time length being in described second operating state;
Described Section Point determines the second time span being in the second resting state;
Wherein, when Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption, and described Section Point cannot receive described second request.
Optionally, described method also comprises:
Described Section Point, based on current time, described very first time length and described second time span, determines that described Section Point is in the first time period of described second operating state;
Described Section Point, based on current time, described very first time length and described second time span, determines that described Section Point is in the second time period of described second resting state;
Described Section Point, based on described first time period and described second time period, generates described Section Point relevant information;
Described Section Point relevant information, by described second communication, is sent to described resource gateway by described Section Point.
Optionally, described method also comprises:
When current time was in described second time period, described second operating state of described Section Point adjustment is described second resting state;
When current time is in described first time period, described second resting state of described Section Point adjustment is described second operating state.
As shown from the above technical solution, Section Point can be in running order in first time period, and be in resting state in the second time period.Because Section Point has step working method, compared to the working method continued, the Section Point with step working method is more energy-conservation.Thus achieve the technique effect of the electric energy saving Section Point.
Optionally, described Section Point, based on following formula, determines described very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ti is described very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
Optionally, described Section Point, based on following formula, determines described second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ts is described second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
Fourth aspect, the application provides following technical scheme by an embodiment of the application:
A kind of first node, comprising:
First sets up unit, for when described first node is in the first operating state, sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
First transmitting element, for based on described first communication, sends the first request to described resource gateway, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
First receiving element, for based on described first communication, receives the first request response of described resource gateway feedback, and obtain described Section Point relevant information from described first request response;
First acquiring unit, for based on described Section Point relevant information, obtains first resource from described Section Point.
Optionally, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
Optionally, described first acquiring unit, comprising:
First acquisition module, for obtaining described first time period and/or described second time period from described first request response;
First sending module, for based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second operating state, based on described first communication, send the second request for obtaining described first resource to described resource gateway;
First receiver module, for based on described first communication, receives the second request response of described resource gateway feedback, and obtain described first resource from described second request response.
Optionally, described first acquiring unit, comprising:
Second acquisition module, for obtaining described first time period and/or described second time period from described first request response;
First adjusting module, for based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second resting state, is adjusted to the first resting state by described first operating state; Wherein, when described first node is in described first operating state, the average power consumption of described first node is the 3rd average power consumption; When described first node is in described first resting state, the average power consumption of described first node is the 4th average power consumption, and described 4th average power consumption is less than described 3rd average power consumption;
Second adjusting module, for when current time is the initial time of described first time period, is adjusted to described first operating state by described first resting state;
Second sending module, for based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Second receiver module, for based on described first communication, receives the second request response of described resource gateway feedback, and obtain described first resource from described second request response.
5th aspect, the application provides following technical scheme by an embodiment of the application:
A kind of resource gateway, comprising:
Second sets up unit, for when described resource gateway is in running order, sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Second receiving element, for based on described first communication, receives the first request that described first node sends, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Second transmitting element, for communicating based on described first, send the first request response comprising described Section Point relevant information to described first node, obtain first resource based on described Section Point relevant information from described Section Point to enable described first node.
Optionally, described resource gateway also comprises:
3rd sets up unit, for communicating based on described first at described resource gateway, before receiving the first request of described first node transmission, sets up second communication based on described HTTP HTTP1.1 agreement and described Section Point;
3rd receiving element, for based on described second communication, receives the described Section Point relevant information that described Section Point sends.
Optionally, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
Optionally, described resource gateway also comprises:
4th receiving element, for communicating based on described first at described resource gateway, after described first node sends the first request response comprising described Section Point relevant information, based on described first communication, receive the second request for obtaining described first resource that described first node sends;
3rd transmitting element, for based on described second communication, sends to described Section Point by described second request;
5th receiving element, for based on described second communication, receives the second request response comprising described first resource of described Section Point feedback;
4th transmitting element, for based on described first communication, sends to described first node by described second request response.
Optionally, described resource gateway also comprises:
Holding unit, for remaining operating state.
6th aspect, the application provides following technical scheme by an embodiment of the application:
A kind of Section Point, comprising:
4th sets up unit, for when described Section Point is in the second operating state, sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
5th transmitting element, for based on described second communication, send Section Point relevant information to described resource gateway, to enable first node obtain described Section Point relevant information from described resource gateway, and obtain first resource based on described Section Point relevant information from described Section Point.
Optionally, described Section Point also comprises:
6th receiving element, for described based on described second communication, after described resource gateway sends Section Point relevant information, receive the second request that described resource gateway sends, described second request obtains the request of the first resource of described Section Point for first node;
6th transmitting element, for based on described second communication, sends the second request response comprising described first resource to described resource gateway.
Optionally, described Section Point also comprises:
First determining unit, at described Section Point based on described second communication, before sending Section Point relevant information to described resource gateway, determine the very first time length being in described second operating state;
Second determining unit, for determining the second time span being in the second resting state;
Wherein, when Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption, and described Section Point cannot receive described second request.
Optionally, described Section Point also comprises:
3rd determining unit, for based on current time, described very first time length and described second time span, determines that described Section Point is in the first time period of described second operating state;
4th determining unit, for based on current time, described very first time length and described second time span, determines that described Section Point is in the second time period of described second resting state;
First generation unit, for based on described first time period and described second time period, generates described Section Point relevant information;
7th transmitting element, for by described second communication, sends to described resource gateway by described Section Point relevant information.
Optionally, described Section Point also comprises:
First adjustment unit, during for being in current time in described second time period, adjusting described second operating state is described second resting state;
Second adjustment unit, during for being in described first time period in current time, adjusting described second resting state is described second operating state.
Optionally, described first determining unit, based on following formula, determines described very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ti is described very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
Optionally, described second determining unit, based on following formula, determines described second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ts is described second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of resource sharing system in the embodiment of the present application;
Fig. 2 is the flow chart of resource classifying method in the embodiment of the present application one;
Fig. 3 is the flow chart of resource classifying method in the embodiment of the present application two;
Fig. 4 is the flow chart of resource classifying method in the embodiment of the present application three;
Fig. 5 is the structural representation of first node in the embodiment of the present application four; .
Fig. 6 is the structural representation of resource gateway in the embodiment of the present application five;
Fig. 7 is the structural representation of Section Point in the embodiment of the present application six.
Embodiment
The embodiment of the present application, by providing a kind of resource sharing method, solves owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework in prior art, and causes electronic equipment not easily to realize the technical problem of higher compatibility.
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:
A kind of resource sharing method, comprising:
When first node is in the first operating state, described first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
Described first node, based on described first communication, sends the first request to described resource gateway, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Described first node, based on described first communication, receives the first request response of described resource gateway feedback, and obtains described Section Point relevant information from described first request response;
Described first node, based on described Section Point relevant information, obtains first resource from described Section Point.
Due to, HTTP1.1(HTTP-Hypertext transfer protocol1.1, HTML (Hypertext Markup Language) 1.1) be present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
For making the object of the application one embodiment, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
First illustrate, the term "and/or" occurred herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Secondly explanation, the term " first node " occurred herein, it can be arbitrary intelligent electronic device, this electronic equipment is connected by wired (or wireless) mode with resource gateway, by communicating with resource gateway, (first) resource that the Section Point that is connected with resource gateway provides can be obtained.
Again illustrate, the term " Section Point " occurred herein can be arbitrary intelligent electronic device, and this electronic equipment is connected by wired (or wireless) mode with resource gateway, by communicating with resource gateway, (first) resource can be provided to first node.
Again illustrate, the term " resource gateway " occurred herein, it can be arbitrary intelligent electronic device, this electronic equipment is connected by wired (or wireless) mode and is connected with multiple first node or Section Point, for controlling first node and Section Point, realize (first) resource sharing of Section Point to first node.
Again illustrate, the term " first resource " occurred herein or " resource ", refer to the resource that Section Point has, this resource can be data or file, also can be a certain specific business, such as: print service, large-size screen monitors display business, mail service, satellite fix business etc., for this specific transactions specifically which kind of business, the embodiment of the present application does not do concrete restriction.
Embodiment one
The present embodiment provides a kind of resource sharing method, before introducing this resource sharing method, first introduces as follows the resource sharing system at first node place:
As shown in Figure 1, give a kind of resource sharing system in Fig. 1, this system comprises first node, resource gateway and Section Point, and first node is connected with resource gateway by wired (or wireless) mode with Section Point.First node, as resource user, obtains (first) resource of providing of Section Point by resource gateway; Section Point, as resource owner, provides (first) resource by resource gateway to first node.Multiple (or one) first node and multiple (or one) Section Point, as the manager of resource sharing, couple together by resource gateway, form resource sharing system as shown in Figure 1.
As shown in Figure 2, stand in first node side, the present embodiment provides a kind of resource sharing method, comprising:
Step 101: when first node is in the first operating state, first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
Step 102: first node, based on the first communication, sends the first request to resource gateway, the first request is used for obtaining Section Point relevant information corresponding to Section Point to resource gateway;
Step 103: first node, based on the first communication, receives the first request response of resource gateway feedback, and obtain Section Point relevant information from the first request response;
Step 104: first node, based on Section Point relevant information, obtains first resource from Section Point.
Due to, HTTP1.1 is present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, Section Point relevant information, comprising:
Section Point is in the first time period of the second operating state; And/or
Section Point is in the second time period of the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption.For first time period and the second time period specifically which, the embodiment of the present application does not do concrete restriction time period.Visible, Section Point when being in the second resting state, than more energy-conservation when being in the second operating state.
Optionally, step 104, comprising:
First node obtains first time period and/or the second time period from the first request response;
At first node based on first time period and/or the second time period, when determining that Section Point is current and be in the second operating state, first node, based on the first communication, sends the second request for obtaining first resource to resource gateway;
First node, based on the first communication, receives the second request response of resource gateway feedback, and obtain first resource from the second request response.
In specific implementation process, first node, when confirming that current time belongs to first time period, can determine that Section Point is in running order, and now, first node sends the second request to resource gateway, to realize obtaining first resource from Section Point.
For example, when first time period is 9 when 05 point 00 second ~ 9 10 points 00 second; When current time is 96 points 10 seconds, first node is learnt by judgement, and current time belongs to first time period, then determine that Section Point is current in running order, then to resource gateway send second request, to obtain first resource by resource gateway from Section Point.
Optionally, step 104, comprising:
First node obtains first time period and/or the second time period from the first request response;
At first node based on first time period and/or the second time period, when determining that Section Point is current and be in the second resting state, the first operating state is adjusted to the first resting state by first node; Wherein, when first node is in the first operating state, the average power consumption of first node is the 3rd average power consumption; When first node is in the first resting state, the average power consumption of first node is the 4th average power consumption, and the 4th average power consumption is less than the 3rd average power consumption;
When current time is the initial time of first time period, the first resting state is adjusted to the first operating state by first node;
First node, based on the first communication, sends the second request for obtaining first resource to resource gateway;
First node, based on the first communication, receives the second request response of resource gateway feedback, and obtain first resource from the second request response.
For example, when the second time period was 9 when 00 point 00 second ~ 94 points 59 seconds, when first time period is 9 when 05 point 00 second ~ 9 09 point 59 seconds; When current time is 92 points 10 seconds, first node is learnt by judgement, current time belonged to for the second time period, then determine that Section Point is current and be in resting state, now, oneself is also adjusted to resting state by first node, when first time period arrives, enter operating state by resting state again, and send the second request for obtaining first resource, to obtain first resource to resource gateway.
As shown from the above technical solution, first node confirm Section Point is current be in resting state time, first node also enters resting state, when Section Point enters operating state by resting state, first node enters operating state again, send the second request to obtain first resource to resource gateway, thus realize the technique effect of the electric energy saving first node.
Embodiment two
As shown in Figure 3, stand in resource gateway point side, the present embodiment provides a kind of resource sharing method, comprising:
Step 201: when resource gateway is in running order, resource gateway sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Step 202: resource gateway, based on the first communication, receives the first request that first node sends, the first request is used for obtaining Section Point relevant information corresponding to Section Point to resource gateway;
Step 203: resource gateway, based on the first communication, sends the first request response comprising relevant information, obtains first resource to enable first node based on Section Point relevant information from Section Point to first node.
Due to, HTTP1.1(HTTP-Hypertext transfer protocol1.1, HTML (Hypertext Markup Language) 1.1) be present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, resource gateway sets up the first communication based on HTTP HTTP1.1 agreement and first node, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, before step 202, the method also comprises:
Resource gateway sets up second communication based on HTTP HTTP1.1 agreement and Section Point;
Resource gateway, based on second communication, receives the Section Point relevant information that Section Point sends.
Optionally, Section Point relevant information, comprising:
Section Point is in the first time period of the second operating state; And/or
Section Point is in the second time period of the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption.
Optionally, after step 203, the method also comprises:
Resource gateway, based on the first communication, receives the second request for obtaining first resource that first node sends;
Second request, based on second communication, is sent to Section Point by resource gateway;
Resource gateway, based on second communication, receives the second request response comprising first resource of Section Point feedback;
Second request response, based on the first communication, is sent to first node by resource gateway.
As shown from the above technical solution, the contact communication of first node and Section Point is all pass on by resource gateway, thus achieves the technique effect by resource gateway, first node and Section Point being carried out to data monitoring.
Optionally, resource gateway remains operating state.
As shown from the above technical solution, because resource gateway is in running order all the time, make the first request that first node any time is sent, response can be made in time, thus which ensure that the QoS(Quality of Service of resource gateway, service quality).
Embodiment three
As shown in Figure 4, stand in Section Point side, the present embodiment provides a kind of resource sharing method, comprising:
Step 301: when Section Point is in the second operating state, Section Point sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
Step 302: Section Point, based on second communication, sends Section Point relevant information to resource gateway, to enable first node obtain Section Point relevant information from resource gateway, and obtains first resource based on Section Point relevant information from Section Point.
Due to, HTTP1.1(HTTP-Hypertext transfer protocol1.1, HTML (Hypertext Markup Language) 1.1) be present Internet(Internetwork, Internet) the web page browsing agreement of Plays, and most equipment all supports HTTP1.1 agreement.HTTP1.1 agreement define not only the transmission of text data, also defines the transmission means of stream medium data simultaneously.Angle is supported, the work of the completely competent home network transfer of data of HTTP1.1 from equipment support and agreement.From physical equipment on, present smart machine substantially all supports HTTP1.1 agreement; From protocol function on, HTTP1.1 agreement can provide basis for the transmission of flow media data of family.As can be seen from equipment support and protocol function, use the agreement under HTTP1.1 protocol comparison use UPnP AV framework to have compatibility higher, realize the advantage that cost is lower.
As shown from the above technical solution, Section Point sets up second communication based on HTTP HTTP1.1 agreement and resource gateway, efficiently solve in prior art owing to using resource sharing between each electronic equipment of protocol realization under UPnP AV framework, and cause electronic equipment not easily to realize the technical problem of higher compatibility, achieve under the prerequisite of the resource-sharing ensureing each equipment room, each electronic equipment more easily obtains higher compatibility, and realizes lower-cost technique effect.
Optionally, after step 302, the method also comprises:
Section Point receives the second request that resource gateway sends, and the second request obtains the request of the first resource of Section Point for first node;
Section Point, based on second communication, sends the second request response comprising first resource to resource gateway.
Optionally, before step 302, the method also comprises:
Section Point determines the very first time length being in the second operating state;
Section Point determines the second time span being in the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption, and Section Point cannot receive the second request.For very first time length and the second time span, do not do concrete restriction herein.
Optionally, before step 302, the method also comprises:
Section Point, based on current time, very first time length and the second time span, determines that Section Point is in the first time period of the second operating state, after first time period is positioned at current time;
Section Point, based on current time, very first time length and the second time span, determines that Section Point is in the second time period of the second resting state, after the second time period was positioned at current time, and with first time period zero lap;
Section Point, based on first time period and the second time period, generates Section Point relevant information;
Section Point relevant information, by second communication, is sent to resource gateway by Section Point.
Illustrate: be 5 minutes in confirmation very first time length, the second time span is 4 minutes, when current time is 9 when 00 point and 00 second, can determine that the second time period was: when 9 when 00 point 00 second ~ 94 points 59 seconds; Can determine that first time period is: when 9 when 05 point 00 second ~ 98 points 59 seconds.
Optionally, the method also comprises:
When current time was in the second time period, it is the second resting state that Section Point adjusts the second operating state;
When current time is in first time period, it is the second operating state that Section Point adjusts the second resting state.
As shown from the above technical solution, Section Point can be in running order in first time period, and be in resting state in the second time period.Because Section Point has step working method, compared to the working method continued, the Section Point with step working method is more energy-conservation.Thus achieve the technique effect of the electric energy saving Section Point.
Optionally, Section Point, based on formula (1), determines very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ] &CenterDot; &CenterDot; &CenterDot; ( 1 )
Wherein, Ti is very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
Optionally, Section Point, based on formula (2), determines the second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ] &CenterDot; &CenterDot; &CenterDot; ( 2 )
Wherein, Ts is the second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
Herein, formula (1) and (2) are described: because in daily life, equipment is not in using state always, all be in idle condition in a lot of time, small sample statistical method in the Using statistics theories of learning, by the sampling to service request, the request frequency in statistics its set time of request, the time of namely collecting device activity, frequent system and the corresponding relation of time of its activity can be obtained, two-dimensional function is used to carry out regression analysis, an approximate solved function can be drawn, probably can predict when setting should be in active state by this function, when be in idle condition, Ts and Ti duration can be set after judging status, under different states, Ts and Ti is a fixed value, during active state, the Ts Ti that can diminish can become large, during idle condition, Ts can become large, Ti can diminish.Consider that bursty state causes predicting the outcome inaccurate, at use Function Fitting simultaneously, also can monitor the active situation in the short time, if do not meet with predicted state, time update equipment state, improves service quality.
Embodiment four
As shown in Figure 5, the present embodiment provides a kind of first node, comprising:
First sets up unit 401, for when first node is in the first operating state, sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
First transmitting element 402, for based on the first communication, sends the first request to resource gateway, and the first request is used for obtaining Section Point relevant information corresponding to Section Point to resource gateway;
First receiving element 403, for based on the first communication, receives the first request response of resource gateway feedback, and obtain Section Point relevant information from the first request response;
First acquiring unit 404, for based on Section Point relevant information, obtains first resource from Section Point.
Optionally, Section Point relevant information, comprising:
Section Point is in the first time period of the second operating state; And/or
Section Point is in the second time period of the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption.
Optionally, the first acquiring unit 404, comprising:
First acquisition module, for obtaining first time period and/or the second time period from the first request response;
First sending module, for based on first time period and/or the second time period, when determining that Section Point is current and be in the second operating state, based on the first communication, sends the second request for obtaining first resource to resource gateway;
First receiver module, for based on the first communication, receives the second request response of resource gateway feedback, and obtain first resource from the second request response.
Optionally, the first acquiring unit 404, comprising:
Second acquisition module, for obtaining first time period and/or the second time period from the first request response;
First adjusting module, for based on first time period and/or the second time period, when determining that Section Point is current and be in the second resting state, is adjusted to the first resting state by the first operating state; Wherein, when first node is in the first operating state, the average power consumption of first node is the 3rd average power consumption; When first node is in the first resting state, the average power consumption of first node is the 4th average power consumption, and the 4th average power consumption is less than the 3rd average power consumption;
Second adjusting module, for when current time is the initial time of first time period, is adjusted to the first operating state by the first resting state;
Second sending module, for based on the first communication, sends the second request for obtaining first resource to resource gateway;
Second receiver module, for based on the first communication, receives the second request response of resource gateway feedback, and obtain first resource from the second request response.
Embodiment five
As shown in Figure 6, the present embodiment provides a kind of resource gateway, comprising:
Second sets up unit 501, for when resource gateway is in running order, sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Second receiving element 502, for based on the first communication, receives the first request that first node sends, and the first request is used for obtaining Section Point relevant information corresponding to Section Point to resource gateway;
Second transmitting element 503, for based on the first communication, sends the first request response comprising Section Point relevant information, obtains first resource to enable first node based on Section Point relevant information from Section Point to first node.
Optionally, resource gateway also comprises:
3rd sets up unit, for communicating based on first at resource gateway, before receiving the first request of first node transmission, sets up second communication based on HTTP HTTP1.1 agreement and Section Point;
3rd receiving element, for based on second communication, receives the Section Point relevant information that Section Point sends.
Optionally, Section Point relevant information, comprising:
Section Point is in the first time period of the second operating state; And/or
Section Point is in the second time period of the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption.
Optionally, resource gateway also comprises:
4th receiving element, for communicating based on first at resource gateway, after first node sends the first request response comprising Section Point relevant information, based on the first communication, the second request for obtaining first resource that reception first node sends;
3rd transmitting element, for based on second communication, sends to Section Point by the second request;
5th receiving element, for based on second communication, receives the second request response comprising first resource of Section Point feedback;
4th transmitting element, for based on the first communication, sends to first node by the second request response.
Optionally, described resource gateway also comprises:
Holding unit, for remaining operating state.
Embodiment six
As shown in Figure 7, the present embodiment provides a kind of Section Point, comprising:
4th sets up unit 601, for when Section Point is in the second operating state, sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
5th transmitting element 602, for based on second communication, sends Section Point relevant information to resource gateway, to enable first node obtain Section Point relevant information from resource gateway, and obtains first resource based on Section Point relevant information from Section Point.
Optionally, Section Point also comprises:
6th receiving element, for based on second communication, after resource gateway sends Section Point relevant information, receive the second request that resource gateway sends, the second request obtains the request of the first resource of Section Point for first node;
6th transmitting element, for based on second communication, sends the second request response comprising first resource to resource gateway.
Optionally, Section Point also comprises:
First determining unit, at Section Point based on second communication, before sending Section Point relevant information to resource gateway, determine the very first time length being in the second operating state;
Second determining unit, for determining the second time span being in the second resting state;
Wherein, when Section Point is in the second operating state, the average power consumption of Section Point is the first average power consumption; When Section Point is in the second resting state, the average power consumption of Section Point is the second average power consumption, and the second average power consumption is less than the first average power consumption, and Section Point cannot receive the second request.
Optionally, Section Point also comprises:
3rd determining unit, for based on current time, very first time length and the second time span, determines that Section Point is in the first time period of the second operating state;
4th determining unit, for based on current time, very first time length and the second time span, determines that Section Point is in the second time period of the second resting state;
First generation unit, for based on first time period and the second time period, generates Section Point relevant information;
7th transmitting element, for by second communication, sends to resource gateway by Section Point relevant information.
Optionally, Section Point also comprises:
First adjustment unit, during for being in the second time period in current time, adjusting the second operating state is the second resting state;
Second adjustment unit, for when current time is in first time period, adjusting the second resting state is the second operating state.
Optionally, the first determining unit, based on following formula, determines very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ti is very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
Optionally, the second determining unit, based on following formula, determines the second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ts is the second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
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 the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (32)

1. a resource sharing method, is characterized in that, comprising:
When first node is in the first operating state, described first node sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
Described first node, based on described first communication, sends the first request to described resource gateway, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Described first node, based on described first communication, receives the first request response of described resource gateway feedback, and obtains described Section Point relevant information from described first request response;
Described first node, based on described Section Point relevant information, obtains first resource from described Section Point.
2. the method for claim 1, is characterized in that, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
3. method as claimed in claim 2, is characterized in that, described first node, based on described Section Point relevant information, obtains first resource from described Section Point, comprising:
Described first node obtains described first time period and/or described second time period from described first request response;
At described first node based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second operating state, described first node, based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Described first node, based on described first communication, receives the second request response of described resource gateway feedback, and obtains described first resource from described second request response.
4. method as claimed in claim 2, it is characterized in that, described first node, based on described Section Point relevant information, obtains described first resource to described Section Point, comprising:
Described first node obtains described first time period and/or described second time period from described first request response;
At described first node based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second resting state, described first operating state is adjusted to the first resting state by described first node; Wherein, when described first node is in described first operating state, the average power consumption of described first node is the 3rd average power consumption; When described first node is in described first resting state, the average power consumption of described first node is the 4th average power consumption, and described 4th average power consumption is less than described 3rd average power consumption;
When current time is the initial time of described first time period, described first resting state is adjusted to described first operating state by described first node;
Described first node, based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Described first node, based on described first communication, receives the second request response of described resource gateway feedback, and obtains described first resource from described second request response.
5. a resource sharing method, is characterized in that, comprising:
When resource gateway is in running order, described resource gateway sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Described resource gateway, based on described first communication, receives the first request that described first node sends, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Described resource gateway, based on described first communication, sends the first request response comprising described Section Point relevant information, obtains first resource to enable described first node based on described Section Point relevant information from described Section Point to described first node.
6. method as claimed in claim 5, is characterized in that, at described resource gateway based on described first communication, before receiving the first request of described first node transmission, described method also comprises:
Described resource gateway sets up second communication based on described HTTP HTTP1.1 agreement and described Section Point;
Described resource gateway, based on described second communication, receives the described Section Point relevant information that described Section Point sends.
7. method as claimed in claim 6, it is characterized in that, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
8. method as claimed in claim 7, is characterized in that, at described resource gateway based on described first communication, after described first node sends the first request response comprising described Section Point relevant information, described method also comprises:
Described resource gateway, based on described first communication, receives the second request for obtaining described first resource that described first node sends;
Described second request, based on described second communication, is sent to described Section Point by described resource gateway;
Described resource gateway, based on described second communication, receives the second request response comprising described first resource of described Section Point feedback;
Described second request response, based on described first communication, is sent to described first node by described resource gateway.
9. the method as described in as arbitrary in claim 5 ~ 8, it is characterized in that, described resource gateway remains operating state.
10. a resource sharing method, is characterized in that, comprising:
When Section Point is in the second operating state, described Section Point sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
Described Section Point is based on described second communication, Section Point relevant information is sent to described resource gateway, to enable first node obtain described Section Point relevant information from described resource gateway, and obtain first resource based on described Section Point relevant information from described Section Point.
11. methods as claimed in claim 10, is characterized in that, at described Section Point based on described second communication, after described resource gateway sends Section Point relevant information, described method also comprises:
Described Section Point receives the second request that described resource gateway sends, and described second request obtains the request of the first resource of described Section Point for first node;
Described Section Point, based on described second communication, sends the second request response comprising described first resource to described resource gateway.
12. methods as claimed in claim 10, is characterized in that, at described Section Point based on described second communication, before sending Section Point relevant information to described resource gateway, described method also comprises:
Described Section Point determines the very first time length being in described second operating state;
Described Section Point determines the second time span being in the second resting state;
Wherein, when Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption, and described Section Point cannot receive described second request.
13. methods as claimed in claim 12, it is characterized in that, described method also comprises:
Described Section Point, based on current time, described very first time length and described second time span, determines that described Section Point is in the first time period of described second operating state;
Described Section Point, based on current time, described very first time length and described second time span, determines that described Section Point is in the second time period of described second resting state;
Described Section Point, based on described first time period and described second time period, generates described Section Point relevant information;
Described Section Point relevant information, by described second communication, is sent to described resource gateway by described Section Point.
14. methods as claimed in claim 12, it is characterized in that, described method also comprises:
When current time was in described second time period, described second operating state of described Section Point adjustment is described second resting state;
When current time is in described first time period, described second resting state of described Section Point adjustment is described second operating state.
15. as arbitrary in claim 12 ~ 14 as described in method, it is characterized in that, described Section Point, based on following formula, determines described very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ti is described very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
16. as arbitrary in claim 12 ~ 14 as described in method, it is characterized in that, described Section Point, based on following formula, determines described second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ts is described second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
17. 1 kinds of first nodes, is characterized in that, comprising:
First sets up unit, for when described first node is in the first operating state, sets up the first communication based on HTTP HTTP1.1 agreement and resource gateway;
First transmitting element, for based on described first communication, sends the first request to described resource gateway, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
First receiving element, for based on described first communication, receives the first request response of described resource gateway feedback, and obtain described Section Point relevant information from described first request response;
First acquiring unit, for based on described Section Point relevant information, obtains first resource from described Section Point.
18. first nodes as claimed in claim 17, it is characterized in that, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
19. first nodes as claimed in claim 18, it is characterized in that, described first acquiring unit, comprising:
First acquisition module, for obtaining described first time period and/or described second time period from described first request response;
First sending module, for based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second operating state, based on described first communication, send the second request for obtaining described first resource to described resource gateway;
First receiver module, for based on described first communication, receives the second request response of described resource gateway feedback, and obtain described first resource from described second request response.
20. first nodes as claimed in claim 18, it is characterized in that, described first acquiring unit, comprising:
Second acquisition module, for obtaining described first time period and/or described second time period from described first request response;
First adjusting module, for based on described first time period and/or described second time period, when determining that described Section Point is current and be in described second resting state, is adjusted to the first resting state by described first operating state; Wherein, when described first node is in described first operating state, the average power consumption of described first node is the 3rd average power consumption; When described first node is in described first resting state, the average power consumption of described first node is the 4th average power consumption, and described 4th average power consumption is less than described 3rd average power consumption;
Second adjusting module, for when current time is the initial time of described first time period, is adjusted to described first operating state by described first resting state;
Second sending module, for based on described first communication, sends the second request for obtaining described first resource to described resource gateway;
Second receiver module, for based on described first communication, receives the second request response of described resource gateway feedback, and obtain described first resource from described second request response.
21. 1 kinds of resource gateway, is characterized in that, comprising:
Second sets up unit, for when described resource gateway is in running order, sets up the first communication based on HTTP HTTP1.1 agreement and first node;
Second receiving element, for based on described first communication, receives the first request that described first node sends, and described first request is used for obtaining Section Point relevant information corresponding to Section Point to described resource gateway;
Second transmitting element, for communicating based on described first, send the first request response comprising described Section Point relevant information to described first node, obtain first resource based on described Section Point relevant information from described Section Point to enable described first node.
22. resource gateway as claimed in claim 21, it is characterized in that, described resource gateway also comprises:
3rd sets up unit, for communicating based on described first at described resource gateway, before receiving the first request of described first node transmission, sets up second communication based on described HTTP HTTP1.1 agreement and described Section Point;
3rd receiving element, for based on described second communication, receives the described Section Point relevant information that described Section Point sends.
23. resource gateway as claimed in claim 22, it is characterized in that, described Section Point relevant information, comprising:
Described Section Point is in the first time period of the second operating state; And/or
Described Section Point is in the second time period of the second resting state;
Wherein, when described Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When described Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption.
24. resource gateway as claimed in claim 23, it is characterized in that, described resource gateway also comprises:
4th receiving element, for communicating based on described first at described resource gateway, after described first node sends the first request response comprising described Section Point relevant information, based on described first communication, receive the second request for obtaining described first resource that described first node sends;
3rd transmitting element, for based on described second communication, sends to described Section Point by described second request;
5th receiving element, for based on described second communication, receives the second request response comprising described first resource of described Section Point feedback;
4th transmitting element, for based on described first communication, sends to described first node by described second request response.
25. as arbitrary in claim 21 ~ 24 as described in resource gateway, it is characterized in that, described resource gateway also comprises:
Holding unit, for remaining operating state.
26. 1 kinds of Section Points, is characterized in that, comprising:
4th sets up unit, for when described Section Point is in the second operating state, sets up second communication based on HTTP HTTP1.1 agreement and resource gateway;
5th transmitting element, for based on described second communication, send Section Point relevant information to described resource gateway, to enable first node obtain described Section Point relevant information from described resource gateway, and obtain first resource based on described Section Point relevant information from described Section Point.
27. Section Points as claimed in claim 26, it is characterized in that, described Section Point also comprises:
6th receiving element, for described based on described second communication, after described resource gateway sends Section Point relevant information, receive the second request that described resource gateway sends, described second request obtains the request of the first resource of described Section Point for first node;
6th transmitting element, for based on described second communication, sends the second request response comprising described first resource to described resource gateway.
28. Section Points as claimed in claim 26, it is characterized in that, described Section Point also comprises:
First determining unit, at described Section Point based on described second communication, before sending Section Point relevant information to described resource gateway, determine the very first time length being in described second operating state;
Second determining unit, for determining the second time span being in the second resting state;
Wherein, when Section Point is in described second operating state, the average power consumption of described Section Point is the first average power consumption; When Section Point is in described second resting state, the average power consumption of described Section Point is the second average power consumption, and described second average power consumption is less than described first average power consumption, and described Section Point cannot receive described second request.
29. Section Points as claimed in claim 28, it is characterized in that, described Section Point also comprises:
3rd determining unit, for based on current time, described very first time length and described second time span, determines that described Section Point is in the first time period of described second operating state;
4th determining unit, for based on current time, described very first time length and described second time span, determines that described Section Point is in the second time period of described second resting state;
First generation unit, for based on described first time period and described second time period, generates described Section Point relevant information;
7th transmitting element, for by described second communication, sends to described resource gateway by described Section Point relevant information.
30. Section Points as claimed in claim 28, it is characterized in that, described Section Point also comprises:
First adjustment unit, during for being in current time in described second time period, adjusting described second operating state is described second resting state;
Second adjustment unit, during for being in described first time period in current time, adjusting described second resting state is described second operating state.
31. as arbitrary in claim 28 ~ 30 as described in Section Point, it is characterized in that, described first determining unit, based on following formula, determines described very first time length:
Ti = MinTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MaxTi &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ti is described very first time length, and Sh is the set of history service condition, and Chu is historical juncture service condition set, and N is historical statistics sum, and MaxTi is the maximum very first time length of history, and MinTi is the minimum very first time length of history.
32. as arbitrary in claim 28 ~ 30 as described in Section Point, it is characterized in that, described second determining unit, based on following formula, determines described second time span:
Ts = MaxTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N &GreaterEqual; 0 ] + MinTs &CenterDot; [ &Sigma; i = 1 N Sh - &Sigma; i = 1 N Chu N < 0 ]
Wherein, Ts is described second time span, and Sh is the set of history service condition, and Chu is historical juncture service condition set in the past, and N is historical statistics sum, and MaxTs is maximum second time span of history, and MinTs is minimum second time span of history.
CN201410094877.1A 2014-03-13 2014-03-13 A kind of resource sharing method, resource gateway, first node and second node Active CN104917799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410094877.1A CN104917799B (en) 2014-03-13 2014-03-13 A kind of resource sharing method, resource gateway, first node and second node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410094877.1A CN104917799B (en) 2014-03-13 2014-03-13 A kind of resource sharing method, resource gateway, first node and second node

Publications (2)

Publication Number Publication Date
CN104917799A true CN104917799A (en) 2015-09-16
CN104917799B CN104917799B (en) 2018-12-07

Family

ID=54086500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410094877.1A Active CN104917799B (en) 2014-03-13 2014-03-13 A kind of resource sharing method, resource gateway, first node and second node

Country Status (1)

Country Link
CN (1) CN104917799B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143981A1 (en) * 2001-04-03 2002-10-03 International Business Machines Corporation Quality of service improvements for network transactions
US20040075619A1 (en) * 2002-06-27 2004-04-22 Hansen James R. Screen sharing
CN101360075A (en) * 2008-09-12 2009-02-04 华为技术有限公司 Grouped gateway and method for saving power consumption
CN102186164A (en) * 2011-02-18 2011-09-14 华为技术有限公司 Method and management device for operating device resource
WO2012114607A1 (en) * 2011-02-24 2012-08-30 Nec Corporation Sleeping core network nodes for energy saving in 3g networks
CN103179210A (en) * 2013-03-26 2013-06-26 太原罗克佳华工业有限公司 Internet of Things cloud access method and system based on Web Service
CN103179099A (en) * 2011-12-23 2013-06-26 北京新媒传信科技有限公司 Unified certification method for accessing to open website platforms and website platform
CN103491172A (en) * 2013-09-25 2014-01-01 深圳Tcl新技术有限公司 Method and system for sharing cloud file

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020143981A1 (en) * 2001-04-03 2002-10-03 International Business Machines Corporation Quality of service improvements for network transactions
US20040075619A1 (en) * 2002-06-27 2004-04-22 Hansen James R. Screen sharing
CN101360075A (en) * 2008-09-12 2009-02-04 华为技术有限公司 Grouped gateway and method for saving power consumption
CN102186164A (en) * 2011-02-18 2011-09-14 华为技术有限公司 Method and management device for operating device resource
WO2012114607A1 (en) * 2011-02-24 2012-08-30 Nec Corporation Sleeping core network nodes for energy saving in 3g networks
CN103179099A (en) * 2011-12-23 2013-06-26 北京新媒传信科技有限公司 Unified certification method for accessing to open website platforms and website platform
CN103179210A (en) * 2013-03-26 2013-06-26 太原罗克佳华工业有限公司 Internet of Things cloud access method and system based on Web Service
CN103491172A (en) * 2013-09-25 2014-01-01 深圳Tcl新技术有限公司 Method and system for sharing cloud file

Also Published As

Publication number Publication date
CN104917799B (en) 2018-12-07

Similar Documents

Publication Publication Date Title
Zhou et al. QoE-driven power scheduling in smart grid: architecture, strategy, and methodology
Zhou et al. Cloudthings: A common architecture for integrating the internet of things with cloud computing
CN103501347B (en) Resource allocation methods and device
KR101971156B1 (en) solar photovoltaic generation monitoring system type wired and wireless hybrid
CN104698309B (en) The method and system that a kind of power information obtains
CN104360663A (en) Intelligent home control system based on wechat platform
CN104394465A (en) Method for waking up stand-by state and equipment
CN103634657A (en) Television and mobile terminal synchronous WIFI connection setup method and device
CN103476145A (en) Wireless-network connection processing method and device
CN107306412B (en) Method, user equipment and base station for realizing reliable transmission of message
DE102013108346A1 (en) Operation in sleep mode with networked terminals
CN105263169A (en) WLAN equipment management frame transmission speed adjusting method and system, WLAN equipment
CN201605107U (en) Elevator remote monitoring system based on Ethernet
CN109343488A (en) Fieldbus monitoring early-warning system and method based on wechat and FDT technology
CN108886689A (en) Resource allocation method, equipment and system
JP2013517684A (en) Method for controlling resource usage within a communication system
CN106130787B (en) Service processing system based on software defined network
CN103222231A (en) Method, device and system for managing wireless terminal by remote server
CN105678479A (en) Intelligent service evaluation system, evaluation terminal and evaluation method
CN101795302A (en) Method and system for identifying group users
CN104917799A (en) Resource sharing method, resource gateway, first node and second node
CN101436953B (en) Management method and processing module for on-line announcement message of network appliance
CN104301294A (en) DNS query request response method and device and network side equipment
CN109557879A (en) Internet of Things centralized monitoring method and device for industrial automation equipment
JP2013162219A (en) Communication device, communication system, communication method, and communication program

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