Interface intelligent control method and device, equipment, storage medium and program product

By filtering target control operations to generate control commands carrying device attribute status, and marking the serial number as discarded after the controlled device responds successfully, the problem of synchronizing the status of the device control terminal and the controlled device is solved, and timely feedback from the control interface and optimization of storage space are achieved.

CN116300612BActive Publication Date: 2026-04-14SHENZHEN OURUIBO ELECTRONICS
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The time it takes for the controlled device to respond to a single control command causes the control interface of the device control terminal to lose synchronization with the device attribute status of the controlled device.

Method used

By filtering target control operations from multiple control operations, a control command carrying the target device's attribute status and serial number is generated. After the controlled device successfully responds, it is marked as obsolete in the local serial number pool, keeping the control interface synchronized.

Benefits of technology

Ensure timely feedback from the control interface to reduce the processing load on the controlled equipment and achieve synchronization of the status of the controlled equipment and the equipment control terminal interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116300612B_ABST
    Figure CN116300612B_ABST
Patent Text Reader

Abstract

The application relates to an interface intelligent control method and device, computer equipment, a storage medium and a program product. The method comprises the following steps: in response to a target control operation screened from multiple control operations triggered for a control interface, generating a target control command for a controlled device, the target control command carrying a target device attribute state and a first serial number; updating and displaying the control interface based on the target device attribute state; sending the target control command to the controlled device to instruct the controlled device to update a device attribute state according to the target device attribute state in the target control command; in the case that command response information reported by the controlled device for a successfully executed control command is received and the second serial number carried in the command response information is consistent with the first serial number newly cached in a serial number pool, the control interface updated and displayed based on the target device attribute state is kept unchanged. The method can keep the device attribute state of the controlled device and the control interface of the device control terminal synchronized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to an interface-based intelligent control method, device, equipment, storage medium, and program product. Background Technology

[0002] With the development of smart home technology, device control terminals with control interfaces have emerged. When a user receives a control operation triggered by the control interface, the device control terminal generates control commands to control the controlled device, and updates the display status of the control interface based on the device attribute status returned by the controlled device. Thus, the device attribute status of the controlled device can be synchronously displayed in the control interface of the device control terminal.

[0003] However, due to the time required for the controlled device to respond to a single control command, the controlled device often returns the device attribute status corresponding to the first control command only after the device control terminal has generated multiple control commands. This makes it impossible for the control interface of the device control terminal to keep synchronized with the device attribute status of the controlled device. Summary of the Invention

[0004] Therefore, it is necessary to provide an intelligent interface control method, device, computer equipment, computer-readable storage medium, and computer program product that can keep the device attribute status of the controlled device synchronized with the control interface of the device control terminal, in response to the above-mentioned technical problems.

[0005] Firstly, this application provides an intelligent interface control method, the method comprising:

[0006] When multiple control operations are received that are triggered by the control interface of the device control terminal, the target control operation is selected from the multiple control operations.

[0007] In response to the target control operation, a target control command is generated for the controlled device; the target control command carries the target device's attribute status and first serial number.

[0008] The control interface is updated and displayed based on the target device's attribute status, and the first serial number is cached in the local serial number pool.

[0009] Send a target control command to the controlled device to instruct the controlled device to update its device attribute status according to the target device attribute status in the target control command;

[0010] If the controlled device reports a command response message for a successfully executed control command, and the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool, then the serial number in the serial number pool is marked as obsolete, and the control interface displayed after the target device attribute status update remains unchanged.

[0011] In some embodiments, the step of selecting a target control operation from multiple control operations specifically includes:

[0012] From multiple control operations, the control operations that meet the preset time interval are selected to obtain the target control operation.

[0013] In some embodiments, the step of selecting a target control operation from multiple control operations specifically includes:

[0014] From multiple control operations, the last control operation within a preset time range is selected to obtain the target control operation.

[0015] In some embodiments, the method further includes:

[0016] If the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, then

[0017] Mark the second serial number and the serial numbers cached before the second serial number in the serial number pool as obsolete, and keep the control interface unchanged after updating the display based on the target device attribute status.

