CN106161157B - Intelligent home system building method and device, intelligent home system and terminal - Google Patents

Intelligent home system building method and device, intelligent home system and terminal Download PDF

Info

Publication number
CN106161157B
CN106161157B CN201610578439.1A CN201610578439A CN106161157B CN 106161157 B CN106161157 B CN 106161157B CN 201610578439 A CN201610578439 A CN 201610578439A CN 106161157 B CN106161157 B CN 106161157B
Authority
CN
China
Prior art keywords
equipment
increased
home system
smart home
subfunction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610578439.1A
Other languages
Chinese (zh)
Other versions
CN106161157A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610578439.1A priority Critical patent/CN106161157B/en
Publication of CN106161157A publication Critical patent/CN106161157A/en
Priority to PCT/CN2017/074369 priority patent/WO2018014553A1/en
Application granted granted Critical
Publication of CN106161157B publication Critical patent/CN106161157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer And Data Communications (AREA)
  • Multimedia (AREA)

Abstract

The invention discloses a method and a device for building an intelligent home system, the intelligent home system and a terminal, wherein the method comprises the following steps: configuring the equipment information of the equipment in the intelligent home system to obtain a configuration file corresponding to the equipment; and responding to the trigger request of the equipment subjected to the configuration processing, and analyzing the configuration file corresponding to the equipment to realize the dynamic loading of the equipment. The scheme of the invention can overcome the defects of slow response speed, weak stability and poor scalability in the prior art and realize the beneficial effects of fast response speed, strong stability and good scalability.

Description

