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

By adopting a communication protocol with short frame structure and redundant verification in the smart home system, combined with real-time monitoring and anti-interference measures, the control success rate of smart home devices by the smart central control screen is improved, and the control success in the existing technology is solved The problem of low rate.

CN119172190APending Publication Date: 2024-12-20GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411325435.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In existing smart home systems, the device control success rate of smart central control screens is relatively low, which is affected by factors such as communication delay, equipment failure and environmental interference.

Method used

By using a short frame structure with no more than 8 bytes between the central control screen and the smart home device, the instruction frames and response frames containing instruction data are generated and transmitted, and redundant calibration is performed during the transmission process. Checksum compression, monitor equipment status and environmental interference in real time, trigger retry mechanisms and anti-interference measures to improve control success rate.

Benefits of technology

It effectively reduces data transmission delay and errors, improves the success rate of control of smart home devices by the central control screen, and ensures the reliability of the equipment and the accuracy of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172190A_ABST
    Figure CN119172190A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of smart home, in particular to a control method and device of smart home equipment, electronic equipment and a storage medium. The method comprises the following steps: generating an instruction frame containing instruction data to be sent; transmitting the instruction frame to smart home equipment; receiving a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs operation in response to the instruction data; extracting and analyzing the response data to determine the condition information of the smart home device responding to the instruction data; wherein the instruction frame and the response frame are both of a short frame structure with the byte number not larger than 8 bytes. According to the scheme, the success rate of controlling the smart home equipment by the central control screen can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of smart home, and in particular to a control method, device, electronic device and storage medium for smart home equipment. Background Art

[0002] In the existing smart home system, the smart central control screen is the core control device, and its control success rate of smart home devices directly affects the user experience and performance of the smart home system. Due to various reasons such as communication delay, equipment failure, and environmental interference, the current device control success rate of the smart central control screen is not high. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a control method, device, electronic device and storage medium for smart home devices, aiming to improve the success rate of controlling smart home devices with a central control screen.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a control method of a smart home device, which is applied to a central control screen, comprising:

[0005] generating a command frame including command data to be sent;

[0006] Transmitting the command frame to a smart home device;

[0007] Receiving a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data;

[0008] Extracting and analyzing the response data to determine information about the smart home device's response to the command data;

[0009] Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

[0010] The embodiment of the present invention further provides another control method of a smart home device, which is applied to the smart home device, comprising:

[0011] Receive the command frame containing command data sent by the central control screen;

[0012] Extracting the instruction data in the instruction frame, and performing an operation in response to the instruction data;

[0013] Generate a response frame and feed it back to the central control screen, the response frame carrying response data after the smart home device operates in response to the command data;

[0014] Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

[0015] An embodiment of the present invention further provides a central control screen, including:

[0016] An instruction generation module, used for generating an instruction frame containing instruction data to be sent;

[0017] A command sending module, used for transmitting the command frame to a smart home device;

[0018] A response receiving module, used to receive a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data;

[0019] The response processing module is used to extract and analyze the response data to determine the situation information of the smart home device responding to the instruction data.

[0020] An embodiment of the present invention further provides a smart home device, comprising:

[0021] The command receiving module is used to receive the command frame containing command data sent by the central control screen;

[0022] A response operation module, used for extracting the instruction data in the instruction frame and performing an operation in response to the instruction data;

[0023] A response generation module, used to generate a response frame and feed it back to the central control screen, wherein the response frame carries response data after the smart home device operates in response to the instruction data;

[0024] Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

[0025] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the smart home device in the above-mentioned embodiment.

[0026] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the control method of the smart home device in the above embodiment.

[0027] An embodiment of the present invention further provides a computer program product. When the computer program product is executed on a terminal device, the electronic device executes any one of the above methods.

