Light following control method of equipment, electronic equipment and readable storage medium

Through the collaborative work of the Internet of Things platform and the real-time processing engine, real-time monitoring and feedback of the light-tracing status of smart home devices solves the problem of users being unable to perceive the status of the light-tracing function in a timely manner and improves the interactive experience.

CN119356107APending Publication Date: 2025-01-24GUANGDONG KETYOO INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411270358.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the prior art, after the user triggers the light chasing function to start, it needs to be executed under specific time and environmental conditions, resulting in the user being unable to sense whether the light chasing function is normally started in time, and the interactive experience is poor.

Method used

Through the attribute information of the target equipment through the Internet of Things platform, send messages to the real -time processing engine, obtain real -time weather data, and send the light chasing instructions according to the weather status, and feedback the pursuit of the target equipment in real time.

Benefits of technology

It realizes that users can understand the lighting status of target equipment in a timely manner, improve the interactive experience of the lighting function, and ensure the time, effective and accurate feedback of functional functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356107A_ABST
    Figure CN119356107A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a light following control method of equipment, electronic equipment and a readable storage medium, and relates to the technical field of smart home. The method applied to the Internet of Things platform comprises the following steps: receiving attribute information related to target equipment, and sending a first message to a real-time processing engine based on the attribute information; the attribute information comprises information used for indicating the target equipment to start light following operation; if a first light following instruction sent after the real-time processing engine processes the first message is received, a second message is sent to the target device and / or a target client associated with the target device, and the first light following instruction is used for instructing the target device to pause the light following operation; the first message is used for feeding back that the target equipment starts the light following operation and is in a light following pause state. The light tracking state of the equipment can be fed back in time, and the experience feeling of a user on the light tracking function of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of smart home technology, and in particular to a light tracking control method for a device, an electronic device, and a readable storage medium. Background Art

[0002] In smart homes, in order to improve the coordination between the operation of the equipment and the environment and improve the user experience, a light tracking function is provided. For example, for clothes drying machines, the configuration of the light tracking function can improve the efficiency of clothes drying; for smart curtains, the configuration of the light tracking function can improve the intelligence of curtain applications.

[0003] However, in the prior art, when a user triggers the light chasing function, in order to ensure the effectiveness of the light chasing, the light chasing operation generally needs to be performed at a specific time and under specific environmental conditions, resulting in the user being unable to promptly perceive whether the light chasing function is started normally, resulting in a poor interactive experience of the light chasing. Summary of the invention

[0004] In order to solve at least one of the above technical problems, the embodiments of the present disclosure provide a light tracking control method for a device, an electronic device and a readable storage medium. The technical solution is as follows: In a first aspect, an embodiment of the present disclosure provides a light-chasing control method for a device, which is applied to an Internet of Things platform. The method includes: Receive attribute information related to the target device, and send a first message to the real-time processing engine based on the attribute information; the attribute information includes information for instructing the target device to start a light chasing operation; If a first light-chasing instruction is received and sent by the real-time processing engine after processing the first message, a second message is sent to the target device and / or a target client associated with the target device, and the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation; the first message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state.

[0005] In a feasible embodiment, the method further includes: If a second light-chasing instruction is received and sent by the real-time processing engine after processing the first message, a light-chasing control instruction is sent to the target device to enable the target device to perform a light-chasing operation, and / or a third message is sent to the target client, wherein the third message is used to provide feedback that the target device is in a light-chasing state; the third message includes data related to light-chasing sent after the target device performs the light-chasing operation and / or information sent based on the second light-chasing instruction.

[0006] In a feasible embodiment, the first light-chasing instruction and / or the second light-chasing instruction are sent after the real-time processing engine obtains real-time weather data of the location of the target device and confirms the weather status based on the real-time weather data; the weather status corresponding to the first light-chasing instruction does not meet the preset light-chasing condition, and the weather status corresponding to the second light-chasing instruction meets the light-chasing condition; Among them, the acquisition of real-time weather data includes: the real-time processing engine stores the attribute information of the target device into a database, and obtains the real-time weather data through the database when the preset acquisition conditions are met; the preset acquisition conditions include that the target device is in the state of starting the light chasing and reaches the preset data acquisition time.