Building method, device, smart home system and the terminal of smart home system
Technical field
The invention belongs to Smart Home technical fields, and in particular to a kind of building method of smart home system, device, intelligence Energy house system and terminal more particularly to a kind of mobile end frame building method based on smart home system, device have and are somebody's turn to do The smart home system of device and mobile terminal with the smart home system.
Background technique
Smart home can be using house as platform, utilize comprehensive wiring technology, network communication technology, safety precaution skill The related facility of home life is integrated, constructs efficient housing facilities and family by art, automatic control technology, audio and video technology The management system of schedule affairs promotes house security, convenience, comfort, artistry, and realizes the inhabitation ring of environmental protection and energy saving Border.The smart home market demand is very big at present, but market is also very chaotic simultaneously, and there are many intelligent single-item.
As mobile terminal APP, in terms of type configurationization, if desired it is compatible with equipment as much as possible and needs to respond Quick iterative development, it is necessary to which one can support quickly to develop iteration, the mobile terminal frame that scalability is strong, stability is strong Frame.
In the prior art, there are response speeds it is slow, stability is weak and scalability is poor the defects of.
Summary of the invention
It is an object of the present invention in view of the foregoing drawbacks, provide the building method, device, intelligence of a kind of smart home system Can house system and terminal, with solves the problems, such as in the prior art can not quick response, achieve the effect that promotion response speed.
The present invention provides a kind of building method of smart home system, comprising: to equipment in the smart home system Facility information carries out configurationization processing, obtains configuration file corresponding with the equipment;It responds to handling through the configurationization The trigger request of the equipment, the configuration file corresponding to the equipment parse, and realization adds the dynamic of the equipment It carries.
Optionally, configurationization processing is carried out to the facility information of equipment in the smart home system, comprising: according to default Device type, classify to the equipment in the smart home system;It, will be every according to the classification results classified and obtained Uncertain information in the facility information of class equipment in addition to general information is detached;The uncertain letter that will be detached Breath carries out decoupling property processing;And degree of coupling in the uncertain information is greater than to the part of preset value, it is determined as described set Standby information to be configured;By the information to be configured, configured by way of database table and/or xml.
Optionally, the configuration file, comprising: at least one of equipment corresponding page path and equipment correspondent entity class; Correspondingly, the configuration file of equipment to be loaded in the smart home system is parsed, comprising: obtain the configuration The equipment corresponding page path of the equipment in file;By preset dynamic operation mechanism, in the fortune of the dynamic operation mechanism The equipment correspondent entity class under equipment corresponding page path is loaded during row.
Optionally, the equipment corresponding page path of the equipment in the configuration file is obtained, comprising: according to the configuration text The device type of the equipment in part, inquires the configuration file;According to the query result that inquiry obtains, obtain and the equipment pair The equipment corresponding page path answered.
Optionally, the uncertain information in the facility information of every class equipment in addition to general information is detached, comprising: Any sub-information in uncertain information in the facility information of every class equipment in addition to general information is abstracted into an equipment pair As;Device identification is carried out to the device object;Provide access to the equipment corresponding page path of the device object;Setting For loading the equipment correspondent entity class of the device object by equipment corresponding page path;Setting is described for inquiring The equipment login method of equipment correspondent entity class;Correspondingly, the configuration file, further includes: device object, is set device identification At least one of standby login method.
Optionally, wherein the device type, comprising: according to the preset function of equipment in the smart home system, And/or default target user, determine obtained type;And/or the general information, comprising: in every class equipment, complexity Not higher than the factor that the service logic, and/or uncertainty degree of default complexity are not higher than default uncertainty degree;Accordingly Ground, the uncertain information, comprising: in every class equipment, the complexity be higher than the default complexity service logic, And/or the uncertainty degree is higher than the factor of the default uncertainty degree;And/or the information to be configured, comprising: machine At least one of type, function, agreement, UI, region.
Optionally, further includes: materialization processing is carried out to the function, obtains at least one subfunction, and makes the son Function is tailored in the equipment;Wherein, the subfunction, comprising: be capable of isolated operation control process, and/or can be single The equipment interface solely run.
Optionally, further includes: after carrying out materialization processing to the function, to described in the equipment correspondent entity class Subfunction carries out location registration process, and/or, the UI corresponding to the subfunction is modified processing, and/or, to the son Function and/or the corresponding UI of the subfunction carry out modularized processing.
Optionally, further includes: after carrying out materialization processing to the function, keep the subfunction and/or the sub- function The corresponding UI of energy is not modified, and is increased the subfunction and is corresponded at least one of the flag bit of equipment, protocol configuration, and/or, it fills out Fill the specific agreement that the subfunction corresponds to equipment.
Optionally, further includes: by the flag bit, the specific agreement is modified.
Optionally, further includes: when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
Match with the above method, what another aspect of the present invention provided a kind of smart home system builds device, comprising: matches Setting processing unit, for the facility information to equipment in the smart home system carry out configurationization processing, obtain with it is described The corresponding configuration file of equipment;Dynamically load unit asks the triggering of the equipment handled through the configurationization for responding It asks, the configuration file corresponding to the equipment parses, and realizes the dynamically load to the equipment.
Optionally, configurationization processing unit, comprising: categorization module is used for according to preset device type, to the intelligence Equipment in house system is classified;Module is detached, the classification results for obtaining according to the classification, by every class equipment Uncertain information in facility information in addition to general information is detached;Determining module, for described in detaching not Determine that information carries out decoupling property processing;And degree of coupling in the uncertain information is greater than to the part of preset value, it is determined as The information to be configured of the equipment;Configuration module is used for by the information to be configured, by way of database table and/or xml It is configured.
Optionally, the configuration file, comprising: at least one of equipment corresponding page path and equipment correspondent entity class; Correspondingly, dynamically load unit, comprising: path obtains module, and the equipment for obtaining the equipment in the configuration file is corresponding Page path;Entity class loading module is used for by preset dynamic operation mechanism, in the operation of the dynamic operation mechanism The equipment correspondent entity class under equipment corresponding page path is loaded in journey.
Optionally, path obtains module, comprising: inquiry submodule, for being set according to the equipment in the configuration file Standby type, inquires the configuration file;Acquisition submodule, the query result for being obtained according to inquiry, obtains and the equipment Corresponding equipment corresponding page path.
Optionally, module is detached, comprising: object is abstracted submodule, general for will remove in the facility information of every class equipment Any sub-information is abstracted into a device object in uncertain information except information;Mark setting submodule, for described Device object carries out device identification;Submodule is arranged in path, and the equipment for providing access to the device object corresponds to page Face path;Submodule is arranged in entity class, for being arranged for loading the device object by equipment corresponding page path Equipment correspondent entity class;Submodule is arranged in method, for the equipment login for inquiring the equipment correspondent entity class to be arranged Method;Correspondingly, the configuration file, further includes: at least one of device object, device identification, equipment login method.
Optionally, wherein the device type, comprising: according to the preset function of equipment in the smart home system, And/or default target user, determine obtained type;And/or the general information, comprising: in every class equipment, complexity Not higher than the factor that the service logic, and/or uncertainty degree of default complexity are not higher than default uncertainty degree;Accordingly Ground, the uncertain information, comprising: in every class equipment, the complexity be higher than the default complexity service logic, And/or the uncertainty degree is higher than the factor of the default uncertainty degree;And/or the information to be configured, comprising: machine At least one of type, function, agreement, UI, region.
Optionally, further includes: function embodies unit and obtains at least one for carrying out materialization processing to the function A subfunction, and the subfunction is made to be tailored in the equipment;Wherein, the subfunction, comprising: be capable of the control of isolated operation Process processed, and/or the equipment interface for capableing of isolated operation.
Optionally, further includes: modular exhaust treatment units are set after carrying out materialization processing to the function described Location registration process is carried out to the subfunction in standby correspondent entity class, and/or, the UI corresponding to the subfunction is modified Processing, and/or, modularized processing is carried out to the subfunction and/or the corresponding UI of the subfunction.
Optionally, further includes: protocol-compliant unit keeps the son after carrying out materialization processing to the function Function and/or the corresponding UI of the subfunction be not modified, and increases the subfunction and corresponds to the flag bit of equipment, protocol configuration At least one, and/or, fill the specific agreement that the subfunction corresponds to equipment.
Optionally, further includes: the protocol-compliant unit is also used to through the flag bit, to the specific agreement into Row change.
Optionally, further includes: equipment adding unit, for when having equipment to be increased in the smart home system, root The configuration file is modified according to the facility information of the equipment to be increased, the equipment to be increased is increased to described Smart home system.
Match with above-mentioned apparatus, further aspect of the present invention provides a kind of smart home system, comprising: above-described intelligence Energy house system builds device.
Match with above system, another aspect of the invention provides a kind of terminal, comprising: above-described smart home system System.
The solution of the present invention, by the way that complicated service logic or uncertain factor are carried out configuration, operation when It waits and dynamic load is realized by parsing configuration file, can solve quick response and can not meet asking for numerous type demands Topic.
Further, the solution of the present invention, by the function library and functional protocol that constantly improve smart home, so that it may compatible All single-items solve the problem of that team unity exploitation is difficult and solve APP size rapid expansion.
Further, the solution of the present invention can develop multiple intelligent single-items by building sufficiently stable system simultaneously, So that the exploitation and functional development of single-item do not conflict, the response speed of smart home system and scalable can be further promoted Property.
Further, the solution of the present invention, by reducing code to a certain extent for uncertain factor configurableization Complexity, and cooperative development is allowed to become simpler, more developers can be absorbed in the specific implementation of function;And APP dynamic can go to load the function of needing by way of configuring, and make APP more powerful.
The solution of the present invention as a result, by by the complicated service logic of equipment room each in smart home or uncertain Factor carry out configuration, and at runtime by parsing configuration file realize relevant device dynamically load, solve existing skill In art can not quick response the problem of, thus, overcome in the prior art that response speed is slow, stability is weak and what scalability was poor lack It falls into, realizes fast response time, the beneficial effect that stability is strong and scalability is good.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Fig. 1 is the flow diagram of an embodiment of the building method of smart home system of the invention;
Fig. 2 is the flow diagram of an embodiment of configurationization processing in method of the invention;
Fig. 3 is the flow diagram of an embodiment of entity class loading processing in method of the invention;
Fig. 4 is the flow diagram for the embodiment that path obtains processing in method of the invention;
Fig. 5 is the flow diagram that an embodiment of processing is detached in method of the invention;
Fig. 6 is the structural schematic diagram of the embodiment for building device of smart home system of the invention;
Fig. 7 is the structural schematic diagram that an embodiment of module is detached in the device of the invention;
Fig. 8 is the structural schematic diagram for the embodiment that path obtains module in the device of the invention;
Fig. 9 is the structural schematic diagram of an embodiment of smart home system of the invention;
Figure 10 is the structural schematic diagram of another embodiment of smart home system of the invention.
In conjunction with attached drawing, appended drawing reference is as follows in the embodiment of the present invention:
102- configurationization processing unit;1022- categorization module;1024- detaches module;1026- determining module;1028- matches Set module;104- dynamically load unit;The path 1042- obtains module;1044- entity class loading module;106- equipment increases single Member;108- function embodies unit;110- modular exhaust treatment units;112- protocol-compliant unit.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the specific embodiment of the invention and Technical solution of the present invention is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
According to an embodiment of the invention, a kind of building method of smart home system is provided, it is of the invention as shown in Figure 1 The flow diagram of one embodiment of method.The building method of the smart home system may include:
At step S110, to the facility information of equipment in the smart home system carry out configurationization processing, obtain with The corresponding configuration file of the equipment.
Such as: configuration file can be increased, for configuring facility information.
It is handled as a result, by the configurationization to facility information, the convenience and reliability of dynamically load, user can be promoted It experiences.
It is alternatively possible to the flow diagram for the embodiment that configurationization is handled in method of the invention as shown in connection with fig. 2, Further illustrate the specific mistake for carrying out configurationization processing in step S110 to the facility information of equipment in the smart home system Journey.
Step S210 classifies to the equipment in the smart home system according to preset device type.
Such as: classified first by device type to equipment.
Optionally, the device type, may include: according to the preset function of equipment in the smart home system and/ Or default target user, determine obtained type.It is versatile by the device type determined based on user demand, hommization It is good.
Step S220 will remove general information according to the classification results classified and obtained in the facility information of every class equipment Except uncertain information detached.
Wherein, detach, can be by the facility information of same class equipment, determine such equipment general information (such as: The corresponding facility information of the general utility functions of such equipment) after, by the facility information of such equipment in addition to the general information it Outer other information (i.e. uncertain information) extracts.
Such as: detach and determine the place for needing to configure.
Optionally, the general information may include: in every class equipment, and complexity is not higher than default complexity Service logic, and/or uncertainty degree are not higher than the factor of default uncertainty degree.
Correspondingly, the uncertain information may include: in every class equipment, and the complexity is higher than described default multiple The service logic of miscellaneous degree, and/or the uncertainty degree are higher than the factor of the default uncertainty degree.By based on default Complexity and uncertainty degree distinguish general information and uncertain information, be conducive to improve configuration carried out to facility information The accuracy and reliability of processing.
It is alternatively possible to the flow diagram of an embodiment of processing is detached in method of the invention as shown in connection with fig. 5, into What one step illustrated to detach the uncertain information in the facility information of every class equipment in addition to general information in step S220 Detailed process.
Step S510, by any sub-information in the uncertain information in the facility information of every class equipment in addition to general information It is abstracted into a device object.
Such as: specific xml configuration format, Ke Yiru:
<? 1.0 " encoding=" utf-8 " of xml version=">
<DeviceType id=1name=" air-conditioning ">
Step S520 carries out device identification to the device object.
Such as: specific xml configuration format, Ke Yiru:
<mid>ab492s2sdfa123</Mid>(equipment unique identification)
Step S530 provides access to the equipment corresponding page path of the device object.
Such as: specific xml configuration format, Ke Yiru:
<DevicePath>/com/device/activity/DeviceAcActivity.java</DevicePath> (equipment corresponding page path)
Step S540, equipment of the setting for loading the device object by equipment corresponding page path are corresponding real Body class.
Such as: specific xml configuration format, Ke Yiru:
<DeviceEntity>/com/device/activity/DeviceEntity.java</DeviceEntity> (equipment correspondent entity class)
The equipment login method for inquiring the equipment correspondent entity class is arranged in step S550.
Such as:<deviceLogin>deviceAcLogin</DeviceLogin>(equipment login method)
</DeviceType>
Correspondingly, the configuration file, can also include: device object, device identification, equipment login method at least it One.
As a result, by being detached to uncertain information in facility information, be conducive to be promoted convenience that configurationization is handled with High efficiency.
The uncertain information detached is carried out decoupling property processing by step S230;And by the uncertain letter Degree of coupling is greater than the part of preset value in breath, is determined as the information to be configured of the equipment.
Wherein, coupling is also the degree of coupling, can be between module (such as: the sub-information in the uncertain information) The measurement of correlation degree.
Wherein, decoupling property, i.e. association between releasing module (such as: the sub-information in the uncertain information), by mould Block becomes single submodule (such as: the uncertain information is become multiple sub-informations), enables each submodule become It is enough different from other submodules in the module and is individually present.In this way, when modifying to the uncertain information, as long as repairing Change corresponding sub-information, on the one hand, do not interfere in the uncertain information modification of the sub-information except the sub- letter The operation of other sub-informations except breath is conducive to promote the uncertain information reliability of operation;On the other hand, only to this The modification to the uncertain information can be realized in sub-information modification, is conducive to the high efficiency for improving modification.
Such as: complicated service logic or uncertain factor can be subjected to configuration.
Such as: configuration file, by xml, (i.e. extensible markup language is a kind of for marking electronic document to make it have Structural markup language) form configured.
Such as: complicated logic can be detached, decoupling property, if really can not uncoupled place be exactly to need to write To the thing of configuration file.
Optionally, the information to be configured may include: at least one of type, function, agreement, UI, region.
Such as: it goes to consider the realization of APP, the place of needing to configure of APP from the angle of function, comprising: type is uncertain Property, functional uncertainty, agreement uncertainty.
Such as: from target user select angle go consider APP realization, the place of needing to configure of APP include: UI not Certainty (such as: which kind of UI is not known suitable for which kind of crowd), region uncertainty (such as: whether uncertain server is simultaneous Hold this area) etc..
As a result, by the information to be configured of diversified forms, flexibility that configurationization is handled and general can be further promoted Property, and then promote the usage experience of user.
Step S240 is configured the information to be configured by way of database table and/or xml.
Such as: complicated service logic relationship and the factor that can not be determined are deposited by way of database table or xml Storage, code the inside can't embody these complicated logical relations.
Such as: it can illustrate configurationization scheme by type uncertainty.
Such as: in order to meet the needs of various types, needs to increase the judgement of various types in code, go to identify different The logic of this complexity is detached into xml configuration file by type.
As a result, by the configuration of the forms such as uncertain factor mechanical energy database table, xml to equipment, can make not Determine that the calling of factor is more convenient, more accurate.
At step S120, the trigger request to the equipment handled through the configurationization is responded, it is corresponding to the equipment The configuration file parsed, realize to the dynamically load of the equipment.
Such as: dynamic load is realized by parsing configuration file when operation.
Such as: before loading equipemtn information, do not need the method that Runtime Library requires no knowledge about execution;Only clicked in user When triggering, passage path goes to obtain the type page oneself to be jumped.
Such as: APP is by reflection mechanism, the dynamic call configuration file in program operation, and visiting by configuration file Ask equipment corresponding page path.
It is handled as a result, by the configurationization to equipment in smart home system, passes through the configuration handled configurationization File carries out parsing and realizes dynamically load, can promote the response speed of load, and then greatly promote the convenience that user uses.
Optionally, the configuration file, may include: equipment corresponding page path and equipment correspondent entity class at least it One.
Such as: device type corresponding equipment corresponding page path, equipment correspondent entity class are stored in a configuration text In part.
As a result, by the configuration to equipment corresponding page path and equipment correspondent entity class, the convenient of parsing can be promoted Property and reliability, and then promote the convenience that uses of user.
It correspondingly, can the process of an embodiment of entity class loading processing be shown in method of the invention as shown in connection with fig. 3 It is intended to, further illustrates the detailed process that the configuration file corresponding to the equipment is parsed in step S120.
Step S310 obtains the equipment corresponding page path of the equipment in the configuration file.
Such as: corresponding facility information is read, the corresponding page path of equipment is got.
It is alternatively possible to which the process for the embodiment that path obtains processing in method of the invention as shown in connection with fig. 4 is illustrated Figure further illustrates the detailed process that the equipment corresponding page path of the equipment in the configuration file is obtained in step S310.
Step S410 inquires the configuration file according to the device type of the equipment in the configuration file.
Such as: when each loading equipemtn, according to the type of equipment, query configuration file.
Step S420 obtains the equipment corresponding page corresponding with the equipment according to the query result that inquiry obtains Path.
The dynamically load of equipment is realized by way of query configuration file as a result, loading efficiency is high, and accuracy is good.
Step S320 loads institute in the operational process of the dynamic operation mechanism by preset dynamic operation mechanism State the equipment correspondent entity class under equipment corresponding page path.
Such as: by dynamic operation mechanism, load the Pages entity class under respective path in the process of running, without Complicated logic is write inside code to go to realize.
The dynamically load of equipment correspondent entity class is realized by way of obtaining equipment corresponding page path as a result, is loaded Mode simplicity and high reliablity.
In an optional embodiment, it can also include: that materialization processing is carried out to the function, obtain at least one Subfunction, and the subfunction is made to be tailored in the equipment.
Wherein, the subfunction may include: to be capable of the control process of isolated operation, and/or be capable of setting for isolated operation Standby interface.
Such as: function is embodied, independent of entity, each function can isolated operation (such as: the operation, can To include equipment control, interface UI etc.), and equipment only needs to customize the function of oneself needs, without being directly provided with any function.
It is handled as a result, by the materialization to functions of the equipments, customizing functions may be implemented, and then meet numerous type need It asks, easy to use, user experience is good.
It can also include: after carrying out materialization processing to the function, in the equipment in an optional embodiment Location registration process is carried out to the subfunction in correspondent entity class, and/or, the UI corresponding to the subfunction is modified place Reason, and/or, modularized processing is carried out to the subfunction and/or the corresponding UI of the subfunction.
Such as: after function is embodied, equipment correspondent entity class registering functional.When interface refresh, under send instructions when, lead to Know that corresponding UI (User Interface, user interface) is modified, by function, UI modularization.
Such as: functions of the equipments generalization may be implemented, and realize function modoularization.
As a result, by modes such as location registration process, modularized processings to function, it is difficult to can solve team unity exploitation Problem, solves the problems, such as APP size rapid expansion, high reliablity, and the feature of environmental protection is good.
It can also include: after carrying out materialization processing to the function, to keep the son in an optional embodiment Function and/or the corresponding UI of the subfunction be not modified, and increases the subfunction and corresponds to the flag bit of equipment, protocol configuration At least one, and/or, fill the specific agreement that the subfunction corresponds to equipment.
Such as: after function is embodied, function and the interface UI are not changed, and increase plant equipment flag bit, increase agreement Configuration, and specific agreement is filled, APP changes the specific agreement used by flag bit.
As a result, by increasing flag bit and protocol configuration, compatibility can be promoted, and then promotes property easy to use and reliable Property.
It can also include: to be carried out more by the flag bit to the specific agreement in an optional embodiment Change.
Such as: protocol-compliant can be realized by increasing protocol conversion tool.
As a result, by the change to specific agreement, compatible convenience can be improved, reduce memory capacity, expand and be applicable in Range.
It can also include: the root when having equipment to be increased in the smart home system in an optional embodiment The configuration file is modified according to the facility information of the equipment to be increased, the equipment to be increased is increased to described Smart home system.
Such as: for example: increasing device configuration file, add equipment every time and only need to modify configuration file, without going Compatible equipment, adapting appts.
The increase of new equipment is realized by way of modifying configuration file as a result, increases mode simplicity, controls reliability It is high.
Through a large amount of verification experimental verification, using the technical solution of the present embodiment, by by complicated service logic or not true Fixed factor carries out configuration, realizes dynamic load by parsing configuration file when operation, can solve can not be quick The problem of responding and meeting numerous type demands.
According to an embodiment of the invention, additionally providing a kind of smart home of the building method corresponding to smart home system System builds device.The structural schematic diagram of one embodiment of the device of the invention shown in Figure 6.The smart home system Building device may include: configurationization processing unit 102 and dynamically load unit 104.
In one example, configurationization processing unit 102 can be used for the equipment to equipment in the smart home system Information carries out configurationization processing, obtains configuration file corresponding with the equipment.The concrete function of the configuration processing unit 102 And processing is referring to step S110.
Such as: configuration file can be increased, for configuring facility information.
It is handled as a result, by the configurationization to facility information, the convenience and reliability of dynamically load, user can be promoted It experiences.
Optionally, configurationization processing unit 102 may include: categorization module 1022, detach module 1024, determining module 1026 and configuration module 1028.
In an optional example, categorization module 1022 can be used for according to preset device type, to the intelligent family The equipment occupied in system is classified.The concrete function of the categorization module 1022 and processing are referring to step S210.
Such as: classified first by device type to equipment.
Optionally, the device type, may include: according to the preset function of equipment in the smart home system and/ Or default target user, determine obtained type.It is versatile by the device type determined based on user demand, hommization It is good.
In an optional example, module 1024 is detached, can be used for according to the classification results classified and obtained, it will be every Uncertain information in the facility information of class equipment in addition to general information is detached.This detaches the concrete function of module 1024 And processing is referring to step S220.
Wherein, detach, can be by the facility information of same class equipment, determine such equipment general information (such as: The corresponding facility information of the general utility functions of such equipment) after, by the facility information of such equipment in addition to the general information it Outer other information (i.e. uncertain information) extracts.
Such as: detach and determine the place for needing to configure.
Optionally, the general information may include: in every class equipment, and complexity is not higher than default complexity Service logic, and/or uncertainty degree are not higher than the factor of default uncertainty degree.
Correspondingly, the uncertain information may include: in every class equipment, and the complexity is higher than described default multiple The service logic of miscellaneous degree, and/or the uncertainty degree are higher than the factor of the default uncertainty degree.By based on default Complexity and uncertainty degree distinguish general information and uncertain information, be conducive to improve configuration carried out to facility information The accuracy and reliability of processing.
It is alternatively possible to the structural schematic diagram of an embodiment of module is detached in the device of the invention as shown in connection with fig. 7, into One step illustrates the specific structure for detaching module 1024.Module 1024 is detached, may include: that object is abstracted submodule 10242, mark Submodule 10244, path setting submodule 10246 and entity class are set, submodule 10248 is set.
In an optional specific example, object is abstracted submodule 10242, can be used for the facility information of every class equipment In in uncertain information in addition to general information any sub-information be abstracted into a device object.The object is abstracted submodule 10242 concrete function and processing are referring to step S510.
Such as: specific xml configuration format, Ke Yiru:
<? 1.0 " encoding=" utf-8 " of xml version=">
<DeviceType id=1name=" air-conditioning ">
In an optional specific example, mark setting submodule 10244 can be used for setting the device object Standby mark.The mark is arranged the concrete function of submodule 10244 and handles referring to step S520.
Such as: specific xml configuration format, Ke Yiru:
<mid>ab492s2sdfa123</Mid>(equipment unique identification)
In an optional specific example, submodule 10246 is arranged in path, can be used for providing access to the equipment The equipment corresponding page path of object.The object is abstracted the concrete function of submodule 10242 and handles referring to step S530.
Such as: specific xml configuration format, Ke Yiru:
<DevicePath>/com/device/activity/DeviceAcActivity.java</DevicePath> (equipment corresponding page path)
In an optional specific example, submodule 10248 is arranged in entity class, can be used for being arranged for setting by described Standby corresponding page path loads the equipment correspondent entity class of the device object.The specific of submodule 10248 is arranged in the entity class Function and processing are referring to step S540.
Such as: specific xml configuration format, Ke Yiru:
<DeviceEntity>/com/device/activity/DeviceEntity.java</DeviceEntity> (equipment correspondent entity class)
In an optional specific example, submodule 10250 is arranged in method, can be used for being arranged for inquiring the equipment The equipment login method of correspondent entity class.This method is arranged the concrete function of submodule 10250 and handles referring to step S550.
Such as:<deviceLogin>deviceAcLogin</DeviceLogin>(equipment login method)
</DeviceType>
Correspondingly, the configuration file, can also include: device object, device identification, equipment login method at least it One.
As a result, by being detached to uncertain information in facility information, be conducive to be promoted convenience that configurationization is handled with High efficiency.
In an optional example, determining module 1026, the uncertain information that can be used for detach is carried out Decoupling property processing;And by degree of coupling in the uncertain information be greater than preset value part, be determined as the equipment to Configuration information.The concrete function of the determining module 1026 and processing are referring to step S230.
Wherein, coupling is also the degree of coupling, can be between module (such as: the sub-information in the uncertain information) The measurement of correlation degree.
Wherein, decoupling property, i.e. association between releasing module (such as: the sub-information in the uncertain information), by mould Block becomes single submodule (such as: the uncertain information is become multiple sub-informations), enables each submodule become It is enough different from other submodules in the module and is individually present.In this way, when modifying to the uncertain information, as long as repairing Change corresponding sub-information, on the one hand, do not interfere in the uncertain information modification of the sub-information except the sub- letter The operation of other sub-informations except breath is conducive to promote the uncertain information reliability of operation;On the other hand, only to this The modification to the uncertain information can be realized in sub-information modification, is conducive to the high efficiency for improving modification.
Such as: complicated service logic or uncertain factor can be subjected to configuration.
Such as: configuration file, by xml, (i.e. extensible markup language is a kind of for marking electronic document to make it have Structural markup language) form configured.
Such as: complicated logic can be detached, decoupling property, if really can not uncoupled place be exactly to need to write To the thing of configuration file.
Optionally, the information to be configured may include: at least one of type, function, agreement, UI, region.
Such as: it goes to consider the realization of APP, the place of needing to configure of APP from the angle of function, comprising: type is uncertain Property, functional uncertainty, agreement uncertainty.
Such as: from target user select angle go consider APP realization, the place of needing to configure of APP include: UI not Certainty (such as: which kind of UI is not known suitable for which kind of crowd), region uncertainty (such as: whether uncertain server is simultaneous Hold this area) etc..
As a result, by the information to be configured of diversified forms, flexibility that configurationization is handled and general can be further promoted Property, and then promote the usage experience of user.
In an optional example, configuration module 1028 can be used for the information to be configured passing through database table And/or the form of xml is configured.The concrete function of the configuration module 1028 and processing are referring to step S240.
Such as: complicated service logic relationship and the factor that can not be determined are deposited by way of database table or xml Storage, code the inside can't embody these complicated logical relations.
Such as: it can illustrate configurationization scheme by type uncertainty.
Such as: in order to meet the needs of various types, needs to increase the judgement of various types in code, go to identify different The logic of this complexity is detached into xml configuration file by type.
As a result, by the configuration of the forms such as uncertain factor mechanical energy database table, xml to equipment, can make not Determine that the calling of factor is more convenient, more accurate.
In one example, dynamically load unit 104 can be used for responding to the equipment handled through the configurationization Trigger request, the configuration file corresponding to the equipment parses, and realizes the dynamically load to the equipment.The dynamic The concrete function of loading unit 104 and processing are referring to step S120.
Such as: dynamic load is realized by parsing configuration file when operation.
Such as: before loading equipemtn information, do not need the method that Runtime Library requires no knowledge about execution;Only clicked in user When triggering, passage path goes to obtain the type page oneself to be jumped.
Such as: APP is by reflection mechanism, the dynamic call configuration file in program operation, and visiting by configuration file Ask equipment corresponding page path.
It is handled as a result, by the configurationization to equipment in smart home system, passes through the configuration handled configurationization File carries out parsing and realizes dynamically load, can promote the response speed of load, and then greatly promote the convenience that user uses.
Optionally, the configuration file, may include: equipment corresponding page path and equipment correspondent entity class at least it One.
Such as: device type corresponding equipment corresponding page path, equipment correspondent entity class are stored in a configuration text In part.
As a result, by the configuration to equipment corresponding page path and equipment correspondent entity class, the convenient of parsing can be promoted Property and reliability, and then promote the convenience that uses of user.
Correspondingly, dynamically load unit 104 may include: that path obtains module 1042 and entity class loading module 1044.
In an optional example, path obtains module 1042, can be used for obtaining the equipment in the configuration file Equipment corresponding page path.The path obtains the concrete function of module 1042 and handles referring to step S310.
Such as: corresponding facility information is read, the corresponding page path of equipment is got.
It is alternatively possible to as shown in connection with fig. 8 in the device of the invention path obtain module an embodiment structural representation Figure further illustrates that path obtains the specific structure of module 1042.Path obtains module 1042, may include: inquiry submodule 10422 and acquisition submodule 10424.
In an optional specific example, submodule 10422 is inquired, can be used for according to the equipment in the configuration file Device type, inquire the configuration file.The concrete function of the inquiry submodule 10422 and processing are referring to step S410.
Such as: when each loading equipemtn, according to the type of equipment, query configuration file.
In an optional specific example, acquisition submodule 10424 can be used for the query result obtained according to inquiry, Obtain equipment corresponding page path corresponding with the equipment.The concrete function and processing ginseng of the acquisition submodule 10424 See step S420.
The dynamically load of equipment is realized by way of query configuration file as a result, loading efficiency is high, and accuracy is good.
In an optional example, entity class loading module 1044 can be used for through preset dynamic operation mechanism, The equipment correspondent entity class under equipment corresponding page path is loaded in the operational process of the dynamic operation mechanism.It should The concrete function of entity class loading module 1044 and processing are referring to step S320.
Such as: by dynamic operation mechanism, load the Pages entity class under respective path in the process of running, without Complicated logic is write inside code to go to realize.
The dynamically load of equipment correspondent entity class is realized by way of obtaining equipment corresponding page path as a result, is loaded Mode simplicity and high reliablity.
It can also include: that function embodies unit 108 in an optional embodiment.
In an optional example, function embodies unit 108, can be used for carrying out materialization processing to the function, At least one subfunction is obtained, and the subfunction is made to be tailored in the equipment.
Wherein, the subfunction may include: to be capable of the control process of isolated operation, and/or be capable of setting for isolated operation Standby interface.
Such as: function is embodied, independent of entity, each function can isolated operation (such as: the operation, can To include equipment control, interface UI etc.), and equipment only needs to customize the function of oneself needs, without being directly provided with any function.
It is handled as a result, by the materialization to functions of the equipments, customizing functions may be implemented, and then meet numerous type need It asks, easy to use, user experience is good.
It can also include: modular exhaust treatment units 110 in an optional embodiment.
In an optional example, modular exhaust treatment units 110 can be used for carrying out materialization processing to the function Afterwards, location registration process is carried out to the subfunction in the equipment correspondent entity class, and/or, institute corresponding to the subfunction It states UI and is modified processing, and/or, modularized processing is carried out to the subfunction and/or the corresponding UI of the subfunction.
Such as: after function is embodied, equipment correspondent entity class registering functional.When interface refresh, under send instructions when, lead to Know that corresponding UI (User Interface, user interface) is modified, by function, UI modularization.
Such as: functions of the equipments generalization may be implemented, and realize function modoularization.
As a result, by modes such as location registration process, modularized processings to function, it is difficult to can solve team unity exploitation Problem, solves the problems, such as APP size rapid expansion, high reliablity, and the feature of environmental protection is good.
It can also include: protocol-compliant unit 112 in an optional embodiment.
In an optional example, protocol-compliant unit 112, after can be used for carrying out materialization processing to the function, Keep the subfunction and/or the corresponding UI of the subfunction not to be modified, increase the subfunction correspond to equipment flag bit, At least one of protocol configuration, and/or, fill the specific agreement that the subfunction corresponds to equipment.
Such as: after function is embodied, function and the interface UI are not changed, and increase plant equipment flag bit, increase agreement Configuration, and specific agreement is filled, APP changes the specific agreement used by flag bit.
As a result, by increasing flag bit and protocol configuration, compatibility can be promoted, and then promotes property easy to use and reliable Property.
In an optional embodiment, the protocol-compliant unit 112 be can be also used for through the flag bit, right The specific agreement is modified.
Such as: protocol-compliant can be realized by increasing protocol conversion tool.
As a result, by the change to specific agreement, compatible convenience can be improved, reduce memory capacity, expand and be applicable in Range.
It can also include: equipment adding unit 106 in an optional embodiment.
In an optional example, equipment adding unit 106 can be used in the smart home system having to be increased When equipment, the configuration file is modified according to the facility information of the equipment to be increased, by the equipment to be increased Increase to the smart home system.
Such as: for example: increasing device configuration file, add equipment every time and only need to modify configuration file, without going Compatible equipment, adapting appts.
The increase of new equipment is realized by way of modifying configuration file as a result, increases mode simplicity, controls reliability It is high.
The processing and function realized by the device of the present embodiment essentially correspond to earlier figures 1 to method shown in fig. 6 Embodiment, principle and example, therefore not detailed place in the description of the present embodiment may refer to mutually speaking on somebody's behalf in previous embodiment Bright, this will not be repeated here.
Through a large amount of verification experimental verification, using technical solution of the present invention, by constantly improve smart home function library and Functional protocol, so that it may which compatible all single-items solve the problems, such as that team unity exploitation is difficult, solve APP size rapid expansion Problem.
According to an embodiment of the invention, additionally providing a kind of smart home for building device corresponding to smart home system System.The smart home system may include: that above-described smart home system builds device.
In one embodiment, the smart home system, can be by complicated service logic or uncertain factor Configuration is carried out, mobile terminal is run by the mechanism of dynamically load at present, by complicated service logic relationship and can not Determining factor is stored by way of database table or xml, these complicated logical relations can't be embodied inside code, Dynamic load is realized by parsing configuration file when operation.
Optionally, the smart home system can carry out the process of above-mentioned configuration specific by the following aspects Explanation.
1, type maps
Classified first by device type to equipment, by device type corresponding equipment corresponding page path, equipment Correspondent entity class is stored in a configuration file.Before loading equipemtn information, does not need Runtime Library and require no knowledge about execution Method;Only when user's clicking trigger, passage path goes to obtain the type page oneself to be jumped.
In one example, configuration file can be increased, for configuring facility information.
Such as: increase device configuration file, adds equipment every time and only need to modify configuration file, without going compatibility to set It is standby, adapting appts;APP is by reflection mechanism, the dynamic call configuration file in program operation, and is accessed by configuration file Equipment corresponding page path.
2, customizing functions
Function is embodied, independent of entity, each function can isolated operation (such as: the operation may include Equipment control, interface UI etc.), and equipment only needs to customize the function of oneself needs, without being directly provided with any function.
3, push-notification-answer
After function is embodied, equipment correspondent entity class registering functional.When interface refresh, under send instructions when, notice pair The UI (User Interface, user interface) answered is modified, by function, UI modularization.
In one example, functions of the equipments generalization may be implemented, and realize function modoularization.
Such as: the display for realizing interface and order inquiry can be gone for specific function and are issued, and independent of tool The type of body, the type page obtain function by way of registration.Such as: the thought of MVP three-tier architecture, Model can be used The responsible data acquisition of layer, View layers of responsible interface display, the realization of Presenter layers of responsible control logic, specific equipment are corresponding The functional module that page path registering functional module, changeable assembling and loading equipemtn need, avoids duplicate exploitation.
4, compatibility (compatible other plant equipments)
After function is embodied, function and the interface UI are not changed, and increase plant equipment flag bit, increase protocol configuration, And specific agreement is filled, APP changes the specific agreement used by flag bit.
In one example, protocol-compliant can be realized by increasing protocol conversion tool.
Such as: protocol layer and Communication Layer are packaged, Communication Layer is responsible for number by the agreement in order to be compatible with various different manufacturers According to transmission and receiving, protocol layer is responsible for the processing of data, and upper layer obtains data and goes to call by specific interface, by upper and lower level Decoupling and the agreement or protocol version for going calling selection different by agreement flag bit.
In an optional embodiment, referring to Fig. 9 and example shown in Fig. 10, which can will not Determining factor or service logic detaches, and carries out configurableization operation.
Step 1, the place for detaching and determining needing to configure.
The realization of consideration APP, the place of needing to configure of APP are gone to from the angle of function, comprising: type is uncertain, function Can be uncertain, agreement is uncertain.
The angle selected from target user goes to consider the realization of APP, and the place of needing to configure of APP includes: UI uncertain Property (such as: which kind of UI is not known suitable for which kind of crowd), region uncertainty (such as: whether uncertain server is compatible with this Area) etc..
Step 2, configuration file, by xml, (i.e. extensible markup language is a kind of for marking electronic document to make its tool Have structural markup language) form configured.
Such as: complicated logic can be detached, decoupling property, if really can not uncoupled place be exactly to need to write To the thing of configuration file.Wherein, coupling is also the degree of coupling, is the measurement to intermodule correlation degree.
It is alternatively possible to illustrate configurationization scheme by type uncertainty.
Such as: in order to meet the needs of various types, needs to increase the judgement of various types in code, go to identify different The logic of this complexity is detached into xml configuration file by type, and format can be such as:
In one example, when each loading equipemtn, according to the type of equipment, query configuration file reads and corresponds to Facility information, get the corresponding page path of equipment;By dynamic operation mechanism, respective path is loaded in the process of running Under Pages entity class, the logic without writing complicated inside code goes to realize.
As it can be seen that APP showed user is specific function, exactly because but it is uncertain, allowing APP to have can play Property.Therefore, in order to make APP more humane, more perfect, by uncertain factor configurableization, generation is reduced to a certain extent The complexity of code, and cooperative development is allowed to become simpler, more developers can be absorbed in the specific implementation of function, and APP dynamic can go to load the function of needing by way of configuring, and make APP more powerful.
As a result, from the global concept of smart home system it can be appreciated that be in order to realize household equipment intelligence, and it is current Household equipment system is very perfect, these equipment can be divided into multiclass according to function substantially.Such as: air conditioning, illumination, peace Anti-, cuisines, water purification hot water, healthy living etc..Since function be it is known, regardless of intelligence single-item change, as long as constantly it is complete The function library and functional protocol of kind smart home, so that it may compatible all single-items;And the exploitation and functional development of single-item are not rushed It is prominent, multiple intelligent single-items can be developed simultaneously, it is only necessary to build sufficiently stable system.
The processing and function realized by the system of the present embodiment essentially correspond to the implementation of aforementioned device shown in fig. 6 Example, principle and example, therefore not detailed place in the description of the present embodiment, may refer to the related description in previous embodiment, This is not repeated them here.
It, can be simultaneously by building sufficiently stable system using technical solution of the present invention through a large amount of verification experimental verification Smart home system can further be promoted so that the exploitation and functional development of single-item do not conflict by developing multiple intelligent single-items Response speed and scalability.
According to an embodiment of the invention, additionally providing a kind of terminal corresponding to smart home system.The terminal is at least wrapped It includes: the above-described smart home system.
The processing and function realized by the terminal of the present embodiment essentially correspond to earlier figures 9 and system shown in Fig. 10 Embodiment, principle and example, therefore not detailed place in the description of the present embodiment may refer to mutually speaking on somebody's behalf in previous embodiment Bright, this will not be repeated here.
Through a large amount of verification experimental verification, using technical solution of the present invention, by by uncertain factor configurableization, one Determine the complexity for reducing code in degree, and cooperative development is allowed to become simpler, more developers can be absorbed in The specific implementation of function;And APP dynamic can go to load the function of needing by way of configuring, and make APP more powerful.
To sum up, it will be readily appreciated by those skilled in the art that under the premise of not conflicting, above-mentioned each advantageous manner can be certainly It combined, be superimposed by ground.
The above description is only an embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification, Equivalent replacement, improvement etc., should be included within scope of the presently claimed invention.

