CN113630246A - Smart home control method and device, electronic equipment and storage medium - Google Patents

Smart home control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113630246A
CN113630246A CN202110862446.5A CN202110862446A CN113630246A CN 113630246 A CN113630246 A CN 113630246A CN 202110862446 A CN202110862446 A CN 202110862446A CN 113630246 A CN113630246 A CN 113630246A
Authority
CN
China
Prior art keywords
communication key
instruction data
smart home
intelligent
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110862446.5A
Other languages
Chinese (zh)
Inventor
王鑫文
宋德超
王沅召
杨丰玮
葛春光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110862446.5A priority Critical patent/CN113630246A/en
Publication of CN113630246A publication Critical patent/CN113630246A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0891Revocation or update of secret information, e.g. encryption key update or rekeying
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y30/00IoT infrastructure
    • G16Y30/10Security thereof
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/50Safety; Security of things, users, data or systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides an intelligent home control method, an intelligent home control device, electronic equipment and a storage medium, which are applied to a client, wherein the method comprises the following steps: determining whether the communication key updating requirement is met, and if the communication key updating requirement is met, updating the communication key of the intelligent household equipment; when the instruction data are sent to the intelligent household equipment, the instruction data are encrypted by adopting a communication key corresponding to the intelligent household equipment; and sending the encrypted instruction data to the intelligent household equipment. Therefore, the safety of the intelligent home communication is improved by encrypting the instruction data, and the communication key is updated to further ensure the safety of the communication.

Description