[0007] In a feasible embodiment, the attribute information includes information sent by the target client and / or the target device; Wherein, when the target client and / or the target device responds to the operation of starting light chasing and determines that the device attribute used to characterize the light chasing state changes, the target client and / or the target device sends the attribute information to the Internet of Things platform.

[0008] In a feasible embodiment, the sending a first message to the real-time processing engine based on the attribute information includes: Monitoring the message queue and the real-time processing engine, and if it is determined that the performance of the message queue and / or the real-time processing engine meets the preset index requirements, writing the first message in the message queue based on the attribute information; transmitting the first message to the real-time processing engine through the message queue; Obtaining a confirmation message fed back by the message queue indicating that the first message has been transmitted; Among them, the first message transmitted to the real-time processing engine carries the attribute information, the identifier and / or version number generated by the Internet of Things platform for the attribute information; the version number is used to identify different information versions.

[0009] In a feasible embodiment, the method further includes: If a processing failure message sent by the real-time processing engine is received, the version number of the attribute information is updated, and the first message is retransmitted to the real-time processing engine; If the duration between the first time of receiving the processing failure message and the second time of receiving the attribute information is greater than the preset duration, a fourth message is sent to the target device and / or the target client, and the fourth message is used to feedback that the target device is being controlled to start the light chasing operation.

[0010] In a second aspect, an embodiment of the present disclosure provides a light-chasing control method for a device, which is applied to a client, and the method includes: receiving a second message sent by the IoT platform; Among them, the second message is sent by the Internet of Things platform after receiving the first light-chasing instruction sent by the real-time processing engine after processing the first message, and is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state; the first message is sent by the Internet of Things platform to the real-time processing engine based on the received attribute information related to the target device; the attribute information includes information for instructing the target device to start the light-chasing operation; the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation.

[0011] In a feasible embodiment, before receiving the second message sent by the Internet of Things platform, the method further includes: In response to an operation of triggering the target device to start light chasing, when it is determined that a device attribute used to characterize a light chasing state has changed, the attribute information is sent to the Internet of Things platform.

[0012] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising 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 provided in the first aspect and any embodiment thereof or the second aspect and any embodiment thereof.

[0013] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect and any embodiment thereof or the second aspect and any embodiment thereof.

[0014] The technical solution provided by the embodiments of the present disclosure has the following beneficial effects: In the first aspect, the embodiment of the present disclosure provides a light-chasing control scheme for a device, which can be applied to an Internet of Things platform. Specifically, when the Internet of Things platform receives attribute information related to a target device, it can send a first message to a real-time processing engine based on the attribute information so that the attribute information can be processed by the real-time processing engine. The attribute information may include information for instructing the target device to start a light-chasing operation; then, if the Internet of Things platform receives a first light-chasing instruction sent by the real-time processing engine after processing the first message, it can send a second message to the target device and / or a target client associated with the target device. Among them, the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation, and the first message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state. In the implementation of the present disclosure, the user can timely understand the light-chasing state of the target device through the target device and / or the target client. When the user obtains timely feedback, he can timely and effectively perceive whether the light-chasing function is successfully started, which can effectively improve the interactive experience of light-chasing; in addition, by performing message processing by the real-time processing engine, a high-accuracy result can be provided under low latency, and timely, effective and accurate feedback can be achieved in the light-chasing function startup scenario.

[0015] On the second aspect, the embodiments of the present disclosure provide a light-chasing control scheme for a device, which can be applied to a client. Specifically, the client can receive a second message sent by the Internet of Things platform, and the second message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state. The implementation of the present disclosure can enable the user to timely understand the light-chasing status of the target device through the client. Among them, the second message is sent by the Internet of Things platform after receiving the first light-chasing instruction sent by the real-time processing engine after processing the first message; the first message is sent by the Internet of Things platform to the real-time processing engine based on the received attribute information related to the target device, and the attribute information includes information used to instruct the target device to start the light-chasing operation, and the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation. In the implementation of the present disclosure, when the target device is triggered to start the light-chasing operation, when the target device cannot immediately perform the light-chasing operation, the light-chasing status of the target device can be promptly fed back through the second message, and the user can promptly perceive whether the light-chasing function is successfully started, thereby improving the user's experience of the device's light-chasing function. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for describing the embodiments of the present disclosure are briefly introduced below.

