CN108055174A - Dynamic configuration device, Dynamic Configuration and computer readable storage medium - Google Patents

Dynamic configuration device, Dynamic Configuration and computer readable storage medium Download PDF

Info

Publication number
CN108055174A
CN108055174A CN201711085957.0A CN201711085957A CN108055174A CN 108055174 A CN108055174 A CN 108055174A CN 201711085957 A CN201711085957 A CN 201711085957A CN 108055174 A CN108055174 A CN 108055174A
Authority
CN
China
Prior art keywords
feature
service
characteristic
dynamic configuration
relation
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.)
Pending
Application number
CN201711085957.0A
Other languages
Chinese (zh)
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.)
Hunan University
Hunan Micomme Zhongjin Medical Technology Development Co Ltd
Original Assignee
Hunan University
Hunan Micomme Zhongjin Medical Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan University, Hunan Micomme Zhongjin Medical Technology Development Co Ltd filed Critical Hunan University
Priority to CN201711085957.0A priority Critical patent/CN108055174A/en
Publication of CN108055174A publication Critical patent/CN108055174A/en
Pending legal-status Critical Current

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]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • 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]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Abstract

The present invention relates to a kind of dynamic configuration device, Dynamic Configuration and computer readable storage medium, the dynamic configuration device includes:Memory, processor and the dynamic allocation procedure that can be run on the memory and on the processor is stored in, the dynamic allocation procedure realizes following steps when being performed by the processor:Obtain the dynamic configuration characteristic model based on intelligent domestic system built in advance, read the dynamic configuration characteristic model, dynamically configurable feature and characteristic relation are extracted from read dynamic configuration characteristic model, the dynamically configurable feature and characteristic relation extracted are stored in conditions of service mapping table;It after configuring request is received, analyzes the feature to be configured in the configuring request and belongs to service class or equipment class, the configuring request is responded based on the analysis result and the conditions of service mapping table.The present invention can effectively manage Household intelligent device.

Description