[0028] In an embodiment of the present invention, during the communication between the central control screen and the smart home device, the command frame sent by the central control screen to the smart home device and the response frame fed back by the smart home device to the central control screen both adopt a short frame structure with a byte number not exceeding 8 bytes. Such configuration and optimization of the communication protocol can effectively reduce the amount of transmitted data, reduce delays and errors in the data transmission process, and improve the success rate of the central control screen controlling the smart home device.

[0029] In some embodiments, generating an instruction frame including instruction data to be sent includes: compressing the instruction data to form instruction compressed data; generating first redundant check data for the instruction data; and generating the instruction frame based on the instruction compressed data and the first redundant check data. Compressing the instruction data can effectively reduce the amount of data in the transmitted instruction frame, and the redundant check can ensure the integrity and accuracy of the instruction frame during the transmission process.

[0030] In some embodiments, the response data in the response frame is presented as response compressed data, and the response frame also includes second redundant check data corresponding to the response data; the extraction and analysis of the response data to determine the situation information of the smart home device responding to the command data includes: decompressing the response compressed data to restore the response data; using the second redundant check data to verify the restored response data; analyzing the restored and successfully verified response data to determine the situation information of the smart home device responding to the command data. Compressing the response data can effectively reduce the amount of data transmitted in the response frame, and the redundant check can ensure the integrity and accuracy of the response frame during the transmission process.

[0031] In some embodiments, after transmitting the command frame to the smart home device, the method further includes: triggering a command retry mechanism to retry sending the command frame to the smart home device if no response frame fed back by the smart home device is received within a preset time period; wherein the command retry mechanism includes the timing and number of times of retrying to send the command frame, and the timing and number are determined in real time based on the historical response data of the smart home device and the current network environment. By introducing an intelligent retry mechanism, the timing and number of the retry mechanism are determined to improve the control success rate of smart home devices.

[0032] In some embodiments, the method further includes: monitoring the operating status of the smart home device in real time, and triggering the execution of a repair program to repair the smart home device and / or issuing a fault prompt when confirming that the smart home device has a fault. The operating status of the smart home device is monitored in real time through the central control screen, and active repairs and fault prompts are performed when a fault occurs, so as to ensure the reliability of device control.

[0033] In some embodiments, the method further includes: monitoring in real time whether there is interference information including at least electromagnetic interference and signal attenuation in the environment where the central control screen is located; after detecting the interference information, performing at least one of the following anti-interference measures: frequency adaptive frequency hopping and spread spectrum communication. The central control screen monitors the interference factors in the environment in real time, and takes anti-interference measures in time when environmental interference is found, so as to ensure the accuracy of data transmission.

[0034] In some embodiments, the instruction data in the instruction frame is presented as instruction compressed data, and the instruction frame also includes first redundant check data corresponding to the instruction data; extracting the instruction data in the instruction frame and performing operations in response to the instruction data include: decompressing the instruction compressed data to restore the instruction data; using the first redundant check data to verify the restored instruction data; and performing operations in response to the restored and successfully verified instruction data.

[0035] In some embodiments, generating a response frame includes: compressing the response data after the smart home device operates in response to the instruction data to form response compression data; generating second redundant check data for the response data; and generating the response frame based on the response compression data and the second redundant check data. Compressing the response data can effectively reduce the amount of data in the transmitted response frame, and the redundant check can ensure the integrity and accuracy of the response frame during the transmission process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0037] Figure 1 is a flow chart illustrating a method for controlling a smart home device according to an embodiment of the present application;

[0038] Figure 2 is a flow chart illustrating another method for controlling a smart home device according to an embodiment of the present application;

[0039] Figure 3 is an example flow chart illustrating another method for controlling a smart home device according to an embodiment of the present application;

[0040] Figure 4 is a schematic diagram illustrating the structure of a central control screen according to an embodiment of the present application;

[0041] Figure 5 is a schematic diagram illustrating the structure of a smart home device according to an embodiment of the present application;

[0042] Figure 6 It is a hardware block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the following will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those skilled in the art that in the various embodiments of the present invention, many technical details are provided in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented.