[0016] Figure 1 A flowchart of a light-chasing control method for a device provided in an embodiment of the present disclosure; Figure 2 A flowchart of another light-chasing control method for a device provided in an embodiment of the present disclosure; Figure 3A schematic diagram of an operating architecture provided for an embodiment of the present disclosure; Figure 4 A schematic diagram of another operating architecture provided for an embodiment of the present disclosure; Figure 5 A light chasing control flow chart provided by an embodiment of the present disclosure; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] The embodiments of the present disclosure are described below in conjunction with the drawings in the present disclosure. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present disclosure and do not constitute a limitation on the technical solutions of the embodiments of the present disclosure.

[0018] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present disclosure refer to that the corresponding features can be implemented as the displayed features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0019] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0020] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present disclosure and the technical effects produced by the technical solutions of the present disclosure. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0021] The following describes the operating architecture involved in the embodiments of the present disclosure.

[0022] Adapted to the intelligent control of devices, the method provided by the embodiments of the present disclosure may involve communication between smart devices, smart gateways, Internet of Things platforms, and clients, such as Figure 3 As shown in the figure, in the IoT system, the smart gateway plays the role of connecting devices, data transmission and security. Smart devices are connected to the smart gateway through wireless or wired means, and then communicate with the IoT platform and clients. Clients (such as mobile phone APPs) can interact with the IoT platform through the Internet to control and monitor the status of smart devices. Figure 4 As shown, in the IoT system, the data received by the IoT platform can be processed by the real-time processing engine, and the results of the real-time processing can be given; wherein, the real-time processing engine can be run in conjunction with a database, write relevant data into the database, and obtain the required data through the database.

[0023] Among them, the smart device may include drying equipment, such as a smart clothes drying machine, and may also include smart curtains, etc., but is not limited thereto. In the embodiments of the present disclosure, any smart device equipped with a light-chasing module may be regarded as a target device. The smart device may be used to execute the steps of the light-chasing control method of the device provided in the present disclosure. During the execution of the method, the smart device may communicate with the client and the Internet of Things platform.

[0024] Among them, the terminal may include any terminal running the client. The terminal (also referred to as a device) may be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a wearable electronic device (such as a smart watch), a vehicle-mounted terminal, a smart home appliance (such as a smart TV), an AR / VR device, etc., but is not limited to this. Optionally, the terminal may also refer to a control device configured based on a smart device, such as a remote control that can load a client. In one example, the terminal can be used to execute the light chasing control method of the device provided in the embodiment of the present disclosure, and during the execution of the method, it can communicate with a smart device, an Internet of Things platform, etc.

[0025] Among them, the Internet of Things Platform (IOT Platform for short) is a software platform used to connect, manage and control a large number of IoT devices. It is located in the architecture of the Internet of Things. As a middleware, it is located between the IoT device layer and the IoT gateway layer on the one hand, and between applications on the other hand. Through the IoT platform, users can achieve interconnection between devices, obtain device data in real time, and control devices.

[0026] Among them, the real-time processing engine is a software framework or system for processing real-time data streams, which can quickly process and analyze data as it is generated to meet application scenarios with extremely high real-time requirements. In the embodiments of the present disclosure, processing engines such as Apache Flink and GTS Engine can be used.

[0027] In the disclosed embodiments, light chasing is an intelligent operation. Taking a smart clothes drying machine as an example, the height or position of the drying rod assembly in the clothes drying machine can be automatically adjusted so that the clothes being dried can always be in a position with optimal light intensity, thereby improving drying efficiency and saving energy.

[0028] The following is a detailed description of the light chasing control method of the device in the embodiment of the present disclosure.

[0029] Specifically, Figure 1 As shown, the method applied to the Internet of Things platform may include S101 to S102: S101. Receive attribute information related to a target device, and send a first message to a real-time processing engine based on the attribute information; the attribute information includes information for instructing the target device to start a light chasing operation.

[0030] S102. If a first light-chasing instruction is received after the real-time processing engine processes the first message, a second message is sent to the target device and / or a target client associated with the target device. The first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation; the first message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state.

[0031] Optionally, the attribute information may include information sent by the target client and / or the target device. For example, the user may trigger the start of the light-chasing operation through the target device, such as by voice control, physical buttons, etc.; the user may also trigger the start of the light-chasing operation through the target client associated with the target device, such as a control for starting or stopping the light-chasing operation is arranged on the interactive interface of the client, and the user may control the target device to start the light-chasing operation by triggering the control.

