Equipment state updating optimization method and equipment state display method

By detecting the execution and update of smart devices and terminal devices and adjusting the interval time of control instructions, the problem of equipment status synchronization delay in the whole-house intelligent system is solved, and faster and more accurate synchronous updates are achieved.

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

Patent Information

Application Number
CN202411168579.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In existing whole-house intelligent solutions, there is a problem of high control response delays in device status synchronization, especially when the number of smart devices is unknown, the number of terminal devices is unknown, and the distance between devices is unknown, it is difficult to test the shortest synchronization update time.

Method used

By detecting the number of commands executed by the controlled device and the number of update status of the terminal device, adjusting the interval time of the control command, and using preset time rules to increase or decrease the interval time until the shortest synchronous update time is reached.

Benefits of technology

The time for device status update is effectively optimized, the synchronization consistency and response speed between smart terminals are improved, the synchronization time is accurately predicted, and the stability and efficiency of the system are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155206A_ABST
    Figure CN119155206A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment state updating optimization method and an equipment state display method, and the method comprises the steps: the method is applied to intelligent control equipment which is connected with controlled equipment and terminal equipment, and responds to a control instruction issued by the intelligent control equipment or the terminal equipment; the controlled equipment executes the control instruction to change the state, and the terminal equipment updates the state of the controlled equipment; the method comprises the following steps: acquiring interval time for issuing a control instruction to controlled equipment; detecting whether the instruction execution frequency of the controlled equipment is equal to the control instruction issuing frequency or not, and / or detecting whether the controlled equipment state updating frequency of the terminal equipment is equal to the control instruction issuing frequency or not; and adjusting the interval time for issuing the control instruction to the controlled equipment according to the detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent control technology, and in particular to an optimization method for updating device status and a method for displaying device status. Background Art

[0002] From the early days of "surfing the Internet" to the current Internet of Everything, Internet technology has developed rapidly and has entered all aspects of people's lives from simple "surfing the Internet". The existing whole-house smart solution has a problem of high control response delay. To solve this problem, we launched the "home host" solution, which changes the control and status synchronization of the device from being processed and forwarded by the cloud to being directly forwarded by the host after local processing, greatly improving the device response speed.

[0003] When the number of smart devices to be controlled is unknown, the number of smart terminals that issue commands is unknown, and the distance between the smart devices and the smart host is unknown, the time required for each smart terminal to synchronize and update each smart device is different. Subsequent products' abnormality detection, status update display, etc. require the use of synchronization time for abnormality analysis, status display, etc., but it is currently difficult to test the shortest time required for each smart terminal to synchronize and update. Summary of the invention

[0004] The present disclosure provides a method for optimizing device status update and a method for displaying device status, so as to facilitate testing of synchronization time.

[0005] In a first aspect, the present disclosure provides an optimization method for updating a device state, which is applied to an intelligent control device, wherein the intelligent control device is connected to a controlled device and a terminal device, and in response to a control instruction issued by the intelligent control device, the controlled device executes the instruction to change the state, and the terminal device updates the state of the controlled device; the method comprises:

[0006] Get the interval time for sending control instructions to the controlled device;

[0007] Detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, and / or detecting whether the number of times the state of the controlled device is updated by the terminal device is equal to the number of issuance of the control instruction;

[0008] Adjust the interval time for sending control instructions to the controlled device according to the detection results.

[0009] In some embodiments, the step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result includes:

[0010] When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, the interval time is reduced according to a preset time rule;

[0011] When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule.

[0012] In some embodiments, the step of detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result includes:

[0013] When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule;

[0014] When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, the interval time is increased according to a preset time rule.

[0015] In some embodiments, the step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, and detecting whether the number of times the state of the controlled device is updated by the terminal device is equal to the number of issuance of the control instruction, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result, includes:

[0016] Check whether the number of execution instructions of the controlled device is equal to the number of control instructions issued;

[0017] When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule until the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction;

[0018] When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of issuance of the control instruction;

[0019] When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, increasing the interval time according to a preset time rule;

[0020] When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule.

[0021] In some embodiments, the step of increasing the interval time according to a preset time extension rule includes:

[0022] Calculating the number of times the interval time has been continuously increased according to a preset time extension rule;

[0023] Determine whether the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold;

[0024] When the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold, the magnitude of each subsequent increase in the interval time is increased.

[0025] In some embodiments, the step of reducing the interval time according to a preset time rule includes:

[0026] Calculating the number of times the interval time has been continuously reduced according to a preset time rule;

[0027] Determine whether the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold;

[0028] When the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold, the magnitude of each subsequent reduction in the interval time is increased.

[0029] In some embodiments, the step of increasing the interval time according to a preset time extension rule includes:

[0030] Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule;

[0031] Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold;

[0032] When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent increase of the interval time is reduced.

[0033] In some embodiments, the step of reducing the interval time according to a preset time rule includes:

[0034] Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule;

[0035] Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold;

[0036] When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent decrease of the interval time is reduced.

[0037] In a second aspect, the present disclosure provides a method for displaying a device status, which is applied to a terminal device, comprising:

[0038] Adopting the optimization method for updating the device status described in any of the above embodiments, obtaining each of the interval times that enables the terminal device to complete the update of the controlled device status to form a first time set, and obtaining each of the interval times that causes the terminal device to fail to complete the update of the controlled device status to form a second time set; determining a locking time based on the interval times in the first time set and the second time set, the locking time being the duration of temporarily stopping the update of the controlled device status;

[0039] From the time when the intelligent control device sends the controlled device status change information, the status of the controlled device is not updated during the locking time. At the end of the locking time, the status of the controlled device is updated according to the received status of the controlled device sent by the intelligent control device.

[0040] In some embodiments, determining the locking time based on the interval time in the first time set and the second time set includes:

[0041] The minimum interval time in the first time set and the maximum interval time in the second time set are selected, an average value of the minimum interval time and the maximum interval time is determined, and the average value is determined as the locking time.

[0042] In some embodiments, determining the locking time based on the interval time in the first time set and the second time set includes:

[0043] Acquire each of the first time sets and each of the second time sets in different test groups; wherein the values ​​of the first interval time in different test groups are different;

[0044] Selecting the minimum interval time in the first time set and the maximum interval time in the second time set in each test group, determining the average value of the minimum interval time and the maximum interval time, and using the average value as the time to be optimized;

[0045] The occurrence frequencies of the values ​​of the time to be optimized in different test groups are counted, and the value of the time to be optimized with the highest occurrence frequency is determined as the locking time.

[0046] In a third aspect, the present disclosure provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above aspects.

[0047] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the above aspects when executed by a processor.

[0048] The present disclosure provides an optimization method for updating device status, wherein an intelligent control device is connected to a controlled device and a terminal device for communication respectively, and the intelligent control device or the terminal device sends a control instruction to the controlled device at intervals, and the controlled device is used to execute the control instruction to change the status. If the controlled device can successfully execute the control instruction to change the status once, the number of execution instructions increases once, and the status change information of the change is issued. The terminal device is used to receive the status change information, and if the controlled device can successfully update the displayed status of the controlled device according to the status change information, the number of times the controlled device status is updated increases once. It is used to detect whether the number of execution instructions of the controlled device is equal to the number of control instructions sent, to detect whether the controlled device can successfully execute each control instruction, to detect whether the number of times the terminal device updates the status of the controlled device is equal to the number of control instructions sent, and to detect whether the terminal device can be updated according to the status change information corresponding to each control instruction.

