Summary of the invention
In view of this, the technical problem to be solved in the present invention is to provide a kind of control method and the control device thereof of supporting multi-screen system attribute display, to reduce the complexity of device description file.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
Support a control method for multi-screen system attribute display, comprising:
Terminal sends request to home server, wherein carries the ID mark of the home appliance that user chooses, plays up file with the function at least obtaining described home appliance;
Terminal plays up file according to the function of the described home appliance got, and controls the display of described home appliance attribute.
Preferably, described function is played up file and is comprised: the attribute of described home appliance, icon resource, the default value of home appliance, the display control of use and attribute the rendering style.
Preferably, also comprise: described terminal also obtains data model getting while described function plays up file; Wherein, the description of usage data to each attribute of described home appliance is included in described data model;
When needing to arrange the attribute of described home appliance, the function that described terminal sets up described home appliance plays up the corresponding relation of file and data model, and arrange according to user, send control command by home server or directly to described home appliance, wherein at least carry the data model of the attribute of corresponding described home appliance.
Preferably, before described terminal sends request to home server, also comprise: described terminal is connected with described home server by network, and the ID of all home appliances got from described home server mark shown, and detect the ID mark of the home appliance that user chooses.
Preferably, the function in described terminal plays up file and data model is obtained by network by home server from Cloud Server or home appliance.
Preferably, described terminal is or combination in mobile phone or PC.
Another kind of technical scheme provided by the invention:
Supporting a control device for multi-screen system attribute display, for controlling the attribute display of home appliance, comprising:
Home server, is connected with home appliance by network, obtains and the function storing home appliance plays up file and data model;
Terminal, be connected with home server by network, send request to home server, wherein carry the ID mark of the home appliance that user chooses, file is played up with the function at least obtaining described home appliance, and play up file according to the function of the described home appliance got, control the display of described home appliance attribute.
Preferably, described terminal also obtains data model getting while described function plays up file, includes the description of usage data to each attribute of described home appliance in described data model;
And described terminal comprises:
Request module, for sending request to home server, wherein carrying the ID mark of this home appliance, playing up file and data model with the function obtaining this home appliance;
Receiver module, for receiving the request response that home server is replied, the function wherein carrying this home appliance plays up file and data model;
Control module, the corresponding relation of file and data model is played up for setting up function, and arrange according to user, send control command by home server or directly to described home appliance, wherein at least carry the data model of the attribute of corresponding described home appliance.
Preferably, described terminal also comprises:
Display module, for being connected with home server, and identifying the ID obtaining all home appliances from described home server and shows;
Detection module, for detecting the ID mark of the home appliance that user chooses, and is sent to request module.
Preferably, described control device also comprises Cloud Server, and described home server is connected with Cloud Server by network, obtains and the function storing home appliance plays up file and data model.
The technique effect that the present invention reaches is as follows:
1, in mechanical floor, the attribute being docked to equipment can be played up file to show according to functions of the equipments, avoid control command in prior art and use different, that complicated grammer describes defect because device attribute is different, reduce the complexity of device description file, also reduce the working strength of system operators and required professional degree;
2, the present invention and can directly apply in various terminal, expands usable range;
3, the present invention is simple to operate, improves the accuracy rate of system.
Embodiment
As shown in Figure 1, the present invention supports that the control method of multi-screen system attribute display comprises:
Step 100: terminal sends request to home server, wherein carries the ID mark of the home appliance that user chooses, plays up file with the function at least obtaining this home appliance.
Wherein, described terminal is connected with home server by network, obtains the ID mark of all home appliances, and the ID of all home appliances mark is shown, therefrom choose for user from described home server.
Step 200: terminal plays up file by the function of the described home appliance got, controls the display of described home appliance attribute.
Wherein, also comprise in step 200: described terminal also obtains data model getting while described function plays up file, wherein, includes the description of usage data to each attribute of described home appliance in described data model; When needing to arrange the attribute of described home appliance, the function that described terminal sets up described home appliance plays up the corresponding relation of file and data model, and arrange according to user, send control command by home server or directly to described home appliance, wherein at least carry the data model of the attribute of corresponding described home appliance.
Wherein, the function in described terminal plays up file and data model is obtained by network by home server from Cloud Server or home appliance.
Wherein, each home appliance all has a unique ID(Identity, identify label number) identification information.Home server can send request to each home appliance being connected into network, wherein carries the ID identification information of the home appliance of its request.Each home appliance after receiving the request, the ID identification information of this home appliance self and the ID identification information in this request received are compared, if identical, then send request response, the function wherein carrying this home appliance plays up file or function plays up file and data model; Otherwise, abandon this request.
In addition, the function storing whole home appliance in Cloud Server plays up file and data model, and therefore, home server also can send request to Cloud Server, wherein carries the ID identification information of the home appliance of asking to some extent; Cloud Server replys request response after receiving this request, the function wherein carrying the home appliance meeting this ID identification information plays up file, or function plays up file and data model.
When there being new home appliance to add network, home server can send request directly to this home appliance or send request to Cloud Server, wherein carry the ID identification information that this newly adds the home appliance of network, to obtain and the function of preserving this home appliance plays up file, or function plays up file and data model.
In addition, home server is also connected with Cloud Server by network, from Cloud Server, download function plays up file and data model, file is played up to cover original function in home server respectively, or function plays up file and data model, make the function stored in home server play up file, or function play up the relevant information maintenance real-time update of file and data model, guarantees terminal control home appliance promptly and accurately.
Described function is played up file and is comprised: the attribute of home appliance, icon resource, the default value of home appliance and the display control, attribute the rendering style etc. of use.The attribute of such as home appliance can be start, shutdown, temperature etc.; The default value of home appliance is the default resource configuration of home appliance, and in the present embodiment, the resource of this acquiescence mainly refers to the icon resource of acquiescence, such as: the default icon of starting shooting on home appliance is circular pattern etc.; Described display control can be chart control, grid control etc.; Attribute the rendering style comprises button pattern, list style, drop-down menu pattern, input command pattern etc., and described terminal shows according to the attribute of attribute the rendering style to described home appliance.Wherein, each attribute of home appliance has attribute the rendering style of its correspondence, and such as: attribute the rendering style of start correspondence is button pattern, attribute the rendering style of shutdown correspondence is button pattern, attribute the rendering style corresponding to temperature is drop-down menu pattern etc., but not as limit.
Described data model is the description of usage data to home appliance all properties, and described data model can be 40001,40002,40003 etc., and wherein, 40001 represent that start, 40002 represents that shutdown, 40003 represents temperature.
Terminal is getting after function plays up file and data model, this function is played up file and data model is positioned in two cache files respectively, and stores the ID identification information of home appliance respectively in each described cache file.In addition, in terminal, other multiple cache files may also be stored, and separate between each cache file, namely there is no corresponding relation between any two cache files.
When needing the attribute arranging a home appliance, the function of the ID identification information containing this home appliance that terminal is transferred in cache file automatically plays up file and data model, both is matched, sets up corresponding relation.Such as, when the ID identification information of the home appliance of specifying is air-conditioning, automatically each cache file that the ID identification information storing home appliance is air-conditioning is transferred, each cache file transferred also should include function respectively and play up file or data model, thus sets up the corresponding relation that function plays up file and data model.
Wherein, terminal is or combination in mobile phone or PC.
Terminal for start, is further described said method with refrigerator, setup of attribute with mobile phone, the home appliance of specifying.
Mobile phone is connected by network with home server, obtains the ID identification information of all home appliances from described home services, such as: refrigerator, intelligent air condition, intelligent water heater etc.
The display screen display of mobile phone comprises the menu of all home appliance ID mark, and wherein in menu, the ID mark of each home appliance can with written form or form of icons display.
For icon, after detecting that user clicks refrigerator icon, mobile phone sends request to home server, wherein carries the ID identification information of refrigerator, plays up file and data model with the function obtaining refrigerator.And mobile phone can receive the request response that home server is replied, the function obtaining refrigerator plays up file and data model.
Now, in mobile phone, the function of refrigerator is played up file and data model and is placed on two respectively independently in cache file, and stores the ID identification information of refrigerator in described two cache files respectively.
When user needs control home appliance to carry out attribute display, two cache files that the ID identification information storing home appliance is refrigerator transferred automatically by mobile phone, and the function setting up refrigerator plays up the corresponding relation of file and data model.
Such as: when user needs to carry out setup of attribute to refrigerator, multiple attributes of refrigerator are shown in the display screen of mobile phone, wherein: in the display screen of mobile phone, show " the green round button " of expression " start ", represent " the red circular button " and one " inverted triangle " of " shutdown ", click and be somebody's turn to do " inverted triangle ", then show the drop-down menu representing temperature on a display screen, such as: 1 °, 2 °, 3 ° etc., but not as limit.
When user needs to open refrigerator, click " the green round button " that represent " start " in the display screen of mobile phone, then mobile phone sends control command, and the power-on command of the data model 40001 of correspondence being started shooting is by home server or be directly sent to refrigerator, controls refrigerator start.
When user needs the preservation temperature arranging refrigerator, click " inverted triangle " in mobile phone display screen, then suitable temperature is chosen at the drop-down menu showing expression temperature, such as 2 °, then mobile phone sends control command, and the Temperature numerical heat command of the data model 40003 of corresponding temperature and user arranged is by home server or be directly sent to refrigerator and carry out temperature setting.
Function plays up file by such as under type realization, but not as limit.
<?xmlversion=“1.0”?>
< equipment name=refrigerator, master=android>
< starts shooting >
< icon >open.png</ icon >
>center</ position, < position >
< attribute the rendering style >button</ attribute the rendering style >
</ starts shooting >
< shuts down >
< icon >close.png</ icon >
>center</ position, < position >
< attribute the rendering style >button</ attribute the rendering style >
</ shuts down >
</ equipment >.
Mobile phone completes after attribute plays up, and carries out setup of attribute by such as under type to refrigerator, but not as limit.
<?xmlversion=“1.0”?>
< equipment name=refrigerator, master=android>
< starts shooting >
< command word >40001</ command word >
</ starts shooting >
< shuts down >
< command word >40002</ command word >
</ shuts down >
</ equipment >.
As shown in Figure 2, the present invention supports the control device of multi-screen system attribute display, and for controlling the attribute display of home appliance, described control device comprises: home server 1, terminal 2 and Cloud Server 3.Described home server 1 is connected with Cloud Server 3 or each home appliance by network, to obtain and the function storing home appliance plays up file and data model, and play up file and data model by Cloud Server 3 download function, play up file and data model to cover original function in home server 1 respectively, the relevant information making the function stored in home server 1 play up file and data model keeps real-time update.Described terminal 2 is connected with home server 1 by network, terminal 2 sends request to home server 1, wherein carry the ID mark of the home appliance 4 that user chooses, file is played up with the function at least obtaining described home appliance 4, and play up file according to the function of the described home appliance 4 got, control the display of described home appliance 4 attribute.
Described terminal 2 also obtains data model getting while described function plays up file, includes the description of usage data to each attribute of described home appliance 4 in described data model.
As shown in Figure 2, the present invention supports that the terminal 2 of the control device of multi-screen system attribute display comprises display module 21, detection module 22, request module 23, receiver module 24 and control module 25.Wherein, described display module 21 is connected with home server 1, and the ID of all home appliances obtained from home server 1 mark is shown; This ID mark, for detecting the ID mark of the home appliance that user chooses, after the ID mark of the home appliance that user chooses being detected, is sent to request module 23 by described detection module 22; Described request module 23 sends request to home server 1, wherein carries the ID mark of this home appliance 4, plays up file and data model with the function obtaining described home appliance 4; Described receiver module 24 receives the request response that home server 1 is replied, and the function wherein carrying this home appliance 4 plays up file and data model; Control module 25 sets up the corresponding relation that function plays up file and data model, and arrange according to user, send control command by home server 1 or directly to described home appliance 4, wherein at least carry the data model of the attribute of corresponding described home appliance 4.Thus the attribute that can control this home appliance 4 shows accordingly, such as: the start of control refrigerator or shutdown etc.
The present invention realizes at mechanical floor, the attribute being docked to equipment is played up file to show according to function, avoid control command in prior art and use different, that complicated grammer describes defect because device attribute is different, reduce the complexity of device description file, also reduce the working strength of system operators and required professional degree.
In addition, the terminal in the present invention directly can realize the mutual of data message by wireless network with home server, does not need to develop the software program matched again in addition, therefore is applicable to various terminal, namely support the control of multi-screen system, expand usable range.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.