[0032] Among them, when the target client and / or target device responds to the operation of starting light chasing and determines that the device attribute used to characterize the light chasing state has changed, it can send attribute information to the Internet of Things platform. Optionally, the change of device attributes can be identified by the device attribute code, such as when the user uses the client to turn on the light chasing function of the clothes drying machine, the device attribute solarTraceSwitch changes from 0 to 1. When it is determined through the device attribute code that its device attribute has changed, the target client and / or target device can send attribute information to the Internet of Things platform, such as synchronizing the device's light chasing attribute solarTraceSwitch=1 to the Internet of Things platform in real time.

[0033] Optionally, when receiving attribute information related to the target device, the IoT may send a first message to the real-time processing engine based on the attribute information. Exemplarily, the IoT platform may package the changed attribute solarTraceSwitch=1 and an identifier for the target device (such as a device unique code iotid) to generate a first message and transmit it to the real-time processing engine.

[0034] Optionally, the real-time processing engine can obtain real-time weather data for processing when the preset acquisition conditions are met for the target device through the first message, and feedback the processing results to the Internet of Things platform. Among them, the first light-chasing instruction fed back is used to instruct the target device to suspend the light-chasing operation, which indicates that the real-time processing engine has correctly received the request to start the light-chasing operation, but the processing result of the first message indicates that there is no need to perform light-chasing at present or the light-chasing operation is invalid. When the Internet of Things platform receives the first light-chasing instruction, it can send a control instruction to suspend the light-chasing operation to the target device to control the target device not to perform light-chasing temporarily. In addition, when the Internet of Things platform receives the first light-chasing instruction, it can also send a second message to the target device and / or the target client associated with the target device, and the second message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state. Through the second message, the user can promptly understand whether the light-chasing function has been started normally.

[0035] In one example, if Figure 5 As shown, when the Internet of Things platform sends the first message, it indicates that the light chasing function of the smart device is correctly started (at this time, the smart device has not received the light chasing control instruction, but the real-time processing engine continues to process the first message), but because the conditions required for light chasing are not met or the effect of light chasing at the current time is very poor (such as the current rainfall is greater than the preset threshold), the control device temporarily enters the suspended light chasing state, and can control the smart device to perform light chasing when it is determined later that the conditions required for light chasing are met (such as the weather turns from heavy rain to clear weather).

[0036] In a feasible embodiment, the method applied to the Internet of Things platform may also include S103: if a second light-chasing instruction is received after the real-time processing engine processes the first message, a light-chasing control instruction is sent to the target device to enable the target device to perform the light-chasing operation, and / or a third message is sent to the target client.

[0037] Among them, the third message is used to feedback that the target device is in a light chasing state; the third message includes light chasing related data sent after the target device performs the light chasing operation and / or information sent based on the second light chasing instruction.

[0038] Optionally, the third message may be sent by the IoT platform to the target client when receiving the second light-chasing instruction, so that the user can understand the state of the device performing light-chasing within a short time when the target device can perform the light-chasing operation. In order to ensure the validity of the sent message, the third message may also be sent by the IoT platform to the target device after sending the light-chasing control instruction to the target device and receiving the processing message fed back by the target device (such as the relevant data generated by performing light-chasing).

[0039] Optionally, relative to the first light-chasing instruction, the second light-chasing instruction may be sent within a short time after the real-time processing engine correctly receives the first message, which indicates that the device can perform the light-chasing operation within a short time after the user triggers the light-chasing function; the second light-chasing instruction may also be sent by the real-time processing engine after sending the first light-chasing instruction and correctly processing the first message (such as when the real-time weather data is correctly obtained), which indicates that the device does not immediately perform the light-chasing operation after the user triggers the light-chasing function, but waits for the effective light-chasing opportunity to perform the light-chasing operation.

[0040] Optionally, the first light-chasing instruction and / or the second light-chasing instruction is sent after the real-time processing engine obtains real-time weather data of the location of the target device and confirms the weather status based on the real-time weather data; the weather status corresponding to the first light-chasing instruction does not meet the preset light-chasing conditions, and the weather status corresponding to the second light-chasing instruction meets the light-chasing conditions.

