Smart home equipment control method and device, equipment and storage medium
By using quantum keys to encrypt and decrypt user instructions in smart home systems, the problem of insufficient communication security of smart home devices is solved, and high-security smart home device control is achieved.
Patent Information
- Application Number
- CN202411915894.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-05-06
AI Technical Summary
In smart home systems, the communication between the smart home control center and the smart home device is at risk of being eavesdropped or cracked, and cannot meet the high requirements of the smart home system for secure communication.
User instructions are encrypted using quantum keys, and the encrypted instructions are transmitted to smart home devices through a communication platform to control the device to perform corresponding actions, and generate, distribute and update quantum keys through quantum key management components and quantum communication components.
Effectively prevent user instructions from being eavesdropped or cracked during transmission, ensure the confidentiality and integrity of smart home device control instructions, improve user experience and ensure system security.
Smart Images

Figure CN119945818A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and in particular to a control method and device for smart home equipment, an electronic device, and a storage medium. Background Art
[0002] With the rapid development of smart homes, users' demand for control over smart home devices is increasing. In smart home systems, various smart home devices (such as smart bulbs, smart sockets, smart cameras, smart door locks, etc.) communicate with user terminals through smart home control centers, enabling users to remotely control, automate operations, and collect data from smart home devices through user terminals. However, traditional communication methods have the risk of being eavesdropped and cracked in terms of security, and cannot meet the high requirements of smart home systems for secure communications. Summary of the invention
[0003] The embodiment of the present application provides a control method for a smart home device to solve the problem that the communication between a smart home control center and the smart home device may be eavesdropped and cracked.
[0004] Correspondingly, the embodiments of the present application also provide a control device for a smart home device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0005] In order to solve the above problems, the embodiment of the present application discloses a control method of a smart home device, which is applied to a smart home control center. The smart home control center communicates with the smart home device through a communication platform, and the communication platform stores a quantum key. The method includes:
[0006] Obtaining a user instruction and the quantum key; the user instruction having a corresponding device action;
[0007] Encrypting the user instruction using the quantum key to obtain an encrypted instruction;
[0008] The encrypted instruction is transmitted to the smart home device through the communication platform to control the smart home device to execute the device action corresponding to the user instruction based on the encrypted instruction.
[0009] Optionally, the communication platform has a preset target instruction format, and the using the quantum key to encrypt the user instruction to obtain the encrypted instruction includes:
[0010] Parsing the user instruction to obtain a control instruction corresponding to the smart home device;
[0011] Converting the control instruction according to the target instruction format to obtain a target instruction;
[0012] The target instruction is encrypted using the quantum key to obtain the encrypted instruction.
[0013] Optionally, the smart home device includes encryption status information, and after sending the encryption instruction to the smart home device through the communication platform to control the smart home device to perform a device action corresponding to the user instruction based on the encryption instruction, the method further includes:
[0014] obtaining encryption status information through the communication platform;
[0015] Decrypting the encrypted state information using the quantum key to obtain state information;
[0016] Based on the status information, the operating status of the smart home device is displayed to the user.
[0017] The embodiment of the present application also discloses a control method for a smart home device, which is applied to a communication platform, wherein the communication platform is respectively connected to a smart home control center and the smart home device, and the method includes:
[0018] Generate a quantum key, and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action;
[0019] Obtaining the encryption instruction;
[0020] The encrypted instruction is sent to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtains the user instruction, and executes the device action corresponding to the user instruction according to the user instruction.
[0021] Optionally, the communication platform includes a quantum key management component and a quantum communication component, the quantum key management component and the quantum communication component are communicatively connected, and the generating of the quantum key includes:
[0022] preparing a first entangled photon and a second entangled photon by the quantum communication component;
[0023] Sending the first entangled photon to the smart home control center, so that the smart home control center measures the first entangled photon to obtain a first measurement result;
[0024] sending the second entangled photon to the smart home device, so that the smart home device measures the second entangled photon to obtain a second measurement result;
[0025] Acquire the first measurement result sent by the smart home control center and the second measurement result sent by the smart home device;
[0026] Comparing the first measurement result and the second measurement result by the quantum communication component to obtain a target measurement result;
[0027] The quantum key is generated by the quantum key management component using the target measurement result.
[0028] Optionally, the quantum key management component includes a secure storage device, and after generating the quantum key, the method further includes:
[0029] Generate a random key through the quantum key management component;
[0030] Encrypting the quantum key using the random key to obtain an encrypted quantum key;
[0031] The encrypted quantum key is stored in the secure storage device.
[0032] Optionally, the quantum key management component includes a key update program, and after generating the quantum key, the method further includes:
[0033] Initiating the key update procedure to generate a new quantum key;
[0034] Encrypting the new quantum key using the quantum key to obtain an encrypted quantum key;
[0035] The encrypted quantum key is sent to the smart home control center and the smart home device, so that the smart home control center and the smart home device communicate based on the new quantum key.
[0036] Optionally, after sending the encrypted instruction to the smart home device so that the smart home device uses the quantum key to decrypt the encrypted instruction to obtain the user instruction, and executes a device action corresponding to the user instruction according to the user instruction, the method further includes:
[0037] Obtaining the encrypted status information sent by the smart home device;
[0038] The encrypted status information is sent to the smart home control center, so that the smart home control center uses the quantum key to decrypt the encrypted status information to obtain status information, and provides the user with the operating status of the smart home device according to the status information.
[0039] Optionally, starting the key update procedure to generate a new quantum key includes:
[0040] Obtaining the usage time of the quantum key;
[0041] If the usage time exceeds the preset time, the key update program is started to generate the new quantum key.
[0042] Optionally, starting the key update procedure to generate a new quantum key includes:
[0043] Obtaining the number of times the quantum key is used;
[0044] If the number of uses exceeds a preset number of times, the key update program is started to generate the new quantum key.
[0045] Optionally, starting the key update procedure to generate a new quantum key includes:
[0046] Obtaining the status of the smart home device;
[0047] If the state of the smart home device is abnormal, the key update program is started to generate the new quantum key.
[0048] The embodiment of the present application further discloses a control device for a smart home device, which is applied to a smart home control center. The smart home control center communicates with the smart home device via a communication platform, and the communication platform stores a quantum key. The device includes:
[0049] An acquisition module, used to acquire a user instruction and the quantum key; the user instruction has a corresponding device action;
[0050] An encryption module, used to encrypt the user instruction using the quantum key to obtain an encrypted instruction;
[0051] A transmission module is used to transmit the encrypted instruction to the smart home device through the communication platform to control the smart home device to execute a device action corresponding to the user instruction based on the encrypted instruction.
[0052] The embodiment of the present application further discloses a control device for a smart home device, which is applied to a communication platform, wherein the communication platform is respectively connected to a smart home control center and a smart home device, and the device comprises:
[0053] A generation module, used to generate a quantum key, and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action;
[0054] An encrypted instruction acquisition module, used to acquire the encrypted instruction;
[0055] A sending module is used to send the encrypted instruction to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtains the user instruction, and executes the device action corresponding to the user instruction according to the user instruction.
[0056] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes a control method for a smart home device as described in any one of the embodiments of the present application.
[0057] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, a processor executes a method for controlling a smart home device as described in any one of the embodiments of the present application.
[0058] Compared with the prior art, the embodiments of the present application have the following advantages:
[0059] In an embodiment of the present application, the smart home control center obtains user instructions and the quantum key; the user instructions have corresponding device actions; the user instructions are encrypted using the quantum key to obtain encrypted instructions; the encrypted instructions are transmitted to the smart home devices through the communication platform to control the smart home devices to perform the device actions corresponding to the user instructions based on the encrypted instructions. The smart home control center in the embodiment of the present application encrypts user instructions using quantum keys, which can effectively prevent user instructions from being eavesdropped or cracked during communication, and ensure the confidentiality and integrity of smart home device control instructions. Through the transmission of encrypted instructions, users can safely perform remote control and automated operations, which improves user experience while ensuring system security.
[0060] In an embodiment of the present application, the communication platform generates a quantum key and sends the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action; the encrypted instruction is obtained; the encrypted instruction is sent to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction to obtain the user instruction, and executes the device action corresponding to the user instruction according to the user instruction. The communication platform in the embodiment of the present application is responsible for generating and distributing quantum keys, realizing centralized management of keys, simplifying the key distribution process, and reducing the complexity of key management. The quantum key is generated by the communication platform and distributed to the smart home control center and smart home devices, ensuring the security of the key generation and distribution process and reducing the risk of key leakage. The communication platform can communicate with multiple smart home control centers and smart home devices at the same time, supporting the secure communication requirements of large-scale smart home systems. Smart home devices do not need to generate keys by themselves, which reduces the processing burden on the device side and reduces the complexity and cost of the device. By performing key management and command transmission through the communication platform, the scale of the system can be easily expanded to support the access of more smart home devices without affecting the security of the system.
[0061] In the embodiment of the present application, the security of user instructions during transmission is ensured by using quantum keys for encryption, preventing eavesdropping and cracking. The unbreakable nature of quantum keys provides a higher security guarantee for communication. By ensuring the secure transmission and execution of instructions, the reliability of the entire smart home system is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a flowchart of the steps of an embodiment of a control method for a smart home device of the present application;
[0063] Figure 2 is a flowchart of another embodiment of a control method for a smart home device of the present application;
[0064] Figure 3 It is a schematic diagram of the architecture of a smart home system of the present application;
[0065] Figure 4 It is a structural block diagram of an embodiment of a control device for a smart home device of the present application;
[0066] Figure 5 is a structural block diagram of another embodiment of a control device for smart home equipment of the present application;
[0067] Figure 6 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0068] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0069] In the embodiments of the present application, the high security of quantum communication is used to achieve secure control of smart home devices, effectively prevent illegal intrusion and data leakage, and ensure the safe and stable operation of smart home devices. Specifically, the characteristics of quantum communication such as non-eavesdropping and non-crackability are used to provide the highest level of security for the smart home system, effectively preventing illegal intrusion and data leakage. Quantum communication has the characteristics of high-speed transmission and low latency, which can meet the requirements of the smart home system for real-time performance and response speed, and has a high degree of reliability, which can ensure the stable operation of the smart home system, and even in harsh environments, quantum communication can maintain good communication quality.
[0070] Reference Figure 1 , is a flowchart of a control method for a smart home device of the present application, which is applied to a smart home control center, wherein the smart home control center communicates with the smart home device via a communication platform, wherein the communication platform stores a quantum key, and includes the following steps:
[0071] Step 101: Obtain a user instruction and the quantum key; the user instruction has a corresponding device action;
[0072] In the embodiments of the present application, user instructions refer to instructions sent by users through smart home control centers (such as mobile phone apps, smart speakers, etc.), such as "turn on the living room lights". Quantum keys refer to quantum keys stored in communication platforms, which are used to encrypt and decrypt communication content. Quantum keys are generated through quantum communication technology and are highly secure and cannot be eavesdropped on.
[0073] Step 102: Encrypt the user instruction using the quantum key to obtain an encrypted instruction;
[0074] In the embodiment of the present application, the smart home control center will use quantum keys to encrypt user commands. The encrypted commands are called encrypted commands to ensure that the user commands will not be eavesdropped or cracked during transmission.
[0075] Quantum key encryption is based on the principles of quantum mechanics and is uncrackable and cannot be eavesdropped on, ensuring the security of communications.
[0076] Step 103: Transmit the encrypted instruction to the smart home device through the communication platform to control the smart home device to execute a device action corresponding to the user instruction based on the encrypted instruction.
[0077] In the embodiment of the present application, the encrypted instruction is transmitted to the smart home device via the communication platform. The communication platform is responsible for transmitting information between the smart home control center and the smart home device.
[0078] After receiving the encrypted instructions, the smart home device uses the quantum key to decrypt them, obtains the original user instructions, and performs corresponding operations (device actions) according to the instructions, such as turning on lights, adjusting the temperature, playing music, etc.
[0079] The smart home control center in the embodiment of the present application can effectively prevent the user's instructions from being eavesdropped or cracked during the communication process by using quantum keys to encrypt the user's instructions, thereby ensuring the confidentiality and integrity of the smart home device control instructions. Through the transmission of encrypted instructions, users can safely perform remote control and automated operations, which improves the user experience while ensuring the security of the system.
[0080] In one embodiment of the present application, the communication platform has a preset target instruction format, and the method of encrypting the user instruction using the quantum key to obtain the encrypted instruction includes:
[0081] Parsing the user instruction to obtain a control instruction corresponding to the smart home device;
[0082] Converting the control instruction according to the target instruction format to obtain a target instruction;
[0083] The target instruction is encrypted using the quantum key to obtain the encrypted instruction.
[0084] After receiving the user's command, the smart home control center first parses the command. The parsed control command needs to be converted according to the target command format preset by the communication platform. The target command format is designed to adapt to the special properties of the quantum communication protocol.
[0085] For example, when a user sends a user command of "turn on the living room light" through a mobile phone APP, the smart home control center will recognize that this is a control command for a lighting device, and clearly specify that the operation object is the light in the living room. Then, this user command is converted according to the format specified by the quantum communication protocol. The quantum communication protocol may have its own specific command format, such as stipulating that the command header contains the device type (lighting device), the device number (the number corresponding to the living room light), and the command body contains information such as the specific operation (turn on). This conversion is similar to translation between different languages, converting the more "natural" format of user commands into a format that can be understood and processed by the quantum communication protocol.
[0086] If encryption is performed directly without conversion, the receiver (smart home device) may not be able to correctly interpret the instructions. For example, quantum communication may use the entanglement characteristics of quantum states for communication. The receiver needs to parse the received quantum state information according to a specific protocol format to obtain instructions. The converted instructions can better cooperate with the physical layer and link layer mechanisms of quantum communication to ensure the accuracy of communication.
[0087] In addition, if user instructions are directly encrypted and transmitted, smart home devices may not be able to correctly parse them after receiving them. Because the format of user instructions may not meet the requirements of the quantum communication protocol, smart home devices do not know how to extract valid instructions from the encrypted information. For example, quantum communication may be based on the transmission of quantum bits, which requires information to be interpreted according to specific bit arrangements and protocol rules. User instructions that have not been converted may cause the recipient (smart home device) to still not understand their meaning after decryption.
[0088] Therefore, in the embodiment of the present application, it is necessary to convert the user instructions into target instructions, encrypt the target instructions using quantum keys, and generate encrypted instructions to ensure that the encrypted instructions will not be eavesdropped or cracked during transmission.
[0089] In one embodiment of the present application, the smart home device includes encryption status information. After the encryption instruction is sent to the smart home device through the communication platform to control the smart home device to perform a device action corresponding to the user instruction based on the encryption instruction, the method further includes:
[0090] obtaining encryption status information through the communication platform;
[0091] Decrypting the encrypted state information using the quantum key to obtain state information;
[0092] Based on the status information, the operating status of the smart home device is displayed to the user.
[0093] In the embodiment of the present application, after the smart home device executes the user's instruction, the device will send its own status information (such as operating status, fault information, power information, etc.) back to the smart home control center through the communication platform. Similarly, the smart home device will also use the quantum key to encrypt the feedback status information to obtain encrypted status information.
[0094] When the smart home control center receives the encrypted status information fed back by the smart home device, the smart home control center uses the quantum key to decrypt the encrypted status information to obtain the original status information, and displays the original status information to the user through the user interface (such as mobile phone APP, smart speakers, etc.), so that the user can understand the operating status of the smart home device in real time.
[0095] The embodiment of the present application uses quantum keys to encrypt and decrypt user instructions and status information to ensure the security of the communication process. The un-eavesdropping and unbreakable characteristics of quantum keys effectively prevent illegal intrusion and data leakage. User instructions are converted into a target instruction format that conforms to the quantum communication protocol to ensure that the instructions can be correctly parsed and executed during transmission, further enhancing the security and reliability of communication.
[0096] In addition, after executing user instructions, smart home devices can feedback the operating status of the device to the user. The user can understand the operating status of the device in real time through the decrypted status information, which improves the user experience. Users can easily manage and control smart home devices through a variety of terminal devices (such as mobile phone APP, smart speakers, etc.), which is convenient to operate.
[0097] Reference Figure 2 , is a flowchart of another embodiment of a control method for smart home devices of the present application, which is applied to a communication platform, wherein the communication platform is respectively connected to a smart home control center and a smart home device, and includes the following steps:
[0098] Step 201: Generate a quantum key, and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action;
[0099] In the embodiment of the present application, the communication platform generates a quantum key and distributes the key to the smart home control center and smart home devices through quantum communication technology. The smart home control center encrypts the user's instructions using the received quantum key to generate an encrypted instruction.
[0100] The quantum key distribution process is based on quantum entanglement, which ensures that the key cannot be eavesdropped or cracked during transmission.
[0101] Step 202: Obtain the encryption instruction;
[0102] The communication platform obtains encrypted instructions from the smart home control center. The encrypted instructions are user instructions encrypted using quantum keys.
[0103] Step 203: Send the encrypted instruction to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtains the user instruction, and executes the device action corresponding to the user instruction according to the user instruction.
[0104] The communication platform sends the encrypted instructions to the smart home devices. The smart home devices use quantum keys to decrypt the encrypted instructions, obtain the original user instructions, and perform corresponding operations according to the instructions, such as turning on lights, adjusting the temperature, etc.
[0105] The communication platform in the embodiment of the present application is responsible for generating and distributing quantum keys, realizing centralized management of keys, simplifying the key distribution process, and reducing the complexity of key management. The quantum keys are generated through the communication platform and distributed to the smart home control center and smart home devices, ensuring the security of the key generation and distribution process and reducing the risk of key leakage. The communication platform can communicate with multiple smart home control centers and smart home devices at the same time, supporting the secure communication requirements of large-scale smart home systems. Smart home devices do not need to generate keys by themselves, which reduces the processing burden on the device side and reduces the complexity and cost of the equipment. By performing key management and command transmission through the communication platform, the scale of the system can be easily expanded to support the access of more smart home devices without affecting the security of the system.
[0106] In one embodiment of the present application, the communication platform includes a quantum key management component and a quantum communication component, the quantum key management component and the quantum communication component are communicatively connected, and the generating of the quantum key includes:
[0107] preparing a first entangled photon and a second entangled photon by the quantum communication component;
[0108] Sending the first entangled photon to the smart home control center, so that the smart home control center measures the first entangled photon to obtain a first measurement result;
[0109] sending the second entangled photon to the smart home device, so that the smart home device measures the second entangled photon to obtain a second measurement result;
[0110] Acquire the first measurement result sent by the smart home control center and the second measurement result sent by the smart home device;
[0111] Comparing the first measurement result and the second measurement result by the quantum communication component to obtain a target measurement result;
[0112] The quantum key is generated by the quantum key management component using the target measurement result.
[0113] In the embodiment of the present application, the component architecture of the communication platform is composed of a quantum key management component and a quantum communication component. The quantum key management component is mainly responsible for the generation, storage, update and management of quantum keys. The quantum communication component is mainly responsible for the physical implementation of quantum communication, including the preparation, transmission and measurement of quantum entangled states. The quantum key management component and the quantum communication component exchange data and work together through a communication connection.
[0114] In an embodiment of the present application, a quantum communication component uses quantum entanglement technology to prepare a pair of entangled photons, referred to as a first entangled photon and a second entangled photon, respectively. The pair of photons are correlated in quantum state, that is, the measurement result of one of the photons will affect the state of the other photon.
[0115] The quantum communication component sends the first entangled photon to the smart home control center. After receiving the photon, the control center measures it to obtain a first measurement result. The quantum communication component sends the second entangled photon to the smart home device. After receiving the photon, the device measures it to obtain a second measurement result.
[0116] The quantum communication component obtains the first measurement result and the second measurement result from the smart home control center and the smart home device respectively, compares the first measurement result and the second measurement result, removes inconsistent measurement results, and obtains consistent target measurement results.
[0117] The quantum communication component sends the measurement results to the quantum key management component, which then uses the target measurement results to generate a quantum key.
[0118] In the embodiment of the present application, the entangled photons prepared by quantum entanglement technology ensure the security of the key generation process. Any eavesdropping on quantum communication will interfere with the quantum state, so that the communicating parties can detect eavesdropping by detecting changes in the quantum state, which is impossible with traditional communication methods. By comparing the first measurement result and the second measurement result, the inconsistent results are removed to ensure that the generated quantum key is safe and reliable. The security and reliability of key generation are ensured by the collaborative work of the quantum key management component and the quantum communication component.
[0119] In one embodiment of the present application, after the quantum key management component generates the quantum key, since the secure communication between the smart home control center and the smart home device needs to be implemented based on the quantum key, the quantum key management component needs to transmit the quantum key to the smart home control center and the smart home device respectively.
[0120] Since smart home devices are terminal devices, their communication process is relatively simple, and the quantum key management component can directly transmit the encrypted quantum key to the smart home device. However, as the core of the smart home system, the smart control center has a more complex communication process, involving the interaction of multiple devices and components. In order to ensure the security, consistency and compatibility of communication, the quantum key management component needs to be processed by the quantum communication component to ensure that the key can be smoothly transmitted to the smart control center and work with other components.
[0121] In one embodiment of the present application, during the transmission of the above-mentioned quantum key, the quantum key management component needs to encrypt the quantum key for transmission. In the initial stage, some initial identity authentication and key negotiation protocols are used to encrypt the quantum key transmitted for the first time using security parameters recognized by both parties to ensure the security of the quantum key during transmission.
[0122] In one embodiment of the present application, the quantum key management component includes a secure storage device, and after generating the quantum key, the method further includes:
[0123] Generate a random key through the quantum key management component;
[0124] Encrypting the quantum key using the random key to obtain an encrypted quantum key;
[0125] The encrypted quantum key is stored in the secure storage device.
[0126] In the embodiment of the present application, the quantum key management component includes a secure storage device for storing the generated quantum key. The device is usually a hardware encryption module or a security chip, which can provide a high level of security protection to prevent the key from being illegally accessed or leaked.
[0127] After the quantum key is generated, the quantum key management component generates a random key. The generation of the random key is based on the principles of quantum mechanics, ensuring that it is highly random and unpredictable. Specifically, by utilizing the uncertainty of the quantum state, a certain physical quantity of the quantum system is measured to obtain a random measurement result, which is then converted into a binary number.
[0128] In quantum systems, the main physical quantity measured is the polarization state of a single photon. The polarization of a photon can have different directions, such as horizontal polarization, vertical polarization, or different polarization states at an angle of 45 degrees or 135 degrees to the horizontal direction.
[0129] For example, there is a single photon source that emits one photon at a time and then passes the photon through a polarization beam splitter. The characteristic of the polarization beam splitter is that it guides the direction of the photon according to the polarization direction of the photon. If the photon is horizontally polarized, it will be output from one output port of the polarization beam splitter; if the photon is vertically polarized, it will be output from another output port. Because the polarization of the photon is in a superposition of quantum states before it passes through the polarization beam splitter (for example, it may be in a superposition of horizontal and vertical polarizations at the same time), it is completely random which port it is output from in the end, and each measurement may produce a different result.
[0130] If the photon is output from the port representing horizontal polarization, it is recorded as "0"; if it is output from the port representing vertical polarization, it is recorded as "1". In this way, each measurement result of the polarization state of a single photon is converted into a binary number.
[0131] Repeat the above process of emitting single photons, measuring polarization states, and converting them into binary numbers. For example, if the operation is repeated 1024 times, a binary sequence of 1024 bits can be obtained, which can be used as part of the random key. As long as the subsequent operations ensure the randomness and security of this process, a random key of sufficient length that meets the requirements can be generated in the end.
[0132] The quantum key management component will use the generated random key to encrypt the quantum key to obtain an encrypted quantum key to ensure that the encrypted quantum key will not be stolen or cracked during storage. The encrypted quantum key is stored in a secure storage device. The secure storage device provides a high level of security protection to ensure that the key will not be illegally accessed or leaked during storage.
[0133] Specifically, the quantum key management component can use a symmetric encryption algorithm or an asymmetric encryption algorithm to encrypt the quantum key.
[0134] The embodiment of the present application further enhances the security of the key by encrypting the quantum key with a random key. Even if an attacker obtains the encrypted quantum key in the storage device, the original quantum key cannot be decrypted due to the lack of the random key. The secure storage device (such as a hardware encryption module or a security chip) provides physical security protection to prevent the key from being illegally accessed or tampered with.
[0135] In one embodiment of the present application, the quantum key management component includes a key update program, and after generating the quantum key, the method further includes:
[0136] Initiating the key update procedure to generate a new quantum key;
[0137] Encrypting the new quantum key using the quantum key to obtain an encrypted quantum key;
[0138] The encrypted quantum key is sent to the smart home control center and the smart home device, so that the smart home control center and the smart home device communicate based on the new quantum key.
[0139] The quantum key management component includes a key update program that is used to generate new quantum keys periodically or based on an event-triggered mechanism to ensure the security and validity of the keys.
[0140] After the initial quantum key is generated, the quantum key management component starts the key update procedure to generate a new quantum key. The generation of the new quantum key is also based on quantum communication technology to ensure that it is highly secure and cannot be eavesdropped.
[0141] The quantum key management component will use the current quantum key to encrypt the new quantum key to obtain an encrypted quantum key to ensure that the encrypted new quantum key will not be stolen or cracked during transmission.
[0142] The encrypted quantum key is sent to the smart home control center and smart home devices through the communication platform. Specifically, the quantum key management component directly sends the new quantum key to the smart home device, and the quantum communication component sends the new quantum key to the smart home control center.
[0143] In the embodiment of the present application, when transmitting a new quantum key, the new quantum key is not encrypted using security parameters recognized by both parties, but the old quantum key is used to encrypt the new quantum key for transmission.
[0144] Specifically, during the quantum key update process, the new key is encrypted with the old key to protect the security of the new key during transmission. Even if there may be potential security risks in the transmission channel, it is difficult for the attacker to decrypt the encrypted new key because he does not have the old key. For example, in the quantum key update scenario of the smart home system, the old key has been verified to be safe during the previous communication process (assuming it has not been stolen). Using it to encrypt the new key can ensure that the new key is transmitted in a relatively secure manner during the transmission from the quantum key management module to the smart home device.
[0145] In addition, encrypting the new key with the old key can ensure the continuity of the key update process. After receiving the encrypted new key, the smart home device can use the stored old key to decrypt it, thereby smoothly completing the replacement of the old and new keys. This method makes the key update process less disruptive to the communication of the entire system, and the device can continue to communicate normally after the key is updated, but using a more secure new key.
[0146] After the smart home control center and smart home devices receive the encrypted quantum key, they use the current quantum key to decrypt it and obtain a new quantum key.
[0147] In order to prevent key reuse, key leakage, ensure key uniqueness and unpredictability, prevent key abuse, comply with the principles of key lifecycle management, and prevent keys from being maliciously tampered with, the old key is usually destroyed after the old key is used to complete the encryption transmission task of the new key. By destroying the old key, the system can ensure that the key used for each communication is unique and secure, thereby enhancing the overall security, stability and reliability of the system.
[0148] Exemplarily, after the new key is updated, it will become the "old key" in the subsequent encrypted transmission process (when the key needs to be updated next time). For example, in a system that periodically updates quantum keys, during the first update, key A is used to encrypt and transmit the new key B, then key A is destroyed and key B becomes the new working key; when it is updated again, key B will be used to encrypt and transmit the new key C, and so on. Therefore, the key for quantum key encryption will be updated as the key is updated (that is, it becomes the new key after the previous update).
[0149] The embodiment of the present application ensures the security and non-reusability of the key by regularly generating a new quantum key. Even if the old key is leaked, the attacker cannot use the old key for subsequent communications. The new quantum key is encrypted using the current quantum key to ensure the security of the new key during transmission. Even if there is a potential security risk in the transmission channel, the attacker cannot decrypt the encrypted new quantum key.
[0150] In one embodiment of the present application, after sending the encrypted instruction to the smart home device so that the smart home device uses the quantum key to decrypt the encrypted instruction to obtain the user instruction, and executes the device action corresponding to the user instruction according to the user instruction, the method further includes:
[0151] Obtaining the encrypted status information sent by the smart home device;
[0152] The encrypted status information is sent to the smart home control center, so that the smart home control center uses the quantum key to decrypt the encrypted status information to obtain status information, and provides the user with the operating status of the smart home device according to the status information.
[0153] In the embodiment of the present application, after receiving the encrypted instruction sent by the smart home control center, the smart home device uses the quantum key to decrypt the encrypted instruction to obtain the original user instruction. The smart home device performs the corresponding device action according to the decrypted user instruction, such as turning on the light, adjusting the temperature, playing music, etc.
[0154] After executing the user's instructions, the smart home device will feed back its own status information (such as operating status, fault information, power information, etc.) to the smart home control center. The smart home device uses quantum keys to encrypt the status information and generate encrypted status information.
[0155] The smart home device sends the encrypted status information to the smart home control center through the quantum communication component of the communication platform. After receiving the encrypted status information, the smart home control center uses the quantum key to decrypt the encrypted status information and obtain the original status information.
[0156] The smart home control center displays the operating status of smart home devices to users based on the decrypted status information. Users can view the operating status of devices through mobile phone APP, smart speakers and other terminal devices.
[0157] The embodiments of the present application not only improve the security of the smart home system during the state feedback process, but also improve the user experience and system stability. The use of quantum keys ensures the absolute security of communication, and the transmission and decryption of encrypted state information further enhances the reliability and user-friendliness of the system.
[0158] In one embodiment of the present application, starting the key update procedure to generate a new quantum key includes:
[0159] Obtaining the usage time of the quantum key;
[0160] If the usage time exceeds the preset time, the key update program is started to generate the new quantum key.
[0161] In an embodiment of the present application, the quantum key can be updated based on the usage time. Specifically, the quantum key management component records the usage time of the quantum key. If the usage time of the quantum key exceeds a preset time (for example, 24 hours), the key update program is started to generate a new quantum key. In an embodiment of the present application, the key update program is started to generate a new quantum key, including:
[0162] Obtaining the number of times the quantum key is used;
[0163] If the number of uses exceeds a preset number of times, the key update program is started to generate the new quantum key.
[0164] In the embodiment of the present application, the quantum key can also be updated based on the number of times used. Specifically, the quantum key management component records the number of times the quantum key is used. If the number of times the quantum key is used exceeds a preset number (e.g., 100 times), the key update program is started to generate a new quantum key.
[0165] The embodiment of the present application ensures the regular updating of keys through a key updating mechanism based on the usage time and the number of times of use, thereby preventing security risks caused by the long-term use of keys.
[0166] In one embodiment of the present application, starting the key update procedure to generate a new quantum key includes:
[0167] Obtaining the status of the smart home device;
[0168] If the state of the smart home device is abnormal, the key update program is started to generate the new quantum key.
[0169] In the embodiment of the present application, the quantum key can also be updated based on the device status. Specifically, the quantum key management component obtains the status information of the smart home device (such as operating status, fault information, etc.). If the status of the smart home device is abnormal (such as device failure, communication interruption, etc.), the key update program is started to generate a new quantum key.
[0170] In the embodiment of the present application, when the device status is abnormal, the key is updated in time to prevent the risk of key leakage due to device failure or communication interruption.
[0171] Reference Figure 3 , shows a schematic diagram of the architecture of a smart home system of the present application, including a user terminal, a smart home control center, a communication platform (quantum communication component and quantum key management component) and smart home devices. The connection relationship between the devices and components is as follows:
[0172] 1) User terminal and smart home control center
[0173] Users send commands through user terminals (such as mobile phone apps, smart speakers, etc.), and the smart home control center receives and processes these commands. After receiving the encrypted status information fed back by the smart home devices, the smart home control center uses the quantum key to decrypt the encrypted status information, obtain the original status information, and display the status information to the user through the user terminal.
[0174] 2) Smart home control center and communication platform
[0175] The smart home control center is responsible for parsing user commands and converting them into a format suitable for the communication platform. The communication platform stores quantum keys, and the smart home control center uses quantum keys to encrypt user commands and generate encrypted commands.
[0176] 3) Communication platform and smart home devices
[0177] Quantum communication component: responsible for the physical implementation of quantum communication, including the preparation, transmission and measurement of quantum entangled states. The quantum communication component transmits encrypted instructions to smart home devices.
[0178] Quantum key management component: responsible for the generation, storage, update and management of quantum keys. The quantum key management component generates quantum keys and sends them to the smart home control center and smart home devices.
[0179] Smart home devices receive encrypted instructions sent by the communication platform, use quantum keys to decrypt the encrypted instructions, obtain the original user instructions, and perform corresponding device actions according to the instructions. After executing the user instructions, the smart home devices will feedback their own status information (such as operating status, fault information, power information, etc.) to the communication platform. The communication platform sends the encrypted status information to the smart home control center.
[0180] In the embodiment of the present application, the smart home system realizes secure communication between the user terminal, the smart home control center, the communication platform and the smart home devices. The use of quantum keys ensures the security of the communication process, and the collaborative work of the quantum communication component and the quantum key management component ensures the security of key generation, distribution and update. After executing the user's instructions, the smart home device can feedback the status information to the user, which improves the user experience and the stability of the system.
[0181] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0182] On the basis of the above embodiments, this embodiment further provides a control device for a smart home device, which is applied to electronic devices such as terminal devices and servers.
[0183] Reference Figure 4, shows a structural block diagram of an embodiment of a control device for a smart home device of the present application, which is applied to a smart home control center. The smart home control center communicates with the smart home device through a communication platform. The communication platform stores a quantum key, and specifically may include the following modules:
[0184] An acquisition module 401 is used to acquire a user instruction and the quantum key; the user instruction has a corresponding device action;
[0185] An encryption module 402, used to encrypt the user instruction using the quantum key to obtain an encrypted instruction;
[0186] The transmission module 403 is used to transmit the encrypted instruction to the smart home device through the communication platform to control the smart home device to execute the device action corresponding to the user instruction based on the encrypted instruction.
[0187] Reference Figure 5 , shows a structural block diagram of another embodiment of a control device for smart home devices of the present application, which is applied to a communication platform, and the communication platform is respectively connected to a smart home control center and a smart home device, and specifically may include the following modules:
[0188] A generation module 501 is used to generate a quantum key and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action;
[0189] An encryption instruction acquisition module 502 is used to acquire the encryption instruction;
[0190] The sending module 503 is used to send the encrypted instruction to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtain the user instruction, and execute the device action corresponding to the user instruction according to the user instruction.
[0191] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0192] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0193] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Figure 6 An exemplary apparatus 600 that may be used to implement various embodiments described in this application is schematically illustrated.
[0194] For one embodiment, Figure 6 An exemplary apparatus 600 is shown having one or more processors 602, a control module (chip set) 604 coupled to at least one of the processor(s) 602, a memory 606 coupled to the control module 604, a non-volatile memory (NVM) / storage device 608 coupled to the control module 604, one or more input / output devices 610 coupled to the control module 604, and a network interface 612 coupled to the control module 604.
[0195] The processor 602 may include one or more single-core or multi-core processors, and the processor 602 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 600 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.
[0196] In some embodiments, the apparatus 600 may include one or more computer-readable media (e.g., memory 606 or NVM / storage device 608) having instructions 614 and one or more processors 602 combined with the one or more computer-readable media and configured to execute the instructions 614 to implement a module to perform the actions described in the present disclosure.
[0197] For one embodiment, control module 604 may include any suitable interface controller to provide any suitable interface to at least one of processor(s) 602 and / or any suitable device or component in communication with control module 604 .
[0198] The control module 604 may include a memory controller module to provide an interface to the memory 606. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0199] The memory 606 may be used, for example, to load and store data and / or instructions 614 for the device 600. For one embodiment, the memory 606 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 606 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0200] For one embodiment, control module 604 may include one or more input / output controllers to provide an interface to NVM / storage device 608 and input / output device(s) 610 .
[0201] For example, NVM / storage 608 may be used to store data and / or instructions 614. NVM / storage 608 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0202] NVM / storage device 608 may include storage resources that are physically part of the device on which apparatus 600 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 608 may be accessed via input / output device(s) 610 over a network.
[0203] (One or more) input / output devices 610 may provide an interface for the apparatus 600 to communicate with any other appropriate device, and the input / output device 610 may include a communication component, an audio component, a sensor component, etc. The network interface 612 may provide an interface for the apparatus 600 to communicate through one or more networks, and the apparatus 600 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0204] For one embodiment, at least one of the processor(s) 602 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 604. For one embodiment, at least one of the processor(s) 602 may be packaged together with the logic of one or more controllers of the control module 604 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 602 may be integrated on the same die with the logic of one or more controllers of the control module 604. For one embodiment, at least one of the processor(s) 602 may be integrated on the same die with the logic of one or more controllers of the control module 604 to form a system-on-chip (SoC).
[0205] In various embodiments, the device 600 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 600 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 600 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0206] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0207] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0208] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0209] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable smart home device control terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable smart home device control terminal device generate instructions for implementing the processes in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0210] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable smart home device control terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0211] These computer program instructions can also be loaded onto a computer or other programmable smart home device control terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0212] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0213] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0214] The above is a detailed introduction to a control method and device for a smart home device, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A control method for a smart home device, characterized in that: Applied to a smart home control center, the smart home control center communicates with smart home devices via a communication platform, the communication platform stores a quantum key, and the method includes: Obtaining a user instruction and the quantum key; the user instruction having a corresponding device action; Encrypting the user instruction using the quantum key to obtain an encrypted instruction; The encrypted instruction is transmitted to the smart home device through the communication platform to control the smart home device to execute the device action corresponding to the user instruction based on the encrypted instruction.
2. The method according to claim 1, characterized in that The communication platform has a preset target instruction format, and the user instruction is encrypted using the quantum key to obtain an encrypted instruction, including: Parsing the user instruction to obtain a control instruction corresponding to the smart home device; Converting the control instruction according to the target instruction format to obtain a target instruction; The target instruction is encrypted using the quantum key to obtain the encrypted instruction.
3. The method according to claim 1, characterized in that The smart home device includes encryption status information. After the encryption instruction is sent to the smart home device through the communication platform to control the smart home device to perform a device action corresponding to the user instruction based on the encryption instruction, the method further includes: obtaining encryption status information through the communication platform; Decrypting the encrypted state information using the quantum key to obtain state information; Based on the status information, the operating status of the smart home device is displayed to the user.
4. A control method for a smart home device, characterized in that: Applied to a communication platform, the communication platform is respectively connected to a smart home control center and a smart home device, the method comprises: Generate a quantum key, and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action; Obtaining the encryption instruction; The encrypted instruction is sent to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtains the user instruction, and executes the device action corresponding to the user instruction according to the user instruction.
5. The method according to claim 4, characterized in that The communication platform includes a quantum key management component and a quantum communication component, the quantum key management component and the quantum communication component are communicatively connected, and the generating of the quantum key includes: preparing a first entangled photon and a second entangled photon by the quantum communication component; Sending the first entangled photon to the smart home control center, so that the smart home control center measures the first entangled photon to obtain a first measurement result; sending the second entangled photon to the smart home device, so that the smart home device measures the second entangled photon to obtain a second measurement result; Acquire the first measurement result sent by the smart home control center and the second measurement result sent by the smart home device; Comparing the first measurement result and the second measurement result by the quantum communication component to obtain a target measurement result; The quantum key is generated by the quantum key management component using the target measurement result.
6. The method according to claim 5, characterized in that The quantum key management component includes a secure storage device. After generating the quantum key, the method further includes: Generate a random key through the quantum key management component; Encrypting the quantum key using the random key to obtain an encrypted quantum key; The encrypted quantum key is stored in the secure storage device.
7. The method according to claim 5, characterized in that The quantum key management component includes a key update program. After generating the quantum key, the method further includes: Initiating the key update procedure to generate a new quantum key; Encrypting the new quantum key using the quantum key to obtain an encrypted quantum key; The encrypted quantum key is sent to the smart home control center and the smart home device, so that the smart home control center and the smart home device communicate based on the new quantum key.
8. The method according to claim 4, characterized in that After sending the encrypted instruction to the smart home device so that the smart home device uses the quantum key to decrypt the encrypted instruction to obtain the user instruction, and executes the device action corresponding to the user instruction according to the user instruction, the method further includes: Obtaining the encrypted status information sent by the smart home device; The encrypted status information is sent to the smart home control center, so that the smart home control center uses the quantum key to decrypt the encrypted status information to obtain status information, and provides the user with the operating status of the smart home device according to the status information.
9. The method according to claim 7, characterized in that: The starting of the key update procedure to generate a new quantum key comprises: Obtaining the usage time of the quantum key; If the usage time exceeds the preset time, the key update program is started to generate the new quantum key.
10. The method according to claim 7, characterized in that The starting of the key update procedure to generate a new quantum key comprises: Obtaining the number of times the quantum key is used; If the number of uses exceeds a preset number of times, the key update program is started to generate the new quantum key.
11. The method according to claim 7, characterized in that The starting of the key update procedure to generate a new quantum key comprises: Obtaining the status of the smart home device; If the state of the smart home device is abnormal, the key update program is started to generate the new quantum key.
12. A control device for a smart home device, characterized in that: Applied to a smart home control center, the smart home control center communicates with smart home devices through a communication platform, the communication platform stores a quantum key, and the device includes: An acquisition module, used to acquire a user instruction and the quantum key; the user instruction has a corresponding device action; An encryption module, used to encrypt the user instruction using the quantum key to obtain an encrypted instruction; A transmission module is used to transmit the encrypted instruction to the smart home device through the communication platform to control the smart home device to execute a device action corresponding to the user instruction based on the encrypted instruction.
13. A control device for a smart home device, characterized in that: Applied to a communication platform, the communication platform is respectively connected to a smart home control center and a smart home device, and the device comprises: A generation module, used to generate a quantum key, and send the quantum key to the smart home control center and the smart home device, so that the smart home control center uses the quantum key to encrypt the user instruction to obtain an encrypted instruction; the user instruction has a corresponding device action; An encrypted instruction acquisition module, used to acquire the encrypted instruction; A sending module is used to send the encrypted instruction to the smart home device, so that the smart home device uses the quantum key to decrypt the encrypted instruction, obtains the user instruction, and executes the device action corresponding to the user instruction according to the user instruction.
14. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, enables the processor to execute the control method for the smart home device as described in any one of claims 1-3 or 4-11.
15. One or more machine-readable media having executable codes stored thereon, which, when executed, enable a processor to execute the method for controlling a smart home device as described in any one of claims 1-3 or 4-11.
Citation Information
Patent Citations
Internet of Things data interaction method, system and device based on quantum key and medium
CN113922956A
Smart home secret communication system based on quantum true random number and control method
CN114584368A
Smart home security communication system and communication method
CN114826574A
Security authentication system, security authentication method, security authentication device and storage medium
CN118199872A
Systems, Methods, and Apparatus for Electrical Grid Quantum Key Distribution
US20120213371A1