[0049] If the number of execution instructions of the controlled device is not equal to the number of times the control instructions are issued and / or the number of times the controlled device status is updated by the terminal device is not equal to the number of times the control instructions are issued, it means that there may be an abnormality in the controlled device and / or the terminal device, and the interval time should be increased, and the increased interval time is used as the interval time for the next test. If the number of execution instructions of the controlled device is equal to the number of times the control instructions are issued and the number of times the controlled device status is updated by the terminal device is equal to the number of times the control instructions are issued, it means that the controlled device can be executed normally and the terminal device can be displayed normally. At this time, in order to obtain a smaller interval time, the interval time should be reduced, and the reduced interval time is used as the interval time for the next test. Each test adjusts the interval time required for the current test according to the last test result of the interval time, and adjusts the interval time required for the next test according to the number of execution instructions of the controlled device and / or the number of times the controlled device status is updated by the terminal device. After multiple tests, the test interval time gradually approaches the shortest time required for each intelligent terminal to be updated synchronously. The more tests are conducted, the closer the interval time approaches the shortest time required for each intelligent terminal to be updated synchronously, and the more accurate the prediction of the synchronization time is. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present disclosure will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0051] Figure 1 A schematic diagram of a flow chart of an optimization method for updating device status provided by an embodiment of the present disclosure;

[0052] Figure 2 A flowchart of a basic control method of a home host system provided by an embodiment of the present disclosure;

[0053] Figure 3 Another schematic diagram of a flow chart of an optimization method for updating device status provided by an embodiment of the present disclosure;

[0054] Figure 4 A schematic diagram of a flow chart of a method for modifying the interval time of a cycle provided in an embodiment of the present disclosure;

[0055] Figure 5 A flowchart of an abnormality detection method for a smart terminal provided in an embodiment of the present disclosure;

[0056] Figure 6 A flowchart of a method for faking device status provided in an embodiment of the present disclosure.

[0057] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, and to fully understand and implement how the present disclosure applies technical means to solve technical problems and achieve the corresponding technical effects, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. The embodiments of the present disclosure and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0060] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0061] From the early days of "surfing the Internet" to the current Internet of Everything, the development of Internet technology is changing with each passing day. It has gone from simple "surfing the Internet" to all aspects of people's lives, and whole-house intelligence is no longer a new term. However, most of the existing whole-house intelligence solutions have a problem of high control response delay. To solve this problem, we launched the "home host" solution, which changes the control and status synchronization of the device from forwarding after processing in the cloud to direct forwarding after local processing by the host, greatly improving the device response speed. However, it is not easy to integrate a large number of smart device requests in the whole-house intelligence from the cloud to local processing, and the complex LAN environment will bring many problems to development and testing.

[0062] Especially in this environment, the status synchronization between the display terminal and the device presents an irregular phenomenon. The existing whole-house smart solution has a high control response delay problem. To solve this problem, the "home host" solution was launched, which changes the control and status synchronization of the device from being processed and forwarded by the cloud to being directly forwarded by the host after local processing, greatly improving the device response speed.

[0063] When the number of smart devices to be controlled is unknown, the number of smart terminals that issue commands is unknown, and the distance between the smart devices and the smart host is unknown, the time required for each smart terminal to synchronize and update each smart device is different. The anomaly detection, status update display, and other operations of subsequent products require the use of synchronization time for anomaly analysis, status display, and other operations. Since the time required for each smart terminal to synchronize and update each smart device is affected by the performance of the smart terminal, the performance of the smart device, and the performance of the smart host, when the interval between issuing commands is too short, it may affect the performance of the smart terminal or the performance of the smart device, resulting in the inability of the smart device to execute commands in a timely manner or the inability of the smart terminal to update in a timely manner. It is currently difficult to test the shortest time required for each smart terminal to synchronize and update.

[0064] Embodiment 1

[0065] Figure 1 The following is a flow chart of an optimization method for updating device status provided by an embodiment of the present disclosure. Figure 1 and Figure 2 As shown, an optimization method for updating device status is applied to an intelligent control device, wherein the intelligent control device is connected to a controlled device and a terminal device, and in response to a control instruction issued by the intelligent control device or the terminal device, the controlled device executes the control instruction to change the status, and the terminal device updates the status of the controlled device; the method comprises:

[0066] Step 110: Obtain the interval time for sending control instructions to the controlled device.

[0067] In this embodiment, the control instruction is used to control the controlled device to change the working state, and each control instruction is used to control a controlled device to change the working state once. The control instruction is sent to the controlled device at intervals, and the control instruction can be directly issued to the controlled device by the intelligent control device or the terminal device, or first issued by the terminal device to the intelligent control device, and then issued by the intelligent control device to the controlled device.

[0068] Step 120, detect whether the number of execution instructions of the controlled device is equal to the number of control instructions issued, and / or detect whether the number of times the terminal device updates the state of the controlled device is equal to the number of control instructions issued; adjust the interval time of issuing control instructions to the controlled device according to the detection result.

[0069] In this embodiment, the controlled device receives the control commands issued continuously, and changes the working state according to the control instructions. If the controlled device can successfully execute the control instruction to change the working state once, the number of execution instructions increases once, and the state change information of the change is issued. The intelligent control device receives the state change information sent by the controlled device, and then sends the state change information to the terminal device. Since the control instructions are issued continuously, if the controlled device successfully responds to each control instruction, the number of execution instructions of the controlled device is equal to the number of control instructions issued; if the interval time is short, the controlled device is unable to execute some of the control instructions due to performance problems, and there is a situation where the control instruction is not successfully responded, the number of execution instructions of the controlled device is less than the number of control instructions issued. Whenever the controlled device successfully responds to the control instruction, the state change information of the change will be sent to the intelligent control device.

[0070] In this embodiment, each time the terminal device receives status change information, it updates the recorded working status of the controlled device, and updates the working status of the controlled device to the working status after successful execution. If the controlled device successfully executes each control instruction, and the terminal device successfully updates according to the status change information received each time, the working status corresponding to each control instruction on the terminal device will be updated before the next working status corresponding to the control instruction is updated. When at least one of the number of instruction executions and the number of controlled device status updates is not equal to the number of control instruction issuances, it means that the current interval time is short, the interval time between control instructions is short, the controlled device cannot execute the control instruction in time and / or the terminal device cannot be updated in time according to the status change information. In the next test, the interval time should be increased according to the preset time extension rule, and the interval time between the issuance of control instructions should be extended, so that the controlled device can successfully execute each control instruction, and the terminal device can successfully update according to the status change information. When the terminal device completes the update of the working status of the controlled device corresponding to each control instruction, it means that the current interval time is long, the interval time between the control instructions is long, the controlled device can successfully execute each control instruction, and the terminal device can update according to each status change information. In the next test, the interval time should be reduced according to the preset time rules, and the interval time between the issuance of control instructions should be shortened. It is tested whether a shorter interval time can continue to enable the controlled device to successfully execute each control instruction, whether the terminal device can continue to update according to each status change information, and search for a shorter time that allows the terminal device to update the working status of the controlled device.

[0071] In this embodiment, the interval time can be adjusted through the detection results of three detection methods. The first detection method is a separate detection of the number of times the instruction is executed, and there is only a detection result of the number of times the instruction is executed; the second detection method is a separate detection of the number of times the state of the controlled device is updated, and there is only a detection result of the number of times the state of the controlled device is updated; the third detection method is a joint detection of the number of times the instruction is executed and the number of times the state of the controlled device is updated, and there are detection results of both the number of times the instruction is executed and the number of times the state of the controlled device is updated.

[0072] If at least one of the number of times the command is executed and the number of times the controlled device status is updated is not the number of times issued, it means that at least one of the two situations exists: the controlled device cannot execute several control commands in time and the terminal device cannot update according to several status change information in time. It may be that in the separate detection of the number of times the command is executed, the controlled device cannot execute several control commands in time; it may be that in the separate detection of the number of times the controlled device status is updated, the terminal device cannot update according to the status change information in time; it may be that in the joint detection of the number of times the command is executed and the number of times the controlled device status is updated, the controlled device cannot execute several control commands in time and / or the terminal device cannot update according to several status change information in time. At this time, the interval time should be increased according to the preset time extension rule to test whether the increased interval time can enable the controlled device to execute each control command in time and / or whether the terminal device can update according to each status change information in time.

