Decentralization method for identifying ID and system in smart home
Technical field
The present invention relates to Smart Home technical field, more particularly to one kind goes decentralization user identity in smart home to know
Other method and system.
Background technology
One mobile phone remote multiple household electrical appliances, this is the scene that smart home is described.Smart home need to usually be equipped with long-range control
The equipment such as terminal processed, home network set-top box, Domestic central controller, intelligent appliance.Although smart home device is life band
It facilitates, but after connect internet, they also become the target of attack of hacker, smart home safety problem has become it and answers
Bottleneck.Existing smart home security protection includes mainly:WiFi password protectings, visitor authenticate protection, network account
Password protecting, Router Security protection etc., in the present invention referred to as security protection " in routing ".Security protection in routing
Measure is responsible for that hacker is prevented to invade home network set-top box.However, once hacker invades home network set-top box, intelligent family
Electricity will be attacked.
In view of there is security risks for safety protection technique in routing, can increase in routing other than safety prevention measure
Add " routing is outer " safety prevention measure.In this way, even if hacker invades home network set-top box, the safety protection technique outside routing
Also hacker can be prevented to control Domestic central controller, this will further improve the security protection ability of smart home.
Come the various operations of management and control, security permission often through a central server in the prior art, once central server
It is cracked, then information is easy to divulge a secret, and safe coefficient is not high.
Invention content
In view of this, decentralization method for identifying ID and system in a kind of smart home of present invention proposition.
A kind of decentralization method for identifying ID in smart home comprising following steps:
S1, the unique identifier for obtaining the corresponding each intelligent terminal of each domestic consumer in advance;By all intelligent terminals
Unique identifier generate list and encrypt after be distributed to each intelligent terminal;
S2, grade classification is carried out to user according to the status of user in the family;Grade is divided into high, medium and low, interim four
Rank;Each user corresponds to corresponding intelligent terminal;
S3, smart home device is subjected to importance division, importance is divided into high-level, medium rank, low level, public affairs
With four ranks of equipment;
S4, in the family any intelligent terminal initiate for smart home device operation requests information when;Obtain hair
The unique identifier of the mobile terminal of operation requests information is played, and unique identifier and the operation of the mobile terminal of request will be sent
Solicited message is sent to other intelligent terminals in list together;
Whether other intelligent terminals on S5, list judge the unique identifier for sending the mobile terminal of request in list
In;When not in lists, when other intelligent terminals in list record the transmission request for the mobile terminal for sending request respectively
Between information, request operation smart home device information and corresponding unique identifier;When in lists, step is jumped to
S6;
Other intelligent terminals on S6, list obtain the confirmation message of corresponding domestic consumer;Judge other intelligence in list
Whether energy terminal is all identified through, and when being all identified through, jumps to step S7;There are its at least one list
When his intelligent terminal is confirmed to pass through, step S8 is jumped to;
S7, according to for smart home device the corresponding smart home device of operation requests information-driven;
S8, the mobile terminal for sending and asking is fed back to by information by unconfirmed.
In smart home of the present invention in decentralization method for identifying ID, the step S4 includes:
S41, according to the configuration of step S2 and step S3, the smart home devices of different importance is set and needs to confirm
Intelligent terminal grade and quantity correspondence;
S42, in the family any intelligent terminal initiate for smart home device operation requests information when, obtaining should
The importance information of smart home device;The intelligence confirmed with needs according to the smart home device of different importance in step S41
The grade of energy terminal and the correspondence of quantity obtain the intelligent terminal for needing to confirm;
S43, the unique identifier for obtaining the mobile terminal for initiating operation requests information, and the mobile terminal that request will be sent
Unique identifier and operation requests information be sent to the intelligent terminal that the needs in list confirm together.
In smart home of the present invention in decentralization method for identifying ID, when described in the step S4
When the importance information for obtaining the smart home device is shared device rank, it is middle rank to need the grade of the intelligent terminal confirmed
And it is following;It is two to need the intelligent terminal quantity confirmed.
The present invention also provides decentralization user identity identification systems in a kind of smart home comprising such as lower unit:
Unique identifier acquiring unit, unique knowledge for obtaining the corresponding each intelligent terminal of each domestic consumer in advance
Alias;The unique identifier of all intelligent terminals is generated into list and is distributed to each intelligent terminal after encrypting;
User's division unit, for carrying out grade classification to user according to the status of user in the family;Grade be divided into it is high,
In, low, interim four ranks;Each user corresponds to corresponding intelligent terminal;
Home equipment division unit, for by smart home device carry out importance division, importance be divided into it is high-level,
Four medium rank, low level, shared device ranks;
Solicited message retransmission unit, for the operation for smart home device that any intelligent terminal is initiated in the family
When solicited message;Obtain the unique identifier for the mobile terminal for initiating operation requests information, and the mobile terminal that request will be sent
Unique identifier and operation requests information be sent to other intelligent terminals in list together;
Identification code judging unit sends the mobile terminal asked only for judging by other intelligent terminals in list
In lists whether one identifier;When not in lists, other intelligent terminals in list record the shifting for sending request respectively
Dynamic terminal sends request time information, the smart home device information of request operation and corresponding unique identifier;It is arranging
When in table, information confirmation unit is jumped to;
Information confirmation unit, the confirmation message for obtaining corresponding domestic consumer by other intelligent terminals in list;
Judge whether other intelligent terminals in list are all identified through, when being all identified through, jumps to device drives unit;
When being confirmed to pass through there are other intelligent terminals at least one list, information feedback unit is jumped to;
Device drives unit, for according to the corresponding smart home of operation requests information-driven for smart home device
Equipment;
Information feedback unit feeds back to the mobile terminal for sending request by information for that will be confirmed.
In smart home of the present invention in decentralization user identity identification system, the solicited message forwarding is single
Member includes:
Correspondence configures subelement, for the configuration according to user's division unit and home equipment division unit, if
Set the smart home device of different importance and the correspondence of the grade of intelligent terminal that needs confirm and quantity;
Intelligent terminal confirms subelement, for the behaviour for smart home device that any intelligent terminal is initiated in the family
When making solicited message, the importance information of the smart home device is obtained;According to the smart home of different importance in step S41
The correspondence of equipment and the grade and quantity that need the intelligent terminal confirmed obtains the intelligent terminal for needing to confirm;
Information forwards subelement, the unique identifier for obtaining the mobile terminal for initiating operation requests information, and will hair
Send the unique identifier of the mobile terminal of request and intelligence that needs that operation requests information is sent to together in list confirm eventually
End.
In smart home of the present invention in decentralization user identity identification system, the solicited message forwarding is single
In member when the importance information for obtaining the smart home device is shared device rank, the intelligent terminal confirmed is needed
Grade is intermediate and following;It is two to need the intelligent terminal quantity confirmed.
Decentralization method for identifying ID and system in smart home provided by the invention, compared with the existing technology,
The interaction by kinsfolk can be realized to complete the authentication of user;And it can be according to the important of smart home device
Property grade select the intelligent terminal of certain number and rank to be confirmed, flexibility and safety grade are high.
Description of the drawings
Fig. 1 be the embodiment of the present invention smart home in decentralization user identity identification system structure diagram.
Specific implementation mode
Decentralization method for identifying ID in a kind of smart home of the embodiment of the present invention comprising following steps:
S1, the unique identifier for obtaining the corresponding each intelligent terminal of each domestic consumer in advance;By all intelligent terminals
Unique identifier generate list and encrypt after be distributed to each intelligent terminal;
S2, grade classification is carried out to user according to the status of user in the family;Grade is divided into high, medium and low, interim four
Rank;Each user corresponds to corresponding intelligent terminal;
S3, smart home device is subjected to importance division, importance is divided into high-level, medium rank, low level, public affairs
With four ranks of equipment.
It, can also will be hot for example, can the importance information of safety cabinet, specific information storage device be set as high-level
The high equipment division of the danger coefficients such as hydrophone, coal gas is high-level, can flexibly be arranged.
S4, in the family any intelligent terminal initiate for smart home device operation requests information when;Obtain hair
The unique identifier of the mobile terminal of operation requests information is played, and unique identifier and the operation of the mobile terminal of request will be sent
Solicited message is sent to other intelligent terminals in list together;
Whether other intelligent terminals on S5, list judge the unique identifier for sending the mobile terminal of request in list
In;When not in lists, when other intelligent terminals in list record the transmission request for the mobile terminal for sending request respectively
Between information, request operation smart home device information and corresponding unique identifier;When in lists, step is jumped to
S6;
Other intelligent terminals on S6, list obtain the confirmation message of corresponding domestic consumer;Judge other intelligence in list
Whether energy terminal is all identified through, and when being all identified through, jumps to step S7;There are its at least one list
When his intelligent terminal is confirmed to pass through, step S8 is jumped to;
S7, according to for smart home device the corresponding smart home device of operation requests information-driven;
S8, the mobile terminal for sending and asking is fed back to by information by unconfirmed.
Optionally, in embodiments of the present invention, periodically the unique identifier of intelligent terminal in list is updated, and added
The each intelligent terminal being distributed to after close in list.
In smart home of the present invention in decentralization method for identifying ID, the step S4 includes:
S41, according to the configuration of step S2 and step S3, the smart home devices of different importance is set and needs to confirm
Intelligent terminal grade and quantity correspondence;
S42, in the family any intelligent terminal initiate for smart home device operation requests information when, obtaining should
The importance information of smart home device;The intelligence confirmed with needs according to the smart home device of different importance in step S41
The grade of energy terminal and the correspondence of quantity obtain the intelligent terminal for needing to confirm;
S43, the unique identifier for obtaining the mobile terminal for initiating operation requests information, and the mobile terminal that request will be sent
Unique identifier and operation requests information be sent to the intelligent terminal that the needs in list confirm together.
In smart home of the present invention in decentralization method for identifying ID, when described in the step S4
When the importance information for obtaining the smart home device is shared device rank, it is middle rank to need the grade of the intelligent terminal confirmed
And it is following;It is two to need the intelligent terminal quantity confirmed.
By implementing the embodiment of the present invention, can realize, by the control of the control authority of high level smart home device
Confirmation is issued to the corresponding intelligent terminal of high level user, conversely, by the smart home device of the low levels such as shared device, then
Confirmed by the corresponding intelligent terminal of the user of low level;And it is distinguished in the intelligent terminal quantity of confirmation.To be entirely true
The link recognized is distributed on each user, is avoided and traditional is confirmed caused security risk by unified server.
As shown in Figure 1, the present invention also provides decentralization user identity identification systems in a kind of smart home comprising such as
Lower unit:
Unique identifier acquiring unit, unique knowledge for obtaining the corresponding each intelligent terminal of each domestic consumer in advance
Alias;The unique identifier of all intelligent terminals is generated into list and is distributed to each intelligent terminal after encrypting;
User's division unit, for carrying out grade classification to user according to the status of user in the family;Grade be divided into it is high,
In, low, interim four ranks;Each user corresponds to corresponding intelligent terminal;
Home equipment division unit, for by smart home device carry out importance division, importance be divided into it is high-level,
Four medium rank, low level, shared device ranks;
Solicited message retransmission unit, for the operation for smart home device that any intelligent terminal is initiated in the family
When solicited message;Obtain the unique identifier for the mobile terminal for initiating operation requests information, and the mobile terminal that request will be sent
Unique identifier and operation requests information be sent to other intelligent terminals in list together;
Identification code judging unit sends the mobile terminal asked only for judging by other intelligent terminals in list
In lists whether one identifier;When not in lists, other intelligent terminals in list record the shifting for sending request respectively
Dynamic terminal sends request time information, the smart home device information of request operation and corresponding unique identifier;It is arranging
When in table, information confirmation unit is jumped to;
Information confirmation unit, the confirmation message for obtaining corresponding domestic consumer by other intelligent terminals in list;
Judge whether other intelligent terminals in list are all identified through, when being all identified through, jumps to device drives unit;
When being confirmed to pass through there are other intelligent terminals at least one list, information feedback unit is jumped to;
Device drives unit, for according to the corresponding smart home of operation requests information-driven for smart home device
Equipment;
Information feedback unit feeds back to the mobile terminal for sending request by information for that will be confirmed.
In smart home of the present invention in decentralization user identity identification system, the solicited message forwarding is single
Member includes:
Correspondence configures subelement, for the configuration according to user's division unit and home equipment division unit, if
Set the smart home device of different importance and the correspondence of the grade of intelligent terminal that needs confirm and quantity;
Intelligent terminal confirms subelement, for the behaviour for smart home device that any intelligent terminal is initiated in the family
When making solicited message, the importance information of the smart home device is obtained;According to the smart home of different importance in step S41
The correspondence of equipment and the grade and quantity that need the intelligent terminal confirmed obtains the intelligent terminal for needing to confirm;
Information forwards subelement, the unique identifier for obtaining the mobile terminal for initiating operation requests information, and will hair
Send the unique identifier of the mobile terminal of request and intelligence that needs that operation requests information is sent to together in list confirm eventually
End.
In smart home of the present invention in decentralization user identity identification system, the solicited message forwarding is single
In member when the importance information for obtaining the smart home device is shared device rank, the intelligent terminal confirmed is needed
Grade is intermediate and following;It is two to need the intelligent terminal quantity confirmed.
Decentralization method for identifying ID and system in smart home provided by the invention, compared with the existing technology,
The interaction by kinsfolk can be realized to complete the authentication of user;And it can be according to the important of smart home device
Property grade select the intelligent terminal of certain number and rank to be confirmed, flexibility and safety grade are high.
Method described in conjunction with the examples disclosed in this document or algorithm can directly use hardware, processor to execute
The combination of software module or the two is implemented.Software module can be placed in random access memory, memory, read-only memory, electricity can
Well known in programming ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In the storage medium of arbitrary other forms.
It is understood that for those of ordinary skill in the art, can be conceived with the technique according to the invention and be done
Go out various other corresponding changes and deformation, and all these changes and deformation should all belong to the protection model of the claims in the present invention
It encloses.