[0018] In some embodiments, the method further includes:

[0019] If the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is not the serial number carried in the control command generated by the device control terminal, then

[0020] Compare the generation time of the second serial number with the generation time of the latest cached first serial number;

[0021] If the generation time of the second serial number is later than the generation time of the first serial number, and the device attribute status carried in the command response information is different from the target device attribute status, then the control interface after updating and displaying based on the target device attribute status will be updated according to the device attribute status carried in the command response information.

[0022] In some embodiments, the method further includes:

[0023] If a control device reports a command response message for a failed control command, and the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool, then the control interface, which is updated based on the target device attribute status, is updated according to the device attribute status carried in the command response message.

[0024] Secondly, this application also provides an intelligent interface control device, the device comprising:

[0025] The generation module is used to filter the target control operation from multiple control operations triggered by the control interface of the device control terminal; in response to the target control operation, generate a target control command for the controlled device; the target control command carries the target device attribute status and the first serial number;

[0026] The update display module is used to update the display of the control interface based on the target device attribute status, and cache the first serial number in the local serial number pool;

[0027] The sending module is used to send target control commands to the controlled device to instruct the controlled device to update the device attribute status according to the target device attribute status in the target control command;

[0028] The marking module is used to mark the serial number in the serial number pool as obsolete when it receives a command response information from the controlled device for a successfully executed control command, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool. The module also keeps the control interface unchanged after the target device attribute status is updated.

[0029] In some embodiments, the generation module is further configured to filter control operations that satisfy a preset time interval from multiple control operations to obtain a target control operation.

[0030] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the above-described method.

[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.

[0032] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the above-described method.

[0033] The aforementioned intelligent interface control method, device, computer equipment, storage medium, and computer program product determine the target control operation from multiple control operations and generate a target control command and a first serial number carrying the target device attribute status based on the target control operation. The control interface is updated and displayed based on the target device attribute status, ensuring timely feedback during control operations. When the controlled device successfully executes the control command and returns command response information, if the first serial number cached in the local serial number pool matches the second serial number carried in the command response information (i.e., the successfully executed control command is the latest control command generated by the device control terminal, and the command response information is the response information corresponding to the latest generated control command), it indicates that the device attribute status displayed on the control interface is consistent with the device attribute status of the controlled device. Therefore, the control interface updated based on the target device attribute status remains unchanged, thus keeping the device attribute status of the controlled device synchronized with the control interface of the device control terminal. Furthermore, the serial numbers cached in the serial number pool are promptly marked as obsolete, releasing storage space on the device control terminal. Attached Figure Description

[0034] Figure 1A This is an application environment diagram of the interface intelligent control method in one embodiment;

[0035] Figure 1B This is an application environment diagram of the interface intelligent control method in another embodiment;

[0036] Figure 2 This is a flowchart illustrating an interface intelligent control method in one embodiment;

[0037] Figure 3 This is a flowchart illustrating the interface intelligent control method in another embodiment;

[0038] Figure 4 This is a structural block diagram of an interface intelligent control device in one embodiment;

[0039] Figure 5 Here is a structural block diagram of the marking module in one embodiment;

[0040] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0041] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0042] The interface intelligent control method provided in this application embodiment can be applied to, for example, Figure 1A In the application environment shown, the device control terminal 101 receives user control operations on its control interface, generates control commands, caches the serial number carried in the control commands in its local serial number pool 1011, updates the control interface of the device control terminal 101 according to the device attribute status carried in the control commands, and sends the control commands to the cloud platform 102, which then forwards the control commands to the controlled device 103. Upon receiving the control commands, the controlled device 103 executes them and returns command response information to the cloud platform 102, which then forwards the command response information to the device control terminal 101. The device control terminal 101 then determines whether to update the control interface based on the command response information.

[0043] The device control terminal 101 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices with control interfaces.

[0044] Controlled devices refer to devices that can be controlled, including but not limited to various Internet of Things (IoT) devices such as smart lights, smart clothes racks, and smart curtains.