[0041] Among them, the acquisition of real-time weather data includes: the real-time processing engine stores the attribute information of the target device into the database, and obtains the real-time weather data through the database when the preset acquisition conditions are met; the preset acquisition conditions include that the target device is in the state of starting the light chasing and reaches the preset data acquisition time.

[0042] Optionally, in the acquisition condition, the real-time processing engine can determine the target device in the state of starting the light chasing through the attribute information reflected in the first message, and the preset data acquisition time is related to the geographical location and / or spatial location of the target device. Exemplarily, the real-time processing engine needs to combine the real-time weather data to process the first message. In order to reduce the amount of calculation, the real-time weather data can be obtained in the time period when the light chasing is required to process the first message. For example, the sunrise time on January 1, 2024 is 06:03 and the sunset time is 17:58 (such as related to the geographical location of the target device), then the data acquisition time can be set to 06:03-17:58; it can be understood that the data acquisition time is a dynamic threshold. Among them, if the target device is located in the south and faces the east (such as the spatial location of the target device), considering that the change in its light angle only occurs in the morning, the effect of light chasing in the afternoon is poor, therefore, the data acquisition time can be further adjusted to 06:03-12:00.

[0043] Optionally, when the real-time processing engine determines that the acquisition condition is met, the real-time weather data of the location of the target device is obtained through the database, and the first message is processed. At this time, the weather status can be confirmed based on the real-time weather data. When it is determined that the weather status meets the preset light-chasing condition, the real-time processing engine can send a second light-chasing instruction to the Internet of Things platform; when it is determined that the weather status does not meet the preset light-chasing condition, the real-time processing engine can send a first light-chasing instruction to the Internet of Things platform.

[0044] Optionally, the preset light-chasing conditions include consideration of at least one of light intensity, weather conditions, time information, etc. Among them, the light intensity data can be obtained by detecting the sensor of the target device, the weather conditions can be obtained through weather information provided by a third-party platform, and the time information can include information such as the current time and the time period for performing light chasing. Exemplarily, taking weather information as an example, the weather data includes rainfall probability information. If the rainfall probability is lower than a preset value, it can be considered that the current weather conditions are suitable for light chasing and meet the light chasing conditions; such as the cloud thickness included in the weather data, if the weather data shows that the clouds are thin or clear and cloudless, it can be considered that the lighting conditions are good and meet the light chasing conditions. The disclosed embodiment does not specifically limit the light chasing conditions, which can be adjusted according to actual needs.

[0045] In a feasible embodiment, sending a first message to the real-time processing engine based on the attribute information in S101 includes steps A1 to A3: Step A1: monitor the message queue and the real-time processing engine. If it is determined that the performance of the message queue and / or the real-time processing engine meets the preset index requirements, write the first message into the message queue based on the attribute information.

[0046] Step A2: transmitting the first message to the real-time processing engine through the message queue.

[0047] Step A3: Obtain a confirmation message of the transmitted first message fed back by the message queue.

[0048] Among them, the first message transmitted to the real-time processing engine carries attribute information, an identifier and / or version number generated by the Internet of Things platform for the attribute information; the version number is used to identify different information versions.

[0049] Optionally, to ensure the effectiveness and timeliness of message processing, the IoT platform can monitor the message queue and real-time processing engine in real time. The message queue can be monitored from indicators such as response time, transmission rate, queue length, and success rate of message processing. For example, for response time, monitor whether the time interval from sending a message to successfully processing the message meets a certain set threshold. For real-time processing engine monitoring, indicators such as CPU usage, memory usage, processing delay, and throughput can be used.

[0050] Optionally, the IoT platform may write the first message into the message queue based on the attribute information when it is determined that the performance of the message queue and / or the real-time processing engine meets the preset index requirements. When it is determined that the performance of the message queue and / or the real-time processing engine does not meet the preset index requirements, in order to improve the timeliness of message processing, a backup queue and / or backup processing engine may be used, and the first message may be written into the backup queue, and the first message may be transmitted to the real-time processing engine or the backup processing engine for processing through the backup queue.