[0044] An embodiment of the present invention relates to a control method for smart home devices. The execution subject of the method may be a control device of a smart home system, such as but not limited to a central control screen. The controlled devices in a smart home system are called smart home devices, such as furniture devices such as televisions, refrigerators, and air conditioners. Data is transmitted between the central control screen and the smart home devices through a communication method such as a wireless network.

[0045] like Figure 1 As shown, the control method of the smart home device provided in this embodiment includes the following steps.

[0046] Step 101: Generate a command frame containing command data to be sent.

[0047] Based on the preset communication protocol, the central control screen edits the command data used to control the operation of the smart home device to form a command frame containing the command data to be sent. After the command data is compiled into the command frame, its format or presentation form may change, such as being compressed or encoded. In this embodiment, the specific content of the command data is not limited, and the corresponding command data can be flexibly generated based on the specific control state of the smart home device desired.

[0048] In some embodiments, generating a command frame including command data to be sent may include the following steps a1 to a3.

[0049] Step a1: compress the instruction data to form instruction compressed data.

[0050] Specifically, in order to reduce the amount of instruction data during transmission, the instruction data may be compressed to form instruction compressed data. In this embodiment, the specific compression algorithm used in the compression process is not limited, for example, including but not limited to entropy coding, source coding, etc.

[0051] Step a2: Generate first redundant check data for the instruction data.

[0052] Specifically, in order to ensure the integrity and accuracy of the instruction data during transmission, a redundant check mechanism may be set for the instruction data, that is, check data corresponding to the instruction data may be set. In this embodiment, the check data dedicated to the instruction data is referred to as "first redundant check data". The check mechanism of the first redundant check data may be, but is not limited to, a parity check, a cyclic check, etc.

[0053] Step a3: Generate an instruction frame based on the instruction compression data and the first redundant check data.

[0054] Specifically, the instruction compression data and the first redundant check data may be spliced ​​together, and the spliced ​​data may be filled into a designated position of the instruction frame to generate the instruction frame.

[0055] Step 102: Transmit the command frame to the smart home device.

[0056] Specifically, the central control screen can transmit the instruction frame containing the instruction data to the smart home device through the local area network in the preset smart home system, or other preset networks, so that the smart home device performs corresponding operations according to the instruction data.

[0057] Step 103: receiving a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data.

[0058] Specifically, after the smart home device performs the corresponding operation according to the received instruction data, response data will be generated, and the response data may include the result information of the smart home device performing the corresponding operation, such as whether the operation is successful or unsuccessful. The smart home device carries the response data in a response frame and sends the response frame to the central control screen through a local area network or a preset network. The central control screen receives the response frame to obtain the response data therein.

[0059] Step 104: extract and analyze the response data to determine the situation information of the smart home device responding to the command data; wherein the command frame and the response frame are both short frame structures with a byte number not exceeding 8 bytes.

[0060] Specifically, after the central control screen receives the response frame, it can extract the response data from it, and then analyze the specific information in the response data to determine the situation of the smart home device responding to the instruction data, for example, whether the result of the smart home device executing the corresponding operation is successful or unsuccessful.

[0061] In some embodiments, the response data in the above-mentioned response frame can be presented in response to the compressed data, and the response frame also includes second redundant check data corresponding to the response data.

[0062] In order to improve the integrity and accuracy of the response data transmitted by the smart home device, the smart home device can also compress the response data in the response frame uploaded to the central control screen to form response compressed data, and set verification data for the response data. In this embodiment, the verification data dedicated to the response data is called "second redundant verification data". The verification mechanism of the second redundant verification data can be but is not limited to parity check, cyclic check, etc.

[0063] Correspondingly, the extraction and analysis of the response data in this step to determine the situation information of the smart home device responding to the instruction data may include the following steps b1 to b3.

[0064] b1: Decompress the response compressed data to restore the response data.