Dynamic configuration device, Dynamic Configuration and computer readable storage medium
Technical field
It can the present invention relates to a kind of field of communication technology more particularly to dynamic configuration device, Dynamic Configuration and computer Read storage medium.
Background technology
Household intelligent gateway is the heart of home intelligence, and the acquisition, information input, information of system information are realized by it The functions such as output, centralized Control, remote control, coordinated signals.With the development of network technology and the increase of Household intelligent device, The existing scheme being managed based on Household intelligent gateway to Household intelligent device is simultaneously not perfect, how to Household intelligent device It is to have the problem of to be solved at present to carry out effective management.
The content of the invention
It is an object of the invention to provide a kind of dynamic configuration device, Dynamic Configuration and computer readable storage medium, It is intended to effectively manage Household intelligent device.
To achieve the above object, the present invention provides a kind of dynamic configuration device, and the dynamic configuration device includes:Memory, place It manages device and is stored in the dynamic allocation procedure that can be run on the memory and on the processor, the dynamic allocation procedure Following steps are realized when being performed by the processor:
S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic configuration Characteristic model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, will be extracted Dynamically configurable feature and characteristic relation be stored in conditions of service mapping table;
S2, after configuring request is received, analyze the feature to be configured in the configuring request belong to service class still set Standby class responds the configuring request based on the analysis result and the conditions of service mapping table.
Preferably, before the dynamic allocation procedure performs step S1 by the processor, further include:
The equipment added in or the corresponding dynamically configurable feature of service can be supported in structure intelligent domestic system, it is described movable The attribute information of state configuration feature includes characteristic type, feature name, father's characteristic node, significant condition value and feature and realizes number Magnitude, the characteristic type include service features, abstract data type feature and adapter characteristics;
The characteristic relation between the dynamically configurable feature is obtained, the characteristic relation includes essential relation, optional pass System, multiselect relation, dependence and exclusion relations;
Belong to the computer language of intelligent domestic gateway system based on the dynamically configurable feature and characteristic relation structure Dynamically configurable characteristic model.
Preferably, the step S2 includes:
S21 if the feature to be configured in the configuring request belongs to equipment class, treats the significant condition value of configuration feature Carry out plus-minus operation, based on the feature to be configured carry out the significant condition value after plus-minus operation, the feature to be configured with it is corresponding The characteristic relation of father's characteristic node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service and reflects Firing table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or existing device revocation;
S22 if the feature to be configured in the configuring request belongs to service class, judges that the feature to be configured whether there is In the conditions of service mapping table, if so, obtaining the characteristic relation in the conditions of service mapping table with the feature to be configured For the dynamically configurable feature of dependence, the significant condition value based on the dynamically configurable feature realizes unlatching or the clothes of service The closing of business.
Preferably, in the step s 21, if the feature to be configured in the configuring request belongs to equipment class, and this is to be configured It is characterized as that new equipment adds in, then analyzes whether added in new equipment is that the intelligent domestic gateway system supports what is added in set It is standby, if so, the significant condition value that configuration feature is treated in execution carries out plus-minus operation, if it is not, being then not responding to the configuring request.
To achieve the above object, it is described dynamic applied in dynamic configuration device the present invention also provides a kind of Dynamic Configuration State collocation method includes:
S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic configuration Characteristic model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, will be extracted Dynamically configurable feature and characteristic relation be stored in conditions of service mapping table;
S2, after configuring request is received, analyze the feature to be configured in the configuring request belong to service class still set Standby class responds the configuring request based on the analysis result and the conditions of service mapping table.
Preferably, before the step S1, further include:
The equipment added in or the corresponding dynamically configurable feature of service can be supported in structure intelligent domestic system, it is described movable The attribute information of state configuration feature includes characteristic type, feature name, father's characteristic node, significant condition value and feature and realizes number Magnitude, the characteristic type include service features, abstract data type feature and adapter characteristics;
The characteristic relation between the dynamically configurable feature is obtained, the characteristic relation includes essential relation, optional pass System, multiselect relation, dependence and exclusion relations;
Belong to the computer language of intelligent domestic gateway system based on the dynamically configurable feature and characteristic relation structure Dynamically configurable characteristic model.
Preferably, the step S2 includes:
S21 if the feature to be configured in the configuring request belongs to equipment class, treats the significant condition value of configuration feature Carry out plus-minus operation, based on the feature to be configured carry out the significant condition value after plus-minus operation, the feature to be configured with it is corresponding The characteristic relation of father's characteristic node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service and reflects Firing table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or existing device revocation;
S22 if the feature to be configured in the configuring request belongs to service class, judges that the feature to be configured whether there is In the conditions of service mapping table, if so, obtaining the characteristic relation in the conditions of service mapping table with the feature to be configured For the dynamically configurable feature of dependence, the significant condition value based on the dynamically configurable feature realizes unlatching or the clothes of service The closing of business.
Preferably, in the step S21, if the feature to be configured in the configuring request belongs to equipment class, and this waits to match somebody with somebody It puts and is characterized as that new equipment adds in, then analyze whether added in new equipment is that the intelligent domestic gateway system supports what is added in set It is standby, if so, the significant condition value that configuration feature is treated in execution carries out plus-minus operation, if it is not, being then not responding to the configuring request.
The present invention also provides a kind of computer readable storage medium, dynamic is stored on the computer readable storage medium The step of configurator, the dynamic allocation procedure realizes Dynamic Configuration described above when being executed by processor.
The beneficial effects of the invention are as follows:The present invention is in intelligent domestic system, and dynamic configuration device is by reading structure in advance Dynamic configuration characteristic model, dynamically configurable feature and feature are extracted from read dynamic configuration characteristic model and is closed System, the dynamically configurable feature and characteristic relation extracted are stored in conditions of service mapping table, receiving service class Or after the configuring request of equipment class, dynamic configuration device based on conditions of service mapping table realize to service class or equipment class it is movable The feature of state configuration is configured, cancellation, the unlatching of service and the pass of service of addition, existing device including new equipment It closes, so as to effectively be managed Household intelligent device.
Description of the drawings
Fig. 1 is the schematic diagram of the hardware structure of one embodiment of dynamic configuration device of the present invention;
Fig. 2 is the schematic diagram of the dynamically configurable feature of structure shown in Fig. 1;
Fig. 3 is the flow diagram of one embodiment of Dynamic Configuration of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made All other embodiments obtained are put, belong to the scope of protection of the invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not the present invention claims Protection domain within.
As shown in fig.1, Fig. 1 is the schematic diagram of the hardware structure of one embodiment of dynamic configuration device of the present invention, dynamic configuration Device 1 be it is a kind of can be according to the instruction for being previously set or storing, the automatic equipment for carrying out numerical computations and/or information processing. The dynamic configuration device 1 may be disposed in intelligent home gateway equipment.
In the present embodiment, dynamic configuration device 1 may include, but be not limited only to, and connection can be in communication with each other by system bus Memory 11, processor 12, network interface 13, memory 11 is stored with the dynamic configuration journey that can be run on the processor 12 Sequence.It is pointed out that Fig. 1 illustrates only the dynamic configuration device 1 with component 11-13, it should be understood that being not required for Implement all components shown, the more or less component of the implementation that can be substituted.
Wherein, memory 11 includes memory and the readable storage medium storing program for executing of at least one type.Inside save as dynamic configuration device 1 Operation provides caching;Readable storage medium storing program for executing can be if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX storages Device etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electric erasable can Program read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc. it is non-volatile Property storage medium.In some embodiments, readable storage medium storing program for executing can be the internal storage unit of dynamic configuration device 1, such as should The hard disk of dynamic configuration device 1;In further embodiments, which can also be the outer of dynamic configuration device 1 The plug-in type hard disk being equipped in portion's storage device, such as dynamic configuration device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) blocks, flash card (Flash Card) etc..In the present embodiment, memory 11 Readable storage medium storing program for executing is installed on the operating system of dynamic configuration device 1 and types of applications software, such as the present invention commonly used in storage Code of dynamic allocation procedure in one embodiment etc..In addition, memory 11 can be also used for temporarily storing exported or The Various types of data that person will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is described dynamic commonly used in controlling The overall operation of state configurator 1, such as perform and carry out data interaction or the relevant control that communicates with other described electronic equipments With processing etc..In the present embodiment, the processor 12 is used to run the program code stored in the memory 11 or processing Data, such as run described dynamic allocation procedure etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the dynamic configuration device 1 and other electronic equipments.In the present embodiment, network interface 13 be mainly used for by Intelligent home gateway equipment where dynamic configuration device 1 is connected with the equipment in one or more intelligent domestic systems, to establish Data transmission channel and communication connection.
The dynamic allocation procedure is stored in memory 11, including at least one computer being stored in memory 11 Readable instruction, at least one computer-readable instruction can be performed by processor device 12, to realize the side of each embodiment of the application Method;And at least one computer-readable instruction is different according to the function that its each several part is realized, can be divided into different patrol Collect module.
In one embodiment, following steps are realized when above-mentioned dynamic allocation procedure is performed by the processor 12:
Step S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic Configuration feature model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, by institute The dynamically configurable feature and characteristic relation of extraction are stored in conditions of service mapping table;
In the present embodiment, dynamic configuration characteristic model is to refer to the primitive character identified by intelligent gateway dynamic configuration device The variant of model.By design feature rule, characteristic relation rule, the configurable features mould for meeting dynamic configuration device standard is formed Type, and the field language-specific of Household intelligent gateway is specific to feature to be described by design, so as to which dynamic be facilitated to match somebody with somebody Device is put to be read out dynamic configuration characteristic model.
In a preferred embodiment, building the dynamic configuration characteristic model based on intelligent domestic system includes:Build intelligence The equipment added in or the corresponding dynamically configurable feature of service can be supported in house system, obtain the dynamically configurable feature Between characteristic relation, the calculating of intelligent domestic gateway system is belonged to based on the dynamically configurable feature and characteristic relation structure The dynamically configurable characteristic model of machine language.
Specifically, when building dynamically configurable feature, in order to which intelligent home gateway is allow smoothly to read and parses intelligence The dynamically configurable feature of energy household, initial dynamically configurable feature need to include following five attributes:Characteristic type (FEAT_T), feature name (string), father's characteristic node (Feature*=NULL), significant condition value (numOflmp=0) And feature realizes quantitative value (num=0).
Wherein characteristic type includes following three types:Service features (SER), abstract data type feature (ADT) and adaptation Device feature (ADP).I.e.:enum FEAT_T{SER,ADT,ADP}.The characteristics of service features are used for describing all services in system, One service features describes a service;Adapter characteristics are used for the characteristics of all external equipments in description system, an adaptation Device feature describes a kind of equipment of same type;Abstract data type feature is then the abstract expression to adapter characteristics, for clothes The complexity for Feature masking adapter characteristics of being engaged in, provides a kind of describing mode of abstract.
Relation between dynamically configurable feature includes five kinds altogether:Essential relation (MON), optional relation (OPT), multiselect close It is (MUL), dependence (REQ) and exclusion relations (EXC).I.e.:enum RELA_T{MON,OPT,MUL,REQ,EXC}.Root According to the correspondence between feature, features described above relation is divided into multiselect relation (RelaMUL) and non-multiselect relation (RelaBTW)。
The structure of dynamic configuration characteristic model includes:Design one kind is specific to the specific language in Household intelligent gateway field (FEL) dynamic configuration characteristic model is described.The basic syntax of FEL (Feature Expression Language) It is as follows:
Feature_type;op;feature_type_set
Wherein feature_type represents configurable features, and naming rule is characterized name _ characteristic type, type ∈ {SER,ADT,ADP};Relation between op representative features, op ∈ { MON, OPT, MUL, REQ, EXC }, MUL need to provide optional Scope, such as " 1-3 ";The set of feature_type_set representative features and requirement | feature_type_set |>0.Feature with Used between characteristic relation ";" separate, it is separated between feature and feature with ", ".Each one complete sentence of behavior, is made with carriage return Left feature for the mark of Statement Completion, while every sentence must be Gent sign.It is obtained by FEL language as shown in Figure 2 Dynamic configuration characteristic model, wherein " SmartHome " is smart home, " AlarmService " be alert service, " InvadeService " is detection service, " Light " is light, " Beep " is buzzer, " InvadeSensor " is detection Device, the dynamic configuration characteristic model describe in words as follows:
“SmartHome_SER;OPT;AlarmService_SER,InvadeService_SER,Feature_ADT
Alarm_ADT;MUL(1-2);Light_ADP,Beep_ADP
Invade_ADT;OPT;InvadeSensor_ADP
Feature_ADT;OPT;Alarm_ADT,Invade_ADT
AlarmService_SER;REQ;Alarm_ADT
InvadeService_SER;REQ;Invade_ADT
InvadeService_SER;EXC;AlarmService”.
Dynamic configuration device can be extracted feature and characteristic relation by the dynamic configuration characteristic model read as above Come and be stored among conditions of service mapping table.
Step S2 after configuring request is received, analyzes the feature to be configured in the configuring request and belongs to service class also It is equipment class, the configuring request is responded based on the analysis result and the conditions of service mapping table.
Wherein, configuring request includes feature to be configured, and feature to be configured includes the feature of service class or equipment class, if The feature of standby class, which includes the addition of new equipment and the cancellation of existing device, the feature of service class, includes the unlatching and service of service Closing.When dynamic configuration device receives configuring request, it is received and is configured.
Addition for new equipment if new equipment is not the equipment that intelligent home gateway is supported, asks to fail;It is if new Equipment is the equipment that intelligent home gateway is supported, then reasonable configuration scheme can be drawn according to conditions of service mapping table, changes phase Component configuration is closed, so as to complete the addition of new equipment;
Cancellation, the unlatching of service or the closing of service for existing device, can draw conjunction according to conditions of service mapping table Allocation plan, the configuration of change associated components or service configuration are managed, so as to complete the unlatching or service of the cancellation of existing device, service Closing.
Compared with prior art, the present embodiment is in intelligent domestic system, and dynamic configuration device is by reading what is built in advance Dynamic configuration characteristic model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, The dynamically configurable feature and characteristic relation extracted are stored in conditions of service mapping table, service class is being received or is setting After the configuring request of standby class, dynamic configuration device is realizing can dynamically match somebody with somebody to service class or equipment class based on conditions of service mapping table The feature put is configured, cancellation, the unlatching of service and the closing of service of addition, existing device including new equipment, from And Household intelligent device is effectively managed.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 1, the step S2 includes:
S21 if the feature to be configured in the configuring request belongs to equipment class, treats the significant condition value of configuration feature Carry out plus-minus operation, based on the feature to be configured carry out the significant condition value after plus-minus operation, the feature to be configured with it is corresponding The characteristic relation of father's characteristic node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service and reflects Firing table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or existing device revocation;
S22 if the feature to be configured in the configuring request belongs to service class, judges that the feature to be configured whether there is In the conditions of service mapping table, if so, obtaining the characteristic relation in the conditions of service mapping table with the feature to be configured For the dynamically configurable feature of dependence, the significant condition value based on the dynamically configurable feature realizes unlatching or the clothes of service The closing of business.
Wherein, the addition of new adapter member can be caused for the addition of new equipment.For entire intelligent domestic gateway Exist for system, between component and rely on exclusion relations, the addition of component can cause the variation of other member status.This mainly according to The state of that associated feature between Lai Yu and component.Since the title of component wants dynamically configurable feature associated with it Then time feature name is consistent, so during dynamic configuration is analyzed, it is only necessary to the state of feature is changed, Conditions of service mapping table is gone through, changes relevant significant condition, the change of component is finally repositioned on according to significant condition.
Specifically, the algorithm of the addition of new equipment includes:
(1) the significant condition value of the feature to be configured in incoming configuring request is carried out plus 1 operates;
(2) if the value of numOflmp is 1, which switchs to active state from wait state, can cause father The change of significant condition, therefore the relation of this feature and father's feature is judged;
(3) if being characterized in multiselect relation with father, 1 is added to the realization number of father's feature;
(4) whether the realization number of father's feature is judged in optional scope, if then carrying out adding 1 behaviour to father's significant condition value Make;
(5) if not being multiselect relation with father's feature, directly father's significant condition value is carried out plus 1 operates;
(6) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
Cancellation for existing device, user can remove equipment as needed, that is, remove existing component.In smart home In gateway system, the object mainly influenced of removing of component is exactly to service.The open and close of service need to rely on conditions of service Other all components in mapping table, if removed there are one component, it will directly affect the condition that service is opened, may lead Cause the closing of service or the unlatching of other services.
Specifically, the algorithm of the cancellation of existing device includes:
(1) carry out subtracting 1 operation to the significant condition value of the feature to be configured in incoming configuring request;
(2) if the value of numOflmp is 0, this feature switchs to wait state from active state, can cause father's feature shape The change of state, therefore the relation of this feature and father's feature is judged;
(3) if being characterized in multiselect relation with father, subtract 1 to the realization number of father's feature;
(4) whether the realization number of father's feature is judged in optional scope, if then carrying out subtracting 1 behaviour to father's significant condition value Make;
(5) if not being multiselect relation with father's feature, directly carry out subtracting 1 operation to father's significant condition value;
(6) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
For the unlatching of service, the unlatching of service is non-mandatory requirement, and intelligent domestic gateway system will not unconditional sound Using the request at family.Only being serviced when the dependence rejection condition of service all meets can just be activated.It is as shown in table 1 below, be The corresponding conditions of service mapping table of above-mentioned Fig. 2:
Table 1
For above-mentioned conditions of service mapping table, mandatory condition represents the condition of service positive closing, i.e. mandatory condition is 0 When illustrate that the service has been forced closed, even if other conditions are satisfied by, service can not open.Can one service be activated It needs to meet following three condition, the startup request failure of the otherwise service:
1st, significant condition all in the dependence condition of the service is active state;
2nd, significant condition all in the rejection condition of the service is inactive state;
3rd, the mandatory condition of the service is 1.
Specifically, the algorithm of the unlatching of service includes:
(1) whether exist to the feature to be configured in incoming configuring request in conditions of service mapping table;
(2) fail if there is no then opening;
(3) and if so, the mandatory condition of the service is set to 1;
(4) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
For the closing of service, the closing of service is different with the unlatching of service, and closing is mandatory requirement, i.e., anyway all It should give response.The present embodiment is actively closed according to demand primarily directed to user.When service is forced closed, let it be Whether dependence condition is to meet, it all should be at closed state.
Specifically, the algorithm of the closing of service includes:
(1) judge feature to be configured in incoming configuring request whether in presence service condition mapping table;
(2) if there is no then Fail-closed;
(3) and if so, the mandatory condition of the service is set to 1;
(4) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
As shown in figure 3, Fig. 3 is the flow diagram of one embodiment of Dynamic Configuration of the present invention, the Dynamic Configuration Comprise the following steps:
Step S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic Configuration feature model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, by institute The dynamically configurable feature and characteristic relation of extraction are stored in conditions of service mapping table;
In the present embodiment, dynamic configuration characteristic model is to refer to the primitive character identified by intelligent gateway dynamic configuration device The variant of model.By design feature rule, characteristic relation rule, the configurable features mould for meeting dynamic configuration device standard is formed Type, and the field language-specific of Household intelligent gateway is specific to feature to be described by design, so as to which dynamic be facilitated to match somebody with somebody Device is put to be read out dynamic configuration characteristic model.
In a preferred embodiment, building the dynamic configuration characteristic model based on intelligent domestic system includes:Build intelligence The equipment added in or the corresponding dynamically configurable feature of service can be supported in house system, obtain the dynamically configurable feature Between characteristic relation, the calculating of intelligent domestic gateway system is belonged to based on the dynamically configurable feature and characteristic relation structure The dynamically configurable characteristic model of machine language.
Specifically, when building dynamically configurable feature, in order to which intelligent home gateway is allow smoothly to read and parses intelligence The dynamically configurable feature of energy household, initial dynamically configurable feature need to include following five attributes:Characteristic type (FEAT_T), feature name (string), father's characteristic node (Feature*=NULL), significant condition value (numOflmp=0) And feature realizes quantitative value (num=0).
Wherein characteristic type includes following three types:Service features (SER), abstract data type feature (ADT) and adaptation Device feature (ADP).I.e.:enum FEAT_T{SER,ADT,ADP}.The characteristics of service features are used for describing all services in system, One service features describes a service;Adapter characteristics are used for the characteristics of all external equipments in description system, an adaptation Device feature describes a kind of equipment of same type;Abstract data type feature is then the abstract expression to adapter characteristics, for clothes The complexity for Feature masking adapter characteristics of being engaged in, provides a kind of describing mode of abstract.
Relation between dynamically configurable feature includes five kinds altogether:Essential relation (MON), optional relation (OPT), multiselect close It is (MUL), dependence (REQ) and exclusion relations (EXC).I.e.:enum RELA_T{MON,OPT,MUL,REQ,EXC}.Root According to the correspondence between feature, features described above relation is divided into multiselect relation (RelaMUL) and non-multiselect relation (RelaBTW)。
The structure of dynamic configuration characteristic model includes:Design one kind is specific to the specific language in Household intelligent gateway field (FEL) dynamic configuration characteristic model is described.The basic syntax of FEL (Feature Expression Language) It is as follows:
Feature_type;op;feature_type_set
Wherein feature_type represents configurable features, and naming rule is characterized name _ characteristic type, type ∈ {SER,ADT,ADP};Relation between op representative features, op ∈ { MON, OPT, MUL, REQ, EXC }, MUL need to provide optional Scope, such as " 1-3 ";The set of feature_type_set representative features and requirement | feature_type_set |>0.Feature with Used between characteristic relation ";" separate, it is separated between feature and feature with ", ".Each one complete sentence of behavior, is made with carriage return Left feature for the mark of Statement Completion, while every sentence must be Gent sign.It is obtained by FEL language as shown in Figure 2 Dynamic configuration characteristic model, wherein " SmartHome " is smart home, " AlarmService " be alert service, " InvadeService " is detection service, " Light " is light, " Beep " is buzzer, " InvadeSensor " is detection Device, the dynamic configuration characteristic model describe in words as follows:
“SmartHome_SER;OPT;AlarmService_SER,InvadeService_SER,Feature_ADT
Alarm_ADT;MUL(1-2);Light_ADP,Beep_ADP
Invade_ADT;OPT;InvadeSensor_ADP
Feature_ADT;OPT;Alarm_ADT,Invade_ADT
AlarmService_SER;REQ;Alarm_ADT
InvadeService_SER;REQ;Invade_ADT
InvadeService_SER;EXC;AlarmService”.
Dynamic configuration device can be extracted feature and characteristic relation by the dynamic configuration characteristic model read as above Come and be stored among conditions of service mapping table.
S2, after configuring request is received, analyze the feature to be configured in the configuring request belong to service class still set Standby class responds the configuring request based on the analysis result and the conditions of service mapping table.
Wherein, configuring request includes feature to be configured, and feature to be configured includes the feature of service class or equipment class, if The feature of standby class, which includes the addition of new equipment and the cancellation of existing device, the feature of service class, includes the unlatching and service of service Closing.When dynamic configuration device receives configuring request, it is received and is configured.
Addition for new equipment if new equipment is not the equipment that intelligent home gateway is supported, asks to fail;It is if new Equipment is the equipment that intelligent home gateway is supported, then reasonable configuration scheme can be drawn according to conditions of service mapping table, changes phase Component configuration is closed, so as to complete the addition of new equipment;
Cancellation, the unlatching of service or the closing of service for existing device, can draw conjunction according to conditions of service mapping table Allocation plan, the configuration of change associated components or service configuration are managed, so as to complete the unlatching or service of the cancellation of existing device, service Closing.
Compared with prior art, the present embodiment is in intelligent domestic system, and dynamic configuration device is by reading what is built in advance Dynamic configuration characteristic model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, The dynamically configurable feature and characteristic relation extracted are stored in conditions of service mapping table, service class is being received or is setting After the configuring request of standby class, dynamic configuration device is realizing can dynamically match somebody with somebody to service class or equipment class based on conditions of service mapping table The feature put is configured, cancellation, the unlatching of service and the closing of service of addition, existing device including new equipment, from And Household intelligent device is effectively managed.
In a preferred embodiment, on the basis of the embodiment of above-mentioned Fig. 1, the step S2 includes:
S21 if the feature to be configured in the configuring request belongs to equipment class, treats the significant condition value of configuration feature Carry out plus-minus operation, based on the feature to be configured carry out the significant condition value after plus-minus operation, the feature to be configured with it is corresponding The characteristic relation of father's characteristic node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service and reflects Firing table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or existing device revocation;
S22 if the feature to be configured in the configuring request belongs to service class, judges that the feature to be configured whether there is In the conditions of service mapping table, if so, obtaining the characteristic relation in the conditions of service mapping table with the feature to be configured For the dynamically configurable feature of dependence, the significant condition value based on the dynamically configurable feature realizes unlatching or the clothes of service The closing of business.
Wherein, the addition of new adapter member can be caused for the addition of new equipment.For entire intelligent domestic gateway Exist for system, between component and rely on exclusion relations, the addition of component can cause the variation of other member status.This mainly according to The state of that associated feature between Lai Yu and component.Since the title of component wants dynamically configurable feature associated with it Then time feature name is consistent, so during dynamic configuration is analyzed, it is only necessary to the state of feature is changed, Conditions of service mapping table is gone through, changes relevant significant condition, the change of component is finally repositioned on according to significant condition.
Specifically, the algorithm of the addition of new equipment includes:
(1) the significant condition value of the feature to be configured in incoming configuring request is carried out plus 1 operates;
(2) if the value of numOflmp is 1, which switchs to active state from wait state, can cause father The change of significant condition, therefore the relation of this feature and father's feature is judged;
(3) if being characterized in multiselect relation with father, 1 is added to the realization number of father's feature;
(4) whether the realization number of father's feature is judged in optional scope, if then carrying out adding 1 behaviour to father's significant condition value Make;
(5) if not being multiselect relation with father's feature, directly father's significant condition value is carried out plus 1 operates;
(6) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
Cancellation for existing device, user can remove equipment as needed, that is, remove existing component.In smart home In gateway system, the object mainly influenced of removing of component is exactly to service.The open and close of service need to rely on conditions of service Other all components in mapping table, if removed there are one component, it will directly affect the condition that service is opened, may lead Cause the closing of service or the unlatching of other services.
Specifically, the algorithm of the cancellation of existing device includes:
(2) carry out subtracting 1 operation to the significant condition value of the feature to be configured in incoming configuring request;
(2) if the value of numOflmp is 0, this feature switchs to wait state from active state, can cause father's feature shape The change of state, therefore the relation of this feature and father's feature is judged;
(3) if being characterized in multiselect relation with father, subtract 1 to the realization number of father's feature;
(4) whether the realization number of father's feature is judged in optional scope, if then carrying out subtracting 1 behaviour to father's significant condition value Make;
(5) if not being multiselect relation with father's feature, directly carry out subtracting 1 operation to father's significant condition value;
(6) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
For the unlatching of service, the unlatching of service is non-mandatory requirement, and intelligent domestic gateway system will not unconditional sound Using the request at family.Only being serviced when the dependence rejection condition of service all meets can just be activated.It is as shown in table 1 below, be The corresponding conditions of service mapping table of above-mentioned Fig. 2:
Table 1
For above-mentioned conditions of service mapping table, mandatory condition represents the condition of service positive closing, i.e. mandatory condition is 0 When illustrate that the service has been forced closed, even if other conditions are satisfied by, service can not open.Can one service be activated It needs to meet following three condition, the startup request failure of the otherwise service:
1st, significant condition all in the dependence condition of the service is active state;
2nd, significant condition all in the rejection condition of the service is inactive state;
3rd, the mandatory condition of the service is 1.
Specifically, the algorithm of the unlatching of service includes:
(1) whether exist to the feature to be configured in incoming configuring request in conditions of service mapping table;
(2) fail if there is no then opening;
(3) and if so, the mandatory condition of the service is set to 1;
(4) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
For the closing of service, the closing of service is different with the unlatching of service, and closing is mandatory requirement, i.e., anyway all It should give response.The present embodiment is actively closed according to demand primarily directed to user.When service is forced closed, let it be Whether dependence condition is to meet, it all should be at closed state.
Specifically, the algorithm of the closing of service includes:
(1) judge feature to be configured in incoming configuring request whether in presence service condition mapping table;
(2) if there is no then Fail-closed;
(3) and if so, the mandatory condition of the service is set to 1;
(4) traverse service condition mapping table changes state and the return of correlated characteristic according to above-mentioned operating result, terminates Algorithm.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (9)