[0051] Optionally, after transmitting the first message to the real-time processing engine through the message queue, the IoT platform can receive a message from the message queue to indicate whether the message transmission is successful. In the disclosed embodiment, the message queue can be designed as a message delivery mechanism to ensure the reliable transmission and processing of messages. When the first message is successfully written to the message queue, the IoT platform can receive a confirmation message returned by the message queue; when the first message is correctly transmitted to the real-time processing engine for processing, the message queue can receive a confirmation message fed back by the real-time processing engine. At this time, the IoT platform can check the status of a specific message by querying the message queue, including whether the specific message has been successfully sent, received, and processed, etc., to obtain a confirmation message indicating whether the first message has been correctly transmitted to the real-time processing engine.

[0052] Optionally, when the IoT platform generates the first message based on the attribute information, it may generate a corresponding identifier and / or version number for the attribute information. The identifier may be a unique code, and the version number may be used to identify different information versions corresponding to the same identifier. In the case where the attribute information in the first message changes, the first message is repeatedly processed, etc., the version number may be used to distinguish them, thereby ensuring the uniqueness and validity of the message processing.

[0053] In a feasible embodiment, the method applied to the Internet of Things platform further includes S104 to S105: S104: If a processing failure message sent by the real-time processing engine is received, the version number of the attribute information is updated, and the first message is retransmitted to the real-time processing engine.

[0054] S105. If the duration between the first time of receiving the processing failure message and the second time of receiving the attribute information is greater than the preset duration, a fourth message is sent to the target device and / or the target client, and the fourth message is used to feedback that the target device is being controlled to start the light chasing operation.

[0055] Optionally, in actual operation, network failure, resource limitation, real-time processing engine failure, message format error and other problems may occur, causing the real-time processing engine to fail to process the first message. At this time, the Internet of Things platform can update the version number for the attribute information and retransmit the first message with a different version number to the real-time processing engine.

[0056] Optionally, in order to promptly feedback to the user whether the activation of the light chasing function is successful, the IoT platform can determine the duration between the first time of receiving the processing failure message and the second time of receiving the attribute information (the time when the client and / or target device sends the attribute information), and compare the duration with the preset duration. If it is greater than the preset duration, it indicates that the processing time of the first message by the IoT platform and the real-time processing engine has exceeded the acceptable range perceived by the user. Since the processing status has not been fed back to the user for a long time, the IoT platform can send a fourth message to the target device and / or target client to feedback to the user that it is controlling the target device to start the light chasing operation, so as to avoid the user repeatedly initiating a request to start the light chasing operation for the target device due to not receiving feedback for a long time, which can effectively reduce the waste of resources and improve the interactive experience.

[0057] In the disclosed embodiment, the message fed back by the IoT platform to the client and the smart device can be broadcasted by voice or displayed through an interactive interface to timely remind the user of the current light-chasing status of the smart device.

[0058] Based on the same inventive concept, the embodiment of the present disclosure also provides a light-chasing control method applied to a device of a client.

[0059] Specifically, Figure 2 As shown, the method applied to the client includes S201: receiving a second message sent by the Internet of Things platform.

[0060] Among them, the second message is sent by the Internet of Things platform after receiving the first light-chasing instruction sent by the real-time processing engine after processing the first message, and is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state; the first message is sent by the Internet of Things platform to the real-time processing engine based on the received attribute information related to the target device; the attribute information includes information used to instruct the target device to start the light-chasing operation; the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation.

[0061] Optionally, after the client establishes an association with the smart device, control information related to the smart device can be sent to the client, so that the control status of related functions of the smart device can be fed back to the user in a timely manner through the client.

[0062] In a feasible embodiment, before S201 receives the second message sent by the Internet of Things platform, it also includes S200: in response to the operation of triggering the target device to start light chasing, when it is determined that the device attribute used to characterize the light chasing state has changed, sending attribute information to the Internet of Things platform.

[0063] Optionally, the user can trigger the target device to start the light chasing function and perform the light chasing operation through the client. When responding to the trigger operation, if the client determines that the device attribute used to characterize the light chasing state has changed, that is, before responding to the trigger operation, the light chasing function of the target device is in the off state, the client can send the attribute information to the IoT platform to complete the message processing through the IoT platform, the real-time processing engine and the database, realize the control of the device, and obtain feedback messages in a timely manner.

[0064] Optionally, the relevant embodiments of the method applied to the client may refer to the relevant embodiments of the method applied to the Internet of Things platform mentioned above, and the present disclosure will not go into details here.