[0045] In some embodiments, IoT devices may be, but are not limited to, smart home devices, such as smart voice-controlled central control screen switches, smart appliances, smart toys, and smart wearable devices. Cloud platforms refer to various cloud computing platforms, including but not limited to IoT cloud platforms.

[0046] For example, when the device control terminal 101 receives multiple control operations triggered by its control interface, it selects a target control operation from these operations. In response to the target control operation, the device control terminal 101 generates a target control command for the controlled device 103; the target control command carries the target device attribute status and a first serial number. The device control terminal 101 updates the control interface based on the target device attribute status and caches the first serial number in a local serial number pool 1011. The device control terminal 101 sends the target control command to the controlled device 103 via the cloud platform 102, instructing the controlled device 103 to update its device attribute status according to the target device attribute status in the target control command. When the device control terminal 101 receives the command response information reported by the controlled device 103 for the successfully executed control command, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool 1011, the serial number in the serial number pool 1011 is marked as obsolete. The serial number can be, but is not limited to, the first serial number, and the control interface after the target device attribute status update remains unchanged.

[0047] The intelligent interface control method provided in this application embodiment can also be applied to, for example, Figure 1B In the application environment shown, the device control terminal 101 receives user control operations on its control interface, generates control commands, caches the serial number carried in the control commands in its local serial number pool 1011, updates the control interface based on the device attribute status carried in the control commands, and sends the control commands to the controlled device 103. Upon receiving the control commands, the controlled device 103 executes them and returns command response information to the device control terminal 101. The device control terminal 101 then determines whether to update the control interface based on the command response information.

[0048] For example, when the device control terminal 101 receives multiple control operations triggered by its control interface, it selects a target control operation from these operations. In response to the target control operation, the device control terminal 101 generates a target control command for the controlled device 103; the target control command carries the target device attribute status and a first serial number. The device control terminal 101 updates the control interface based on the target device attribute status and caches the first serial number in a local serial number pool 1011. The device control terminal 101 sends the target control command to the controlled device 103, instructing the controlled device 103 to update its device attribute status according to the target device attribute status in the target control command. When the device control terminal 101 receives the command response information reported by the controlled device 103 for the successfully executed control command, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool 1011, the serial number in the serial number pool 1011 is marked as obsolete. The serial number can be, but is not limited to, the first serial number, and the control interface after the target device attribute status update remains unchanged.

[0049] In some embodiments, such as Figure 2 As shown, an intelligent interface control method is provided. Taking the application of this method to the device control terminal 101 in Figure 1 as an example, the method includes the following steps:

[0050] Step 201: When multiple control operations are received from the control interface of the device control terminal, the target control operation is selected from the multiple control operations.

[0051] Among them, control operations are operations performed on the control interface to control the controlled device, and the type of control operation depends on the device type of the controlled device.

[0052] In some embodiments, the control operation includes at least one of click operation and swipe operation.

[0053] For example, if the controlled device type indicates that the controlled device is a color temperature lamp within the smart lighting category, the control operation is a sliding operation because color temperature needs to be continuously controlled. If the controlled device type indicates that the controlled device is an air conditioner, the control operation is a clicking operation because the temperature of an air conditioner does not need to be continuously controlled.

[0054] For example, when a user needs to control a controlled device, the user performs corresponding control operations on the control interface of the device control terminal according to the device type of the controlled device. When the device control terminal receives multiple control operations triggered by the control interface of the device control terminal, that is, multiple control operations are received in a short period of time, since the controlled device takes time to respond to the control commands, in order to avoid the controlled device returning the command response information corresponding to the previous control operation after multiple control operations, the target control operation is selected from the multiple control operations according to the preset filtering conditions.

[0055] In some embodiments, the preset filtering conditions include at least one of a preset time interval or a preset time range.

[0056] Step 202: In response to the target control operation, generate a target control command for the controlled device; the target control command carries the target device attribute status and the first serial number.

[0057] Control commands are used to control the device attribute status of the controlled device. Each control command carries the device attribute status and a serial number.