[0073] If only the number of execution instructions or the number of updates of the controlled device status exist and the number of execution instructions or the number of updates of the controlled device status exist as the number of issuances, it means that the controlled device can execute several control instructions in time or the terminal device can be updated in time according to the status change information. It may be that in the separate detection of the number of execution instructions, the controlled device can execute several control instructions in time; it may be that in the separate detection of the number of updates of the controlled device status, the terminal device can be updated in time according to the status change information. At this time, the interval time should be reduced according to the preset time rule to test whether the reduced interval time can continue to enable the controlled device to execute each control instruction in time or whether the terminal device can continue to update in time according to each status change information.

[0074] If the number of execution instructions and the number of updates of the controlled device status exist at the same time and the number of execution instructions and the number of updates of the controlled device status are both the number of issuances, it means that in the joint detection of the number of execution instructions and the number of updates of the controlled device status, the controlled device can execute several control instructions in time and the terminal device can be updated in time according to the status change information. At this time, the interval time should be increased according to the preset time extension rule to test whether the reduced interval time can continue to enable the controlled device to execute each control instruction in time and whether the terminal device can continue to be updated in time according to each status change information.

[0075] In this embodiment, the optimization method for updating the device status is to connect the intelligent control device to the controlled device and the terminal device for communication respectively, and the intelligent control device or the terminal device sends the control instruction to the controlled device at the interval time. The controlled device is used to change the working state according to the control instruction. If the controlled device can successfully execute the control instruction to change the working state once, the number of execution instructions increases once, and the state change information of the change is issued. The terminal device is used to receive the state change information and update the displayed state of the controlled device according to the state change information. In this process, it is detected whether the number of execution instructions of the controlled device is the number of times the control instruction is issued and / or whether the number of times the terminal device updates the state of the controlled device is the number of times the control instruction is issued. When the number of execution instructions of the controlled device is not the number of times the control instruction is issued, it means that the execution of the controlled device is abnormal, and the current interval time cannot make the controlled device execute the control instruction normally. It may be that the interval time is short, and some of the control instructions cannot be executed, resulting in the number of execution instructions of the controlled device being less than the number of times the control instruction is issued. When the number of times the terminal device updates the status of the controlled device is not the number of times the control instructions are issued, the first possibility is that the current interval time causes the controlled device to execute abnormally, and the number of status change information sent out is abnormal. For example, the controlled device does not have time to execute a certain control instruction, and the number of status change information sent out is less than the number of control instructions sent out. At this time, even if the terminal device can successfully update the displayed status of the controlled device according to the status change information within the current interval time, the number of times the controlled device status is updated will be less than the number of control instructions sent out; the second possibility is that the current interval time causes the terminal device update to be abnormal, the controlled device can execute each control instruction issued, the number of instructions executed is equal to the number of control instructions sent out, and the number of status change information sent out is equal to the number of control instructions sent out, but the terminal device updates abnormally and cannot update the displayed status of the controlled device according to some of the status change information, resulting in the number of times the controlled device status is updated being less than the number of control instructions sent. The third possibility is that the current interval time cannot make the controlled device execute normally, nor can it make the terminal device update normally. There are anomalies in both the execution and update stages, resulting in the final number of updates to the controlled device status being less than the number of control instructions issued.

[0076] It should be understood that under the first and third possibilities, the controlled device is inferred to be abnormal based on the number of times the terminal device updates the state of the controlled device. This is based on the fact that the controlled device is configured to issue state change information upon successful execution of the current control instruction. If the state change information needs to be forwarded to the terminal device by the intelligent control device, the intelligent control device also needs to be configured to receive the state change information sent by the controlled device and then send the state change information to the terminal device. If the controlled device needs to successfully execute each control instruction before issuing the state change information or the intelligent control device needs to receive the state change information equal to the number of control instructions issued before sending the state change information to the terminal device, then when the number of times the terminal device updates the state of the controlled device is not the number of control instructions issued, only the second possibility exists.

[0077] If the status change information needs to be forwarded by the intelligent control device, when the number of times the terminal device updates the status of the controlled device is not the number of times the control instructions are issued, there is also a fourth possibility that the intelligent control device is abnormal and does not send a certain status change information to the intelligent terminal, resulting in the number of times the controlled device status is updated being less than the number of times the control instructions are issued.

[0078] If the number of execution instructions of the controlled device is not equal to the number of times the control instructions are issued and / or the number of times the controlled device status is updated by the terminal device is not equal to the number of times the control instructions are issued, it means that at least one of the intelligent control device, the controlled device and the terminal device is abnormal. The interval time is increased according to the preset time extension rule, and the increased interval time is used as the interval time for the next test. If the number of execution instructions of the controlled device is equal to the number of times the control instructions are issued and the number of times the controlled device status is updated by the terminal device is equal to the number of times the control instructions are issued, it means that the controlled device can be executed normally and the terminal device can be displayed normally. It may also mean that the intelligent control device can forward the status change information normally. At this time, in order to obtain a smaller interval time, the interval time is reduced according to the preset time rule, and the reduced interval time is used as the interval time for the next test. Each test adjusts the interval time required for the current test according to the last detection result of the interval time, and adjusts the interval time required for the next test according to the number of execution instructions of the controlled device and / or the number of times the controlled device status is updated by the terminal device. After multiple tests, the test interval gradually approaches the time required for each smart terminal to synchronously update each smart device. The more tests are conducted, the closer the interval is to the time required for each smart terminal to synchronously update each smart device, and the more accurate the prediction of the synchronization time is.

[0079] In one embodiment, the step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result includes:

[0080] When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, the interval time is reduced according to a preset time rule;

[0081] When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule.

[0082] In this embodiment, the interval time of the next test is adjusted according to the execution of the control instruction by the controlled device. The control instruction is continuously issued with the interval time as a period. When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, it means that the controlled device can successfully execute the current control instruction before receiving the next control instruction, the number of execution instructions of the current time increases once, and the state change information is generated and issued. At this time, the interval time is reduced according to the preset time rule, and a shorter interval time is tested to see whether the controlled device can continue to execute each control instruction. When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, it means that the controlled device cannot execute the current control instruction before receiving the next control instruction, and the current control instruction does not change the number of execution instructions, and there is no state change information. At this time, the interval time is increased according to the preset time rule, and a longer interval time is tested to see whether the controlled device can execute each control instruction in time. Among them, the number of execution instructions is the total number of control instructions executed by the controlled device in the test of the current interval time, and the number of issuances is the total number of control instructions issued by the intelligent control device in the test of the current interval time. The controlled device can send the status change information to the intelligent control device, which then sends it to the terminal device; the controlled device can directly send the status change information to the terminal device.

[0083] In one embodiment, the step of detecting whether the number of times the state of the controlled device is updated by the terminal device is equal to the number of times the control instruction is issued, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result includes:

[0084] When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule;

[0085] When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, the interval time is increased according to a preset time rule.

[0086] In this embodiment, the interval time of the next test is adjusted for the terminal device according to the update of the state change information. The controlled device continuously receives control instructions. If the controlled device successfully executes the current control instruction, the current state change information is generated and the current state change information is sent out. As the controlled device successfully executes several control instructions in sequence, the state change information is sent out in sequence. The terminal device receives the state change information in sequence. When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is sent, it means that the terminal device can successfully update the working state displayed by the controlled device according to the current state change information before receiving the next state change information. The number of times the state of the controlled device is updated at the current time increases once. At this time, the interval time is reduced according to the preset time rule to test whether a shorter interval time can continue to enable the terminal device to update in time according to each state change information. When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instructions are issued, it means that the terminal device cannot update the working state displayed by the controlled device according to the current state change information before receiving the next state change information, and the number of times the controlled device state is updated at the current time remains unchanged. At this time, the interval time is increased according to the preset time rule to test whether a longer interval time can enable the terminal device to update in time according to each state change information. Among them, the number of times the controlled device state is updated is the total number of times the terminal device updates the working state displayed by the controlled device according to the state change information in the current interval test, and the number of times issued is the total number of control instructions issued by the intelligent control device in the current interval test.

[0087] In one embodiment, the step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instructions, and detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of issuance of the control instructions, and adjusting the interval time of issuing the control instructions to the controlled device according to the detection results, includes:

[0088] Check whether the number of execution instructions of the controlled device is equal to the number of control instructions issued;

[0089] When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule until the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction;

[0090] When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of issuance of the control instruction;

[0091] When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, increasing the interval time according to a preset time rule;

[0092] When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule.

[0093] In this embodiment, the execution of the control instruction by the controlled device is first detected. When the controlled device can execute each control instruction, the state change information generated by the successful execution is sent, so that the interval time first meets the conditions that each intelligent terminal can be updated synchronously. On this basis, it is detected whether the interval time can enable the terminal device to be updated in time. When the controlled device cannot execute each control instruction, it means that the interval time is too small. The interval time should be increased according to the preset time extension rules. It is tested whether the increased interval time can enable the controlled device to execute each control instruction. The interval time is repeatedly increased for testing until the number of execution instructions of the controlled device is equal to the number of control instruction issuances. When the interval time meets the conditions that each intelligent terminal can be updated synchronously, the controlled device sends state change information, and the terminal device receives the state change information. When the terminal device can be updated according to each state change information, the number of times the controlled device state is updated is equal to the number of control instruction issuances, which means that the interval time is too large. The interval time should be reduced according to the preset time rules. It is tested whether the reduced interval time can enable the terminal device to be updated according to each state change information. When the terminal device cannot be updated according to each status change information, and the number of times the controlled device status is updated is not equal to the number of times the control instructions are issued, it means that the interval time is too small. The interval time should be increased according to the preset time extension rules to test whether the increased interval time can enable the terminal device to be updated according to each status change information.

[0094] In one embodiment, the step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes:

[0095] Calculating the number of times the interval time has been continuously increased according to a preset time extension rule;

[0096] Determine whether the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold;

[0097] When the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold, the magnitude of each subsequent increase in the interval time is increased.

[0098] In this embodiment, the preset time extension rule can increase the interval time by a preset amplitude each time. The continuous increase times exceeding the preset times threshold means that in the adjustment of the consecutive interval time exceeding the preset times threshold, the interval time is increased each time, that is, in the recent cycle debugging, wherein the number of the cycle debugging exceeds the preset times threshold, each time the control instruction is issued to the controlled device according to the interval time, when it is detected that at least one of the execution instruction times and the update times of the controlled device status when the test of the current interval time is completed is not the issuance times, the interval time is increased according to the preset time extension rule. When there is a situation where the interval time has been continuously increased according to the preset time extension rule and exceeds the preset times threshold, it means that the increase amplitude of the current interval time is too small. In order to search for the interval time that can make the controlled device successfully execute each control instruction and the terminal device update according to each state change information, the amplitude of each subsequent interval time increase is increased, and the search speed of the synchronization time is increased.

[0099] In one embodiment, the step of reducing the interval time according to a preset time rule includes:

[0100] Calculating the number of times the interval time has been continuously reduced according to a preset time rule;

[0101] Determine whether the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold;

[0102] When the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold, the magnitude of each subsequent reduction in the interval time is increased.

[0103] In this embodiment, the preset time rule can reduce the interval time by a preset amplitude each time. The continuous reduction times exceeding the preset times threshold means that in the adjustment of the consecutive interval time exceeding the preset times threshold, the interval time is reduced each time, that is, in the recent cycle debugging, wherein the number of the previous cycle debugging exceeds the preset times threshold, each time the control instruction is issued to the controlled device according to the interval time, it is detected that there are only the number of execution instructions or the number of updates of the controlled device status and the number of execution instructions or the number of updates of the controlled device status is the number of issuances, or it is detected that there are both the number of execution instructions and the number of updates of the controlled device status and the number of execution instructions and the number of updates of the controlled device status are the number of issuances, the interval time is reduced according to the preset time rule. Detection is performed to detect whether the interval time has been continuously reduced according to the preset time rule, so as to determine whether the reduction amplitude of the current interval time is too small, resulting in the situation of continuous reduction of the interval time before. When the interval time has been continuously reduced according to the preset time rule and exceeds the preset number threshold, it means that the reduction amplitude of the current interval time is too small. In order to search for a smaller synchronization time, the amplitude of each subsequent interval time reduction is increased to increase the search speed for the synchronization time. The preset time rule can reduce the interval time by a preset amplitude each time. The preset number threshold is pre-set, for example, it can be 5 times.

[0104] In one embodiment, the step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes:

[0105] Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule;

[0106] Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold;

[0107] When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent increase of the interval time is reduced.

[0108] In this embodiment, the alternation number exceeds the preset number threshold value, which means that in the continuous adjustment of the interval time exceeding the preset number threshold value, the two adjacent adjustments are to increase the interval time and decrease the interval time, that is, in the most recent cycle debugging, the number of the cycle debugging exceeds the preset number threshold value, and the control instruction is issued to the controlled device each time according to the interval time. In the two adjacent debuggings, when it is detected that at least one of the number of execution instructions and the number of updates of the controlled device status is not the number of issuances, the interval time is reduced according to the preset time rule, and the other time it is detected that only the number of execution instructions or the number of updates of the controlled device status exists and the number of execution instructions or the number of updates of the controlled device status exists is the number of issuances, or it is detected that the number of execution instructions and the number of updates of the controlled device status exist at the same time and the number of execution instructions and the number of updates of the controlled device status are both the number of issuances, the interval time is increased according to the preset time extension rule. Detecting whether there is a situation where the interval time has been alternately increased and decreased according to the preset time extension rule and the preset time rule is used to determine whether the increase in the current interval time is too large, resulting in excessive adjustment of the interval time, and the situation where the two adjustment methods of increasing the interval time and decreasing the interval time are alternating. When the situation where the interval time has been increased and decreased alternately according to the preset time extension rule and according to the preset time rule exceeds the preset number threshold, it means that the increase in the current interval time is too large. After several times of alternating adjustments to increase and decrease the interval time, it is still unable to approach the synchronization time. In order to facilitate the search for the synchronization time, the amplitude of each subsequent interval time increase is reduced so that the interval time approaches the synchronization time.

[0109] In one embodiment, the step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes:

[0110] Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule;

[0111] Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold;

[0112] When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent decrease of the interval time is reduced.

[0113] In this embodiment, it is detected whether there is a situation where the interval time has been alternately increased and decreased according to the preset time extension rule and the preset time rule, so as to determine whether the increase amplitude of the current interval time is too large, resulting in excessive adjustment of the interval time, and the situation where the two adjustment methods of increasing the interval time and decreasing the interval time are alternated. When there is a situation where the interval time has been alternately increased and decreased according to the preset time extension rule and the preset time rule, and the number of alternations exceeds the preset number threshold, it means that the current interval time reduction amplitude is too large, and after several times of alternating adjustment of increasing the interval time and decreasing the interval time, it still cannot approach the synchronization time. In order to facilitate the search for the synchronization time, the amplitude of each subsequent interval time reduction is reduced, so that the interval time approaches the synchronization time. The preset number threshold is a pre-set value, which refers to the number of times that the interval time is alternately increased and decreased in the continuous adjustment of the interval time to reach the change amplitude that needs to adjust the interval time.

[0114] Embodiment 2

[0115] See also Figure 2 In this embodiment, it describes how a simple control in a home host system is sent to a device end and then synchronized from the device end to a terminal. Based on the above embodiment, this embodiment provides an optimization method for updating device status, including:

[0116] S101 represents the issuance of control instructions. In the simplified process, it is shown that the host directly issues the instructions. In the actual environment, the control instructions can be issued directly from the device side, APP client, or local display terminal.