Claims (38)

1. a kind of building method of smart home system characterized by comprising
Configurationization processing is carried out to the facility information of equipment in the smart home system, obtains configuration corresponding with the equipment File;Configurationization processing is carried out to the facility information of equipment in the smart home system, comprising: according to preset equipment class Type classifies to the equipment in the smart home system;According to the classification results classified and obtained, by every class equipment Uncertain information in facility information in addition to general information is detached;The uncertain information detached is solved Coupling processing;And by degree of coupling in the uncertain information be greater than preset value part, be determined as the equipment wait match Confidence breath;By the information to be configured, configured by way of database table and/or xml;
The trigger request to the equipment handled through the configurationization is responded, the configuration file corresponding to the equipment carries out The dynamically load to the equipment is realized in parsing.
2. the method according to claim 1, wherein the configuration file, comprising: equipment corresponding page path and At least one of equipment correspondent entity class;
Correspondingly, the configuration file of equipment to be loaded in the smart home system is parsed, comprising:
Obtain the equipment corresponding page path of the equipment in the configuration file;
By preset dynamic operation mechanism, the equipment corresponding page is loaded in the operational process of the dynamic operation mechanism The equipment correspondent entity class under path.
3. according to the method described in claim 2, it is characterized in that, the equipment for obtaining the equipment in the configuration file corresponds to page Face path, comprising:
According to the device type of the equipment in the configuration file, the configuration file is inquired;
According to the query result that inquiry obtains, equipment corresponding page path corresponding with the equipment is obtained.
4. according to the method in claim 2 or 3, which is characterized in that general information will be removed in the facility information of every class equipment Except uncertain information detached, comprising:
Any sub-information in uncertain information in the facility information of every class equipment in addition to general information is abstracted into one to set Standby object;
Device identification is carried out to the device object;
Provide access to the equipment corresponding page path of the device object;
Equipment correspondent entity class for loading the device object by equipment corresponding page path is set;
Equipment login method for inquiring the equipment correspondent entity class is set;
Correspondingly, the configuration file, further includes: at least one of device object, device identification, equipment login method.
5. method described in one of -3 according to claim 1, which is characterized in that wherein,
The device type, comprising: according to the preset function of equipment in the smart home system, and/or default target user, Determine obtained type;And/or
The general information, comprising: in every class equipment, complexity is not higher than the service logic for presetting complexity, and/or not Determine that degree is not higher than the factor of default uncertainty degree;
Correspondingly, the uncertain information, comprising: in every class equipment, the complexity is higher than the default complexity Service logic, and/or the uncertainty degree are higher than the factor of the default uncertainty degree;And/or
The information to be configured, comprising: at least one of type, function, agreement, UI, region.
6. according to the method described in claim 4, it is characterized in that, wherein,
The device type, comprising: according to the preset function of equipment in the smart home system, and/or default target user, Determine obtained type;And/or
The general information, comprising: in every class equipment, complexity is not higher than the service logic for presetting complexity, and/or not Determine that degree is not higher than the factor of default uncertainty degree;
Correspondingly, the uncertain information, comprising: in every class equipment, the complexity is higher than the default complexity Service logic, and/or the uncertainty degree are higher than the factor of the default uncertainty degree;And/or
The information to be configured, comprising: at least one of type, function, agreement, UI, region.
7. according to the method described in claim 5, it is characterized by further comprising:
Materialization processing is carried out to the function, obtains at least one subfunction, and the subfunction is made to be tailored in described set It is standby;
Wherein, the subfunction, comprising: be capable of the control process of isolated operation, and/or be capable of the equipment interface of isolated operation.
8. according to the method described in claim 6, it is characterized by further comprising:
Materialization processing is carried out to the function, obtains at least one subfunction, and the subfunction is made to be tailored in described set It is standby;
Wherein, the subfunction, comprising: be capable of the control process of isolated operation, and/or be capable of the equipment interface of isolated operation.
9. method according to claim 7 or 8, which is characterized in that further include:
After carrying out materialization processing to the function, registration office is carried out to the subfunction in the equipment correspondent entity class Reason, and/or, the UI corresponding to the subfunction is modified processing, and/or, to the subfunction and/or the sub- function It can corresponding UI progress modularized processing.
10. method according to claim 7 or 8, which is characterized in that further include:
After carrying out materialization processing to the function, the subfunction and/or the corresponding UI of the subfunction is kept not to be modified, Increase the subfunction and corresponds at least one of the flag bit of equipment, protocol configuration, and/or, it fills the subfunction correspondence and sets Standby specific agreement.
11. according to the method described in claim 9, it is characterized by further comprising:
After carrying out materialization processing to the function, the subfunction and/or the corresponding UI of the subfunction is kept not to be modified, Increase the subfunction and corresponds at least one of the flag bit of equipment, protocol configuration, and/or, it fills the subfunction correspondence and sets Standby specific agreement.
12. according to the method described in claim 10, it is characterized by further comprising:
By the flag bit, the specific agreement is modified.
13. according to the method for claim 11, which is characterized in that further include:
By the flag bit, the specific agreement is modified.
14. according to claim 1-3, method described in one of 6-8,11-13, which is characterized in that further include:
When having equipment to be increased in the smart home system, according to the facility information of the equipment to be increased to the configuration File is modified, and the equipment to be increased is increased to the smart home system.
15. according to the method described in claim 4, it is characterized by further comprising:
When having equipment to be increased in the smart home system, according to the facility information of the equipment to be increased to the configuration File is modified, and the equipment to be increased is increased to the smart home system.
16. according to the method described in claim 5, it is characterized by further comprising:
When having equipment to be increased in the smart home system, according to the facility information of the equipment to be increased to the configuration File is modified, and the equipment to be increased is increased to the smart home system.
17. according to the method described in claim 9, it is characterized by further comprising:
When having equipment to be increased in the smart home system, according to the facility information of the equipment to be increased to the configuration File is modified, and the equipment to be increased is increased to the smart home system.
18. according to the method described in claim 10, it is characterized by further comprising:
When having equipment to be increased in the smart home system, according to the facility information of the equipment to be increased to the configuration File is modified, and the equipment to be increased is increased to the smart home system.
19. a kind of smart home system builds device characterized by comprising
Configurationization processing unit carries out configurationization processing for the facility information to equipment in the smart home system, obtains Configuration file corresponding with the equipment;Configurationization processing unit, comprising: categorization module detaches module, determining module and configuration Module;Wherein, categorization module, for classifying to the equipment in the smart home system according to preset device type; Detach module, for according to the obtained classification results of classifying, by the facility information of every class equipment in addition to general information Uncertain information detached;Determining module, the uncertain information for that will detach carry out decoupling property processing; And degree of coupling in the uncertain information is greater than to the part of preset value, it is determined as the information to be configured of the equipment;Configuration Module, for being configured by way of database table and/or xml by the information to be configured;
Dynamically load unit, it is corresponding to the equipment for responding the trigger request to the equipment handled through the configurationization The configuration file parsed, realize to the dynamically load of the equipment.
20. device according to claim 19, which is characterized in that the configuration file, comprising: equipment corresponding page path At least one of with equipment correspondent entity class;
Correspondingly, dynamically load unit, comprising:
Path obtains module, for obtaining the equipment corresponding page path of the equipment in the configuration file;
Entity class loading module is used for through preset dynamic operation mechanism, in the operational process of the dynamic operation mechanism Load the equipment correspondent entity class under equipment corresponding page path.
21. device according to claim 20, which is characterized in that path obtains module, comprising:
It inquires submodule and inquires the configuration file for the device type according to the equipment in the configuration file;
Acquisition submodule, for according to the obtained query result of inquiry, obtaining the corresponding page of corresponding with the equipment equipment Face path.
22. the device according to claim 20 or 21, which is characterized in that detach module, comprising:
Object is abstracted submodule, for will be any in the uncertain information in the facility information of every class equipment in addition to general information Sub-information is abstracted into a device object;
Mark setting submodule, for carrying out device identification to the device object;
Submodule is arranged in path, for providing access to the equipment corresponding page path of the device object;
Submodule is arranged in entity class, is used to load setting for the device object by equipment corresponding page path for being arranged Standby correspondent entity class;
Submodule is arranged in method, for the equipment login method for inquiring the equipment correspondent entity class to be arranged;
Correspondingly, the configuration file, further includes: at least one of device object, device identification, equipment login method.
23. device described in one of 9-21 according to claim 1, which is characterized in that wherein,
The device type, comprising: according to the preset function of equipment in the smart home system, and/or default target user, Determine obtained type;And/or
The general information, comprising: in every class equipment, complexity is not higher than the service logic for presetting complexity, and/or not Determine that degree is not higher than the factor of default uncertainty degree;
Correspondingly, the uncertain information, comprising: in every class equipment, the complexity is higher than the default complexity Service logic, and/or the uncertainty degree are higher than the factor of the default uncertainty degree;And/or
The information to be configured, comprising: at least one of type, function, agreement, UI, region.
24. device according to claim 22, which is characterized in that wherein,
The device type, comprising: according to the preset function of equipment in the smart home system, and/or default target user, Determine obtained type;And/or
The general information, comprising: in every class equipment, complexity is not higher than the service logic for presetting complexity, and/or not Determine that degree is not higher than the factor of default uncertainty degree;
Correspondingly, the uncertain information, comprising: in every class equipment, the complexity is higher than the default complexity Service logic, and/or the uncertainty degree are higher than the factor of the default uncertainty degree;And/or
The information to be configured, comprising: at least one of type, function, agreement, UI, region.
25. device according to claim 23, which is characterized in that further include:
Function embodies unit and obtains at least one subfunction, and make the son for carrying out materialization processing to the function Function is tailored in the equipment;
Wherein, the subfunction, comprising: be capable of the control process of isolated operation, and/or be capable of the equipment interface of isolated operation.
26. device according to claim 24, which is characterized in that further include:
Function embodies unit and obtains at least one subfunction, and make the son for carrying out materialization processing to the function Function is tailored in the equipment;
Wherein, the subfunction, comprising: be capable of the control process of isolated operation, and/or be capable of the equipment interface of isolated operation.
27. the device according to claim 25 or 26, which is characterized in that further include:
Modular exhaust treatment units, after carrying out materialization processing to the function, to institute in the equipment correspondent entity class It states subfunction and carries out location registration process, and/or, the UI corresponding to the subfunction is modified processing, and/or, to described Subfunction and/or the corresponding UI of the subfunction carry out modularized processing.
28. the device according to claim 25 or 26, which is characterized in that further include:
Protocol-compliant unit keeps the subfunction and/or the subfunction after carrying out materialization processing to the function Corresponding UI is not modified, and is increased the subfunction and is corresponded at least one of the flag bit of equipment, protocol configuration, and/or, filling The subfunction corresponds to the specific agreement of equipment.
29. device according to claim 27, which is characterized in that further include:
Protocol-compliant unit keeps the subfunction and/or the subfunction after carrying out materialization processing to the function Corresponding UI is not modified, and is increased the subfunction and is corresponded at least one of the flag bit of equipment, protocol configuration, and/or, filling The subfunction corresponds to the specific agreement of equipment.
30. device according to claim 28, which is characterized in that further include:
The protocol-compliant unit is also used to be modified the specific agreement by the flag bit.
31. device according to claim 29, which is characterized in that further include:
The protocol-compliant unit is also used to be modified the specific agreement by the flag bit.
32. device described in one of 9-21,24-26,29-31 according to claim 1, which is characterized in that further include:
Equipment adding unit, for when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
33. device according to claim 22, which is characterized in that further include:
Equipment adding unit, for when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
34. device according to claim 23, which is characterized in that further include:
Equipment adding unit, for when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
35. device according to claim 27, which is characterized in that further include:
Equipment adding unit, for when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
36. device according to claim 28, which is characterized in that further include:
Equipment adding unit, for when having equipment to be increased in the smart home system, according to the equipment to be increased Facility information is modified the configuration file, and the equipment to be increased is increased to the smart home system.
37. a kind of smart home system characterized by comprising the smart home system as described in claim 19-36 is any Build device.
38. a kind of terminal characterized by comprising smart home system as claimed in claim 37.
CN201610578439.1A 2016-07-20 2016-07-20 Intelligent home system building method and device, intelligent home system and terminal Active CN106161157B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610578439.1A CN106161157B (en) 2016-07-20 2016-07-20 Intelligent home system building method and device, intelligent home system and terminal
PCT/CN2017/074369 WO2018014553A1 (en) 2016-07-20 2017-02-22 Intelligent household system building method and device, intelligent household system and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610578439.1A CN106161157B (en) 2016-07-20 2016-07-20 Intelligent home system building method and device, intelligent home system and terminal