[0065] Considering that in the prior art, when a user starts the light-chasing function through a client or directly on a smart device, and the conditions for light-chasing are not met at present, the smart device cannot immediately perform the light-chasing operation, and the user cannot perceive whether the light-chasing function is successfully started (the light-chasing function may fail to start due to network failure, message processing failure, etc.), therefore, timely feedback of the result of whether the light-chasing function is successfully started is very important for user perception, which also affects the optimization of the interactive performance between the device and the user. The disclosed embodiment provides a light-chasing control solution for a device, which enables the user to perceive whether the light-chasing function is successfully started within a short time after the user triggers the start of the light-chasing function through processing by a client, a smart device, an Internet of Things platform, a real-time processing engine, a database, etc., and the timely feedback of the message is conducive to improving the interactive experience between the device and the user.

[0066] It should be noted that in the optional embodiments of the present disclosure, the information involved (such as attribute information, weather data, etc.), when the above embodiments of the present disclosure are applied to specific products or technologies, needs to obtain permission or consent from the user, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if data related to an object is involved in the embodiments of the present disclosure, these data need to be obtained with the authorization and consent of the object and in compliance with the relevant laws, regulations and standards of the country and region.

[0067] An embodiment of the present disclosure provides a light-chasing control device for a device, which is applied to an Internet of Things platform. The light-chasing control device for the device may include: a first sending module and a second sending module.

[0068] Among them, the first sending module is used to receive attribute information related to the target device, and send a first message to the real-time processing engine based on the attribute information; the attribute information includes information used to instruct the target device to start a light chasing operation; the second sending module is used to send a second message to the target device and / or a target client associated with the target device if it receives a first light chasing instruction sent by the real-time processing engine after processing the first message, and the first light chasing instruction is used to instruct the target device to suspend the light chasing operation; the first message is used to feedback that the target device has started the light chasing operation and is in a suspended light chasing state.

[0069] The disclosed embodiments also provide a light-chasing control device of another device, which is applied to a client. The light-chasing control device of the device may include: a receiving module, which is used to receive a second message sent by an Internet of Things platform; wherein the second message is sent by the Internet of Things platform after receiving a first light-chasing instruction sent by the real-time processing engine after processing the first message, and is used to feedback that the target device has started a light-chasing operation and is in a suspended light-chasing state; the first message is sent by the Internet of Things platform to the real-time processing engine based on receiving attribute information related to the target device; the attribute information includes information used to instruct the target device to start a light-chasing operation; the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation.

[0070] The device of the embodiments of the present disclosure can execute the method provided by the embodiments of the present disclosure, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present disclosure correspond to the steps in the method of each embodiment of the present disclosure. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.

[0071] The modules involved in the embodiments described in the present disclosure may be implemented by software. The name of the module does not limit the module itself in some cases. For example, the first sending module may also be described as "a module that receives attribute information related to the target device and sends a first message to the real-time processing engine based on the attribute information", "a first module", etc.

[0072] An electronic device is provided in an embodiment of the present disclosure, which may specifically be a drying device or a server. The host of the device includes a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the light chasing control method of the device. Compared with the related art, the following can be achieved: In the implementation of the present disclosure, the user can timely understand the light chasing status of the target device through the target device and / or the target client. When the user obtains timely feedback, he can timely and effectively perceive whether the light chasing function is successfully started, which can effectively improve the interactive experience of light chasing. In addition, message processing is performed by a real-time processing engine, which can provide high-accuracy results with low latency, and timely, effective and accurate feedback is achieved in the scenario where the light chasing function is started.

[0073] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present disclosure.

[0074] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0075] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0076] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.

[0077] The memory 4003 is used to store the computer program for executing the embodiment of the present disclosure, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.

[0078] Among them, electronic devices include but are not limited to: smart clothes drying machines, smart curtains, terminal devices, and home appliances equipped with light tracking function modules.

[0079] An embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0080] The embodiments of the present disclosure also provide a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiments when executed by a processor.

[0081] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than that shown or described in the text.

[0082] It should be understood that, although the flowchart of the embodiment of the present disclosure indicates each operation step by arrows, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present disclosure, the implementation steps in each flowchart can be executed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times. In scenarios with different execution times, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present disclosure does not limit this.

[0083] The above is only an optional implementation method for some implementation scenarios of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present disclosure, other similar implementation methods based on the technical ideas of the present disclosure are also within the protection scope of the embodiments of the present disclosure.