[0117] In this embodiment, the instructions issued locally are divided into four types: the first type is instructions issued through a WiFi network, the second type is instructions issued through a Bluetooth network, the third type is instructions issued through a wired network, and the fourth type is instructions issued through a WiFi+Bluetooth network. In a WiFi network, after the control instruction is issued, it is forwarded to the host through a local router, and then forwarded to the device end by the host through a local router. In a Bluetooth network, the control instruction can be sent to the device end in two ways. One is to send it directly from the instruction issuing end to the device end without forwarding it by the host; the other is that after the instruction is issued, it is received by the host Bluetooth and then sent to the device end by the host Bluetooth. In a wired network, the control instruction is sent directly to the host through a wired network, and then forwarded to the device end by the host. The wired network here includes devices and networks connected to the host through an Ethernet cable, and devices and networks connected to the host through a twisted pair cable. In a WiFi+Bluetooth network, the device end and the host are connected through a WiFi network, and the control instruction can be issued through a WiFi network or a Bluetooth network. In addition to local control instructions, this system also supports cloud control instructions, and like conventional smart home networks, control instructions are issued from terminals such as mobile phone APPs. Control commands are used to control host sub-devices. Different devices have different control commands, and different device control commands have different communication protocols. In the communication protocol, different functional modes correspond to different fields. After successful control, the corresponding mode's modified information will be returned, and if the control fails, the original information will be returned.

[0118] S102 represents the device end that receives the control command. The device end includes various household appliances, smart switches, smart sockets, central air conditioners, terminals with relays, etc.

[0119] S103 represents the status information returned by the device to the home host after the control command is successfully issued and distributed to each terminal by the home host. After being successfully controlled, all types of devices will return a control success status information to the host. The way of returning the status information is generally consistent with its receiving method. The status refers to whether the device is turned on, off, or in a common function of the smart home device. The changes in these functions are generally described as device status changes. Different devices support different settings and have different statuses.

[0120] S104 represents the terminal device. When the home host pushes the device status change message to the terminal, the terminal immediately changes the device status information. The terminal here includes the device wire controller, smart central control screen, mobile phone APP, etc.

[0121] In this embodiment, in the local area network system where the home host is located, an initial continuous control time interval value T is first determined according to the system characteristics, and then control instructions are cyclically issued at this time interval. For the sake of simplicity and clarity, the flow chart only describes the control instructions being issued directly from the host, and in fact, the device status will also be changed from the terminal and device end.

[0122] See also Figure 3 In this embodiment, the initial time interval T is too small, the continuous issuance of instructions is too fast, and the device response speed is affected by the device's own performance and cannot respond in time. For example, the device only responds once after two consecutive controls are issued. At this time, the time interval T should be increased. When the device responds normally, the host distributes the data packet returned by the device to all terminal devices in the system. After the data packet distributed by the home host reaches the terminal, the status of the devices in all terminals is updated in time before the next state change. At this time, it is considered that the initial time interval T is too large and the continuous issuance of instructions is too slow. The control time interval is reduced. After the data packet distributed by the home host reaches the terminal, the status of the devices in all terminals is only partially or completely not updated before the next state change. At this time, it is considered that the initial time interval T is too small and the continuous issuance of instructions is too fast. The control time interval is increased, and the number of terminals that are not synchronized normally W and the control time interval tx at this time are recorded. Try to enter different initial time intervals T, and finally a set of results Tn close to the device status synchronization time will be obtained. Whether the control is successful is determined by the device itself. After the device control is successful, the corresponding status information will be replied. In the communication protocol, different functional modes correspond to different fields. After successful control, the modified information of the corresponding mode will be replied, and the original information will be replied if the control fails. Because the home host itself is equivalent to a data processing center, the update of the device status needs to be processed by the host and then the display terminal (mobile phone APP, smart central control screen, etc.) will remotely display the working status of the device, so this is equivalent to pushing the device status information to the display terminal. If the device detects that it has not been successfully controlled and needs to extend the cycle time, the corresponding device needs to feedback to the host to extend the interval time (the original information will be replied if the control fails). If the device detects that it has been successfully controlled, it will feedback the updated status to the host.

[0123] See also Figure 4 In this embodiment, when the interval time is shortened or extended five times in succession, it means that the amplitude of the modification of the time interval is slightly small, and it is necessary to appropriately increase the modification amplitude and reduce the number of instructions issued.

[0124] In this embodiment, when the interval time is shortened or extended more than 5 times, it means that the modification amplitude of the interval time is slightly large or the time interval at this time is more appropriate, and the modification amplitude needs to be appropriately reduced in order to obtain a more accurate value or to verify whether an accurate value has been obtained.

[0125] In this embodiment, the optimization method for updating the device status proposes a test method for state synchronization between a smart single-product device and multiple terminals based on the home host - differential scaling control technology. The differential scaling control technology is improved from the differential scaling method. The differential scaling method is a method commonly used in dealing with mathematical problems, especially series and inequality problems. It combines the principles of differential thinking and scaling. First of all, the differential thinking is particularly common in series problems. This method focuses on the difference between two consecutive terms in the series. By analyzing these differences, certain properties of the series can be derived. Secondly, the scaling law is an effective means to deal with inequality problems. The core idea is to find an intermediate quantity by enlarging or reducing one side of the inequality, and then prove the original inequality. The application of the scaling method needs to be based on the transitivity of the inequality, that is, if A>C and C>B, then it can be inferred that A>B. In the long-term testing process, we found that the LAN control based on the home host has a certain degree of similarity with this mathematical method in some aspects, so we took this as a starting point for in-depth exploration.

[0126] In this embodiment, the optimization method for device status update is used to: (1) find out the problem of unstable communication between the host and the sub-device under complex LAN communication conditions. The whole house smart network contains many sections (applets, APPs, home hosts, smart central control, small household appliances, central air conditioning equipment, routers, Bluetooth devices, etc.). Once a problem occurs, if the cause of the problem cannot be quickly analyzed, then the sections can only be analyzed one by one until the cause of the problem is found. Since the team responsible for each section is different, it takes time to troubleshoot the problem. Therefore, if the problem can be quickly located, it will be of great help to the optimization of the system. (2) Find out the problem of state synchronization between multiple display terminals under complex LAN communication conditions of the home host. By adjusting the control instruction issuance interval and the response mode of the smart single product, the state synchronization problem of the host and sub-device in the complex LAN environment is pointed out, and the time required for information synchronization between devices in the LAN network environment is analyzed, and efficient development and testing are carried out to quickly locate the problem.

[0127] In this embodiment, the control and state synchronization of the home host system in the local area network has certain regularity. By studying this regularity, this differential scaling control technology is innovatively proposed based on the differential scaling method. Its core is that when the control is continuously issued, the different time difference between two controls will significantly affect the control result. Through this technology, it is possible to accurately analyze what results different control time differences will bring, quickly find the time required for state synchronization between devices, analyze the cause of control failure, and efficiently perform reliability testing.

[0128] In this embodiment, the time t required for state synchronization between devices can be used to quickly analyze the cause of state asynchrony. Figure 5This is a common abnormal state. When the control command is issued normally, terminal A synchronizes the device status normally, but terminal B still fails to synchronize the device status information after time t. Based on this phenomenon, we can initially draw the following conclusions: (1) the device actually responds to the control normally; (2) terminal A synchronizes the device status normally; (3) terminal B fails to synchronize the device status normally. Based on this, it can be judged that terminal B is abnormal.

[0129] In this embodiment, the control and state synchronization of the home host system in the local area network has certain regularity. By studying this regularity, this differential scaling control technology is innovatively proposed based on the differential scaling method. Its core is that when the control is continuously issued, the different time difference between two controls will significantly affect the control result. Through this technology, it is possible to accurately analyze what results different control time differences will bring, quickly find the time required for state synchronization between devices, analyze the cause of control failure, and efficiently perform reliability testing.

[0130] In this embodiment, according to the environmental characteristics of the local area network system where the home host is located, an initial continuous control time interval value T can be preliminarily determined. The value of this "T" is generally positively correlated with the complexity of the system. For example, when the number of terminals in the environment is large, the number of sub-devices is large, and the distance between the device and the host is far, the complexity is considered to be high. After determining the initial T value, control instructions are cyclically issued at this time interval, and the T value is regarded as an equidistant interval. The issuance of control instructions and the response results are regarded as items of a series. Different T values ​​will have different results.