Smart home control method and device, electronic equipment and storage medium
Technical Field
The application relates to the field of internet of things, in particular to an intelligent home control method and device, electronic equipment and a storage medium.
Background
With the development of the internet of things technology and the more and more extensive application of the internet of things technology in smart homes, the safety problem is increasingly obvious.
In order to provide personalized services for users, user data related to user habits are generally stored in the smart home devices. Based on this, some illegal operators illegally obtain user data by invading the smart home devices. At present, the intelligent household equipment is generally kept in long connection with a manufacturer server, then a user controls the intelligent household equipment through a corresponding client, when the intelligent household equipment is controlled, the client is firstly connected with the server and authenticated, and after the authentication is passed, the server sends a corresponding control instruction to the intelligent household equipment so as to control the intelligent household equipment to execute. In this way, if an illegal operator wants to hack the device, only authentication with the server needs to be completed, and the device can be disguised as a real user, resulting in low security performance.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a smart home control method, a smart home control device, an electronic device and a storage medium.
In a first aspect, the present application provides an intelligent home control method, applied to a client, including:
determining whether a communication key update condition is satisfied;
under the condition that the communication key updating condition is determined to be met, updating the communication key of the intelligent household equipment;
when instruction data are sent to the intelligent home equipment, the communication secret key corresponding to the intelligent home equipment is adopted to encrypt the instruction data;
and sending the encrypted instruction data to the intelligent household equipment.
As a possible implementation manner, the determining whether the communication key update condition is satisfied includes:
detecting whether the current time is the key updating time;
and if the current time is the key updating time, determining that the communication key updating condition is met.
As a possible implementation manner, the determining whether the current time is a preset key update time includes:
acquiring current time;
acquiring the latest storage time corresponding to a locally stored communication key list;
calculating a time difference between the current time and the latest storage time;
and if the time difference is determined to be equal to a preset time value, determining the current time to be the preset key updating time.
As a possible implementation manner, before the determining whether the communication key update condition is satisfied, the method further includes:
determining whether the client side is in close range connection with a control center of the intelligent household equipment, wherein the close range connection is in the same wireless local area network or is in Bluetooth connection;
and under the condition that the client is determined to be in close range connection with the control center, determining whether a communication key updating condition is met.
As a possible implementation manner, the updating a communication key between the smart home device and the smart home device includes:
sending a key updating request to a control center of the intelligent home equipment, so that the control center forwards the key updating request to at least one intelligent home equipment;
receiving a communication key list returned by the control center, wherein the communication key list comprises at least one communication key of the intelligent home equipment and a mapping relation between the communication key and the intelligent home equipment;
and replacing the communication key list stored locally with the communication key list returned by the control center.
As a possible implementation manner, the sending the encrypted instruction data to the smart home device includes:
determining whether the control center of the intelligent household equipment is in close range connection with the client, wherein the close range connection is in the same wireless local area network or is in Bluetooth connection;
if the client side is determined to be in close range connection with the control center, forwarding the encrypted instruction data to the intelligent home equipment through the control center;
and if the client is determined not to be in close range connection with the control center, forwarding the encrypted instruction data to the intelligent home equipment through a server and the control center.
As a possible implementation manner, the sending the encrypted instruction data to the smart home device through the server and the control center includes:
sending the pre-stored identification of the intelligent home equipment and the encrypted instruction data to the server, so that the server determines a target address of the intelligent home equipment based on the identification of the intelligent home equipment, and sending the target address and the encrypted instruction data to the control center, so that the control center sends the encrypted instruction data to the intelligent home equipment based on the target address.
In a second aspect, an embodiment of the present application further provides an intelligent home control device, which is applied to a client, and includes:
a determination module for determining whether a communication key update condition is satisfied;
the updating module is used for updating the communication key of the intelligent household equipment under the condition that the communication key updating condition is determined to be met;
the encryption module is used for encrypting the instruction data by adopting the communication key corresponding to the intelligent home equipment when the instruction data is sent to the intelligent home equipment;
and the sending module is used for sending the encrypted instruction data to the intelligent household equipment.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the processor is used for executing the smart home control program stored in the memory so as to realize the smart home control method of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the smart home control method according to the first aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the intelligent home control method provided by the embodiment of the application is applied to a client and comprises the following steps: determining whether the communication key updating requirement is met, and if the communication key updating requirement is met, updating the communication key of the intelligent household equipment; when the instruction data are sent to the intelligent household equipment, the instruction data are encrypted by adopting a communication key corresponding to the intelligent household equipment; and sending the encrypted instruction data to the intelligent household equipment. Therefore, the safety of the intelligent home communication is improved by encrypting the instruction data, and the communication key is updated to further ensure the safety of the communication.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram illustrating an intelligent home system according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a smart home control method according to an exemplary embodiment.
Fig. 3 is a signaling diagram illustrating a communication key update in accordance with an example embodiment.
Fig. 4 is a signaling diagram illustrating control of smart home devices according to an example embodiment.
Fig. 5 is a schematic diagram illustrating an intelligent home control device according to an exemplary embodiment.
FIG. 6 is a schematic diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Referring to fig. 1, fig. 1 is a schematic view of an intelligent home system provided in an embodiment of the present application, and as shown in fig. 1, the system includes: the system comprises a terminal 101 where a client is located, a control center 102 of the intelligent home equipment, the intelligent home equipment 103 and a server 104.
The control center of the smart home device is a control center of all smart home devices in the entire smart home system (for convenience of description, referred to as a smart home center hereinafter), and is generally an intelligent gateway, and fig. 1 illustrates a router, which is mainly used to receive instruction data from a client and control the smart home device based on the instruction data. The client is an application program used for controlling the intelligent household equipment.
In the embodiment of the present application, the terminal where the client is located includes, but is not limited to, a smart phone, a computer, and the like, and fig. 1 only takes the terminal as an example of the smart phone. The smart home devices include, but are not limited to, smart devices such as an air conditioner, a television, and a sound device, and fig. 1 only takes the smart home devices as an example of the air conditioner.
It should be noted that the smart home system in fig. 1 is exemplary and does not form a limitation on the smart home system, and the number of the smart home devices in the smart home system may be set to be multiple according to actual requirements.
In practical application, when a user wants to control a certain smart home device, the instruction data can be sent to the corresponding smart home device through the client.
As an embodiment, when the client and the smart home device are in close-range connection (in the same wireless lan or bluetooth connection), the client may directly send the instruction data to the smart home hub, so that the smart home hub sends the instruction data to the corresponding smart home device to implement control of the smart home device.
As another embodiment, when the client is not in close-range connection with the smart home device, that is, when the client is in remote connection with the smart home device, the client may first send the instruction data to the server, and then the server sends the instruction data to the smart home hub, so that the smart home hub sends the instruction data to the corresponding smart home device to implement control of the smart home device.
Based on the above description of the smart home system, the following describes in detail a smart home control method provided by the present application.
Referring to fig. 2, a flowchart of a smart home control method provided in an exemplary embodiment of the present application is illustrated, where the method is applied to a client, and possible implementation subjects of the method include, but are not limited to, the following devices that can be equipped with the client: cell-phone, panel computer, intelligent wearable equipment, personal computer etc..
As shown in fig. 2, the method may include the steps of:
and S21, determining whether a communication key updating condition is met.
And S22, under the condition that the communication key updating condition is determined to be met, updating the communication key between the intelligent household equipment and the intelligent household equipment.
The following description is made collectively for S21 and S22:
in the embodiment of the application, in order to improve the communication security between the client and the smart home devices, a corresponding communication key is set for each smart home device, and the communication keys of different smart home devices may be different. And then, a communication key list is locally stored in the client, wherein the communication key list comprises a plurality of communication keys of intelligent household equipment belonging to the same intelligent household system as the client and a mapping relation between the communication keys and the intelligent household equipment. When the client communicates with the intelligent household equipment, the instruction data are encrypted based on the communication key which has the mapping relation with the intelligent household equipment in the communication key list, so that the communication safety is improved.
However, if the communication key corresponding to the smart home device is generated only once and cannot be changed, the communication key is easily decoded by an illegal operator, so in order to further improve the security of communication, in the smart home control method provided in the embodiment of the present application, the communication key of each smart home device is set to be updatable. Specifically, in the operation process of the client, whether a communication key update condition is met can be detected, and the communication key of the smart home device is updated under the condition that the communication key update condition is determined to be met.
As an embodiment, during the operation process of the client, the current time may be collected in real time, and whether the current time is the key update time is detected, and if it is determined that the current time is the key update time, it is determined that the communication key update condition is satisfied.
As an alternative implementation manner, the key update time may be one or more time values set according to actual requirements, for example, the key update time may be 14:00 per day, and for example, the key update time may be 10:00, 12:00, and 00:00 per day. Based on this, when detecting whether the current time is the key update time, the current time may be compared with each set key update time, and if the current time is consistent with any one of the key update times, the current time is determined to be the preset key update time. By the method, the user-defined communication key updating time can be realized.
As another optional implementation manner, the communication key of the smart home device may also be set to be updated periodically, for example, once every 2 hours. Based on this, when detecting whether the current time is the key update time, the latest storage time corresponding to the locally stored communication key list may be obtained, a time difference between the current time and the latest storage time is calculated, and if it is determined that the time difference is equal to a preset time value (for example, 2 hours), the current time is determined to be the preset key update time. For example, the communication key of the smart home device is set to be updated every 2 hours, and if the last update time is 10:00 and the current time is 12:00, the current time is determined to be the key update time. In this way, periodic updates of the communication key can be achieved.
In the embodiment of the present application, in the case where it is determined that the communication key update condition is satisfied, the locally stored communication key list is updated.
As an embodiment, the client may send a key update request to a control hub (for convenience of description, hereinafter referred to as an intelligent home hub) of the intelligent home device, so that the intelligent home hub forwards the key update request to at least one intelligent home device; receiving a communication key list returned by the intelligent home center, wherein the communication key list comprises a communication key of at least one intelligent home device and a mapping relation between the communication key and the intelligent home device; and replacing the communication key list stored locally with the communication key list returned by the control center.
Preferably, when the communication key is updated, the client sends a key update request to the smart home hub, and the smart home hub forwards the key update request to all smart home devices in the smart home system, so that the communication key of all smart home devices can be updated.
Taking an example that the smart home system includes a smart home device 1 and a smart home device 2, see fig. 3, which is a signaling diagram of communication key update, wherein a client sends a key update request to a smart home hub, the smart home hub forwards the key update request to the smart home device 1 and the smart home device 2 in the smart home system, the smart home device 1 and the smart home device 2 respectively generate an updated communication key 1 and a communication key 2 after receiving the key update request, the smart home device 1 sends the updated communication key 1 and its own ID to the smart home hub, the smart home device 2 sends the updated communication key 2 and its own ID to the smart home hub, the smart home hub records the communication key 1 and the communication key 2, and establishes a mapping relationship between the communication key 1 and the ID of the smart home device 1, and the mapping relation between the communication key 2 and the ID of the intelligent household equipment 2. After the intelligent home center finishes receiving the communication keys sent by the intelligent home equipment 1 and the intelligent home equipment 2, generating a communication key list by the recorded communication keys 1 and 2 and the established mapping relation, and sending the communication key list to the client. Therefore, the communication key updating of the intelligent household equipment 1 and the intelligent household equipment 2 is completed.
And S23, when the instruction data are sent to the intelligent household equipment, encrypting the instruction data by adopting a communication key corresponding to the intelligent household equipment.
And S24, sending the encrypted instruction data to the intelligent household equipment.
The following description is made collectively for S23 and S24:
when a user wants to control a certain smart home device, an identifier (such as an ID) and instruction data of the corresponding smart home device may be input in the client, then the client finds out a corresponding communication key from the latest stored communication key list based on the identifier of the smart home device, encrypts the instruction data by using the found communication key, and then sends the encrypted instruction data to the corresponding smart home device, thereby implementing control of the smart home device.
As an embodiment, when sending the encrypted instruction data to the smart home device, it is required to first determine whether the client is in close proximity connection with the smart home hub, and if it is determined that the client is in close proximity connection with the smart home hub, send the encrypted instruction data to the smart home device through the smart home hub. Specifically, the client sends the identification of the intelligent home device and the encrypted instruction data to the intelligent home center, the intelligent home center determines the address of the intelligent home device according to the identification of the intelligent home device, the encrypted instruction data are sent to the intelligent home device based on the address of the intelligent home device, the intelligent home device receives the encrypted instruction data and decrypts the encrypted instruction data by using a communication key corresponding to the intelligent home device, the intelligent home device operates based on the instruction data if decryption is successful, and the instruction data are discarded if decryption is failed.
As another embodiment, if it is determined that the client is not in close-range connection with the smart home hub, that is, when the client is in remote connection with the smart home hub, the encrypted instruction data may be forwarded to the smart home device through the server and the smart home hub. Specifically, the client sends a pre-stored identification of the smart home device and the encrypted instruction data to the server, so that the server determines a target address of the smart home device based on the identification of the smart home device, and sends the target address and the encrypted instruction data to the smart home hub, so that the smart home hub sends the encrypted instruction data to the smart home device based on the target address.
As an embodiment, referring to fig. 4, a signaling diagram for controlling an intelligent home device under the condition of remote connection between a client and an intelligent home hub is shown. As shown in fig. 4, firstly, a user clicks a control button of the smart home device at a client, the client determines an identifier and instruction data of the smart home device to be controlled by the user based on a clicking operation of the user, then encrypts the instruction data by using a communication key corresponding to the smart home device, sends the encrypted instruction data, the identifier of the smart home device and verification information to a server, the server firstly verifies the identity of the client based on the verification information, if the verification fails, terminates all processes, if the verification passes, searches a target address corresponding to the identifier of the smart home device from a preset address table based on the identifier of the smart home device, wherein the address table stores a plurality of addresses and a mapping relationship between the addresses and the identifier of the smart home device, and then sends the target address and the encrypted instruction data to a smart home hub, the intelligent home center searches whether a target address exists or not based on a pre-stored address table, if the target address does not exist in the address table, all operations are terminated, if the target address exists in the address table, encrypted instruction data are sent to the intelligent home equipment based on the target address, the intelligent home equipment receives the encrypted instruction data and decrypts the encrypted instruction data by using a communication key corresponding to the intelligent home equipment, if decryption is successful, the intelligent home equipment operates based on the instruction data and sends prompt information indicating control success to a client side sequentially through the intelligent home center and a server, if decryption is failed, the instruction data are discarded, and prompt information indicating control failure is sent to the client side sequentially through the intelligent home center and the server.
By the mode, the server performs identity authentication on the client, and the communication safety is further ensured.
The intelligent home control method provided by the embodiment of the application is applied to a client and comprises the following steps: determining whether the communication key updating requirement is met, and if the communication key updating requirement is met, updating the communication key of the intelligent household equipment; when the instruction data are sent to the intelligent household equipment, the instruction data are encrypted by adopting a communication key corresponding to the intelligent household equipment; and sending the encrypted instruction data to the intelligent household equipment. Therefore, the safety of the intelligent home communication is improved by encrypting the instruction data, and the communication key is updated to further ensure the safety of the communication.
Further, another smart home control method provided in another embodiment of the present application, on the basis of the smart home control method shown in fig. 2, further includes:
before executing the step S21, it is determined whether the client is in close proximity to the control center of the smart home device, and if it is determined that the client is in close proximity to the control center, the step S21 is executed. Wherein the close range connection is in the same wireless local area network or through Bluetooth connection.
As an optional implementation manner, if it is determined that the terminal where the client is located is connected to the wireless local area network where the smart home center is located, it is determined that the client and the smart home center are in close-range connection. Specifically, the client detects a wireless connection condition of the terminal where the client is located, if the connection occurs, whether a certain specific local area network address (namely, a wireless local area network where the smart home center is located) is accessed or not can be identified according to a Universally Unique Identifier (UUID) of the wireless network, the connected local area network is determined to be the wireless local area network where the smart home center is located according to the UUID, the terminal where the client is located is determined to be connected to the wireless local area network where the smart home center is located, and meanwhile, the client and the smart home center are determined to be in close-range connection.
As an optional implementation manner, if it is determined that the terminal where the client is located is connected with the smart home hub through the bluetooth, it is determined that the client is in close-range connection with the smart home hub. Specifically, the client may detect a bluetooth connection condition of the terminal where the client is located, determine whether a bluetooth connection is established between the terminal and the smart home hub, and if it is determined whether a bluetooth connection is established between the terminal and the smart home hub, determine that the client is in close proximity connection with the smart home hub.
The purpose of determining whether the client and the smart home center are in close-range connection is actually to determine whether the user is in a preset space, generally, the area is a space where the smart home center is located, for example, the user' S home, and when it is determined that the client and the smart home center are in close-range connection, the determination S21 is executed, so that the validity of the user currently performing communication password update can be ensured, because only a legal user can enter the preset space, so that the validity of the password update can be ensured.
Further, after the terminal where the client is located accesses the wireless local area network where the smart home hub is located, before executing S21, the method may further include:
and sending verification information to the intelligent home center to enable the intelligent home center to verify the validity of the client based on the verification information, receiving a verification result returned by the intelligent home center, and executing S21 when the verification result shows that the verification is passed.
As an embodiment, after determining that the terminal where the client is located is accessed to the wireless local area network where the smart home center is located, the client may automatically send authentication information such as identity information (APPID, self-device ID, etc.) to the port address monitored by the smart home center within the range of the local area network to start authentication. After receiving the verification information, the smart home backbone can adopt a preset identity verification mode, verify the identity of the client based on the verification information and return a verification result, wherein the verification result represents that the verification is passed or not passed. And terminating all operations when the verification result indicates that the verification is not passed.
By carrying out identity authentication on the client, the security of the communication key can be further ensured, and the security of subsequent communication is further ensured.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an intelligent home control device according to another embodiment of the present application.
As shown in fig. 5, the smart home control device provided in this embodiment may include:
a determining module 501, configured to determine whether a communication key update condition is satisfied;
an updating module 502, configured to update the communication key of the smart home device when it is determined that the communication key updating condition is met;
the encryption module 503 is configured to encrypt the instruction data by using the communication key corresponding to the smart home device when the instruction data is sent to the smart home device;
the sending module 504 is configured to send the encrypted instruction data to the smart home device.
As an embodiment, the determining module 501 is specifically configured to:
detecting whether the current time is the key updating time;
and if the current time is the key updating time, determining that the communication key updating condition is met.
As an embodiment, determining whether the current time is a preset key update time includes:
acquiring current time;
acquiring the latest storage time corresponding to a locally stored communication key list;
calculating a time difference between the current time and the latest storage time;
and if the time difference is determined to be equal to the preset time value, determining the current time to be the preset key updating time.
As an embodiment, the apparatus further comprises (not shown in fig. 5):
the connection detection module is used for determining whether the control center of the client and the intelligent household equipment is in close range connection before determining whether the communication key updating condition is met, wherein the close range connection is in the same wireless local area network or is in Bluetooth connection;
and under the condition that the client is determined to be in close range connection with the control center, determining whether a communication key updating condition is met.
As an embodiment, the update module 502 is specifically configured to:
sending a key updating request to a control center of the intelligent home equipment so that the control center forwards the key updating request to at least one intelligent home equipment;
receiving a communication key list returned by the control center, wherein the communication key list comprises at least one communication key of the intelligent home equipment and a mapping relation between the communication key and the intelligent home equipment;
and replacing the locally stored communication key list with a communication key list returned by the control center.
As an embodiment, the sending module 504 is specifically configured to:
determining whether the control center of the client and the intelligent household equipment are in close range connection, wherein the close range connection is in the same wireless local area network or through Bluetooth connection;
if the client side is determined to be in close range connection with the control center, the encrypted instruction data are forwarded to the intelligent home equipment through the control center;
and if the client is determined not to be in close range connection with the control center, forwarding the encrypted instruction data to the intelligent home equipment through the server and the control center.
As an embodiment, sending the encrypted instruction data to the smart home device through the server and the control center includes:
sending the pre-stored identification of the intelligent home equipment and the encrypted instruction data to the server, so that the server determines a target address of the intelligent home equipment based on the identification of the intelligent home equipment, and sending the target address and the encrypted instruction data to the control center, so that the control center sends the encrypted instruction data to the intelligent home equipment based on the target address.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
As shown in fig. 6, the electronic device provided in this embodiment includes: at least one processor 601, memory 602, at least one network interface 603, and other user interfaces 604. The various components in the electronic device 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 604 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
determining whether a communication key update condition is satisfied;
under the condition that the communication key updating condition is determined to be met, updating the communication key of the intelligent household equipment;
when the instruction data are sent to the intelligent household equipment, the instruction data are encrypted by adopting a communication key corresponding to the intelligent household equipment;
and sending the encrypted instruction data to the intelligent household equipment.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the present Application, or a combination thereof.
For a software implementation, the techniques herein may be implemented by means of units performing the functions herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium can be executed by one or more processors, the smart home control method executed on the electronic device side is realized.
The processor is used for executing the intelligent home control program stored in the memory so as to realize the following steps of the intelligent home control method executed on the electronic equipment side:
determining whether a communication key update condition is satisfied;
under the condition that the communication key updating condition is determined to be met, updating the communication key of the intelligent household equipment;
when the instruction data are sent to the intelligent household equipment, the instruction data are encrypted by adopting a communication key corresponding to the intelligent household equipment;
and sending the encrypted instruction data to the intelligent household equipment.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. The intelligent household control method is applied to a client and comprises the following steps:
determining whether a communication key update condition is satisfied;
under the condition that the communication key updating condition is determined to be met, updating the communication key of the intelligent household equipment;
when instruction data are sent to the intelligent home equipment, the communication secret key corresponding to the intelligent home equipment is adopted to encrypt the instruction data;
and sending the encrypted instruction data to the intelligent household equipment.
2. The method of claim 1, wherein the determining whether the traffic key update condition is satisfied comprises:
detecting whether the current time is the key updating time;
and if the current time is the key updating time, determining that the communication key updating condition is met.
3. The method of claim 2, wherein determining whether the current time is a preset rekeying time comprises:
acquiring current time;
acquiring the latest storage time corresponding to a locally stored communication key list;
calculating a time difference between the current time and the latest storage time;
and if the time difference is determined to be equal to a preset time value, determining the current time to be the preset key updating time.
4. The method of claim 1, wherein before determining whether a traffic key update condition is satisfied, the method further comprises:
determining whether the client side is in close range connection with a control center of the intelligent household equipment, wherein the close range connection is in the same wireless local area network or is in Bluetooth connection;
and under the condition that the client is determined to be in close range connection with the control center, determining whether a communication key updating condition is met.
5. The method according to claim 1, wherein the updating the communication key with the smart home device comprises:
sending a key updating request to a control center of the intelligent home equipment, so that the control center forwards the key updating request to at least one intelligent home equipment;
receiving a communication key list returned by the control center, wherein the communication key list comprises at least one communication key of the intelligent home equipment and a mapping relation between the communication key and the intelligent home equipment;
and replacing the communication key list stored locally with the communication key list returned by the control center.
6. The method according to claim 1, wherein the sending the encrypted instruction data to the smart home device comprises:
determining whether the control center of the intelligent household equipment is in close range connection with the client, wherein the close range connection is in the same wireless local area network or is in Bluetooth connection;
if the client side is determined to be in close range connection with the control center, forwarding the encrypted instruction data to the intelligent home equipment through the control center;
and if the client is determined not to be in close range connection with the control center, forwarding the encrypted instruction data to the intelligent home equipment through a server and the control center.
7. The method according to claim 6, wherein the sending the encrypted instruction data to the smart home device through the server and the control hub comprises:
sending the pre-stored identification of the intelligent home equipment and the encrypted instruction data to the server, so that the server determines a target address of the intelligent home equipment based on the identification of the intelligent home equipment, and sending the target address and the encrypted instruction data to the control center, so that the control center sends the encrypted instruction data to the intelligent home equipment based on the target address.
8. The utility model provides an intelligence house controlling means which characterized in that is applied to the customer end, includes:
a determination module for determining whether a communication key update condition is satisfied;
the updating module is used for updating the communication key of the intelligent household equipment under the condition that the communication key updating condition is determined to be met;
the encryption module is used for encrypting the instruction data by adopting the communication key corresponding to the intelligent home equipment when the instruction data is sent to the intelligent home equipment;
and the sending module is used for sending the encrypted instruction data to the intelligent household equipment.
9. An electronic device, comprising: the processor is used for executing the smart home control program stored in the memory so as to realize the smart home control method according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the smart home control method according to any one of claims 1 to 7.
CN202110862446.5A 2021-07-28 2021-07-28 Smart home control method and device, electronic equipment and storage medium Pending CN113630246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110862446.5A CN113630246A (en) 2021-07-28 2021-07-28 Smart home control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110862446.5A CN113630246A (en) 2021-07-28 2021-07-28 Smart home control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113630246A true CN113630246A (en) 2021-11-09