Publications (2)

Publication Number Publication Date
CN106161157A CN106161157A (en) 2016-11-23
CN106161157B true CN106161157B (en) 2019-01-29

Family

ID=58059532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610578439.1A Active CN106161157B (en) 2016-07-20 2016-07-20 Intelligent home system building method and device, intelligent home system and terminal

Country Status (2)

Country Link
CN (1) CN106161157B (en)
WO (1) WO2018014553A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161157B (en) * 2016-07-20 2019-01-29 珠海格力电器股份有限公司 Intelligent home system building method and device, intelligent home system and terminal
CN111198677B (en) * 2018-10-30 2024-10-29 阿里巴巴集团控股有限公司 Equipment object generation method, device and equipment
CN111580857B (en) * 2020-04-27 2021-10-19 珠海格力电器股份有限公司 Equipment firmware online configuration method, device and system
CN113419775B (en) * 2021-05-31 2022-11-04 济南浪潮数据技术有限公司 Firmware configuration method, system, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595717A (en) * 2013-11-13 2014-02-19 海信集团有限公司 Household appliance control protocol conversion method and control terminal
CN104167088A (en) * 2014-08-26 2014-11-26 上海青芒科技有限公司 Remote control method and system of domestic appliances
CN105116734A (en) * 2015-06-26 2015-12-02 青岛海信移动通信技术股份有限公司 Control device and device for intelligent household electrical appliance and control terminal
CN105259828A (en) * 2015-10-15 2016-01-20 珠海格力电器股份有限公司 Integrated control method, terminal and application program regulation and control system for household appliances
CN105739460A (en) * 2014-12-12 2016-07-06 青岛海尔智能家电科技有限公司 Method and device for automatically generating control interface of Internet-of-Things household appliances

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040054789A1 (en) * 2002-09-12 2004-03-18 International Business Machines Corporation Pervasive home network portal
CN102164360B (en) * 2011-04-20 2013-11-06 瑞斯康达科技发展股份有限公司 Method and system for configuring and loading network equipment
HK1197633A2 (en) * 2014-11-11 2015-01-30 Lincogn Technology Co Ltd A smart residence appliance allocating method
CN106161157B (en) * 2016-07-20 2019-01-29 珠海格力电器股份有限公司 Intelligent home system building method and device, intelligent home system and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595717A (en) * 2013-11-13 2014-02-19 海信集团有限公司 Household appliance control protocol conversion method and control terminal
CN104167088A (en) * 2014-08-26 2014-11-26 上海青芒科技有限公司 Remote control method and system of domestic appliances
CN105739460A (en) * 2014-12-12 2016-07-06 青岛海尔智能家电科技有限公司 Method and device for automatically generating control interface of Internet-of-Things household appliances
CN105116734A (en) * 2015-06-26 2015-12-02 青岛海信移动通信技术股份有限公司 Control device and device for intelligent household electrical appliance and control terminal
CN105259828A (en) * 2015-10-15 2016-01-20 珠海格力电器股份有限公司 Integrated control method, terminal and application program regulation and control system for household appliances

