Data acquisition, analysis encryption method and system in a kind of smart home
Technical field
The present invention relates to Smart Home technical field, data acquisition, analysis encryption side in more particularly to a kind of smart home
Method and system.
Background technology
Smart home (English:Smart home, home automation) it is, using house as platform, to utilize 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 the efficient housing facilities of structure and family's schedule affairs, lifting 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 that there is provided home wiring control, Lighting control, remote control using telephone, indoor and outdoor
A variety of 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 saves fund there is provided comprehensive information exchange function, even various energy expenditures.
Existing smart home often focuses on the convenience used, and the safety management of the data gathered to smart home 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 acquisition in a kind of smart home, analysis encryption method and system.
Data acquisition, analysis encryption 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;And data memory area domain carries out hardware encryption;
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;
S3, central server are divided the data collected according to main body, data type, safe class degree is sent
Class;
S4, user in smart home divided according to Permission Levels;And configure to enter data 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, user is whole
It is stored in after the mapping relations encryption 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;
S6, data element is combined according to preset rules, and will entered after addition additional information according to Uniform data format
Row conversion;
S7, by after conversion unified formatted data carry out data block dividing processing;And enter the data block after dividing processing
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, 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 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, 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 judge the access request the corresponding user of user terminal Permission Levels;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, request is transferred from central server in data storage areas access the number after the corresponding dividing processing of data
According to block, and it is sent to user terminal;
S12, user terminal obtain unified formatted data to the data block after dividing processing according to the rule list of data recovery;
S13, user terminal are carried out according to obtained Uniform data format according to resolution rules to Uniform data format data
Parsing, obtains sending main body, data type, safe class degree information.
In smart home of the present invention in data acquisition, analysis encryption method,
The form of the Uniform data format includes:Head checking section+data send main paragraph+data type section+safety
Rating scale section+purposes type section.
In smart home of the present invention in data acquisition, analysis encryption 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;
Point out user to carry out authentication, rear, the rule list that called data recovers from exclusive memory block is passed through in certification
Unified formatted data is obtained to the data block after dividing processing.
The present invention also provides data acquisition in a kind of smart home, analysis encryption system, and it includes 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;And data memory area domain carries out hardware encryption;
Data acquisition unit, is adopted 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 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, will be stored 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 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;
Memory cell is encrypted, for the unified formatted 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;
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
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 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;
Data resolution unit, for by user terminal according to obtained Uniform data format, according to resolution rules to system
One data format data are parsed, and obtain sending main body, data type, safe class degree information.
In smart home of the present invention in data acquisition, analysis encryption system,
The form of the Uniform data format includes:Head checking section+data send main paragraph+data type section+safety
Rating scale section+purposes type section.
In smart home of the present invention in data acquisition, analysis encryption 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;
Point out user to carry out authentication, rear, the rule list that called data recovers from exclusive memory block is passed through in certification
Unified formatted data is obtained to the data block after dividing processing.
Data acquisition, analysis encryption method and system have following beneficial in a kind of smart home that the implementation present invention is provided
Effect:Data acquisition in smart home, the security of analysis encryption are ensure that, and improves the facility utilized to data
Property.
Brief description of the drawings
Fig. 1 be the embodiment of the present invention smart home in data acquisition, analysis encryption system structured flowchart.
Embodiment
Data acquisition, analysis encryption 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;And data memory area domain carries out hardware encryption;
Hardware encryption is carried out by data memory area domain, the security of information is improved.
One piece of division is gathered in the process of running dedicated for storing each intelligent home device in central server
The data storage areas of various data ensure that the security of data storage, and the data storage areas is encrypted using hardware
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;
S3, central server are divided the data collected according to main body, data type, safe class degree is sent
Class;
S4, user in smart home divided according to Permission Levels;And configure to enter data 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, user is whole
It is stored in after the mapping relations encryption of the unique identifier at end and the corresponding user terminal of user in data storage areas;
By being deposited after the mapping relations encryption by the corresponding user terminal of the unique identifier of user terminal and user
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;
S6, data element is combined according to preset rules, and will entered after addition additional information according to Uniform data format
Row conversion;
By the way that data element is combined according to preset rules, and it will enter after addition additional information according to Uniform data format
Row conversion, can realize unitized, standardization that data are utilized.
S7, by after conversion unified formatted data carry out data block dividing processing;And enter the data block after dividing processing
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;
Configured by setting the rule list of data recovery, and under line, ensure that other users are obtaining number in time
According to when, can not 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 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, 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 judge the access request the corresponding user of user terminal Permission Levels;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, request is transferred from central server in data storage areas access the number after the corresponding dividing processing of data
According to block, and it is sent to user terminal;
S12, user terminal obtain unified formatted data to the data block after dividing processing according to the rule list of data recovery;
S13, user terminal are carried out according to obtained Uniform data format according to resolution rules to Uniform data format data
Parsing, obtains sending main body, data type, safe class degree information.
By user terminal according to obtained Uniform data format, Uniform data format data are carried out according to resolution rules
Parsing, substantially increases the standard that data are utilized.
In smart home of the present invention in data acquisition, analysis encryption method,
The form of the Uniform data format includes:Head checking section+data send main paragraph+data type section+safety
Rating scale section+purposes type section.
In smart home of the present invention in data acquisition, analysis encryption 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;
Point out user to carry out authentication, rear, the rule list that called data recovers from exclusive memory block is passed through in certification
Unified formatted data is obtained to the data block after dividing processing.
As shown in figure 1, the present invention also provides data acquisition in a kind of smart home, analysis encryption system, it includes as follows
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;And data memory area domain carries out hardware encryption;
Data acquisition unit, is adopted 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 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, will be stored 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 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..
Memory cell is encrypted, for the unified formatted 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;
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
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 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;
Data resolution unit, for by user terminal according to obtained Uniform data format, according to resolution rules to system
One data format data are parsed, and obtain sending main body, data type, safe class degree information.
In smart home of the present invention in data acquisition, analysis encryption system,
The form of the Uniform data format includes:Head checking section+data send main paragraph+data type section+safety
Rating scale section+purposes type section.
In smart home of the present invention in data acquisition, analysis encryption 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;
Point out user to carry out authentication, rear, the rule list that called data recovers from exclusive memory block is passed through in certification
Unified formatted data is obtained to the data block after dividing processing.
Data acquisition, analysis encryption method and system have following beneficial in a kind of smart home that the implementation present invention is provided
Effect:Data acquisition in smart home, the security of analysis encryption are ensure that, and improves the facility utilized to data
Property.
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.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor
Capable software module, or the two combination are 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 for any other forms known.It is understood that for the person of ordinary skill of 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 this
Invention scope of the claims.