[0065] Specifically, after receiving the response frame fed back by the smart home device, the central control screen can first extract the response data presented in a compressed format, that is, the response compressed data, and then decompress the response compressed data using a preset decompression algorithm to restore the response data.

[0066] b2: Use the second redundant check data to check the restored response data.

[0067] Specifically, after the central control screen decompresses and restores the response data, it can further use the second redundant verification data carried in the response frame to verify the restored response data to determine the accuracy and completeness of the received response data.

[0068] b3: Analyze the restored and successfully verified response data to determine the situation information of the smart home device responding to the instruction data.

[0069] Specifically, when the restored response data is successfully verified by the second redundant verification data, it indicates that the received response data is complete, accurate and valid. At this time, the central control screen analyzes the response data to determine the situation information of the smart home device response command data to ensure the accuracy of the analysis result.

[0070] It should be noted that in order to reduce the amount of data transmitted during the data transmission process and reduce the delay and misalignment during the transmission process, in this embodiment, the transmitted instruction frames and response frames are set to a shorter frame structure, and the number of bytes corresponding to the length of each frame is not greater than 8 bytes, that is, they are all short frame structures.

[0071] The control method of smart home devices provided in this embodiment is that the central control screen generates a command frame containing the command data to be sent; transmits the command frame to the smart home device; receives a response frame fed back by the smart home device, the response frame carries the response data after the smart home device responds to the command data and performs an operation; extracts and analyzes the response data to determine the situation information of the smart home device responding to the command data, thereby completing the control operation in the smart home system; wherein the command frame and the response frame are both short frame structures with a byte number not exceeding 8 bytes. Since the data frames transmitted during the control process are all short frame structures, the transmission rate and accuracy can be improved, and the success rate of the central control screen controlling the smart home device can be improved.

[0072] In addition, in order to improve the success rate of the central control screen controlling smart home devices, the following steps can also be performed during the execution of the above-mentioned smart home device control method.

[0073] In some embodiments, after the instruction frame is transmitted to the smart home device, the following step c1 is also included.

[0074] Step c1: When no response frame is received from the smart home device within a preset time, a command retry mechanism is triggered to retry sending the command frame to the smart home device; wherein the command retry mechanism includes the timing and number of times of retrying to send the command frame, and the timing and number are determined in real time based on the historical response data of the smart home device and the current network environment.

[0075] Specifically, after the central control screen transmits the command frame to the smart home device, if it does not receive a response frame fed back by the smart home device within the preset time, it indicates that the smart home device may not have received the command frame issued this time. At this time, the central control screen can resend the command frame through the pre-introduced retry mechanism. The content of the retry mechanism includes the timing and number of retries to send the command frame, such as how long the command frame is sent and the maximum number of times the command frame can be sent. These two parameters can be flexibly adjusted in real time according to the historical response data of the smart home device and the current network environment. For example, if the historical response data indicates that the response speed is relatively slow, the interval time for sending the command frame can be relatively long and the maximum number of times is small; if the current network environment is relatively good, the interval time for sending the command frame can be relatively short and the maximum number of times is large.

[0076] In this embodiment, an intelligent retry mechanism is introduced to determine the timing and number of the retry mechanism to improve the control success rate of the smart home device.

[0077] In some embodiments, the process of executing the above method also includes the following step c2.

[0078] Step c2: monitor the operating status of the smart home device in real time, and when it is confirmed that the smart home device has a fault, trigger the execution of a repair program to repair the smart home device and / or issue a fault prompt.

[0079] Specifically, in this embodiment, the central control screen may be integrated with fault detection and repair functions for smart home devices. When controlling the smart home devices to perform operations, the central control screen will monitor the operating status of the smart home devices in real time, and determine whether there are faults such as abnormal operation. When it is confirmed that the smart home device has a fault, the built-in repair program will be triggered in time, and a repair instruction will be sent to the smart home device based on the repair program to repair the smart home device and / or issue a fault prompt.