[0058] The target device attribute status is the device attribute status of the controlled device after the user performs a control operation. For ease of understanding, let's take an example: the controlled device is an air conditioner, and the target device attribute status carried in the target control command is "cooling 26 degrees." After receiving the target control command, the controlled device needs to change its own device attribute status to the target device attribute status, that is, after the user performs the control operation, the device attribute status of the controlled device is "cooling 26 degrees."

[0059] The serial number is a field used to uniquely identify a control command, consisting of the command's timestamp and type. The command type can be understood as representing the command's origin, i.e., the entity that generated it. Therefore, the first serial number is the field used to uniquely identify the target control command, carrying its timestamp and type.

[0060] In some embodiments, the serial number comprises: type (S / R) + timestamp. Here, S is an abbreviation for Self, indicating that the control command is generated by the controlled device, meaning the user can generate the control command by manually controlling the controlled device. R is an abbreviation for Remote, indicating that the control command is generated by a remote control device other than the controlled device, such as a device control terminal or other remote devices.

[0061] To facilitate understanding, let's illustrate the meaning of serial numbers with examples. For instance, serial number R1664334229000 indicates that the control command identified by this serial number was generated by a remote control device. Another example, S1664334229000, indicates that the control command identified by this serial number was generated by the user manually controlling the controlled device.

[0062] For example, in response to a target control operation, the device control terminal generates a target control command for the controlled device, which carries the target device attribute status and a first serial number, i.e., generates a target control command that matches the target control operation.

[0063] Step 203: Update the control interface display based on the target device attribute status, and cache the first serial number in the local serial number pool.

[0064] The local serial number pool is a preset storage space used to store serial numbers. It can be understood that by caching serial numbers in the serial number pool, when the controlled device fails to be controlled, the device attribute status previously displayed on the control interface can be restored by reading the cached serial number from the pool.

[0065] For example, the device control terminal updates the display of the control interface based on the target device attribute status, that is, updates the device attribute status of the controlled device displayed on the control interface to the target device attribute status, and caches the first serial number in the local serial number pool, that is, caches the first serial number in the preset storage space.

[0066] Step 204: Send a target control command to the controlled device to instruct the controlled device to update its device attribute status according to the target device attribute status in the target control command.

[0067] For example, the device control terminal sends a target control command to the controlled device; after receiving the target control command, the controlled device updates its device attribute status according to the target device attribute status in the target control command, that is, changes the device attribute status of the controlled device to the target device attribute status.

[0068] Step 205: Upon receiving the command response information reported by the controlled device for the successfully executed control command, and if the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool, then the serial number in the serial number pool is marked as obsolete. This serial number may be, but is not limited to, the first serial number, and the control interface after updating and displaying the target device attribute status remains unchanged.

[0069] The command response information is the information reported by the controlled device after executing the control command, carrying the serial number of the executed control command, i.e., the second serial number. It should be noted that the controlled device will report command response information regardless of whether the control command was successfully executed.

[0070] The second serial number is the serial number in the control command executed by the controlled device; that is, the serial number in the command response information matches the serial number of the executed control command. It can be understood that by including the second serial number in the command response information, it is easier to determine the command response information and the corresponding control command.

[0071] For example, when the device control terminal receives a command response message from the controlled device in response to a successfully executed control command, and the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool, the controlled device has successfully changed its device attribute status to the device attribute status carried in the latest control command generated by the device control terminal. In other words, the device attribute status of the controlled device at this time is consistent with the device attribute status displayed on the control interface of the device control terminal, and the second serial number in the command response message matches the first serial number in the latest generated control command. Therefore, the serial number in the serial number pool is marked as obsolete. This serial number can be, but is not limited to, the first serial number. The obsolete serial numbers in the serial number pool are cleared, and the control interface updated based on the target device attribute status remains unchanged.