Family

ID=78381520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110862446.5A Pending CN113630246A (en) 2021-07-28 2021-07-28 Smart home control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113630246A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174302A (en) * 2022-09-06 2022-10-11 杭州涂鸦信息技术有限公司 Processing method, device, equipment and storage medium of pluggable accessory
CN115174145A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment control method and edge gateway equipment
WO2023240623A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Data communication method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888206A (en) * 2017-02-13 2017-06-23 海信集团有限公司 Key exchange method, apparatus and system
WO2018035674A1 (en) * 2016-08-22 2018-03-01 张志慧 Voiceprint-based remote control system for smart door lock
CN113094734A (en) * 2021-04-27 2021-07-09 广东电网有限责任公司 Equipment key updating method and device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018035674A1 (en) * 2016-08-22 2018-03-01 张志慧 Voiceprint-based remote control system for smart door lock
CN106888206A (en) * 2017-02-13 2017-06-23 海信集团有限公司 Key exchange method, apparatus and system
CN113094734A (en) * 2021-04-27 2021-07-09 广东电网有限责任公司 Equipment key updating method and device, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174145A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Equipment control method and edge gateway equipment
CN115174145B (en) * 2022-05-30 2023-12-19 青岛海尔科技有限公司 Equipment control method and edge gateway equipment
WO2023240623A1 (en) * 2022-06-17 2023-12-21 北京小米移动软件有限公司 Data communication method and apparatus
CN115174302A (en) * 2022-09-06 2022-10-11 杭州涂鸦信息技术有限公司 Processing method, device, equipment and storage medium of pluggable accessory