[0080] In this embodiment, the operating status of smart home devices is monitored in real time through the central control screen, and active repairs and fault prompts are performed when a fault occurs to ensure the reliability of device control.

[0081] In some embodiments, the process of executing the above method also includes the following steps c3 to c4.

[0082] Step c3: monitor in real time whether there is interference information including at least electromagnetic interference and signal attenuation in the environment where the central control screen is located.

[0083] Specifically, in this embodiment, various types of detection devices or sensors for detecting interference signals in the environment in which the central control screen is located may be integrated in the central control screen, which can be used to detect whether there is interference information in the environment including at least electromagnetic interference and signal attenuation.

[0084] Step c4: after detecting interference information, performing at least one of the following anti-interference measures: frequency adaptive frequency hopping, spread spectrum communication.

[0085] Specifically, after the central control screen detects interference information around the smart home device, it can perform corresponding anti-interference measures for different types of interference information, including but not limited to frequency adaptive frequency hopping, spread spectrum communication, etc.

[0086] In this embodiment, the interference factors in the environment are monitored in real time through the central control screen, and anti-interference measures are taken in time when environmental interference is found, so as to improve the central control screen's resistance to environmental interference and ensure the accurate transmission of command data.

[0087] Another embodiment of the present invention relates to another method for controlling a smart home device, wherein the method is performed by the smart home device to be controlled in the smart home system. Figure 2 As shown, the control method of the smart home device includes the following steps 105 to 107.

[0088] Step 105: Receive the command frame containing command data sent by the central control screen.

[0089] Among them, the steps of the central control screen generating a command frame containing the command data to be sent, and the steps of sending the command frame to the smart home device can be referred to steps 101 to 102, which will not be repeated here.

[0090] Step 106: extract the instruction data in the instruction frame, and perform operations in response to the instruction data.

[0091] Specifically, the smart home device analyzes and processes the received command frame, extracts the command data therefrom, and then performs corresponding operations according to the specific command content indicated by the command data.

[0092] In some embodiments, the instruction data in the instruction frame can be presented as instruction compressed data, and the instruction frame also includes first redundant check data corresponding to the instruction data. The generation process of the instruction compressed data and the formation process of the instruction frame including the instruction compressed data and the first redundant check data can be referred to steps a1 to a3 in the aforementioned method embodiment, which will not be described in detail here.

[0093] Correspondingly, extracting the instruction data in the instruction frame and performing operations in response to the instruction data may include the following steps d1 to d3.

[0094] Step d1: decompress the instruction compressed data to restore the instruction data.

[0095] Specifically, after receiving the command frame sent by the central control screen, the smart home device can first extract the command data presented in a compressed format, namely the command compressed data, and then decompress the command compressed data using a preset decompression algorithm to restore the command data.

[0096] Step d2: using the first redundant check data to check the restored instruction data.

[0097] Specifically, after decompressing and restoring the command data, the smart home device may further use the first redundant check data carried in the command frame to check the restored command data to determine the accuracy and completeness of the received command data.

[0098] Step d3: For the restored and successfully verified instruction data, perform an operation in response to the instruction data.

[0099] Specifically, when the restored instruction data is successfully verified by the first redundant verification data, it indicates that the received instruction data is complete, accurate and valid. At this time, the smart home device performs corresponding operations based on the specific instructions of the instruction data to ensure the accuracy of the executed operations.

[0100] Step 107: Generate a response frame and feed it back to the central control screen. The response frame carries the response data of the smart home device after operating in response to the command data. Among them, the command frame and the response frame are both short frame structures with a byte number not exceeding 8 bytes.

[0101] Specifically, after the smart home device performs the corresponding operation according to the received instruction data, it will form response data based on the preset communication protocol. The response data may include the result information of the smart home device performing the corresponding operation, such as information of success or failure of the operation. The smart home device carries the response data in a response frame and sends the response frame to the central control screen through a local area network or a preset network. The central control screen receives the response frame to obtain the response data therein.