1. a kind of dynamic configuration device, which is characterized in that the dynamic configuration device includes:It memory, processor and is stored in described On memory and the dynamic allocation procedure that can run on the processor, the dynamic allocation procedure are performed by the processor Shi Shixian following steps:
S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic configuration feature Model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, can by what is extracted The feature and characteristic relation of dynamic configuration are stored in conditions of service mapping table;
S2 after configuring request is received, analyzes the feature to be configured in the configuring request and belongs to service class or equipment class, The configuring request is responded based on the analysis result and the conditions of service mapping table.
2. dynamic configuration device according to claim 1, which is characterized in that the dynamic allocation procedure is held by the processor Before row step S1, further include:
The equipment added in or the corresponding dynamically configurable feature of service can be supported in structure intelligent domestic system, it is described dynamically to match somebody with somebody Putting the attribute information of feature includes characteristic type, feature name, father's characteristic node, significant condition value and feature realization quantity Value, the characteristic type include service features, abstract data type feature and adapter characteristics;
Obtain the characteristic relation between the dynamically configurable feature, the characteristic relation includes essential relation, optional relation, more Select relation, dependence and exclusion relations;
Based on the dynamically configurable feature and characteristic relation structure belong to intelligent domestic gateway system computer language can Dynamic configuration characteristic model.
3. dynamic configuration device according to claim 2, which is characterized in that the step S2 includes:
S21, if the feature to be configured in the configuring request belongs to equipment class, the significant condition value for treating configuration feature carries out It is special with corresponding father to carry out the significant condition value after plus-minus operation, the feature to be configured based on the feature to be configured for plus-minus operation The characteristic relation of sign node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service mapping Table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or the revocation of existing device;
S22 if the feature to be configured in the configuring request belongs to service class, judges the feature to be configured with the presence or absence of described In conditions of service mapping table, if so, obtain in the conditions of service mapping table with the characteristic relation of the feature to be configured be according to The dynamically configurable feature for the relation of relying, significant condition value based on the dynamically configurable feature realize the unlatching or service of service It closes.
4. dynamic configuration device according to claim 3, which is characterized in that in the step s 21, if in the configuring request Feature to be configured belongs to equipment class, and this it is to be configured be characterized as that new equipment adds in, then analyze whether added in new equipment is institute It states intelligent domestic gateway system and supports the equipment added in, if so, the significant condition value that configuration feature is treated in execution is added and subtracted Operation, if it is not, being then not responding to the configuring request.
5. a kind of Dynamic Configuration, applied in dynamic configuration device, which is characterized in that the Dynamic Configuration includes:
S1 obtains the dynamic configuration characteristic model based on intelligent domestic system built in advance, reads the dynamic configuration feature Model extracts dynamically configurable feature and characteristic relation from read dynamic configuration characteristic model, can by what is extracted The feature and characteristic relation of dynamic configuration are stored in conditions of service mapping table;
S2 after configuring request is received, analyzes the feature to be configured in the configuring request and belongs to service class or equipment class, The configuring request is responded based on the analysis result and the conditions of service mapping table.
6. Dynamic Configuration according to claim 5, which is characterized in that before the step S1, further include:
The equipment added in or the corresponding dynamically configurable feature of service can be supported in structure intelligent domestic system, it is described dynamically to match somebody with somebody Putting the attribute information of feature includes characteristic type, feature name, father's characteristic node, significant condition value and feature realization quantity Value, the characteristic type include service features, abstract data type feature and adapter characteristics;
Obtain the characteristic relation between the dynamically configurable feature, the characteristic relation includes essential relation, optional relation, more Select relation, dependence and exclusion relations;
Based on the dynamically configurable feature and characteristic relation structure belong to intelligent domestic gateway system computer language can Dynamic configuration characteristic model.
7. Dynamic Configuration according to claim 6, which is characterized in that the step S2 includes:
S21, if the feature to be configured in the configuring request belongs to equipment class, the significant condition value for treating configuration feature carries out It is special with corresponding father to carry out the significant condition value after plus-minus operation, the feature to be configured based on the feature to be configured for plus-minus operation The characteristic relation of sign node carries out plus-minus operation to the significant condition value of father's characteristic node, travels through the conditions of service mapping Table carries out the significant condition value after plus-minus operation based on father's characteristic node in the conditions of service mapping table and realizes new equipment Addition or the revocation of existing device;
S22 if the feature to be configured in the configuring request belongs to service class, judges the feature to be configured with the presence or absence of described In conditions of service mapping table, if so, obtain in the conditions of service mapping table with the characteristic relation of the feature to be configured be according to The dynamically configurable feature for the relation of relying, significant condition value based on the dynamically configurable feature realize the unlatching or service of service It closes.
8. Dynamic Configuration according to claim 7, which is characterized in that in the step S21, if the configuring request In feature to be configured belong to equipment class, and this it is to be configured be characterized as that new equipment adds in, then whether analyze added in new equipment The equipment that addition is supported for the intelligent domestic gateway system, if so, performing the significant condition value progress for treating configuration feature Plus-minus operation, if it is not, being then not responding to the configuring request.
9. a kind of computer readable storage medium, dynamic allocation procedure is stored on the computer readable storage medium, it is described The step of Dynamic Configuration as any one of claim 5 to 8 is realized when dynamic allocation procedure is executed by processor.
CN201711085957.0A 2017-11-07 2017-11-07 Dynamic configuration device, Dynamic Configuration and computer readable storage medium Pending CN108055174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711085957.0A CN108055174A (en) 2017-11-07 2017-11-07 Dynamic configuration device, Dynamic Configuration and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711085957.0A CN108055174A (en) 2017-11-07 2017-11-07 Dynamic configuration device, Dynamic Configuration and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108055174A true CN108055174A (en) 2018-05-18