Similar Documents

Publication Publication Date Title
CN113630246A (en) Smart home control method and device, electronic equipment and storage medium
US11736292B2 (en) Access token management method, terminal, and server
CN111835520B (en) Method for device authentication, method for service access control, device and storage medium
US7539863B2 (en) Remote services for portable computing environment
US10482236B1 (en) Methods, mediums, and systems for establishing and using security questions
US8588990B2 (en) Communicating through a server between appliances and applications
WO2019228270A1 (en) Method and device for accessing wireless router and computer readable storage medium
JP6917474B2 (en) Credential processing method, device, and application APP for network connection
US8250630B2 (en) Detecting unauthorized computer access
JP2017514220A (en) Portal authentication
JP2007528179A (en) Security device and method for portable device
MX2014009822A (en) Mobile apparatus supporting a plurality of access control clients, and corresponding methods.
US9491624B2 (en) Public key cryptography for applications requiring generic bootstrap architecture
WO2013097588A1 (en) Application login method, device and mobile terminal
EP2520061A1 (en) Methods to enable secure self-provisioning of subscriber units in a communication system
CN109196891B (en) Method, terminal and server for managing subscription data set
WO2016115759A1 (en) Method for logging in website, server, client and peripheral
AU2005222507A1 (en) Portable computing environment
CN114760112B (en) Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium
JP6264626B2 (en) Certificate issuing system, communication method and management apparatus
CN110837643B (en) Activation method and device of trusted execution environment
KR102386456B1 (en) Electronic apparatus, control method thereof, and system
US20230300596A1 (en) Remote subscription profile download
US20220295288A1 (en) Profile Handling of a Batch of Identity Modules
CN114244434A (en) Network distribution method, device, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211109