[0102] The smart home device edits the response data to be fed back to the central control screen to form a response frame containing the response data. After the response data is compiled into the response frame, its format or presentation form may change, such as being compressed or encoded. In this embodiment, the specific content of the response data is not limited, and the corresponding response data can be flexibly generated based on the specific response status expected to be fed back by the smart home device.

[0103] In some embodiments, the generating of the response frame may include the following steps e1 to e3:

[0104] Step e1: compressing the response data of the smart home device after operating the response instruction data to form response compressed data.

[0105] Specifically, in order to reduce the amount of response data during transmission, the response data may be compressed to form response compressed data. In this embodiment, the specific compression algorithm used in the compression process is not limited, for example, including but not limited to entropy coding, source coding, etc.

[0106] Step e2: Generate second redundant check data for the response data.

[0107] Specifically, in order to ensure the integrity and accuracy of the response data during transmission, a redundant check mechanism may be set for the response data, that is, check data corresponding to the response data may be set. In this embodiment, the check data dedicated to the response data is referred to as "second redundant check data". The check mechanism of the second redundant check data may be, but is not limited to, a parity check, a cyclic check, etc.

[0108] Step e3: Generate a response frame based on the response compression data and the second redundant check data.

[0109] Specifically, the response compression data and the second redundant check data may be spliced, and the spliced ​​data may be filled into a designated position of the response frame to generate a response frame.

[0110] It should be noted that in order to reduce the amount of data transmitted during the data transmission process and reduce the delay and misalignment during the transmission process, in this embodiment, the transmitted instruction frames and response frames are set to a shorter frame structure, and the number of bytes corresponding to the length of each frame is not greater than 8 bytes, that is, they are all short frame structures.

[0111] The control method of the smart home device provided in this embodiment is that the smart home device receives the instruction frame containing instruction data sent by the central control screen; extracts the instruction data in the instruction frame, and operates in response to the instruction data; generates a response frame and feeds it back to the central control screen, and the response frame carries the response data after the smart home device operates in response to the instruction data, thereby completing the control operation in the smart home system; wherein the instruction frame and the response frame are both short frame structures with a byte number not exceeding 8 bytes. Since the data frames transmitted during the control process are all short frame structures, the transmission rate and accuracy can be improved, and the success rate of the central control screen controlling the smart home device can be improved.

[0112] like Figure 3 As shown, the example line gives the implementation process of the control method of the smart home device, including the following steps (step 1 to step 4).

[0113] Step 1: Configure and optimize the communication protocol.

[0114] Configure and optimize the communication protocol used for data transmission between the central control screen and smart home devices. The communication protocol defines the data frame (command frame, response frame) for transmitting data as a short frame structure with a length not exceeding 8 bytes to ensure that the communication process is stable and reliable.

[0115] Step 2: Integrate the device fault detection and repair function into the central control screen and configure the fault repair strategy.

[0116] The central control screen is configured with a detection mechanism that can monitor in real time whether the operating status of smart home devices is normal and whether there are any faults in the devices. Corresponding repair functions and fault repair strategies are set for different fault types to ensure the normal operation of smart home devices.

[0117] Step 3: Set up and adjust the command retry mechanism.

[0118] According to the actual environment, set and adjust the parameter settings of the command retry mechanism to trigger the command retry mechanism when the response frame fed back by the smart home device is not received within the specified time, so as to resend the data and improve the success rate of device control.

[0119] Step 4: Conduct interference test on the environment where the central control screen is located and perform anti-interference operations.

[0120] Conduct interference tests on the environment in which the central control screen is located, and when interference is detected, perform corresponding anti-interference operations to ensure that the central control screen can work normally under various environmental conditions.

[0121] Another embodiment of the present invention relates to a central control screen, such as Figure 4 As shown, including:

