Disclosure of Invention
In view of this, the present invention provides a wireless encrypted smart home remote monitoring method and system capable of implementing secure communication.
A wireless encrypted intelligent home remote monitoring method comprises the following steps:
s0, storing an alarm driving instruction in an intelligent home control center in advance; counting the control instruction type and control instruction time of the instruction sent by the mobile terminal;
s1, setting a custom communication protocol between the intelligent home control center and the mobile terminal; the method comprises the steps that the same random number lists are prestored on an intelligent home control center and a mobile terminal at the same time in an off-line state; the random number list comprises a plurality of different random numbers and reading sequences of the random numbers;
s2, the intelligent home control center receives an encrypted control operation request sent by the mobile terminal; the intelligent home control center sends the reading sequence of the random numbers to the mobile terminal; the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the random numbers sent by the intelligent home control center, and calculates by adopting an asymmetric algorithm; the mobile terminal sends the reading sequence of the other random number to the intelligent home control center; and sending the calculated result to an intelligent home control center through a custom communication protocol;
s3, the intelligent home control center reads the random number in the random number list stored in the intelligent home control center according to the reading sequence of the other random number sent by the mobile terminal, and calculates by adopting an asymmetric algorithm; the intelligent home control center sends the calculated result to the mobile terminal through a user-defined communication protocol;
s4, the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the other random number, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the intelligent home control center and judges whether the calculated result is consistent with the calculated result; the intelligent home control center reads the random numbers in the random number list stored by the intelligent home control center according to the reading sequence of the sent random numbers, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the mobile terminal and judges whether the calculated result is consistent with the calculated result sent by the mobile terminal; when the two comparison and judgment results in the step S4 are consistent, establishing control communication connection between the intelligent home control center and the mobile terminal, and jumping to the step S5; otherwise, jumping to step S7;
s5, the intelligent home control center acquires a mac address for establishing connection with the mobile terminal, and judges the control authority and the control time limit of the mobile terminal according to the mac address; judging whether the control authority of the mobile terminal is within the control limit, if so, jumping to step S6; if not, jumping to step S7;
s6, the intelligent home control center receives a control instruction of the intelligent home equipment sent by the mobile terminal, judges whether the command instruction is in the control authority of the mobile terminal, and if the command instruction is in the control authority, the intelligent home control center generates a driving instruction for driving the state adjustment of the intelligent home equipment according to the control instruction and controls the intelligent home equipment; if not, jumping to step S7;
s7, the intelligent home control center stores the information of the abnormal control and the occurrence time;
and S8, the intelligent home control center stores the control instruction types and the control instruction time of the instructions sent by the mobile terminal, and analyzes the control instruction rules sent by the mobile terminals of the legal users.
The invention relates to a wireless encrypted intelligent home remote monitoring method, which comprises the following steps: the step S7 further includes:
and the intelligent home control center sends the mac address of the mobile terminal directly jumped by the step S4 and the information of the control abnormity to the mobile terminal which has the control authority recently and is within the control time limit.
In the wireless encrypted intelligent household remote monitoring method of the invention,
in step S1, the same random number lists pre-stored in the smart home control center and the mobile terminal are updated at the same time in an offline state every preset period.
In the wireless encrypted remote monitoring method for smart home, the step S7 further includes the step of the smart home control center determining whether the number of times of recording of the mobile terminal directly skipped in the step S4 exceeds a preset number of times, and if so, adding the mobile terminal to the smart home control center to receive the blacklist.
The invention also provides a wireless encrypted intelligent household remote monitoring system, which comprises the following units:
the instruction pre-storing unit is used for storing an alarm driving instruction in the intelligent home control center in advance; and counting the control instruction type and time of the instruction sent by the mobile terminal
The random number list storage unit is used for setting a custom communication protocol between the intelligent home control center and the mobile terminal; the method comprises the steps that the same random number lists are prestored on an intelligent home control center and a mobile terminal at the same time in an off-line state; the random number list comprises a plurality of different random numbers and reading sequences of the random numbers;
the first side encryption control calculation unit is used for receiving an encrypted control operation request sent by the mobile terminal through the intelligent home control center; the intelligent home control center sends the reading sequence of the random numbers to the mobile terminal; the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the random numbers sent by the intelligent home control center, and calculates by adopting an asymmetric algorithm; the mobile terminal sends the reading sequence of the other random number to the intelligent home control center; and sending the calculated result to an intelligent home control center through a custom communication protocol;
the second side encryption control calculation unit is used for reading the random numbers in the random number list stored in the intelligent home control center through the intelligent home control center according to the reading sequence of the other random number sent by the mobile terminal and calculating by adopting an asymmetric algorithm; the intelligent home control center sends the calculated result to the mobile terminal through a user-defined communication protocol;
the calculation and comparison unit is used for reading the random numbers in the random number list stored by the mobile terminal through the mobile terminal according to the reading sequence of the other random number, calculating by adopting an asymmetric algorithm, comparing the calculated result with the calculated result sent by the intelligent home control center and judging whether the calculated result is consistent with the calculated result; the intelligent home control center reads the random numbers in the random number list stored by the intelligent home control center according to the reading sequence of the sent random numbers, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the mobile terminal and judges whether the calculated result is consistent with the calculated result sent by the mobile terminal; when the two comparison judgment results in the calculation and comparison unit are consistent, the control communication connection between the intelligent home control center and the mobile terminal is established, and the intelligent home control center jumps to the control request judgment unit; otherwise, jumping to an abnormal information storage unit;
the control request judging unit is used for acquiring a mac address for establishing connection with the mobile terminal through the intelligent home control center and judging the control authority and the control time limit of the mobile terminal according to the mac address; judging whether the control authority of the mobile terminal is in the control time limit, if so, skipping to a control authority confirming unit; if the time limit is not within the control time limit, jumping to an abnormal information storage unit;
the control authority confirming unit is used for receiving a control instruction of the intelligent household equipment sent by the mobile terminal through the intelligent household control center, judging whether the control instruction is in the control authority of the mobile terminal, and if the control instruction is in the control authority, the intelligent household control center generates a driving instruction for driving the state adjustment of the intelligent household equipment according to the control instruction and controls the intelligent household equipment; if the current state is not within the control authority, jumping to an abnormal information storage unit;
the abnormal information storage unit is used for storing the information of abnormal control and the occurrence time through the intelligent home control center;
and the statistical analysis unit is used for storing the control instruction types and the control instruction time of the instructions sent by the mobile terminal through the intelligent home control center and analyzing to obtain the control instruction rules sent by the mobile terminals of the legal users.
In the wireless encrypted smart home remote monitoring system of the present invention, the abnormal information storage unit further includes:
and the intelligent home control center sends the mac address of the mobile terminal directly jumped by the calculation and comparison unit and the information of abnormal control to the mobile terminal which has the control authority recently and is in the control time limit.
In the wireless encrypted intelligent home remote monitoring system of the invention,
and the random number list storage unit simultaneously updates the same random number list pre-stored in the intelligent home control center and the mobile terminal in an off-line state every other preset period.
In the wireless encrypted intelligent home remote monitoring system, the abnormal information storage unit also comprises an intelligent home control center which judges whether the recording times of the mobile terminal directly jumped by the calculation and comparison unit exceed the preset times, and if the recording times exceed the preset times, the mobile terminal is added into a black list received by the intelligent home control center.
Compared with the prior art, the wireless encrypted intelligent home remote monitoring method and system provided by the invention have the following beneficial effects: the method comprises the steps of carrying out asymmetric algorithm calculation through a first side encryption control calculation unit and a second side encryption control calculation unit, carrying out asymmetric algorithm calculation through intelligent household control information and random numbers stored by a mobile terminal, and judging whether results are consistent; because the asymmetric algorithm is difficult to crack, and since the random number and the result of the random number are not known in advance by outsiders, the intelligent home control system cannot be cracked, and the safety degree is higher.
In addition, the control instruction rule sent by the mobile terminal of each legal user is obtained through analysis, and the authority and the time limit of the mobile terminal of each legal user can be reasonably adjusted.
Detailed Description
A wireless encrypted intelligent home remote monitoring method comprises the following steps:
s0, storing an alarm driving instruction in an intelligent home control center in advance; and counting the control instruction type and the control instruction time of the instruction sent by the mobile terminal.
S1, setting a custom communication protocol between the intelligent home control center and the mobile terminal; the method comprises the steps that the same random number lists are prestored on an intelligent home control center and a mobile terminal at the same time in an off-line state; the random number list includes a plurality of different random numbers and a reading order of the random numbers. Because the same random number list is prestored in the intelligent home control center and the mobile terminal at the same time in an off-line state, the random numbers in the same random number reading sequence are ensured to be consistent, and outsiders can not decipher in a network transmission decryption mode.
S2, the intelligent home control center receives an encrypted control operation request sent by the mobile terminal; the intelligent home control center sends the reading sequence of the random numbers to the mobile terminal; the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the random numbers sent by the intelligent home control center, and calculates by adopting an asymmetric algorithm; the mobile terminal sends the reading sequence of the other random number to the intelligent home control center; and sending the calculated result to the intelligent home control center through a custom communication protocol. The customized communication protocol is encrypted by an asymmetric algorithm. The method comprises the calculation results of all the steps and the mac address, and performs asymmetric encryption.
S3, the intelligent home control center reads the random number in the random number list stored in the intelligent home control center according to the reading sequence of the other random number sent by the mobile terminal, and calculates by adopting an asymmetric algorithm; the intelligent home control center sends the calculated result to the mobile terminal through a user-defined communication protocol;
s4, the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the other random number, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the intelligent home control center and judges whether the calculated result is consistent with the calculated result; the intelligent home control center reads the random numbers in the random number list stored by the intelligent home control center according to the reading sequence of the sent random numbers, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the mobile terminal and judges whether the calculated result is consistent with the calculated result sent by the mobile terminal; when the two comparison and judgment results in the step S4 are consistent, establishing control communication connection between the intelligent home control center and the mobile terminal, and jumping to the step S5; otherwise, jumping to step S7;
s5, the intelligent home control center acquires a mac address for establishing connection with the mobile terminal, and judges the control authority and the control time limit of the mobile terminal according to the mac address; judging whether the control authority of the mobile terminal is within the control limit, if so, jumping to step S6; if not, the process proceeds to step S7. In this step of the embodiment of the present invention, the problem of permission configuration of the temporary access user is solved by setting the control time limit, and the user can autonomously set the time limit for each mobile terminal to control the smart home device. For example, the control authority of the family is permanent, and the control time limit of the temporary visitor is a certain time limit. After the mobile terminal of the family is lost, the control authority of the family is cancelled.
S6, the intelligent home control center receives a control instruction of the intelligent home equipment sent by the mobile terminal, judges whether the command instruction is in the control authority of the mobile terminal, and if the command instruction is in the control authority, the intelligent home control center generates a driving instruction for driving the state adjustment of the intelligent home equipment according to the control instruction and controls the intelligent home equipment; if not, jumping to step S7;
s7, the intelligent home control center stores the information of the abnormal control and the occurrence time;
and S8, the intelligent home control center stores the control instruction types and the control instruction time of the instructions sent by the mobile terminal, and analyzes the control instruction rules sent by the mobile terminals of the legal users.
The control instruction rule sent by the mobile terminal of each legal user is obtained through analysis, and the authority and the time limit of the mobile terminal of each legal user can be reasonably adjusted.
Optionally, the smart home control center determines whether the connection request of the mobile terminal exceeds a preset connection number within a preset control instruction sending period, and sends the reading sequence of the plurality of random numbers to the mobile terminal if the connection request of the mobile terminal exceeds the preset connection number.
The invention relates to a wireless encrypted intelligent home remote monitoring method, which comprises the following steps: the step S7 further includes:
and the intelligent home control center sends the mac address of the mobile terminal directly jumped by the step S4 and the information of the control abnormity to the mobile terminal which has the control authority recently and is within the control time limit.
In the wireless encrypted intelligent household remote monitoring method of the invention,
in step S1, the same random number lists pre-stored in the smart home control center and the mobile terminal are updated at the same time in an offline state every preset period.
In the wireless encrypted remote monitoring method for smart home, the step S7 further includes the step of the smart home control center determining whether the number of times of recording of the mobile terminal directly skipped in the step S4 exceeds a preset number of times, and if so, adding the mobile terminal to the smart home control center to receive the blacklist.
As shown in fig. 1, the present invention further provides a wireless encrypted smart home remote monitoring system, which includes the following units:
the instruction pre-storing unit is used for storing an alarm driving instruction in the intelligent home control center in advance; and counting the control instruction type and the control instruction time of the instruction sent by the mobile terminal.
The random number list storage unit is used for setting a custom communication protocol between the intelligent home control center and the mobile terminal; the method comprises the steps that the same random number lists are prestored on an intelligent home control center and a mobile terminal at the same time in an off-line state; the random number list comprises a plurality of different random numbers and reading sequences of the random numbers;
the first side encryption control calculation unit is used for receiving an encrypted control operation request sent by the mobile terminal through the intelligent home control center; the intelligent home control center sends the reading sequence of the random numbers to the mobile terminal; the mobile terminal reads the random numbers in the random number list stored by the mobile terminal according to the reading sequence of the random numbers sent by the intelligent home control center, and calculates by adopting an asymmetric algorithm; the mobile terminal sends the reading sequence of the other random number to the intelligent home control center; and sending the calculated result to an intelligent home control center through a custom communication protocol;
the second side encryption control calculation unit is used for reading the random numbers in the random number list stored in the intelligent home control center through the intelligent home control center according to the reading sequence of the other random number sent by the mobile terminal and calculating by adopting an asymmetric algorithm; the intelligent home control center sends the calculated result to the mobile terminal through a user-defined communication protocol;
the calculation and comparison unit is used for reading the random numbers in the random number list stored by the mobile terminal through the mobile terminal according to the reading sequence of the other random number, calculating by adopting an asymmetric algorithm, comparing the calculated result with the calculated result sent by the intelligent home control center and judging whether the calculated result is consistent with the calculated result; the intelligent home control center reads the random numbers in the random number list stored by the intelligent home control center according to the reading sequence of the sent random numbers, calculates by adopting an asymmetric algorithm, compares the calculated result with the calculated result sent by the mobile terminal and judges whether the calculated result is consistent with the calculated result sent by the mobile terminal; when the two comparison judgment results in the calculation and comparison unit are consistent, the control communication connection between the intelligent home control center and the mobile terminal is established, and the intelligent home control center jumps to the control request judgment unit; otherwise, jumping to an abnormal information storage unit;
the control request judging unit is used for acquiring a mac address for establishing connection with the mobile terminal through the intelligent home control center and judging the control authority and the control time limit of the mobile terminal according to the mac address; judging whether the control authority of the mobile terminal is in the control time limit, if so, skipping to a control authority confirming unit; if the time limit is not within the control time limit, jumping to an abnormal information storage unit;
the control authority confirming unit is used for receiving a control instruction of the intelligent household equipment sent by the mobile terminal through the intelligent household control center, judging whether the control instruction is in the control authority of the mobile terminal, and if the control instruction is in the control authority, the intelligent household control center generates a driving instruction for driving the state adjustment of the intelligent household equipment according to the control instruction and controls the intelligent household equipment; if the current state is not within the control authority, jumping to an abnormal information storage unit;
the abnormal information storage unit is used for storing the information of abnormal control and the occurrence time through the intelligent home control center;
and the statistical analysis unit is used for storing the control instruction types and the control instruction time of the instructions sent by the mobile terminal through the intelligent home control center and analyzing to obtain the control instruction rules sent by the mobile terminals of the legal users.
In the wireless encrypted smart home remote monitoring system of the present invention, the abnormal information storage unit further includes:
and the intelligent home control center sends the mac address of the mobile terminal directly jumped by the calculation and comparison unit and the information of abnormal control to the mobile terminal which has the control authority recently and is in the control time limit.
In the wireless encrypted intelligent home remote monitoring system of the invention,
and the random number list storage unit simultaneously updates the same random number list pre-stored in the intelligent home control center and the mobile terminal in an off-line state every other preset period.
In the wireless encrypted intelligent home remote monitoring system, the abnormal information storage unit also comprises an intelligent home control center which judges whether the recording times of the mobile terminal directly jumped by the calculation and comparison unit exceed the preset times, and if the recording times exceed the preset times, the mobile terminal is added into a black list received by the intelligent home control center.
Optionally, the intelligent home control center is further configured to obtain information of a residential building and information of an environment around the residential building, and determine the number and distribution locations of the cameras according to the information; setting monitoring points of monitoring pictures shot by each camera, and establishing incidence relation mapping tables among the monitoring points of the monitoring pictures shot by the same camera and among the monitoring points of the monitoring pictures shot by different cameras; receiving real-time monitoring pictures of all cameras, splicing the monitoring pictures according to a preset rule while keeping all monitoring points to generate spliced video pictures and displaying the spliced video pictures on the same monitoring screen; judging whether the picture in the preset area range of each monitoring point generates abnormal information or not according to the first preset interval time; and when the abnormal information exists, displaying the picture in the preset area range of the monitoring point with the abnormal information and the picture in the preset area range of the monitoring point with the incidence relation with the monitoring point with the abnormal information in a pop-up window mode, and judging whether the picture in the preset area range of each monitoring point has the abnormal information or not according to second preset interval time.
Setting monitoring points of monitoring pictures shot by each camera, and establishing incidence relation mapping tables between the monitoring points of the monitoring pictures shot by the same camera and between the monitoring points of the monitoring pictures shot by different cameras, wherein the incidence relation mapping tables comprise: setting monitoring points of monitoring pictures shot by each camera according to the shape, the internal structure information, the floor information, the exit information, the decoration information, the pipeline information, the peripheral road information of the residential building and the adjacent building information of the residential building; judging the risk condition of each monitoring point, and dividing each monitoring point into different monitoring grades; determining the size of the picture range of the monitoring points to be reserved during splicing according to the monitoring grade; and establishing and storing incidence relation mapping tables between monitoring points of the same camera for shooting monitoring pictures and between monitoring points of different cameras for shooting monitoring pictures according to the possibility of illegally invading all paths of the residential building.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in random access memory, read only memory, electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is understood that various other changes and modifications may be made by those skilled in the art based on the technical idea of the present invention, and all such changes and modifications should fall within the protective scope of the claims of the present invention.