[0072] In the aforementioned intelligent interface control method, the target control operation is determined from multiple control operations, and a target control command carrying the target device attribute status and a first serial number are generated based on the target control operation. The control interface is updated and displayed based on the target device attribute status, ensuring that the control interface can provide timely feedback when a control operation is performed. When the controlled device has successfully executed the control command and returned command response information, if the first serial number cached in the local serial number pool and the second serial number carried in the command response information are consistent, that is, the successfully executed control command is the latest control command generated by the device control terminal, and the command response information is the response information corresponding to the latest generated control command, it indicates that the device attribute status displayed on the control interface is consistent with the device attribute status of the controlled device. Therefore, the control interface updated and displayed based on the target device attribute status remains unchanged, thereby keeping the device attribute status of the controlled device synchronized with the control interface of the device control terminal.

[0073] In some embodiments, the step of filtering target control operations from multiple control operations specifically includes: filtering control operations that satisfy a preset time interval from multiple control operations to obtain target control operations.

[0074] For example, from multiple control operations, control operations that meet a preset time interval are selected to obtain the target control operation. That is, from multiple control operations, the control operation triggered on the control interface that meets the preset time interval is taken as the target control operation.

[0075] For example, a preset time interval is set to 50ms. Starting from the moment the user performs a control operation on the device control terminal's control interface, control operations triggered every 50ms are considered target control operations. This means that by reasonably setting the preset time interval to determine the target control operation, it ensures that the controlled device can promptly return the command response information corresponding to the target control command.

[0076] In the above embodiments, since the controlled device takes time to respond to a single control command, the control operation that meets the preset time interval from multiple control operations is selected as the target control operation. This avoids the situation where multiple control commands are sent to the controlled device continuously, causing the controlled device to be unable to return the command response information corresponding to the control command in a timely manner. In other words, since the target control operation is determined from multiple control operations, the controlled device does not need to process multiple control commands in a short period of time, but only needs to process a single control command. This alleviates the pressure on the controlled device to process control commands, and thus the controlled device can return the command response information corresponding to a single control command in a timely manner, thereby keeping the device attribute status of the controlled device synchronized with the control interface of the device control terminal.

[0077] In some embodiments, the step of filtering target control operations from multiple control operations specifically includes: filtering the last control operation within a preset time range from multiple control operations to obtain the target control operation.

[0078] For example, the device control terminal selects the last control operation within a preset time range from multiple control operations to obtain the target control operation. In other words, when performing multiple control operations, the last control operation within the preset time range is taken as the target control operation.

[0079] For example, if the preset time range is set to within 30ms, then the last control operation within 30ms will be taken as the target control operation.

[0080] In the above embodiments, since the controlled device takes time to respond to a single control command, the last control operation within a preset time range is selected as the target control operation from multiple control operations. This avoids sending multiple control commands to the controlled device consecutively, preventing the controlled device from being unable to return the corresponding control command in a timely manner. In other words, by reducing the number of control commands generated in a short period of time, the controlled device does not need to process multiple control commands in a short period of time, alleviating the pressure on the controlled device to process control commands. Therefore, the controlled device can return the command response information corresponding to the control command in a timely manner, thereby keeping the device attribute status of the controlled device synchronized with the control interface of the device control terminal.

[0081] In some embodiments, the method further includes: if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, then the second serial number and the serial numbers cached before the second serial number in the serial number pool are marked as obsolete, and the control interface after the update display based on the target device attribute status remains unchanged.

[0082] For example, if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, that is, the command response information is not the response information corresponding to the latest control command generated by the device control terminal, it indicates that the device attribute status displayed on the control interface is inconsistent with the device attribute status of the controlled device. The device control terminal then marks the second serial number and the serial numbers cached before the second serial number in the serial number pool as obsolete, that is, it marks the first serial number corresponding to the second serial number in the serial number pool, as well as other first serial numbers generated earlier than the second serial number, as obsolete. It keeps the control interface updated based on the target device attribute status unchanged and continues to wait for the command response information corresponding to the latest generated control command.

[0083] In the above embodiments, when the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, the first serial number corresponding to the second serial number in the serial number pool and the first serial number cached before the second serial number are marked as obsolete, ensuring that the memory of the device control terminal can be cleared in a timely manner and releasing the memory space of the device control terminal.

