Data centralized management method and system in smart home
Technical field
The present invention relates to Smart Home technical field, data centralized management method is with being in more particularly to a kind of smart home
System.
Background technology
Smart home (English:Smart home, home automation) it is using house as platform, utilize comprehensive wiring
Technology, network communication technology, security precautions technology, automatic control technology, audio frequency and video technology are by the related facility collection of home life
Into building the management systems of efficient housing facilities and family's schedule affairs, lifting house security, convenience, comfort, skill
Art, and realize the living environment of environmental protection and energy saving.
Smart home is the embodiment of the Thingsization under the influence of internet.Smart home is by technology of Internet of things by family
Various equipment (such as audio & video equipment, lighting system, curtain control, airconditioning control, safety-protection system, Digital Theater System, audio-visual clothes
Business device, shadow cabinet system, network home appliance etc.) connect together, there is provided home wiring control, Lighting control, remote control using telephone, indoor and outdoor
The multiple functions such as remote control, burglar alarm, environmental monitoring, HVAC control, infrared forwarding and programmable Timer control and means.With
Common household is compared, and smart home not only has traditional inhabitation function, has both building, network service, information household appliances, equipment certainly
Dynamicization, there is provided comprehensive information exchange function, even various energy expenditures save fund.
Existing smart home often focuses on the convenience used, and the safety management to the data of smart home collection is past
It is past to be ignored, therefore there are security risk.
The content of the invention
In view of this, the present invention proposes data centralized management method and system in a kind of smart home.
Data centralized management method in a kind of smart home, it is characterised in that it includes the following steps:
S1, one piece of division gathers in the process of running dedicated for storing each smart home device in central server
Various data data storage areas;
The various data that S2, each smart home device of central server concentrated collection gather in the process of running;It is described
Data include environmental data, behavioral data, User Status data, smart home device running state data;
S3, central server are divided the data collected according to main body, data type, safe class degree is sent
Class;
S4, divided user in smart home according to Permission Levels;And configure under different rights grade to data into
The number of users of row operation;The mapping relations of the corresponding user terminal of user are configured in central server, user is whole
It is stored in after the encryption of the mapping relations of the unique identifier at end and the corresponding user terminal of user in data storage areas;
S5, configuration smart home Uniform data format, receive the data that collect according to send main body, data type,
After safe class program is classified, data element is parsed from the data collected;
Data element, be combined by S6 according to preset rules, and will after addition additional information according to Uniform data format into
Row conversion;
S7, by transformed unified formatted data carry out data block dividing processing;And by the data block after dividing processing into
It is stored in after row encryption in the data storage areas of central server;
The rule list of data recovery after S8, configuration dividing processing;The rule list of data recovery is configured to user under line
In corresponding user terminal;
S9, obtain the access request for accessing data in central server;Judge unique knowledge of the user terminal of access request
Whether alias is stored in data storage areas, when being stored in data storage areas, jumps to step S10;It is not stored in
When in data storage areas, ignore this access request, and during by the unique identifier of the user terminal of access request and request
Between be stored in central server;
S10, parse access data type from access request, will access data type and is sent to number in central server
According to storage region and judge the Permission Levels of the corresponding user of user terminal of the access request;When Permission Levels meet the requirements
Jump to step S11;Otherwise this access request is ignored, and during by the unique identifier of the user terminal of access request and request
Between be stored in central server;
S11, transfer the number after the corresponding dividing processing of request access data from central server in data storage areas
According to block, and it is sent to user terminal;
S12, user terminal obtain the data block after dividing processing unified formatted data according to the rule list of data recovery.
In smart home of the present invention in data centralized management method,
The form of the Uniform data format includes:Verify section+data sending main paragraph+data type section+safety in head
Rating scale section+using type section.
In smart home of the present invention in data centralized management method,
The step S12 includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing received is sent to exclusive memory block by user terminal;
User is prompted to carry out authentication, in certification by rear, the rule list of called data recovery from exclusive memory block
Unified formatted data is obtained to the data block after dividing processing.
The present invention also provides centralized data management system in a kind of smart home, it includes such as lower unit:
Area division unit, exists for dividing one piece in central server dedicated for storing each smart home device
The data storage areas of the various data gathered in operational process;
Data acquisition unit, for being adopted in the process of running by each smart home device of central server concentrated collection
The various data of collection;The data include environmental data, behavioral data, User Status data, smart home device operating status
Data;
Data dividing unit, for by central server by the data collected according to send main body, data type, peace
Congruent stage is classified:
Delineation of power unit, for user in smart home to be divided according to Permission Levels;And configure different rights
The number of users that data are operated under grade;The mapping of the corresponding user terminal of user is configured in central server
Relation, data are stored in after the mapping relations of the corresponding user terminal of the unique identifier of user terminal and user are encrypted
In storage region;
Form dispensing unit, for configuring smart home Uniform data format, is receiving the data collected according to transmission
After main body, data type, safe class program are classified, data element is parsed from the data collected;
Format conversion unit, for data element to be combined according to preset rules, and will addition additional information after according to
Uniform data format is changed;
Storage unit is encrypted, for transformed unified formatted data to be carried out data block dividing processing;And by segmentation portion
Data block after reason is stored in the data storage areas of central server after being encrypted;
Rule list dispensing unit, for configuring the rule list of the data recovery after dividing processing;By data recovery under line
Rule list is configured in the corresponding user terminal of user;
Judging unit is asked, the access request of data in central server is accessed for obtaining;Judge the use of access request
Whether the unique identifier of family terminal is stored in data storage areas, when being stored in data storage areas, jumps to power
Limit judging unit;When being not stored in data storage areas, ignore this access request, and by the user terminal of access request
Unique identifier and request time are stored in central server;
Authority judging unit, for parsing access data type from access request, will access data type and is sent to
Data storage areas and judge the Permission Levels of the corresponding user of user terminal of the access request in central server;In authority
Data feedback unit is jumped to when grade meets the requirements;Otherwise this access request is ignored, and by the user terminal of access request
Unique identifier and request time be stored in central server;
Data feedback unit, corresponding point of data are accessed for transferring request in the data storage areas from central server
The data block after processing is cut, and is sent to user terminal;
Data recovery unit, for by user terminal according to the rule list of data recovery to the data block after dividing processing
Obtain unified formatted data.
In smart home of the present invention in centralized data management system,
The form of the Uniform data format includes:Verify section+data sending main paragraph+data type section+safety in head
Rating scale section+using type section.
In smart home of the present invention in centralized data management system,
The data recovery unit includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing received is sent to exclusive memory block by user terminal;
User is prompted to carry out authentication, in certification by rear, the rule list of called data recovery from exclusive memory block
Unified formatted data is obtained to the data block after dividing processing.
Implement data centralized management method in a kind of smart home provided by the invention to have the advantages that with system:
It can ensure the security that data are managed concentratedly in smart home, and improve the convenience utilized to data.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention smart home in centralized data management system structure diagram.
Embodiment
Data centralized management method in a kind of smart home, it is characterised in that it includes the following steps:
S1, one piece of division gathers in the process of running dedicated for storing each smart home device in central server
Various data data storage areas;
One piece of division gathers in the process of running dedicated for storing each smart home device in central server
The data storage areas of various data can ensure the security of data storage, encrypted using hardware to the data storage areas
Mode is encrypted, and improves the security of data storage.
The various data that S2, each smart home device of central server concentrated collection gather in the process of running;It is described
Data include environmental data, behavioral data, User Status data, smart home device running state data;
S3, central server are divided the data collected according to main body, data type, safe class degree is sent
Class;
S4, divided user in smart home according to Permission Levels;And configure under different rights grade to data into
The number of users of row operation;The mapping relations of the corresponding user terminal of user are configured in central server, user is whole
It is stored in after the encryption of the mapping relations of the unique identifier at end and the corresponding user terminal of user in data storage areas;
By being deposited after the mapping relations of the corresponding user terminal of the unique identifier of user terminal and user are encrypted
Storage can carry out legitimate verification in data storage areas to the identity of user terminal.
S5, configuration smart home Uniform data format, receive the data that collect according to send main body, data type,
After safe class program is classified, data element is parsed from the data collected;
Data element, be combined by S6 according to preset rules, and will after addition additional information according to Uniform data format into
Row conversion;
By the way that data element is combined according to preset rules, and will addition additional information after according to Uniform data format into
Row conversion, can realize unitized, standardization that data utilize.
S7, by transformed unified formatted data carry out data block dividing processing;And by the data block after dividing processing into
It is stored in after row encryption in the data storage areas of central server;
The rule list of data recovery after S8, configuration dividing processing;The rule list of data recovery is configured to user under line
In corresponding user terminal;
By setting the rule list of data recovery, and configured under line, can ensure that other users are obtaining number in time
According to when, can not also use the data.
S9, obtain the access request for accessing data in central server;Judge unique knowledge of the user terminal of access request
Whether alias is stored in data storage areas, when being stored in data storage areas, jumps to step S10;It is not stored in
When in data storage areas, ignore this access request, and during by the unique identifier of the user terminal of access request and request
Between be stored in central server;
S10, parse access data type from access request, will access data type and is sent to number in central server
According to storage region and judge the Permission Levels of the corresponding user of user terminal of the access request;When Permission Levels meet the requirements
Jump to step S11;Otherwise this access request is ignored, and during by the unique identifier of the user terminal of access request and request
Between be stored in central server;
S11, transfer the number after the corresponding dividing processing of request access data from central server in data storage areas
According to block, and it is sent to user terminal;
S12, user terminal obtain the data block after dividing processing unified formatted data according to the rule list of data recovery.
In smart home of the present invention in data centralized management method,
The form of the Uniform data format includes:Verify section+data sending main paragraph+data type section+safety in head
Rating scale section+using type section.
In smart home of the present invention in data centralized management method,
The step S12 includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing received is sent to exclusive memory block by user terminal;
User is prompted to carry out authentication, in certification by rear, the rule list of called data recovery from exclusive memory block
Unified formatted data is obtained to the data block after dividing processing.
As shown in Figure 1, the present invention also provides centralized data management system in a kind of smart home, it includes such as lower unit:
Area division unit, exists for dividing one piece in central server dedicated for storing each smart home device
The data storage areas of the various data gathered in operational process;
Data acquisition unit, for being adopted in the process of running by each smart home device of central server concentrated collection
The various data of collection;The data include environmental data, behavioral data, User Status data, smart home device operating status
Data;
Data dividing unit, for by central server by the data collected according to send main body, data type, peace
Congruent stage is classified;
Delineation of power unit, for user in smart home to be divided according to Permission Levels;And configure different rights
The number of users that data are operated under grade;The mapping of the corresponding user terminal of user is configured in central server
Relation, data are stored in after the mapping relations of the corresponding user terminal of the unique identifier of user terminal and user are encrypted
In storage region;
Form dispensing unit, for configuring smart home Uniform data format, is receiving the data collected according to transmission
After main body, data type, safe class program are classified, data element is parsed from the data collected;
Format conversion unit, for data element to be combined according to preset rules, and will addition additional information after according to
Uniform data format is changed;
Alternatively, additional information can include data generation time information, checking information etc..
Storage unit is encrypted, for transformed unified formatted data to be carried out data block dividing processing;And by segmentation portion
Data block after reason is stored in the data storage areas of central server after being encrypted;
Rule list dispensing unit, for configuring the rule list of the data recovery after dividing processing;By data recovery under line
Rule list is configured in the corresponding user terminal of user;
Judging unit is asked, the access request of data in central server is accessed for obtaining;Judge the use of access request
Whether the unique identifier of family terminal is stored in data storage areas, when being stored in data storage areas, jumps to power
Limit judging unit;When being not stored in data storage areas, ignore this access request, and by the user terminal of access request
Unique identifier and request time are stored in central server;
Authority judging unit, for parsing access data type from access request, will access data type and is sent to
Data storage areas and judge the Permission Levels of the corresponding user of user terminal of the access request in central server;In authority
Data feedback unit is jumped to when grade meets the requirements;Otherwise this access request is ignored, and by the user terminal of access request
Unique identifier and request time be stored in central server;
Data feedback unit, corresponding point of data are accessed for transferring request in the data storage areas from central server
The data block after processing is cut, and is sent to user terminal;
Data recovery unit, for by user terminal according to the rule list of data recovery to the data block after dividing processing
Obtain unified formatted data.
In smart home of the present invention in centralized data management system,
The form of the Uniform data format includes:Verify section+data sending main paragraph+data type section+safety in head
Rating scale section+using type section.
In smart home of the present invention in centralized data management system,
The data recovery unit includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing received is sent to exclusive memory block by user terminal;
User is prompted to carry out authentication, in certification by rear, the rule list of called data recovery from exclusive memory block
Unified formatted data is obtained to the data block after dividing processing.
Implement data centralized management method in a kind of smart home provided by the invention to have the advantages that with system:
It can ensure the security that data are managed concentratedly in smart home, and improve the convenience utilized to data.
Above method embodiment is one-to-one with system embodiment, and therefore, the extension of embodiment of the method is also applicable
In said system embodiment.
Can directly it be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory, memory, read-only storage,
Institute is public in electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In the storage medium for any other forms known.It is understood that for those of ordinary skill in the art, Ke Yigen
Other various corresponding changes and deformation are made according to the technical concept of the present invention, and all these changes and deformation should all belong to originally
Invention scope of the claims.