Also Published As

Publication number Publication date
WO2018014553A1 (en) 2018-01-25
CN106161157A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
Alaya et al. Toward semantic interoperability in oneM2M architecture
Yau et al. Reconfigurable context-sensitive middleware for pervasive computing
CN101938164B (en) Power equipment control method, device and related system thereof
CN106161157B (en) Intelligent home system building method and device, intelligent home system and terminal
KR100880536B1 (en) Open framework system for heterogeneous computing and service integration
US9800475B2 (en) Message oriented construction of web services
CN103336813A (en) Data integrated management scheme for Internet of Things based on middleware framework
Löwe et al. Context Directory: A context-aware service for mobile context-aware computing applications by the example of Google Android
Forte et al. Using ontologies and Web services for content adaptation in Ubiquitous Computing
Zhang et al. Research on the overall architecture of Internet of Things middleware for intelligent industrial parks
CN106899657A (en) A kind of high concurrent cut-in method towards GPS Moving objects location tracing systems
CN113542390A (en) Internet of things equipment management method and system adopting memory data model
CN115883669B (en) Data distribution method, system, equipment and medium
CN116389552A (en) Heterogeneous data transmission system based on publish-subscribe model
CN101882290A (en) Service integration method based on situation ontologies under internet environment
CN106792678A (en) A kind of method and system of radio node automatic matching search
JP2005521931A (en) Exchange infrastructure system and method
CN110347451A (en) A kind of general man-machine interactive system and method based on AI and IOT
CN116414367A (en) Method, device, chip, equipment and storage medium for generating embedded software system
CN108073389A (en) A kind of automotive engine system based on script
CN113868396A (en) Task intelligent dialogue construction method and system based on knowledge graph
CN111400300B (en) Edge equipment management method and device and management equipment
CN101320452A (en) Flow process execution method and apparatus
CN117354218B (en) Automatic testing method and system based on distributed real-time communication
Mihajlović et al. Challenges of Integrating Machine Vision Algorithms Based on Franca IDL into Adaptive AUTOSAR Environment

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