Family

ID=62119057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711085957.0A Pending CN108055174A (en) 2017-11-07 2017-11-07 Dynamic configuration device, Dynamic Configuration and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108055174A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110391933A (en) * 2019-06-17 2019-10-29 浙江工商大学 A kind of embedded type equipment parameter configuration recovery method and embedded device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155817A (en) * 2015-04-14 2016-11-23 腾讯科技(深圳)有限公司 Business information processing method, server and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155817A (en) * 2015-04-14 2016-11-23 腾讯科技(深圳)有限公司 Business information processing method, server and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钱泽林: "智能网关适配技术的研究与应用", 《万方学位论文》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110391933A (en) * 2019-06-17 2019-10-29 浙江工商大学 A kind of embedded type equipment parameter configuration recovery method and embedded device

Similar Documents

Publication Publication Date Title
CN110597075B (en) Method and device for detecting control conflict, electronic equipment and storage medium
CN105302274B (en) A kind of sensor control method and device
CN108447480A (en) Method, intelligent sound terminal and the network equipment of smart home device control
US8782597B2 (en) Ontology updating apparatus, method and system
CN101588086B (en) Method for processing recording file of multiple-plug-in component embedded type fault information system substation
CN103327080B (en) Create the method and device of Internet of Things control system
CN101369933A (en) Automatic test method and system
CN111464351B (en) Network distribution method and device for intelligent household equipment, terminal equipment and storage medium
CN102833102B (en) Customer premise equipment system of set-card separated type gateway and data configuration management method
CN107844711B (en) Data manipulation permission partition method, application server and computer readable storage medium
CN108055174A (en) Dynamic configuration device, Dynamic Configuration and computer readable storage medium
US8959191B2 (en) Script modification suggestion
CN114363293A (en) Device management method, system, readable storage medium and computer device
CN107484151A (en) A kind of SIM card networking control method
CN107577150A (en) A kind of electric quantity controlling method, electronic equipment and computer-readable recording medium
CN108709285A (en) Mthods, systems and devices for monitoring room
CN112929245A (en) Method for managing smart home edge computing platform based on cloud edge cooperation technology
CN105117227B (en) The method and device of automatic code generating
CN106020426A (en) Releasing method and device for awakening locks
CN107613546B (en) BLE chip, control method of designated element in BLE chip and Bluetooth low-power-consumption equipment
CN113326172B (en) Operation and maintenance knowledge processing method, device and equipment
CN109918277A (en) Electronic device, the evaluation method of system log cluster analysis result and storage medium
CN109765983A (en) Run procedure management method, device and mobile terminal
CN105955053A (en) Intelligent household equipment access method based on big data
CN108958849A (en) Obtain method, apparatus, storage medium and the mobile terminal of current Activity object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180518