[0084] In some embodiments, the method further includes: if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is not the serial number carried in the control command generated by the device control terminal, then the generation time of the second serial number is compared with the generation time of the latest cached first serial number; if the generation time of the second serial number is later than the generation time of the first serial number, and the device attribute status carried in the command response information is different from the target device attribute status, then the control interface after updating the display based on the target device attribute status is updated according to the device attribute status carried in the command response information.

[0085] For example, if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is not the serial number carried in the control command generated by the device control terminal, then the generation time of the second serial number is compared with the generation time of the latest cached first serial number. That is, it is necessary to determine whether the generation time of the control command corresponding to the command response information is later than the generation time of the latest control command generated by the device control terminal. If the generation time of the second serial number is later than the generation time of the first serial number, and the device attribute status carried in the command response information is different from the target device attribute status—that is, the device attribute status of the controlled device displayed on the control interface of the device control terminal is inconsistent with the device attribute status of the controlled device—then the control interface after updating the display based on the target device attribute status is updated according to the device attribute status carried in the command response information. In other words, the device attribute status of the controlled device displayed on the control interface of the device control terminal is updated to the device attribute status carried in the command response information.

[0086] In the above embodiments, when the received second serial number is not the serial number carried in the control command generated by the device control terminal, the generation time of the first serial number and the generation time of the second serial number are compared. If the generation time of the second serial number is later than the generation time of the first serial number, and the device attribute status carried in the command response information is different from the target device attribute status, then the control interface after updating the display based on the target device attribute status is updated according to the device attribute status carried in the command response information, so as to ensure that the device attribute status of the controlled device is consistent with the device attribute status of the controlled device displayed on the control interface of the device control terminal.

[0087] In some embodiments, the method further includes: when receiving command response information reported by the controlled device for a control command that has failed to execute, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool, then updating the control interface after updating the display based on the target device attribute status according to the device attribute status carried in the command response information.

[0088] For example, when a control device reports a command response message for a failed control command, and the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool (i.e., the command response message corresponds to the most recently generated control command), but the control device fails to change its device attribute status to match the device attribute status carried in the most recently generated control command from the device control terminal, the device control terminal updates the control interface displayed based on the target device attribute status according to the device attribute status carried in the command response message. In other words, the device attribute status of the control device displayed on the control interface is updated to match the device attribute status carried in the command response message.

[0089] In the above embodiments, when a command response information is received from the controlled device in response to a failed control command, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool, the control interface is updated according to the device attribute status in the command response information to ensure that the device attribute status of the controlled device is consistent with the device attribute status of the controlled device displayed on the control interface of the device control terminal.

[0090] In some embodiments, such as Figure 3 The diagram illustrates a flowchart of an intelligent interface control method. Taking the application of this method to a device control terminal as an example, the method includes the following steps:

[0091] Step 301: When multiple control operations are received from the control interface of the device control terminal, the target control operation is selected from the multiple control operations according to the preset filtering conditions; wherein, the preset filtering conditions include at least one of the preset time interval and preset time range.

[0092] In some embodiments, the preset filtering conditions include a preset time interval. The step of filtering target control operations from multiple control operations includes: filtering control operations that satisfy the preset time interval from multiple control operations to obtain the target control operation.

[0093] In some embodiments, the preset filtering conditions include a preset time range, and the step of filtering the target control operation from multiple control operations includes: filtering the last control operation within the preset time range from multiple control operations to obtain the target control operation.

[0094] Step 302: In response to the target control operation, generate a target control command for the controlled device; the target control command carries the target device attribute status and the first serial number.

[0095] Step 303: Update the display of the control interface based on the target device attribute status, and cache the first serial number in the local serial number pool.

[0096] Step 304: Send the target control command to the controlled device to instruct the controlled device to update the device attribute status according to the target device attribute status in the target control command.

[0097] Step 305: Determine whether the control command was executed successfully. If yes, proceed to step 306; otherwise, proceed to step 307.