[0122] The instruction generation module 201 is used to generate an instruction frame containing instruction data to be sent;

[0123] The command sending module 202 is used to transmit the command frame to the smart home device;

[0124] A response receiving module 203 is used to receive a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data;

[0125] A response processing module 204 is used to extract and analyze the response data to determine information about the smart home device's response to the command data;

[0126] Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

[0127] In some embodiments, the instruction generation module 201 is specifically used to compress the instruction data to form instruction compression data; generate first redundant check data for the instruction data; and generate the instruction frame based on the instruction compression data and the first redundant check data.

[0128] In some embodiments, the response data in the response frame is presented as response compressed data, and the response frame also includes second redundant check data corresponding to the response data; the response processing module 204 is specifically used to decompress the response compressed data to restore the response data; use the second redundant check data to verify the restored response data; analyze the restored and successfully verified response data to determine the situation information of the smart home device responding to the command data.

[0129] In some embodiments, the central control screen also includes: a retry mechanism module, which is used to trigger a command retry mechanism to retry sending the command frame to the smart home device when no response frame is received from the smart home device within a preset time period; wherein the content of the command retry mechanism includes the timing and number of retrying to send the command frame, and the timing and number are determined in real time based on the historical response data of the smart home device and the current network environment.

[0130] In some embodiments, the central control screen also includes: a fault monitoring module, which is used to monitor the operating status of the smart home device in real time, and when it is confirmed that the smart home device has a fault, trigger the execution of a repair program to repair the fault of the smart home device, and / or issue a fault prompt.

[0131] In some embodiments, the central control screen also includes: an anti-interference module, which is used to monitor in real time whether there is interference information including at least electromagnetic interference and signal attenuation in the environment where the central control screen is located; after detecting the interference information, performing at least one of the following anti-interference measures: frequency adaptive frequency hopping and spread spectrum communication.

[0132] Another embodiment of the present invention relates to a smart home device, such as Figure 5 As shown, including:

[0133] The command receiving module 205 is used to receive the command frame containing the command data sent by the central control screen;

[0134] A response operation module 206, used for extracting the instruction data in the instruction frame and performing an operation in response to the instruction data;

[0135] A response generation module 207 is used to generate a response frame and feed it back to the central control screen, wherein the response frame carries response data after the smart home device operates in response to the instruction data;

[0136] Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

[0137] In some embodiments, the instruction data in the instruction frame is presented as instruction compressed data, and the instruction frame also includes first redundant check data corresponding to the instruction data; the response operation module 206 is specifically used to decompress the instruction compressed data to restore the instruction data; use the first redundant check data to verify the restored instruction data; for the restored and successfully verified instruction data, respond to the instruction data to perform an operation. In some embodiments, the response generation module 207 is specifically used to compress the response data after the smart home device responds to the instruction data to perform an operation to form response compressed data; generate second redundant check data for the response data; and generate the response frame based on the response compressed data and the second redundant check data.

[0138] Another embodiment of the present invention relates to an electronic device, such as Figure 6As shown, it includes at least one processor 302; and a memory 301 that is communicatively connected to the at least one processor 302; wherein the memory 301 stores instructions that can be executed by the at least one processor 302, and the instructions are executed by the at least one processor 302 so that the at least one processor 302 can execute any of the above method embodiments.

[0139] The memory 301 and the processor 302 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 302 and the memory 301 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 302 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 302.

[0140] The processor 302 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 301 can be used to store data used by the processor 302 when performing operations.

[0141] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements any of the above method embodiments when executed by a processor.

[0142] Another embodiment of the present invention relates to a computer program product. When the computer program product is run on a terminal device, the electronic device executes any one of the method embodiments described above.

[0143] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0144] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0145] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0146] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.

Claims

1. A control method for smart home devices, applied to a central control screen, characterized in that: include: generating a command frame including command data to be sent; Transmitting the command frame to a smart home device; Receiving a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data; Extracting and analyzing the response data to determine information about the smart home device's response to the command data; Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