[0131] The initial time interval T is too small, the commands are sent too quickly, and the device response speed is affected by the device's own performance and cannot respond in time. For example, if the control is sent twice in a row, the device only responds once. In this case, the time interval T should be increased. If the control is sent twice in a row, the device only responds once. The interval T is too small and the device cannot respond in time, resulting in abnormal synchronization of the device.

[0132] When the device responds normally, the host distributes the data packets returned by the device to all terminal devices in the system. Each time the terminal device receives information about the state change, it changes the state of the device. If not, it is considered that the synchronization time required by the terminal needs to be extended. After the control instructions are sent continuously and the control is successful, the ideal condition is to achieve that the terminal will synchronize the state information changes every time. The normal response is the situation where "the state of the devices in all terminals is updated in time before the next state change". Considering that the user may have continuous control, the state update is triggered by continuous control. Update refers to a new round of state changes of the device. .

[0133] After the data packet distributed by the home host reaches the terminal, the status of the devices in all terminals is updated in time before the next status change, and this time interval is recorded and recorded as ta. At this time, it is considered that the current time interval T is too large, and the continuous issuance of instructions is too slow, so the control time interval is reduced. At this time, ta may also be the time required for synchronization to all terminals. In order to verify this result, the control time interval also needs to be reduced.

[0134] After the data packets distributed by the home host arrive at the terminal, the status of the devices in all terminals is partially or completely not updated before the next status change. At this time, it is considered that the current time interval T is too small, and the continuous instructions are sent too quickly, so the control time interval is increased. At the same time, the number of terminals that are not synchronized normally W is recorded. When the value of W is 1, the control time interval tx at this time is recorded.

[0135] Set the time for synchronizing the device status to all terminals to ty, try entering different initial time intervals T, and finally obtain a set of results Tn that are close to the device status synchronization time ty.

[0136] After each m rounds of instructions are issued, the following results are obtained:

[0137] {ta1, ta2, ta3,...}, {tx1, tx2, tx3,...}.

[0138] Since the value of ta represents "the time interval in which the status of all devices in the terminal is updated in time before the next status change", we only need to take the minimum value of the sampled data, that is:

[0139] ta=min{ta1, ta2, ta3,...};

[0140] Since the value of tx represents the "time interval during which the status of the devices in all terminals is not updated", we only need to take the maximum value of the sampled data, that is:

[0141] tx=max{tx1, tx2, tx3,...};

[0142] According to the obtained tx and ta, the value range of ty can be determined as follows:

[0143] [tx,ta];

[0144] When the number of rounds is large, the interval is already very small. For the convenience of calculation, we take the median of the interval as the value of ty, that is:

[0145]

[0146] Assuming this is repeated p times, we get:

[0147] Tn={ty1, ty2, ty3,..., typ};

[0148] Tn is the result obtained after using different initial cycle intervals T, and the mode thereof is taken as the time required for the state of the device to be synchronized to all terminals after control.

[0149] See also Figure 4 , when the interval time is shortened or extended for 5 times in a row, it means that the amplitude of the modified time interval is slightly small, and the modification amplitude needs to be appropriately increased to reduce the number of instruction issuances. When the interval time is shortened or extended for more than 5 times, it means that the amplitude of the modified time interval is slightly large or the time interval at this time is more appropriate, and the modification amplitude needs to be appropriately reduced in order to obtain a more accurate value or verify whether an accurate value has been obtained. In summary, we have obtained a relatively accurate time t required for state synchronization between devices. Next, we can use the obtained data to quickly estimate the cause of the abnormality when the terminal device displays an abnormality. In an actual smart home network, the delay of communication between devices is often very low, generally in the millisecond level, and the differences between different devices are large due to different communication protocols. This is just an error-proofing mechanism to avoid the problem of inaccurate results. The error-proofing mechanism is, for example: the time t has been obtained, and then the interval time is shortened and extended alternately, and only one device is out of sync each time it is shortened. According to the process, 1 / 2 (t+t minus a modification amplitude) is the result I am looking for. However, the following situation may actually occur: Assuming t is equal to 0.5, the modification amplitude is 0.1 each time, and the actual normal synchronization time is around 0.48, then 1 / 2(t+t-0.1) is equal to 0.45, which has a certain error. Reducing the modification amplitude to 0.05, the value obtained is 0.475, which will be closer to the actual value.

[0150] For example, Figure 5 This example shows a common abnormal state. When the control command is issued normally, terminal A synchronizes the device status normally, but terminal B fails to synchronize the device status information after time t. Based on this phenomenon, we can draw the following preliminary conclusions:

[0151] 1. The device actually responds to the control normally;

[0152] 2. Terminal A synchronizes the device status normally;

[0153] 3. Terminal B fails to return to normal equipment status;

[0154] Because terminal B did not synchronize the device status normally within time t, where t is the time interval obtained by the previous optimization calculation, it can be determined that terminal B is abnormal. For common status synchronization errors, comparing t values ​​can well determine the error type. Compare the t value with the time when the display terminal synchronizes the device status during the actual control process. The time when the display terminal synchronizes the device status during the actual control process is the time when the control is sent to the state synchronization to each display terminal after the control is successful. It can be obtained based on the difference between the sending time and the device status synchronization time. Tools such as timers will be used during the test. Compare the t value with the time when the display terminal synchronizes the device status during the actual control process. Generally speaking, the time of synchronizing the device status for the first time after the control is sent (because even if it is not synchronized this time, the subsequent host will regularly push the real-time status information of the device to the display terminal, so that the terminal with normal network connection will not be always out of synchronization) can better reflect the working status of the display terminal device. If a terminal device times out and fails to synchronize the device status, it means that an occasional program bug has occurred in this terminal; if synchronization timeouts occur on multiple terminals, the cause of the problem is that the host fails to push messages in a timely manner, which is a host program bug; if some display terminals synchronize normally for a while and then time out for synchronization, the cause of the problem is mostly abnormal network connection; similarly, for some functional services that require support from the back-end server, if there is a synchronization timeout, there will also be such problems, such as setting a scheduled power on / off for the device, but the response times out.

[0155] In this embodiment, in order to better count whether the device status information is synchronized normally, generally when counting the status of the device in the terminal, only the number of state changes is counted, and after comparing with the control number, if it is inconsistent, it is considered that there is an abnormality. Therefore, when there are multiple terminals, it is only necessary to compare the number of changes to determine whether they are synchronized, and there is no need to constantly compare the device status information displayed in the terminal.

[0156] In this embodiment, if the device control fails, the control information cannot be sent to the device, and the device maintains its original state. On some terminal devices, if there is a fake swipe, the device display state will be directly changed, and this changed state is different from the actual state of the device. Due to the existence of a timing synchronization mechanism, the actual state of the device is prevented from being inconsistent with the display terminal, and the actual state of the device will be resynchronized to the terminal device.

[0157] In this embodiment, the host is equivalent to the "brain" and has the highest priority, so as long as there is a problem with the host, the entire system will actually lose its meaning.

[0158] The host and a device are abnormal at the same time. The host alone is abnormal. The following methods can be used to distinguish:

[0159] (1) The sub-device that communicates with the host via Bluetooth is abnormal. If the Bluetooth device can be controlled by other sub-devices in the system that support sending Bluetooth control commands, it proves that the Bluetooth device is normal. If not, it proves that the Bluetooth device is abnormal. For example, curtains are generally used with Bluetooth remote controls.

[0160] (2) Devices that communicate with the host through 485 or CAN. Such devices are generally equipped with a wired controller, which can be used to control the device directly.

[0161] (3) WiFi devices that communicate with the host via UDP / TCP. Generally, such devices can communicate with the cloud directly through a router. When the host is abnormal, the device can be controlled in the mobile phone APP to check whether the device is working properly.

[0162] It is common for problems to occur between a host and a certain device. Generally, the host problem is checked first, and then the sub-device problem is solved.

