Summary of the invention
The invention provides a kind of household electrical appliances service calling method, household electrical appliances service invocation request retransmission method and device, for solving in prior art in centralized communication pattern, the control appliance be in the same family network cannot control the problem of the home appliance be registered in home network on different gateway simultaneously.
According to a first aspect of the invention, provide a kind of household electrical appliances service calling method, comprising:
First receives the call request of household electrical appliances service from gateway; According to call request, first judges whether the home appliance of household electrical appliances service correspondence is registered at this gateway from gateway; If, then first from gateway, call request is sent to home appliance, if not, then call request is sent to primary gateway, with make primary gateway call request is forwarded to registration thereon provide household electrical appliances to serve second from gateway, wherein, in primary gateway registration to have in home network all from gateway.
Further, said method also comprises: before the first call request of serving from gateway reception household electrical appliances, first receives the registration message from home appliance and primary gateway from gateway; According to the log-on message of home appliance and the log-on message of primary gateway, home appliance and primary gateway are registered; First from gateway by the log-on message of self and be registered in first and be all sent to primary gateway from the log-on message of the home appliance gateway, to make first from gateway and to be registered in first and to register in primary gateway from the home appliance gateway.
Wherein, according to call request, first judges whether the home appliance of household electrical appliances service correspondence is registered at this gateway, comprising from gateway: first parses the service interface information of home appliance corresponding to household electrical appliances service from gateway from call request; Judge whether first store service interface information from gateway according to interface message, if, then determine that the home appliance of household electrical appliances service correspondence is registered from gateway first, if not, then determine that the home appliance of household electrical appliances service correspondence is not registered from gateway first.
Further, said method also comprises: first from after gateway receives registration message from home appliance, the first updating message sending registration home appliance from gateway to primary gateway; Updating message comprises, the registration message of current registration home appliance.
According to the present invention second aspect, provide a kind of household electrical appliances service invocation request retransmission method, comprise: after primary gateway receives household electrical appliances service invocation request, judge whether the home appliance of household electrical appliances service correspondence is registered in primary gateway, if, then call request is sent to the home appliance that household electrical appliances service is corresponding, if not, then registered in primary gateway searching from gateway registration have the home appliance providing household electrical appliances to serve from gateway; Call request is forwarded to find from gateway.
According to third aspect of the present invention, provide a kind of household electrical appliances service call device, comprising: the first receiver module, for receiving the call request of household electrical appliances service from gateway by first; According to call request, first judge module, for judging whether the home appliance of household electrical appliances service correspondence is registered at this gateway from gateway by first; First sending module, for when the judged result of the first judge module is for being, from gateway, call request is sent to home appliance by first, when the judged result of the first judge module is no, then call request is sent to primary gateway, with make primary gateway call request is forwarded to registration thereon provide household electrical appliances to serve second from gateway, wherein, in primary gateway, to have in home network all from gateway in registration.
Further, said apparatus also comprises: the second receiver module, and for before first receives the call request of household electrical appliances service from gateway, first receives the registration message from home appliance and primary gateway from gateway; Registering modules, for registering home appliance and primary gateway according to the log-on message of home appliance and the log-on message of primary gateway; Second sending module, for by first from gateway by the log-on message of self and be registered in first and be all sent to primary gateway from the log-on message of the home appliance gateway, to make first from gateway and to be registered in first and to register in primary gateway from the home appliance gateway.
Wherein, above-mentioned first judge module, comprising: resolution unit, parses the service interface information of home appliance corresponding to household electrical appliances service for first from gateway from call request; Judging unit, for judging according to interface message whether first store service interface information from gateway, if so, then determine that the home appliance of household electrical appliances service correspondence is registered from gateway first, if not, then determine that the home appliance of household electrical appliances service correspondence is not registered from gateway first.
Further, said apparatus also comprises: the 3rd sending module, for first from after gateway receives registration message from home appliance, the first updating message sending registration home appliance from gateway to primary gateway, updating message comprises the registration message of current registration home appliance.
According to a third aspect of the present invention, provide a kind of household electrical appliances service invocation request retransmission unit, comprising: the second judge module, after receiving household electrical appliances service invocation request for primary gateway, judge whether the home appliance of household electrical appliances service correspondence is registered in primary gateway; Search module, for when the judged result of the second judge module is for being, then call request is sent to the home appliance that household electrical appliances service is corresponding, when the judged result of the second judge module is no, then registered in primary gateway searching from gateway registration have the home appliance providing household electrical appliances to serve from gateway; Second forwarding module, call request is forwarded to find from gateway.
The scheme that the embodiment of the present invention provides, when current from gateway unregistered have need call household electrical appliances service time, household electrical appliances call request is forwarded to primary gateway, corresponding to gateway to be forwarded to by primary gateway household electrical appliances call request from gateway all in managing family network, thus realize the object controlling the home appliance be registered on different gateway based on same control appliance, convenient for users.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
Embodiment 1
Present embodiments provide a kind of household electrical appliances service calling method, as shown in Figure 1, the network that the method relates to can be in a point-to-point communication home network, there is multiple gateway device, other equipment in home network, as TV, mobile phone, air-conditioning etc., are connected on any home gateway.Be connected to each other between gateway, define a home network.Every platform equipment in network is all connected to other household equipments arbitrarily by gateway route.There is a primary gateway at multiple gateway, run primary gateway program.Other gateways are all connected with primary gateway.Other gateways run from gateway program, each gateway management connects and is registered to self home appliance, and wherein, the method is realizing from gateway.
As shown in Figure 2, the method comprises the steps:
Step 201: first receives the call request of household electrical appliances service from gateway;
Step 202: according to call request, first judges whether the home appliance of household electrical appliances service correspondence is registered at this gateway from gateway, if so, perform step 203, call request is sent to home appliance from gateway by first; If not, perform step 204, call request be sent to primary gateway, with make primary gateway call request is forwarded to registration thereon provide household electrical appliances to serve second from gateway; Wherein, in primary gateway registration to have in home network all from gateway.
Said method can also comprise primary gateway and be registered to from the step gateway: before the first call request of serving from gateway reception household electrical appliances, first receives the registration message from home appliance and primary gateway from gateway, registers home appliance and primary gateway according to the log-on message of home appliance and the log-on message of primary gateway; First from gateway by the log-on message of self and be registered in first and be all sent to primary gateway from the log-on message of the home appliance gateway, to make first from gateway and to be registered in first and to register in primary gateway from the home appliance gateway.
Wherein, above-mentioned steps 202 concrete in first judge whether the home appliance of household electrical appliances service correspondence has been registered at this gateway from gateway according to call request and specifically can comprise:
First parses the service interface information of home appliance corresponding to household electrical appliances service from gateway from call request, judge whether first store service interface information from gateway, if, then determine that the home appliance of household electrical appliances service correspondence is registered from gateway first, if not, then determine that the home appliance of household electrical appliances service correspondence is not registered from gateway first.
When having new equipment to register from gateway, the registration message of new equipment can be shared to primary gateway, based on this, said method can also comprise:
First from after gateway receives registration message from home appliance, the first updating message sending registration home appliance from gateway to primary gateway, updating message comprises, the registration message of current registration home appliance.
The present embodiment additionally provides the method that primary gateway forwards household electrical appliances service, and this primary gateway carries out alternately, specifically carrying out following operation from gateway with above-mentioned in household electrical appliances service invocation procedure:
After primary gateway receives household electrical appliances service invocation request, judge whether the home appliance of household electrical appliances service correspondence is registered in primary gateway, if, then call request is sent to the home appliance that household electrical appliances service is corresponding, if not, then registered in primary gateway searching from gateway registration have the home appliance providing household electrical appliances to serve from gateway;
Call request is forwarded to find from gateway.
Embodiment 2
The household electrical appliances service calling method that the present invention relates to specifically comprises following several processing procedure, and the present embodiment is further described household electrical appliances service calling method provided by the invention by following process.
Facility registration:
After air-conditioning finds gateway 2, be registered to gateway 2, equipment and service interface information are reported gateway 2, gateway 2 safeguards the service interface information of air-conditioning.Similarly, after lamp finds primary gateway, be registered to primary gateway, equipment and service interface information are reported primary gateway, primary gateway safeguards the service interface information of lamp.
The registration of gateway:
As shown in Figure 3, after finding primary gateway from gateway 2, be registered to primary gateway, the service interface information of self is sent to primary gateway.Similarly, primary gateway is also registered to gateway 2.Gateway 2 will be registered in the home appliances such as the air-conditioning of self and service interface reports primary gateway.Primary gateway records the service interface of the home appliance being directly registered in this gateway, all the other are all from the service interface of gateway and be allly registered in all the other service interfaces from the household electrical appliances of gateway.That is, primary gateway safeguards the log-on message of whole household equipment.
The renewal of gateway registration:
As shown in Figure 4, primary gateway is registered to and after reporting device registration information, if a washing machine new registration is to gateway 3, then after gateway 3 increases the service interface of washing machine from gateway 3, send updating message to primary gateway, the washing machine of increase and service interface thereof are sent to primary gateway.Accordingly, if household electrical appliances leave the gateway 3 of registration, also can send updating message to primary gateway from gateway 3, the equipment interface information upgrading in time safeguarded to make primary gateway.
Calling of household electrical appliances service:
As shown in Figure 5, need to regulate air-conditioning by mobile phone a user, temperature be set in the scene of 25 degree, user mobile phone finds gateway 1, connects and is registered to gateway 1.The temperature of air-conditioning is regulated the instruction of interface by mobile phone, parameter information encapsulates, and household electrical appliances service invocation request comprises, the interface instruction of household electrical appliances service and parameter information, and packaged data are sent to gateway 1 by the service interface calling gateway 1.Gateway 1 parses the service interface information of air-conditioning first wherein after receiving the call request that mobile phone sends.Gateway 1 judges that this air-conditioning is unregistered at this gateway, just searches the primary gateway interface being registered in this gateway.Packaged air-conditioning calling data is sent to primary gateway by the service interface calling primary gateway by gateway 1.Primary gateway receives the call request that gateway 1 is sent, and parses the service interface information of air-conditioning first wherein.Primary gateway judges that this air-conditioning is unregistered at this gateway, just searches and is registered in other in primary gateway household electrical appliances information of registering from gateway, obtain air-conditioning and be registered on gateway 2.Packaged air-conditioning calling data is sent to gateway 2 by the service interface calling gateway 2 by primary gateway.
Gateway 2 receives the call request that primary gateway is sent, and parses the service interface information of air-conditioning first wherein.Gateway 2 judges that this air-conditioning is registered in this gateway, according to the service interface Reseal call request of air-conditioning, call request is sent to air-conditioning.
After air-conditioning receives the call request that gateway 2 sends, perform corresponding operation and temperature is set to 25 degree.Afterwards, response is returned to gateway 2.After gateway 2 receives response, returned to primary gateway.After primary gateway receives response, returned to gateway 1.After gateway 1 receives response, returned to mobile phone, notified user's execution result.
Embodiment 3
The present embodiment provides a kind of household electrical appliances service call device, the household electrical appliances service calling method that this device provides for realizing above-described embodiment 1 and embodiment 2, this device can be arranged in home network from gateway, as shown in Figure 6, this device 60 comprises following part:
First receiver module 61, for receiving the call request of household electrical appliances service from gateway by first;
According to call request, first judge module 62, for judging whether the home appliance of household electrical appliances service correspondence is registered at this gateway from gateway by first;
First sending module 63, for when the judged result of the first judge module is for being, from gateway, call request is sent to home appliance by first, when the judged result of the first judge module is no, then call request is sent to primary gateway, with make primary gateway call request is forwarded to registration thereon provide household electrical appliances to serve second from gateway, wherein, in primary gateway, to have in home network all from gateway in registration.
Wherein, further, said apparatus can also comprise: the second receiver module, and for before first receives the call request of household electrical appliances service from gateway, first receives the registration message from home appliance and primary gateway from gateway; Registering modules, for registering home appliance and primary gateway row according to the log-on message of home appliance, the log-on message of primary gateway; Second sending module, for by first from gateway by the log-on message of self and be registered in first and be all sent to primary gateway from the log-on message of the home appliance gateway, to make first from gateway and to be registered in first and to register in primary gateway from the home appliance gateway.
Wherein, above-mentioned first judge module specifically can comprise: resolution unit, parses the service interface information of home appliance corresponding to household electrical appliances service for first from gateway from call request; Judging unit, for judging whether first store service interface information from gateway, if so, then determine that the home appliance of household electrical appliances service correspondence is registered from gateway first, if not, then determine that the home appliance of household electrical appliances service correspondence is not registered from gateway first.
Further, said apparatus also comprises: the 3rd sending module, for first from after gateway receives registration message from home appliance, the first updating message sending registration home appliance from gateway to primary gateway, updating message comprises the registration message of current registration home appliance.
The present embodiment additionally provides another kind of household electrical appliances service invocation request retransmission unit, this device can be arranged at home gateway from gateway, this device specifically can comprise:
Second judge module, after receiving household electrical appliances service invocation request, judges whether the home appliance of household electrical appliances service correspondence is registered in primary gateway for primary gateway;
Search module, for when the judged result of the second judge module is for being, then call request is sent to the home appliance that household electrical appliances service is corresponding, when the judged result of the second judge module is no, then registered in primary gateway searching from gateway registration have the home appliance providing household electrical appliances to serve from gateway;
Second forwarding module, call request is forwarded to find from gateway.
The scheme that the embodiment of the present invention provides, when there is multiple gateway in home gateway, control appliance can by its register gateway general-purpose interface call any home appliance in network, do not need to associate with target device or interface in advance.Meanwhile, the program inherits the advantage of gateway centerized fusion pattern, and the application program that home appliance and control appliance are run is identical with the situation that only there is a gateway, without the need to adjusting equipment according to gateway quantity.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.