2. The control method of the smart home device according to claim 1, characterized in that: The generating of the instruction frame including the instruction data to be sent comprises: Compressing the instruction data to form instruction compressed data; generating first redundant check data for the instruction data; The instruction frame is generated based on the instruction compression data and the first redundant check data.

3. The control method of the smart home device according to claim 1, characterized in that: The response data in the response frame is presented as response compressed data, and the response frame also includes second redundant check data corresponding to the response data; The extracting and analyzing the response data to determine information about the situation in which the smart home device responds to the instruction data includes: Decompressing the response compressed data to restore the response data; Using the second redundant check data to check the restored response data; The restored and successfully verified response data is analyzed to determine information about the smart home device's response to the instruction data.

4. The control method of the smart home device according to claim 1, characterized in that: After transmitting the instruction frame to the smart home device, the method further includes: If no response frame fed back by the smart home device is received within a preset time period, a command retry mechanism is triggered to retry sending the command frame to the smart home device; The content of the command retry mechanism includes the timing and number of times of retrying to send the command frame, and the timing and number are determined in real time based on the historical response data of the smart home device and the current network environment.

5. The control method of the smart home device according to any one of claims 1 to 4, characterized in that: The method further comprises: The operating status of the smart home device is monitored in real time, and when it is confirmed that the smart home device has a fault, a repair program is triggered to perform fault repair on the smart home device, and / or a fault prompt is issued.

6. The control method of the smart home device according to any one of claims 1 to 4, characterized in that: The method further comprises: Real-time monitoring of whether there is interference information including at least electromagnetic interference and signal attenuation in the environment where the central control screen is located; After the interference information is detected, at least one of the following anti-interference measures is performed: frequency adaptive frequency hopping, spread spectrum communication.

7. A control method for a smart home device, applied to the smart home device, characterized in that: include: Receive the command frame containing command data sent by the central control screen; Extracting the instruction data in the instruction frame, and performing an operation in response to the instruction data; Generate a response frame and feed it back to the central control screen, the response frame carrying response data after the smart home device operates in response to the command data; Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

8. The control method of the smart home device according to claim 7, characterized in that: The instruction data in the instruction frame is presented as instruction compressed data, and the instruction frame also includes first redundant check data corresponding to the instruction data; The extracting the instruction data in the instruction frame and performing an operation in response to the instruction data includes: Decompressing the instruction compressed data to restore the instruction data; Using the first redundant check data to check the restored instruction data; For the restored and successfully verified instruction data, an operation is performed in response to the instruction data.

9. The control method of the smart home device according to claim 7, characterized in that: The generating of the response frame comprises: Compressing the response data after the smart home device performs an operation in response to the instruction data to form response compressed data; generating second redundant check data for the response data; The response frame is generated based on the response compression data and the second redundancy check data.

10. A central control screen, characterized in that: include: An instruction generation module, used for generating an instruction frame containing instruction data to be sent; A command sending module, used for transmitting the command frame to a smart home device; A response receiving module, used to receive a response frame fed back by the smart home device, wherein the response frame carries response data after the smart home device performs an operation in response to the instruction data; A response processing module, used to extract and analyze the response data to determine information about the situation in which the smart home device responds to the instruction data; Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

11. A smart home device, characterized in that: include: The command receiving module is used to receive the command frame containing command data sent by the central control screen; A response operation module, used for extracting the instruction data in the instruction frame and performing an operation in response to the instruction data; A response generation module, used to generate a response frame and feed it back to the central control screen, wherein the response frame carries response data after the smart home device operates in response to the instruction data; Wherein, the instruction frame and the response frame are both short frame structures with the number of bytes not exceeding 8 bytes.

12. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the smart home device as described in any one of claims 1 to 9.

13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method of the smart home device described in any one of claims 1 to 9 is implemented.