[0163] In this embodiment, there are many ways to obtain the device status displayed in the device or terminal. Generally, the method we often use is to print the operation log of the device or terminal, count the number of state changes, and then judge whether it is synchronized by comparing the number of control times. There is no direct communication between terminal devices. All information synchronization between them depends on the information pushed to them by the host. The successful update of the terminal device status does not require feedback to the host. After the terminal device and the host establish a connection, the sub-device status information sent to the terminal device by the host is a one-way communication. Even if it is accidentally not synchronized this time, there will be a timed synchronization mechanism. If you reply whether the control is successful every time, judge that it is not synchronized and resend, it will consume the resources of the host. For example, if the terminal fails and cannot be synchronized, but keeps replying, the host will keep resending, which may cause the system to crash.

[0164] Embodiment 3

[0165] On the basis of the above embodiments, this embodiment provides a method for displaying device status, which is applied to a terminal device, and adopts any of the above device status update optimization methods, obtains each of the interval times that enables the terminal device to complete the update of the controlled device status to form a first time set, and obtains each of the interval times that causes the terminal device to fail to complete the update of the controlled device status to form a second time set; determines a lock time based on the interval times in the first time set and the second time set, and the lock time is the duration of temporarily stopping the update of the controlled device status;

[0166] From the time when the intelligent control device sends the controlled device status change information, the status of the controlled device is not updated during the locking time. At the end of the locking time, the status of the controlled device is updated according to the received status of the controlled device sent by the intelligent control device.

[0167] In this embodiment, the controlled device successfully executes the user instruction, and the changed working state is the real state, that is, the state of the controlled device sent by the intelligent control device after completing the update of the state of the controlled device. During the lock time, each terminal device can usually receive the real state fed back by each controlled device. Therefore, from the time when the intelligent control device sends the state change information, during the lock time, even if the real state sent by the intelligent control device is received, the displayed working state will not be changed to the real state. Instead, at the end of the lock time, the latest working state of the controlled device is updated according to the real state sent by the intelligent control device.

[0168] In this embodiment, the terminal device receives the user instruction sent by the intelligent control device. The user instruction is an instruction issued by the user to control the controlled device, which is sent by one of the terminal devices to the intelligent control device. After receiving the user instruction, the intelligent control device sends the user instruction to the controlled device to be controlled and each terminal device.

[0169] In this embodiment, from the time when the intelligent control device sends the status change information, the terminal device does not update the record of the working status of the controlled device within the locking time. The terminal device can keep displaying the most recent historical working status. The terminal device can also display the initial state according to the user instruction instead of updating the record of the working status of the controlled device. Among them, the user instruction carries the initial state, and the locking time is less than the minimum value in the first time set and greater than the maximum value in the second time set. When the terminal device receives the user instruction, it parses the user instruction and obtains the required adjustment of the controlled device to be controlled to the working state as the initial state. In order to quickly feedback to the user, even if the real state feedback from the controlled device is not received, the working state of the controlled device is first displayed as the initial state. And within the locking time from the time when the user instruction is sent, the initial state is maintained, and even if the real state is received within the locking time, the initial state is still displayed. User commands may control more than one controlled device. In order to reduce the number of jumps in the display screen of the terminal device, during the locking time, even if the actual status received is different from the initial status, it will not be updated until the locking time ends. Usually, the actual status of each controlled device can be received. At the end of the locking time, it will be updated uniformly to avoid the problem of frequent display screen jumps caused by updating one by one.

[0170] In this embodiment, the first time set is a set of interval times that enable the terminal device to complete the update, and the second time set is a set of interval times that prevent the terminal device from completing the update. The interval time in the first time set is greater than the synchronization time required for each smart terminal to successfully display each smart device, and the interval time in the second time set is less than the synchronization time required for each smart terminal to successfully display each smart device. The synchronization time required for each smart terminal to successfully display each smart device is between the minimum value in the first time set and greater than the maximum value in the second time set. Therefore, a value is selected between the minimum value in the first time set and greater than the maximum value in the second time set as the locking time, and a shortest time that enables each smart terminal to successfully display each smart device is determined to lock the initial state.

[0171] In one embodiment, at the end of the locking time, the initial state different from the real state can be updated to the real state according to the real state sent by the intelligent control device, wherein the real state is generated by the controlled device in response to the user instruction. In order to reduce the number of jumps of the display screen of the terminal device, at the end of the locking time, the real state sent by the intelligent control device is compared with the initial state. When the real state is the same as the initial state, it means that the controlled device has successfully responded to the user instruction, and there is no need to update the working state of the controlled device and refresh the display screen of the terminal device. When the real state is different from the initial state, the working state of the controlled device is updated according to the real state.

[0172] In this embodiment, when the intelligent control device receives a user instruction carrying an initial state, the user instruction is sent to the controlled device and each terminal device respectively. Even if the intelligent control device does not receive the real state generated by the controlled device in response to the user instruction, the user instruction is sent to each terminal device. Each terminal device parses the user instruction to determine the required adjustment of the controlled device to the working state, that is, the initial state, and displays the initial state in time to feedback the user. When the intelligent control device receives the real state sent by the controlled device, the real state is sent to each terminal device. When the real state and the initial state are the same, the initial state can correctly reflect the current real working state of the controlled device, and there is no need to update or refresh the display screen. When the real state and the initial state are different, the initial state cannot reflect the current real working state of the controlled device, so it is updated according to the real state to provide the user with the real state of the controlled device.

[0173] In one embodiment, determining the locking time based on the interval time in the first time set and the second time set includes:

[0174] The minimum interval time in the first time set and the maximum interval time in the second time set are selected, an average value of the minimum interval time and the maximum interval time is determined, and the average value is determined as the locking time.

[0175] In this embodiment, in order to select a better locking time, the minimum interval time in the first time set and the maximum interval time in the second time set are selected, the average value between the minimum interval time and the maximum interval time is calculated, and the impact of the minimum interval time in the first time set and the maximum interval time in the second time set on the selection of synchronization time is balanced, and the average value is used as the locking time.

[0176] In one embodiment, determining the locking time based on the interval time in the first time set and the second time set includes:

[0177] Acquire each of the first time sets and each of the second time sets in different test groups; wherein the values ​​of the first interval time in different test groups are different;

[0178] Select the minimum interval time in the first time set and the maximum interval time in the second time set in each test group, determine the average value between the minimum interval time and the maximum interval time, and use the average value as the time to be optimized;

[0179] The occurrence frequencies of the values ​​of the time to be optimized in different test groups are counted, and the value of the time to be optimized with the highest occurrence frequency is determined as the locking time.

[0180] In this embodiment, in order to obtain more accurate synchronization time, several test groups are tested. Different test groups have different values ​​for the first interval time. Each test group is independent of each other in the subsequent adjustment of the interval time. According to the detection result of the terminal device updating the working state of the controlled device, the size of the next round of interval time in the test group is adjusted. After each test group finishes the test, each test group can obtain the interval time that enables the terminal device to complete the update, that is, the first time set, and the interval time that does not complete the update, that is, the second time set. The minimum interval time in the first time set and the maximum interval time in the second time set in the same test group are obtained, and the average value between the minimum interval time and the maximum interval time are calculated to obtain the time to be optimized of the test group. Each test group has a time to be optimized. In order to select a better locking time, the frequency of the values ​​of each time to be optimized is counted, and the value of the time to be optimized with the largest frequency is obtained to obtain the locking time, which is closer to the real synchronization time.