[0098] It should be noted that, due to possible communication delays, the command response information received by the device control terminal may correspond to the target control command or other control commands, i.e., non-target control commands. Therefore, the control commands in step 305 include target control commands or non-target control commands.

[0099] Step 306: If the controlled device reports a command response message for a successfully executed control command, and the second serial number carried in the command response message is consistent with the latest cached first serial number in the serial number pool, then the serial number in the serial number pool is marked as obsolete, and the control interface after updating the display based on the target device attribute status remains unchanged.

[0100] Step 307: If the controlled device reports a command response message for a failed control command, and the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool, then the control interface after updating the display based on the target device attribute status is updated according to the device attribute status carried in the command response message.

[0101] In some embodiments, if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, then the second serial number and the serial numbers cached before the second serial number in the serial number pool are marked as obsolete, and the control interface after the update display based on the target device attribute status remains unchanged.

[0102] In some embodiments, if the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is not the serial number carried in the control command generated by the device control terminal, then the generation time of the second serial number is compared with the generation time of the latest cached first serial number; if the generation time of the second serial number is later than the generation time of the first serial number, and the device attribute status carried in the command response information is different from the target device attribute status, then the control interface after updating and displaying based on the target device attribute status is updated according to the device attribute status carried in the command response information.

[0103] In the aforementioned intelligent interface control method, the target control operation is determined from multiple control operations, and a target control command carrying the target device attribute status and a first serial number are generated based on the target control operation. The control interface is updated and displayed based on the target device attribute status, ensuring that the control interface can provide timely feedback when a control operation is performed. When the controlled device has successfully executed the control command and returned command response information, if the first serial number cached in the local serial number pool and the second serial number carried in the command response information are consistent, that is, the successfully executed control command is the latest control command generated by the device control terminal, and the command response information is the response information corresponding to the latest generated control command, it indicates that the device attribute status displayed on the control interface is consistent with the device attribute status of the controlled device. Therefore, the control interface updated and displayed based on the target device attribute status remains unchanged, thereby keeping the device attribute status of the controlled device synchronized with the control interface of the device control terminal.

[0104] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0105] Based on the same inventive concept, this application also provides an interface intelligent control device for implementing the interface intelligent control method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more interface intelligent control device embodiments provided below can be found in the limitations of the interface intelligent control method described above, and will not be repeated here.

[0106] In one embodiment, such as Figure 4 As shown, an intelligent interface control device is provided, comprising: a generation module 401, an update display module 402, a sending module 403, and a tagging module 404, wherein:

[0107] The generation module 401 is used to filter the target control operation from the multiple control operations when it receives multiple control operations triggered by the control interface of the device control terminal; in response to the target control operation, generate a target control command for the controlled device; the target control command carries the target device attribute status and the first serial number.

[0108] The update display module 402 is used to update the display of the control interface based on the target device attribute status, and cache the first serial number in the local serial number pool.

[0109] The sending module 403 is used to send a target control command to the controlled device to instruct the controlled device to update the device attribute status according to the target device attribute status in the target control command.

[0110] The marking module 404 is used to mark the serial number in the serial number pool as obsolete when it receives the command response information reported by the controlled device for the successfully executed control command, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool, and keeps the control interface after the update display based on the target device attribute status unchanged.

[0111] In some embodiments, the generation module 401 is used to filter control operations that meet a preset time interval from multiple control operations to obtain the target control operation.

[0112] In some embodiments, the generation module 401 is used to filter the last control operation within a preset time range from multiple control operations to obtain the target control operation.

[0113] In some embodiments, the marking module 404 is further configured to mark the second serial number and the serial numbers cached before the second serial number in the serial number pool as obsolete if the second serial number is inconsistent with the latest cached first serial number in the serial number pool and the second serial number is the serial number carried in the control command generated by the device control terminal, and keep the control interface after the update display based on the target device attribute status unchanged.

[0114] In some embodiments, refer to Figure 5 The marking module 404 includes a comparison unit 404a and an update unit 404b, wherein:

[0115] The comparison unit 404a is used to compare the generation time of the second serial number with the generation time of the latest cached first serial number if the second serial number is inconsistent with the latest cached first serial number in the serial number pool and the second serial number is not the serial number carried in the control command generated by the device control terminal.