Claims

1. A light tracking control method for a device, characterized in that: Applied to the Internet of Things platform, the method includes: Receive attribute information related to the target device, and send a first message to the real-time processing engine based on the attribute information; the attribute information includes information for instructing the target device to start a light chasing operation; If a first light-chasing instruction is received and sent by the real-time processing engine after processing the first message, a second message is sent to the target device and / or a target client associated with the target device, and the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation; the first message is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state.

2. The method according to claim 1, characterized in that The method further comprises: If a second light-chasing instruction is received and sent by the real-time processing engine after processing the first message, a light-chasing control instruction is sent to the target device to enable the target device to perform a light-chasing operation, and / or a third message is sent to the target client, wherein the third message is used to provide feedback that the target device is in a light-chasing state; the third message includes data related to light-chasing sent after the target device performs the light-chasing operation and / or information sent based on the second light-chasing instruction.

3. The method according to claim 2, characterized in that The first light-chasing instruction and / or the second light-chasing instruction are sent after the real-time processing engine obtains real-time weather data of the location of the target device and confirms the weather status based on the real-time weather data; the weather status corresponding to the first light-chasing instruction does not meet the preset light-chasing condition, and the weather status corresponding to the second light-chasing instruction meets the light-chasing condition; Among them, the acquisition of real-time weather data includes: the real-time processing engine stores the attribute information of the target device into a database, and obtains the real-time weather data through the database when the preset acquisition conditions are met; the preset acquisition conditions include that the target device is in the state of starting the light chasing and reaches the preset data acquisition time.

4. The method according to claim 1, characterized in that: The attribute information includes information sent by the target client and / or the target device; Wherein, when the target client and / or the target device responds to the operation of starting light chasing and determines that the device attribute used to characterize the light chasing state changes, the target client and / or the target device sends the attribute information to the Internet of Things platform.

5. The method according to claim 1, characterized in that The sending a first message to the real-time processing engine based on the attribute information includes: Monitoring the message queue and the real-time processing engine, and if it is determined that the performance of the message queue and / or the real-time processing engine meets the preset index requirements, writing the first message in the message queue based on the attribute information; transmitting the first message to the real-time processing engine through the message queue; Obtaining a confirmation message fed back by the message queue indicating that the first message has been transmitted; Among them, the first message transmitted to the real-time processing engine carries the attribute information, the identifier and / or version number generated by the Internet of Things platform for the attribute information; the version number is used to identify different information versions.

6. The method according to claim 5, characterized in that The method further comprises: If a processing failure message sent by the real-time processing engine is received, the version number of the attribute information is updated, and the first message is retransmitted to the real-time processing engine; If the duration between the first time of receiving the processing failure message and the second time of receiving the attribute information is greater than the preset duration, a fourth message is sent to the target device and / or the target client, and the fourth message is used to feedback that the target device is being controlled to start the light chasing operation.

7. A light tracking control method for a device, characterized in that: Applied to a client, the method comprises: receiving a second message sent by the IoT platform; Among them, the second message is sent by the Internet of Things platform after receiving the first light-chasing instruction sent by the real-time processing engine after processing the first message, and is used to feedback that the target device has started the light-chasing operation and is in a suspended light-chasing state; the first message is sent by the Internet of Things platform to the real-time processing engine based on the received attribute information related to the target device; the attribute information includes information for instructing the target device to start the light-chasing operation; the first light-chasing instruction is used to instruct the target device to suspend the light-chasing operation.

8. The method according to claim 7, characterized in that Before receiving the second message sent by the IoT platform, the method further includes: In response to an operation of triggering the target device to start light chasing, when it is determined that a device attribute used to characterize a light chasing state has changed, the attribute information is sent to the Internet of Things platform.

9. An electronic 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 according to any one of claims 1 to 8.

10. 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 according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Control method and device of clothes hanger and clothes hanger

    CN113759730A

  • Equipment control method, electronic equipment and readable storage medium

    CN118131819A

  • Light following airing method and device, electronic equipment and computer readable storage medium

    CN118166532A

  • Clothes airing equipment control method, clothes airing equipment, storage medium and program product

    CN118170061A

  • Equipment information synchronization method based on cloud-cloud docking and related equipment

    CN118283056A