[0181] See also Figure 6In this embodiment, the basic logic of device status fake refresh is shown. When controlling a device, the update of the terminal device status is usually not updated until the device responds (such as Figure 2 For some complex control scenarios, it may take some time for the display terminal to update the device status after waiting for the device to reply. To this end, we have implemented a "fake refresh" process, that is, the device status update does not wait for the device to reply. At the moment when the device control command reaches the host, the host pushes the status change information to the device and the display terminal at the same time, achieving a "fast" response effect.

[0182] However, the implementation of "fake brushing" is not easy. For the display terminal, the device status will change once each packet of status information is received, and the status information is pushed uniformly by the home host. When the actual status information of the device is inconsistent with the display terminal, the actual status of the device shall prevail by default. At this time, the device status information queried by the host will be resent to the display terminal, that is, the device will feedback the updated actual status to the host, and the host will send the actual status to the display terminal. The final result is that the status information of the device in the display terminal changes back and forth several times in a short period of time, affecting actual use.

[0183] In order to solve the problem of device status jumping back and forth, after "fake swiping", the status information of the device in the display terminal needs to be "locked" for a certain period of time to prevent its status from changing back and forth in a short period of time. The locking time is not irregular. If the locking time is too long, it will affect the time of the next state step update after control. The state update time may be very long during continuous control; if the locking time is too short, it will not achieve the expected purpose and cannot solve the jumping problem. After changing the locking time to t, the demand can be perfectly met, which does not affect the function realization or the user experience.

[0184] In this embodiment, although fake brushing can synchronize quickly, what is synchronized is not necessarily the real state of the device. For example, a cooling command is issued to the air conditioner, and the cooling state is fed back to the terminal at this time, but the air conditioner fails to respond and is still in standby state. In this case, the state displayed by the terminal is inconsistent with the real state. During the locking time, after the terminal receives the real state information, when the real state is the same as the issued state, there is no need to switch; when the real state is different from the issued state, it will not switch within the locking time, and will switch after the locking time is over. The purpose of doing this is to reduce one switch when the real state is the same as the issued state. Lock the "fake" state for a certain period of time. In order to optimize the user experience, if the locking time is too long or too short, the device status refresh will be abnormal. Using an appropriate locking time is the key to optimizing the experience.

[0185] In this embodiment, when actually experiencing it, there will be a noticeable lag when waiting for device feedback. Although the device responds very quickly, the returned status and the terminal device update will be much slower, especially when controlling many devices at the same time, the terminal device needs to update the status of each device one by one. The host sends control instructions to the device. When the device is in normal use, it is controlled by the user on the APP or smart central control, which is equivalent to a path from the user to the host.

[0186] In this embodiment, after the fake swipe can control the device, the display terminal immediately updates the status, and the synchronization is fast. The host will regularly push the latest sub-device status information to the display terminal so that the display terminal knows whether the displayed status is consistent with the actual status of the device. When locked, even if the real status of the device is received, it will not change. When the fake swipe is used, the device status is locked, and the locking time is set to the time required for the status to be synchronized to all terminals after the device is controlled. After this time, the lock ends.

[0187] Embodiment 4

[0188] On the basis of the above embodiments, this embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.

[0189] In some implementations of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0190] In some implementations of this embodiment, a computer program product is provided, including a computer program / instructions, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0191] The processor may include, but is not limited to, one or more processors or microprocessors. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the method in the above embodiments.

[0192] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the computer-readable storage medium may include but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray disc, etc.).

[0193] The computer-readable storage medium may also store at least one computer executable program / instruction, which may be, for example, a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.

[0194] In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.), etc.

[0195] The processor may communicate with external devices via an I / O bus via a wired or wireless network.

[0196] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0197] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0198] It should be noted that in the present disclosure, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or 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 device. In the absence of further restrictions, an element limited by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0199] Although the embodiments disclosed in the present disclosure are as above, the above contents are only embodiments adopted for facilitating the understanding of the present disclosure and are not intended to limit the present disclosure. Any technician in the technical field to which the present disclosure belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present disclosure, but the scope of patent protection of the present disclosure shall still be subject to the scope defined in the attached claims.

Claims

1. A method for optimizing device status update, characterized in that: Applied to an intelligent control device, wherein the intelligent control device is connected to a controlled device and a terminal device, in response to a control instruction issued by the intelligent control device or the terminal device, the controlled device executes the control instruction to change the state, and the terminal device updates the state of the controlled device; the method comprises: Get the interval time for sending control instructions to the controlled device; Detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, and / or detecting whether the number of times the state of the controlled device is updated by the terminal device is equal to the number of issuance of the control instruction; Adjust the interval time for sending control instructions to the controlled device according to the detection results.

2. The optimization method according to claim 1, characterized in that: The step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instructions, and adjusting the interval time of issuing the control instructions to the controlled device according to the detection result, comprises: When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, the interval time is reduced according to a preset time rule; When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule.

3. The optimization method according to claim 1, characterized in that: The step of detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, and adjusting the interval time of issuing the control instruction to the controlled device according to the detection result includes: When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule; When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, the interval time is increased according to a preset time rule.

4. The optimization method according to claim 1, characterized in that: The step of detecting whether the number of execution instructions of the controlled device is equal to the number of issuance of the control instructions, and detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of issuance of the control instructions, and adjusting the interval time of issuing the control instructions to the controlled device according to the detection results, comprises: Check whether the number of execution instructions of the controlled device is equal to the number of control instructions issued; When it is detected that the number of execution instructions of the controlled device is not equal to the number of issuance of the control instruction, the interval time is increased according to a preset time rule until the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction; When it is detected that the number of execution instructions of the controlled device is equal to the number of issuance of the control instruction, detecting whether the number of times the terminal device updates the state of the controlled device is equal to the number of issuance of the control instruction; When it is detected that the number of times the terminal device updates the state of the controlled device is not equal to the number of times the control instruction is issued, increasing the interval time according to a preset time rule; When it is detected that the number of times the terminal device updates the state of the controlled device is equal to the number of times the control instruction is issued, the interval time is reduced according to a preset time rule.

5. The optimization method according to any one of claims 1 to 4, characterized in that: The step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes: Calculating the number of times the interval time has been continuously increased according to a preset time extension rule; Determine whether the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold; When the number of times the interval time has been continuously increased according to the preset time extension rule exceeds a preset number threshold, the magnitude of each subsequent increase in the interval time is increased.

6. The optimization method according to any one of claims 1 to 4, characterized in that: The step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes: Calculating the number of times the interval time has been continuously reduced according to a preset time rule; Determine whether the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold; When the number of times the interval time has been continuously reduced according to the preset time rule exceeds a preset number threshold, the magnitude of each subsequent reduction in the interval time is increased.

7. The optimization method according to any one of claims 1 to 4, characterized in that: The step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes: Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule; Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold; When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent increase of the interval time is reduced.

8. The optimization method according to any one of claims 1 to 4, characterized in that: The step of adjusting the interval time of sending control instructions to the controlled device according to the detection result includes: Calculating the number of alternations of increasing and decreasing the interval time according to the preset time extension rule and according to the preset time rule; Determine whether the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold; When the number of alternating increases and decreases of the interval time according to the preset time extension rule and the preset time rule exceeds a preset number threshold, the magnitude of each subsequent decrease of the interval time is reduced.

9. A method for displaying device status, characterized in that: Applied to terminal equipment, including: Adopting the device status update optimization method described in any one of claims 1 to 8, obtaining each of the interval times that enables the terminal device to complete the update of the controlled device status to form a first time set, and obtaining each of the interval times that causes the terminal device to fail to complete the update of the controlled device status to form a second time set; determining a lock time based on the interval times in the first time set and the second time set, the lock time being the duration of temporarily stopping the update of the controlled device status; From the time when the intelligent control device sends the controlled device status change information, the status of the controlled device is not updated during the locking time. At the end of the locking time, the status of the controlled device is updated according to the received status of the controlled device sent by the intelligent control device.

10. The display method according to claim 9, characterized in that: The determining the locking time based on the interval time in the first time set and the second time set comprises: The minimum interval time in the first time set and the maximum interval time in the second time set are selected, an average value of the minimum interval time and the maximum interval time is determined, and the average value is determined as the locking time.

11. The display method according to claim 9, characterized in that: The determining the locking time based on the interval time in the first time set and the second time set comprises: Acquire each of the first time sets and each of the second time sets in different test groups; wherein the values ​​of the first interval time in different test groups are different; Selecting the minimum interval time in the first time set and the maximum interval time in the second time set in each test group, determining the average value of the minimum interval time and the maximum interval time, and using the average value as the time to be optimized; The occurrence frequencies of the values ​​of the time to be optimized of different test groups are counted, and the value of the time to be optimized with the highest occurrence frequency is determined as the locking time.

12. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of any one of claims 1 to 8 or 9 to 11.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 8 or 9 to 11 are implemented.