[0116] The update unit 404b is used to update the control interface after updating the display based on the target device attribute status if the generation time of the second serial number is later than the generation time of the first serial number and the device attribute status carried in the command response information is different from the target device attribute status.

[0117] In some embodiments, the marking module 404 is further configured to update the control interface after updating the display based on the target device attribute status according to the device attribute status carried in the command response information when it receives command response information from the controlled device for a control command that has failed to execute, and the second serial number carried in the command response information is consistent with the latest cached first serial number in the serial number pool.

[0118] Each module in the aforementioned intelligent interface control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0119] In one embodiment, a computer device is provided, which may be a device control terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an intelligent interface control method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0120] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0121] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0122] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0123] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0124] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0125] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0126] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0127] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for intelligent interface control, characterized in that, The method includes: When multiple control operations are received that are triggered by the control interface of the device control terminal, a target control operation is selected from the multiple control operations. In response to the target control operation, a target control command for the controlled device is generated; the target control command carries the target device attribute status and a first serial number. The control interface is updated and displayed based on the target device attribute status, and the first serial number is cached in the local serial number pool. Send the target control command to the controlled device to instruct the controlled device to update the device attribute status according to the target device attribute status in the target control command; If the controlled device reports a command response message for a successfully executed control command, and the second serial number carried in the command response message is consistent with the first serial number recently cached in the serial number pool, then the serial number in the serial number pool is marked as obsolete, and the control interface after the update display based on the target device attribute status remains unchanged. If the second serial number is inconsistent with the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, then the second serial number and the serial numbers cached before the second serial number in the serial number pool are marked as obsolete, and the control interface after the update display based on the target device attribute status remains unchanged.

2. The method according to claim 1, characterized in that, The step of selecting the target control operation from the multiple control operations specifically includes: From the multiple control operations, control operations that satisfy the preset time interval are selected to obtain the target control operation.

3. The method according to claim 1, characterized in that, The step of selecting the target control operation from the multiple control operations specifically includes: From the multiple control operations, the last control operation within a preset time range is selected to obtain the target control operation.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: If the controlled device reports a command response message for a failed control command, and the second serial number carried in the command response message matches the first serial number recently cached in the serial number pool, then the control interface, which is displayed after updating based on the target device's attribute status, is updated according to the device attribute status carried in the command response message.

5. An intelligent interface control device, characterized in that, The device includes: The generation module is used to, upon receiving multiple control operations triggered by the control interface of the device control terminal, filter a target control operation from the multiple control operations; in response to the target control operation, generate a target control command for the controlled device; the target control command carries the target device attribute status and a first serial number; The update display module is used to update the display of the control interface based on the target device attribute status, and cache the first serial number in the local serial number pool; The sending module is used to send the target control command to the controlled device to instruct the controlled device to update the device attribute status according to the target device attribute status in the target control command; The marking module is configured to, upon receiving a command response message from the controlled device for a successfully executed control command, and if the second serial number carried in the command response message matches the latest cached first serial number in the serial number pool, mark the serial number in the serial number pool as obsolete and maintain the control interface unchanged after the update display based on the target device attribute status; if the second serial number does not match the latest cached first serial number in the serial number pool, and the second serial number is the serial number carried in the control command generated by the device control terminal, mark the second serial number in the serial number pool and the serial numbers cached before the second serial number as obsolete and maintain the control interface unchanged after the update display based on the target device attribute status.

6. The apparatus according to claim 5, characterized in that, The generation module is also used to filter control operations that meet a preset time interval from the multiple control operations to obtain the target control operation.

7. The apparatus according to claim 5, characterized in that, The generation module is also used to filter the last control operation within a preset time range from the multiple control operations to obtain the target control operation.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Equipment state display method, system and device and computer storage medium

    CN110830579A

  • Equipment state processing method and device, storage medium and electronic device

    CN114337896A

  • Instruction processing method, terminal equipment and control system of smart home equipment

    CN114995183A