Data centralized management method and system in smart home
Technical field
The present invention relates to Smart Home technical field, in more particularly to a kind of smart home data centralized management method be
System.
Background technology
Smart home (English:Smart home, home automation) it is with house as platform, using comprehensive wiring
Technology, the network communications technology, security precautions technology, automatic control technology, audio frequency and video technology are by the relevant facility collection of life staying idle at home
Into, the management system of efficient housing facilities and family's schedule affairs is built, lift house security, convenience, comfortableness, 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, illuminator, 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
Various 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 for using, and the safety management to the data of smart home collection is past
It is past to be ignored, therefore there is potential safety hazard.
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 comprises the following steps:
S1, in central server divide one piece gathered in the process of running dedicated for storing each intelligent home device
Various data data storage areas;
The various data that S2, central server concentrated collection each intelligent home device are gathered in the process of running;It is described
Data include environmental data, behavioral data, User Status data, intelligent home device running state data;
The data that S3, central server will be collected are divided according to main body, data type, safe class degree is sent
Class;
S4, user in smart home is divided according to Permission Levels;And configure and data are entered under different rights grade
The number of users of row operation;The mapping relations of the corresponding user terminal of user are configured in central server, by user's end
Stored in data storage areas after the mapping relations encryption of the unique identifier at end and the corresponding user terminal of user;
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 for collecting;
S6, data element is combined according to preset rules, and will entered according to Uniform data format after addition additional information
Row conversion;
S7, the consolidation form data after conversion are carried out into data block dividing processing;And enter the data block after dividing processing
Stored in the data storage areas of central server after row encryption;
The rule list of the data recovery after S8, configuration dividing processing;The rule list of data recovery is configured to user under line
In corresponding user terminal;
S9, the access request for obtaining data in access central server;Judge unique knowledge of the user terminal of access request
Whether alias is stored in data storage areas, when storage is 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 store in central server;
S10, access data type is parsed from access request, data type will be accessed and be sent to number in central server
According to storage region and the Permission Levels of the corresponding user of user terminal for judging the access request;When Permission Levels meet the requirements
Jump to step S11;Otherwise ignore this access request, and during by the unique identifier of the user terminal of access request and request
Between store in central server;
S11, the number after request accesses the corresponding dividing processing of data is transferred from central server in data storage areas
According to block, and it is sent to user terminal;
S12, user terminal obtain consolidation form data according to the rule list of data recovery to the data block after dividing processing.
In data centralized management method in smart home of the present invention,
The form of the Uniform data format includes:Head checking section+data is activation main paragraph+data type section+safety
Rating scale section+purposes type section.
In data centralized management method in smart home of the present invention,
The step S12 includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing that user terminal will be received is sent to exclusive memory block;
Prompting user carries out authentication, after certification passes through, the rule list that called data recovers from exclusive memory block
Consolidation form data are obtained to the data block after dividing processing.
The present invention also provides centralized data management system in a kind of smart home, and it is included such as lower unit:
Area division unit, exists for dividing one piece in central server dedicated for storing each intelligent home device
The data storage areas of the various data gathered in running;
Data acquisition unit, adopts in the process of running for each intelligent home device by central server concentrated collection
The various data of collection;The data include environmental data, behavioral data, User Status data, intelligent home device running status
Data;
Data dividing unit, for the data that will be collected by central server according to sending 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
Data are operated number of users under grade;The mapping of the corresponding user terminal of user is configured in central server
Relation, will store in data after the mapping relations encryption of the corresponding user terminal of the unique identifier of user terminal and user
In storage region;
Form dispensing unit, for configuring smart home Uniform data format, is receiving the data for collecting according to transmission
After main body, data type, safe class program are classified, data element is parsed from the data for collecting;
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;
Encryption memory cell, for the consolidation form data after conversion to be carried out into 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, the rule list for configuring the data recovery after dividing processing;By data recovery under line
Rule list is configured in the corresponding user terminal of user;
Request judging unit, 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 storage is 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 storage are in central server;
Authority judging unit, for parsing access data type from access request, will access data type and is sent to
In central server data storage areas and judge the access request the corresponding user of user terminal Permission Levels;In authority
Data feedback unit is jumped to when grade meets the requirements;Otherwise ignore this access request, and by the user terminal of access request
Unique identifier and request time store 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 treatment 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 consolidation form data.
In centralized data management system in smart home of the present invention,
The form of the Uniform data format includes:Head checking section+data is activation main paragraph+data type section+safety
Rating scale section+purposes type section.
In centralized data management system in smart home of the present invention,
The data recovery unit includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing that user terminal will be received is sent to exclusive memory block;
Prompting user carries out authentication, after certification passes through, the rule list that called data recovers from exclusive memory block
Consolidation form data are obtained to the data block after dividing processing.
Data centralized management method has the advantages that with system in implementing a kind of smart home that the present invention is provided:
The security of data centralized management in smart home is ensure that, and improves the convenience to data separate.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention smart home in centralized data management system structured flowchart.
Specific embodiment
Data centralized management method in a kind of smart home, it is characterised in that it comprises the following steps:
S1, in central server divide one piece gathered in the process of running dedicated for storing each intelligent home device
Various data data storage areas;
One piece is divided in central server dedicated for storing what each intelligent home device was gathered in the process of running
The data storage areas of various data ensure that the security of data storage, to the data storage areas using hardware encryption
Mode is encrypted, and improves the security of data storage.
The various data that S2, central server concentrated collection each intelligent home device are gathered in the process of running;It is described
Data include environmental data, behavioral data, User Status data, intelligent home device running state data;
The data that S3, central server will be collected are divided according to main body, data type, safe class degree is sent
Class;
S4, user in smart home is divided according to Permission Levels;And configure and data are entered under different rights grade
The number of users of row operation;The mapping relations of the corresponding user terminal of user are configured in central server, by user's end
Stored in data storage areas after the mapping relations encryption of the unique identifier at end and the corresponding user terminal of user;
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 for collecting;
S6, data element is combined according to preset rules, and will entered according to Uniform data format after addition additional information
Row conversion;
It is combined according to preset rules by by data element, and will be entered according to Uniform data format after addition additional information
Row conversion, can realize unitized, the standardization of data separate.
S7, the consolidation form data after conversion are carried out into data block dividing processing;And enter the data block after dividing processing
Stored in the data storage areas of central server after row encryption;
The rule list of the 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, ensure that other users are obtaining number in time
According to when, cannot also use the data.
S9, the access request for obtaining data in access central server;Judge unique knowledge of the user terminal of access request
Whether alias is stored in data storage areas, when storage is 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 store in central server;
S10, access data type is parsed from access request, data type will be accessed and be sent to number in central server
According to storage region and the Permission Levels of the corresponding user of user terminal for judging the access request;When Permission Levels meet the requirements
Jump to step S11;Otherwise ignore this access request, and during by the unique identifier of the user terminal of access request and request
Between store in central server;
S11, the number after request accesses the corresponding dividing processing of data is transferred from central server in data storage areas
According to block, and it is sent to user terminal;
S12, user terminal obtain consolidation form data according to the rule list of data recovery to the data block after dividing processing.
In data centralized management method in smart home of the present invention,
The form of the Uniform data format includes:Head checking section+data is activation main paragraph+data type section+safety
Rating scale section+purposes type section.
In data centralized management method in smart home of the present invention,
The step S12 includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing that user terminal will be received is sent to exclusive memory block;
Prompting user carries out authentication, after certification passes through, the rule list that called data recovers from exclusive memory block
Consolidation form data are 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 is included such as lower unit:
Area division unit, exists for dividing one piece in central server dedicated for storing each intelligent home device
The data storage areas of the various data gathered in running;
Data acquisition unit, adopts in the process of running for each intelligent home device by central server concentrated collection
The various data of collection;The data include environmental data, behavioral data, User Status data, intelligent home device running status
Data;
Data dividing unit, for the data that will be collected by central server according to sending 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
Data are operated number of users under grade;The mapping of the corresponding user terminal of user is configured in central server
Relation, will store in data after the mapping relations encryption of the corresponding user terminal of the unique identifier of user terminal and user
In storage region;
Form dispensing unit, for configuring smart home Uniform data format, is receiving the data for collecting according to transmission
After main body, data type, safe class program are classified, data element is parsed from the data for collecting;
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 be including data generation time information, checking information etc..
Encryption memory cell, for the consolidation form data after conversion to be carried out into 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, the rule list for configuring the data recovery after dividing processing;By data recovery under line
Rule list is configured in the corresponding user terminal of user;
Request judging unit, 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 storage is 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 storage are in central server;
Authority judging unit, for parsing access data type from access request, will access data type and is sent to
In central server data storage areas and judge the access request the corresponding user of user terminal Permission Levels;In authority
Data feedback unit is jumped to when grade meets the requirements;Otherwise ignore this access request, and by the user terminal of access request
Unique identifier and request time store 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 treatment 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 consolidation form data.
In centralized data management system in smart home of the present invention,
The form of the Uniform data format includes:Head checking section+data is activation main paragraph+data type section+safety
Rating scale section+purposes type section.
In centralized data management system in smart home of the present invention,
The data recovery unit includes:
Exclusive memory block is configured in user terminal;
Data block after the dividing processing that user terminal will be received is sent to exclusive memory block;
Prompting user carries out authentication, after certification passes through, the rule list that called data recovers from exclusive memory block
Consolidation form data are obtained to the data block after dividing processing.
Data centralized management method has the advantages that with system in implementing a kind of smart home that the present invention is provided:
The security of data centralized management in smart home is ensure that, and improves the convenience to data separate.
Above method embodiment is one-to-one with system embodiment, therefore, the extension of embodiment of the method is also applicable
In said system embodiment.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor
Capable software module, or the two combination is implemented.Software module can be placed in random access memory, internal 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 of any other forms known.It is understood that for the person of ordinary skill of the art, can be with root
Other various corresponding changes and deformation are made according to technology design of the invention, and all these changes and deformation should all belong to this
Invention scope of the claims.