Equipment control method and device and storage medium
By automatically determining the device control rules from preset control rules, the automatic association and operation control between detection and execution equipment is realized, which solves the problem of complex user manual settings and improves user experience and device control efficiency.
Patent Information
- Application Number
- CN202311516803.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2025-05-16
AI Technical Summary
In the prior art, users need to manually create the connection of the device and set up complex operations, resulting in poor user experience and easy to cause errors in setting up due to operational errors or unfamiliar with functions, affecting the normal operation of the device and power consumption management.
By responsive to the presence of the device to be configured, the selected control rules are determined from the preset multiple control rules, and based on this control device, automatic association and operation control between the detection class device and the execution class device is realized, thereby avoiding the user's manual complicated operations.
It realizes efficient control of the equipment, improves the user experience, avoids the problem of poor equipment control effect caused by operational complexity, and saves power consumption.
Smart Images

Figure CN120010301A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of device control, and in particular to a device control method, device and storage medium. Background Art
[0002] With the development of technology, the Internet of Things technology has appeared in people's daily life. Devices can be interconnected and share data and resources through the Internet of Things technology. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a device control method, apparatus and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a device control method is provided, comprising: in response to the existence of a device to be configured, determining a second control rule from at least one preset first control rule; wherein the device comprises a detection type device and an execution type device, the detection type device is used to detect data, the execution type device is used to be controlled to perform a preset operation, the second control rule is one of the first control rules, the first control rule or the second control rule is used to establish an association relationship between the detection type device and the execution type device; and controlling the device based on the second control rule.
[0005] In one embodiment, controlling the device based on the second control rule includes: determining the attributes of the detection device and the attributes of the execution device; establishing an association relationship between the detection device and the execution device having the same attributes; in response to data detected by the detection device satisfying a preset condition, controlling the execution device having an association relationship with the detection device to perform a preset operation, wherein different second control rules correspond to different preset conditions and preset operations.
[0006] In one embodiment, controlling the device based on the second control rule includes: determining that the current environment is in an abnormal state; shutting down the execution device and / or triggering a first prompt message, wherein the first prompt message is used to prompt that the current environment is in an abnormal state.
[0007] In one embodiment, determining that the current environment is in an abnormal state includes: in response to the detection type device including a first detection type device and / or a second detection type device, determining that the current environment is in an abnormal state based on the first detection type device and / or the second detection type device; wherein the first detection type device is used to detect whether the environment is closed, and the second detection type device is used to detect whether there are animals in the environment.
[0008] In one embodiment, the determining that the current environment is in an abnormal state based on the first detection type device and / or the second detection type device includes: if the first detection type device detects that the current environment is not closed, determining that the current environment is in an abnormal state; and / or, if the second detection type device detects that there are no animals in the current environment, determining that the current environment is in an abnormal state.
[0009] In one embodiment, determining that the current environment is in an abnormal state includes: in response to the detection type devices not including the first detection type device and / or the second detection type device, determining that the current environment is in an abnormal state based on data detected by the detection type devices.
[0010] In one embodiment, determining that the current environment is in an abnormal state based on the data detected by the detection device includes: determining that the current environment is in an abnormal state in response to a discontinuous increase or discontinuous decrease in the data detected by the detection device.
[0011] In one embodiment, determining that the current environment is in an abnormal state based on the data detected by the detection type device includes: calculating an expected steady-state time based on the detected data, the expected steady-state time indicating the time for the data to reach a target value, and the target value is determined based on a preset operation of the execution type device; in response to the data exceeding the expected steady-state time and failing to reach the target value, determining that the current environment is in an abnormal state.
[0012] In one embodiment, the execution type device includes a first execution type device, and in response to the data detected by the detection type device satisfying a preset condition, the execution type device associated with the detection type device is controlled to perform a preset operation, including: in response to the data detected by the detection type device satisfying the preset condition and detecting that the content of a first substance in the current environment is increased, the first execution type device associated with the detection type device is controlled to be turned on; wherein the first execution type device is used to process the first substance and the second substance in the environment, the first substance representing a substance whose content is reduced when the current environment is not closed, and the second substance representing a substance whose content is increased when the current environment is not closed.
[0013] In one embodiment, the method also includes: determining the state of the current environment based on the detected change trends of the first substance content and the second substance content; displaying a second prompt information, wherein the second prompt information is used to prompt the state of the current environment; wherein the state of the current environment includes at least one of the following: the current environment is closed; the current environment is not closed and there are animals in the current environment; there are no animals in the current environment; there is burning in the current environment; there is no burning in the current environment; there is execution-type equipment running in the current environment that produces the second substance; there is no execution-type equipment running in the current environment that produces the second substance; there is execution-type equipment running in the current environment that eliminates the second substance; there is no execution-type equipment running in the current environment that eliminates the second substance.
[0014] According to a second aspect of an embodiment of the present disclosure, there is provided a device control apparatus, comprising: a determination unit, for determining a second control rule from at least one preset first control rule in response to the presence of a device to be configured; wherein the device comprises a detection type device and an execution type device, the detection type device is used to detect data, the execution type device is used to be controlled to perform a preset operation, the second control rule is one of the first control rules, and the first control rule or the second control rule is used to establish an association relationship between the detection type device and the execution type device; and a processing unit, for controlling the device based on the second control rule.
[0015] In one embodiment, the determination unit is further used to determine the attributes of the detection type device and the attributes of the execution type device; the processing unit is further used to establish an association relationship between the detection type device and the execution type device having the same attributes; in response to the data detected by the detection type device satisfying a preset condition, the execution type device having an association relationship with the detection type device is controlled to perform a preset operation, and the preset conditions and the preset operations corresponding to different second control rules are different.
[0016] In one embodiment, the determination unit controls the device based on the second control rule in the following manner: determining that the current environment is in an abnormal state; shutting down the execution device and / or triggering a first prompt message, wherein the first prompt message is used to prompt that the current environment is in an abnormal state.
[0017] In one embodiment, the determination unit determines that the current environment is in an abnormal state in the following manner: in response to the detection type device including a first detection type device and / or a second detection type device, it is determined that the current environment is in an abnormal state based on the first detection type device and / or the second detection type device; wherein the first detection type device is used to detect whether the environment is closed, and the second detection type device is used to detect whether there are animals in the environment.
[0018] In one embodiment, the processing unit determines that the current environment is in an abnormal state based on the first detection type device and / or the second detection type device in the following manner: if the first detection type device detects that the current environment is not closed, it determines that the current environment is in an abnormal state; and / or if the second detection type device detects that there are no animals in the current environment, it determines that the current environment is in an abnormal state.
[0019] In one embodiment, the determination unit determines that the current environment is in an abnormal state in the following manner: in response to the detection type devices not including the first detection type devices and / or the second detection type devices, determining that the current environment is in an abnormal state based on data detected by the detection type devices.
[0020] In one embodiment, the determination unit determines that the current environment is in an abnormal state based on the data detected by the detection device in the following manner: in response to a discontinuous increase or discontinuous decrease in the data detected by the detection device, it is determined that the current environment is in an abnormal state.
[0021] In one embodiment, the determination unit determines that the current environment is in an abnormal state based on the data detected by the detection type device in the following manner: calculating an expected steady-state time based on the detected data, the expected steady-state time indicating the time for the data to reach a target value, and the target value is determined based on a preset operation of the execution type device; in response to the data exceeding the expected steady-state time and failing to reach the target value, determining that the current environment is in an abnormal state.
[0022] In one embodiment, the execution type device includes a first execution type device, and the processing unit controls the execution type device associated with the detection type device to perform a preset operation in response to the data detected by the detection type device satisfying a preset condition, including: in response to the data detected by the detection type device satisfying the preset condition and detecting that the content of a first substance in the current environment is increased, controlling the first execution type device associated with the detection type device to turn on; wherein the first execution type device is used to process the first substance and the second substance in the environment, the first substance representing a substance whose content is reduced when the current environment is not closed, and the second substance representing a substance whose content is increased when the current environment is not closed.
[0023] In one embodiment, the determination unit is further used to determine the state of the current environment based on the detected change trends of the content of the first substance and the content of the second substance; the processing unit is further used to display a second prompt information, and the second prompt information is used to prompt the state of the current environment; wherein the state of the current environment includes at least one of the following: the current environment is closed; the current environment is not closed and there are animals in the current environment; there are no animals in the current environment; there is burning in the current environment; there is no burning in the current environment; there is execution-type equipment running in the current environment that produces the second substance; there is no execution-type equipment running in the current environment that produces the second substance; there is execution-type equipment running in the current environment that eliminates the second substance; there is no execution-type equipment running in the current environment.
[0024] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the device control method of the first aspect and any one of the implementations of the first aspect.
[0025] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions are executed by a processor, the device control method in the first aspect or any one of the implementations of the first aspect is executed.
[0026] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by responding to the existence of a device with a configuration, determining a selected control rule from a plurality of preset control rules, and controlling the device based on the control rule, so as to achieve efficient control of the device, avoid the situation where the user has poor control over the device due to unfamiliarity with complex operations, and improve the user experience.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0029] Figure 1 The present invention is a flowchart of a device control method according to an exemplary embodiment.
[0030] Figure 2 The present invention is a flowchart of a device control method according to an exemplary embodiment.
[0031] Figure 3 The present invention is a flowchart of a device control method according to an exemplary embodiment.
[0032] Figure 4 The figure is a flowchart of a method for determining an abnormal environment state according to an exemplary embodiment.
[0033] Figure 5 It is a schematic diagram of target values for temperature and humidity.
[0034] Figure 6 The figure is a flowchart of a status prompt method according to an exemplary embodiment.
[0035] Figure 7 The present invention is a flow chart of a device control method according to an exemplary embodiment.
[0036] Figure 8 is a block diagram of a device control apparatus 100 according to an exemplary embodiment.
[0037] Fig. 9 is a block diagram of a device control apparatus 200 according to an exemplary embodiment. DETAILED DESCRIPTION
[0038] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0039] With the development of technology, the Internet of Things technology has appeared in people's daily life. Devices can be interconnected and share data and resources through the Internet of Things technology.
[0040] In some embodiments, the present disclosure will be explained by taking smart home devices as an example. The Internet of Things technology can realize the interconnection between home devices, share data and resources, and realize automatic control. Communication technology includes wired communication and wireless communication. Wired communication includes power line communication (PLC), and wireless communication technology includes wireless network (wifi), Bluetooth, ZigBee, a wireless networking specification (Z-wave), etc. In addition, the Internet of Things technology can also realize remote control and monitoring of devices and integration with other smart home systems.
[0041] In some embodiments, sensors can detect data and serve as trigger conditions to help the smart home system make corresponding decisions. Sensors include, for example, temperature and humidity sensors, illumination sensors, air quality sensors, etc., which can detect parameters such as temperature, humidity, light intensity, and air quality in the home environment in real time.
[0042] In some embodiments, by collecting and analyzing a large amount of device working data and user behavior, the smart home system can better identify user needs and automatically optimize environmental parameters. In addition, machine learning technology can continuously optimize the control strategy of the smart home automation system through self-learning and adaptation.
[0043] In some embodiments, wireless communication technology provides a real-time, efficient data transmission method for automated control of devices, ensuring rapid communication and response between devices.
[0044] In some embodiments, the device can be automatically controlled by intelligent control algorithms. For example, the algorithms include trigger-action programming (TAP) and event-condition-action (EAC). These algorithms can automatically trigger corresponding operations according to parameters and user needs to achieve intelligent automatic control. For example, the corresponding operations of environmental devices can be automatically triggered according to environmental parameters. In addition, methods such as air conditioning temperature control based on proportional-integral-differential (PID) control and lighting adjustment based on fuzzy control can achieve more accurate and natural environmental adjustment.
[0045] In some embodiments, it is also important to ensure data security and user privacy for devices connected to the home network. Data can be encrypted, authenticated and access controlled.
[0046] In some embodiments, the device can provide users with a personalized and comfortable experience through automated devices. Taking smart home devices as an example, they include smart air conditioners, humidifiers, dehumidifiers, fresh air blowers, air purifiers, etc. These devices can achieve system integration and interconnectivity. Through the Internet of Things technology, these devices can be linked with other home systems, such as security systems, entertainment systems, etc., to provide a more comprehensive home solution.
[0047] In some embodiments, taking temperature control as an example, trigger conditions can be set, such as when the indoor temperature reaches a certain threshold, the smart air conditioner can automatically turn on or off, or adjust the wind speed and temperature, so as to ensure that the indoor temperature is always kept within a comfortable range. At the same time, when it is detected that there is no one in the room, the smart air conditioner will automatically turn off, thereby saving energy. For example, in terms of air humidity control, through the smart home system, trigger conditions can be set for the smart humidifier or dehumidifier, such as when the indoor humidity is too low or too high, and the humidifier or dehumidifier can be automatically turned on or off when needed to adjust the air humidity. In addition, the humidifier or dehumidifier can also cooperate with other smart home elements, such as automatically adjusting the smart curtains to block sunlight while turning on the smart humidifier or dehumidifier to keep the indoor humidity constant. In indoor air quality monitoring and improvement, when the smart home system detects that the indoor air quality is poor, such as high carbon dioxide content, smoke, oil smoke, etc., the new air blower can automatically turn on to deliver fresh air from the outside to the room, while discharging the dirty air in the room. This helps to improve the comfort and health level of the living environment. For example, in terms of air purification and dust monitoring, smart air purifiers can automatically turn on or off the air purification function according to pre-set trigger conditions, such as poor indoor air quality, specific time periods, or indoor activity intensity. In addition, smart air purifiers can also be linked with other devices. For example, when cleaning carpets, the working intensity of the air purifier is automatically increased to reduce dust in the air. By adding devices to the smart home automation system, users can easily control and monitor the living environment and adjust the working mode of the equipment at any time to maintain a comfortable, energy-saving and healthy living environment. At the same time, these devices can also be linked with other smart home elements, such as lighting, security systems, etc., to achieve the goal of whole-house intelligence.
[0048] In some embodiments, the device can be linked with a sensor. For example, it can be linked with a temperature sensor, a humidity sensor, an air quality sensor, and other sensors, and automatically adjust or turn on the device when the environmental parameter exceeds a preset threshold. For example, when the humidity sensor detects that the indoor humidity is too low, the humidifier will automatically turn on to keep the indoor humidity constant.
[0049] In some embodiments, the device can be connected to a door magnetic sensor to automatically turn the device on or off when entering or leaving the house. For example, when the door magnetic senses that the user has left the house, the air conditioner can automatically turn off, thereby saving energy. Conversely, when the door is opened, the smart air conditioner automatically restores the user's preferred temperature.
[0050] In some embodiments, the device can establish linkage with human body sensors, such as infrared sensors, voiceprint recognition, etc., to identify whether there are people in the room, the activity status of people, etc., so as to automatically adjust the working mode of the device. For example, when the human body sensor detects that a user enters the room, the air purifier automatically turns on to keep the indoor air fresh.
[0051] In some embodiments, the device can automatically adjust the working mode according to the predetermined time and scene. For example, when the sleep mode is set at night, the purifier and humidifier are automatically turned on, and the curtains are automatically closed, creating a healthy and comfortable sleeping environment for the user.
[0052] However, users are still required to manually create device associations, and the association process is cumbersome. For example, users need to manually create various linkage conditions in smart home applications (applications, APPs), associate different types of devices, and spend a lot of time and effort before starting to apply the linkage function. This process is relatively cumbersome, especially for novice smart home users. In addition, when creating and associating devices, errors in settings may occur due to operational errors or insufficient understanding of device functions, which may prevent the linkage function from working as expected. Users need to spend a lot of time adjusting and trying to achieve the desired effect. Moreover, when no association is established between devices or when settings are wrong, the device cannot determine whether it needs to stop running to save power consumption during operation, and cannot prompt the user to operate in a timely manner, resulting in unnecessary waste of power consumption.
[0053] Therefore, the present disclosure provides a device control method, which determines a selected control rule from multiple preset control rules in response to the existence of a configured device, and controls the device based on the control rule to achieve efficient control of the device, avoid poor device control effects due to users' unfamiliarity with complex operations, and improve the user experience.
[0054] Among them, the device control method disclosed in the present invention can be applied to the control scenarios of smart home devices, and can also be applied to other device control scenarios, such as the control of vehicle-mounted equipment, etc. The present disclosure will be explained using smart home devices as examples, but is not limited to this.
[0055] The device control method provided in the present disclosure can be applied to a terminal or other subject. The terminal may also be referred to as a terminal device, a mobile station (MS), a mobile terminal (MT), etc., which is a device that provides voice and / or data connectivity to a user. For example, the terminal may be a handheld device with a wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals are: a smart phone (mobile phone), a pocket personal computer (PPC), a handheld computer, a personal digital assistant (PDA), a laptop computer, a tablet computer, a wearable device, or a vehicle-mounted device, etc. In addition, when it is a vehicle to everything (V2X) communication system, the terminal device may also be a vehicle-mounted device. It should be understood that the embodiments of the present disclosure do not limit the specific technology and specific device form adopted by the terminal.
[0056] Figure 1 is a flow chart of a device control method according to an exemplary embodiment. Figure 1 As shown, the device control method includes the following steps.
[0057] In step S11 , in response to the presence of a device to be configured, a second control rule is determined from at least one preset first control rule.
[0058] In some embodiments, the device to be configured can be understood as a device that is connected to the terminal for the first time, or a device for which a control rule is to be configured. For example, the device to be configured may be an air conditioner, an air purifier, a fresh air blower, a temperature and humidity sensor, a door magnetic sensor, etc. The device to be configured may establish a connection with the terminal, and the terminal configures control rules for it. Among them, establishing a connection may be through a wireless communication technology, and the wireless communication technology may be, for example, wifi, Bluetooth, ZigBee, etc., which are not given one by one in this disclosure. In response to the existence of a device to be configured, the terminal may determine a second control rule from at least one preset first control rule. Among them, the first control rule may be a pre-set control rule. The second control rule is one of the first control rules.
[0059] In some embodiments, the device may include a detection device and an execution device. Among them, the detection device is used to detect data, and the execution device is used to be controlled to perform a preset operation. For example, the control rule includes controlling the execution device to perform a preset operation when the data detected by the detection device meets the preset conditions. Detection devices include, for example, temperature and humidity sensors, air quality sensors, door magnetic sensors, human body sensors, etc. The present disclosure fails to list all examples, but it is understood that they are not limited to these. Execution devices include, for example, air conditioners, air purifiers, fresh air fans, etc. The present disclosure fails to list all examples, but it is understood that they are not limited to these.
[0060] In some embodiments, when there is only one first control rule, the first control rule and the second control rule are the same. When there are multiple first control rules, the second control rule is one of the first control rules. For example, the user may select one of the first control rules to determine the second control rule. It may also be based on time attributes, geographic location attributes, and user identity attributes to determine the second control rule from the first control rule. For another example, you can select any one of the first control rules as the second control rule. For another example, the time attribute may include seasons, months, etc.; the geographic location attribute may include the south, the north, or different cities in different countries; the user identity attribute may include occupation attributes, gender attributes, age attributes, etc. The second control rule is determined from the first control rule based on different attributes, so as to achieve the user without the need for manual complex operations, and to provide the user with a device control method suitable for the user, thereby improving the user experience. If the second control rule is not selected by the user, a prompt message may be sent to the user before the second control rule is determined, and the user determines whether to use the second control rule.
[0061] In step S12, the device is controlled based on the second control rule.
[0062] In some embodiments, the device can be controlled based on the determined second control rule. For example, the execution device can be controlled to perform a preset operation by checking whether the data detected by the detection device meets the preset conditions. The preset conditions may be, for example, whether the temperature or humidity reaches a threshold, whether the content of a certain substance in the air reaches a threshold, whether there are animals in the room, etc. The preset operation may be, for example, turning on the execution device, turning off the execution device, adjusting the parameters of the execution device, controlling the execution device to enter a dormant state, timing the execution device, etc. The preset conditions and preset operations exemplified above in the present disclosure are exemplary and are not limited in the present disclosure.
[0063] The present disclosure determines a selected control rule from a plurality of preset control rules in response to the existence of a device with a configuration, and controls the device based on the control rule, so as to achieve efficient control of the device, avoid poor device control effects due to unfamiliarity of the user with complex operations, and improve the user experience.
[0064] In some embodiments, Figure 2 FIG. 1 is a flow chart of a device control method according to an exemplary embodiment. Figure 2 As shown, the device control method provided by the present disclosure controls the device based on the second control rule in the following manner.
[0065] In step S21, the attributes of the detection type device and the attributes of the execution type device are determined.
[0066] In some embodiments, the attributes of the detection type device and the attributes of the execution type device can be determined. For example, the attributes may include category attributes and room attributes. The category attribute indicates which category the device belongs to. For example, it includes temperature category, humidity category, air quality category, etc. The air quality category includes, for example, particulate matter with a diameter of less than or equal to 2.5 microns (2.5-micrometer particulate matter, PM2.5), carbon dioxide (CO2), and total volatile organic compounds (total volatile organic compounds, TVOC). The room attribute indicates in which room the device is placed. For example, it includes bedroom, kitchen, bathroom, living room, etc.
[0067] In step S22, an association relationship is established between detection devices and execution devices having the same attributes.
[0068] In some embodiments, an association relationship may be established between detection devices and execution devices having the same attributes. For example, an association relationship may be established between temperature detection devices and execution devices in the same room. A temperature detection device may be a temperature sensor, and a temperature execution device may be an air conditioner. Then, an association relationship may be established between the temperature sensor and the air conditioner in the same room, so that the air conditioner can monitor the data detected by the temperature sensor in real time.
[0069] It is understandable that for users, it is easy to think of establishing an association between the air conditioner and the temperature sensor, but for some devices, such as the door magnetic sensor and the air conditioner, it is not easy to think of establishing an association between the two devices. The purpose of establishing an association between the two devices is: if the door magnetic sensor detects that the doors and windows are open, turning on the air conditioner not only fails to adjust the indoor temperature and humidity, but also causes unnecessary power consumption. Therefore, the air conditioner can be turned off to avoid power consumption. However, users generally do not think of establishing an association between the door magnetic sensor and the air conditioner. Therefore, if it depends on the user's active setting, it often leads to the equipment in the room not being well utilized, not achieving the best use effect, and reducing the user's experience. Therefore, the present disclosure controls the device based on the second control rule, and establishes an association between the detection device and the execution device with the same attributes to improve the user experience.
[0070] In some embodiments, before establishing an association between detection devices and execution devices with the same attributes, the attributes of different devices can also be determined. For example, for a door magnetic sensor, its category attributes can be determined to include temperature and humidity, air quality, etc. Then, whether it is an air conditioner or an air purifier, when the door magnetic sensor detects that the door or window is open, it can execute a closing operation to save power consumption.
[0071] In step S23, in response to the data detected by the detection device satisfying the preset condition, the execution device associated with the detection device is controlled to execute a preset operation, and different second control rules correspond to different preset conditions and preset operations.
[0072] In some embodiments, after an association relationship is established between a detection device and an execution device of the same attribute, if the data detected by the detection device meets the preset conditions, the corresponding execution device can be controlled to perform a preset operation. For example, when the temperature of the room is detected to be lower than the set value, the temperature condition device is triggered to automatically increase the temperature. When the temperature in the room is detected to be higher than the set value, the temperature adjustment device is triggered to automatically lower the temperature. For the preset conditions, a threshold value (value) and a direction (direction) can be preset. Wherein, direction can include positive (positive) or negative (negative). For the detection device, (positive, value) means that the preset condition is met when the detected data is higher than value, and (negative, value) means that the preset condition is met when the detected data is lower than value. For the preset operation, it can include turning on the execution device, turning off the execution device, adjusting the parameters of the execution device, controlling the execution device to enter a dormant state, timing the execution device, etc. Wherein, adjusting the parameters of the execution device can include value and direction. For the execution device, (positive, value) can represent increasing value. (negative, value) can represent reducing value.
[0073] In some embodiments, different second control rules correspond to different preset conditions and preset operations. For a determined second control rule, the preset conditions and preset operations may also be adjusted according to actual conditions.
[0074] The present disclosure determines device attributes and establishes associations between devices with the same attributes. When the detection device detects that the data meets the preset conditions, the execution device with the association is controlled to perform the preset operation. This eliminates the need for users to perform complex operations, and also avoids the situation where some devices fail to establish associations due to the limitations of user operations, that is, avoids the situation where the functions of each device are not fully utilized. This can improve the user experience.
[0075] In some embodiments, if the current environment is in an abnormal state, some execution devices can be turned off to save power consumption. Therefore, the present disclosure provides a device control method, such as Figure 3 As shown, Figure 3 is a flow chart of a device control method according to an exemplary embodiment, comprising the following steps.
[0076] In step S31, it is determined that the current environment is in an abnormal state.
[0077] In some embodiments, it can be determined that the current environment is in an abnormal state. For example, if there are no animals in the current environment, it can be determined that the current environment is in an abnormal state. Or if the current environment is in a closed state, such as doors and windows are open, it can be considered that the current environment is in an abnormal state. Of course, the above are just examples, and the abnormal state can be determined based on actual conditions. For example, when there are animals in the room, it can be determined that it is in an abnormal state. For example, for some equipment with relatively loud noises or equipment that sprays liquids or particulate matter, its working environment should try to avoid animals in the room. It can be set that if there are animals in the room, it is determined to be in an abnormal state. However, the present disclosure is only an example and is not limited.
[0078] In step S32, the execution device is turned off and / or the first prompt information is triggered, where the first prompt information is used to prompt that the current environment is in an abnormal state.
[0079] In some embodiments, if it is determined that the current environment is in an abnormal state, the execution device is turned off and / or the first prompt information is triggered. The first prompt information is used to prompt the user that the current environment is in an abnormal state. For example, if the room is not closed, the air conditioner is turned off and / or the user is prompted that the current environment is not closed. The execution device can be turned off directly, or the first prompt information can be displayed to the user without turning off the execution device, or the first prompt information can be displayed to the user while turning off the execution device.
[0080] The present disclosure can save power consumption by determining that the current environment is in an abnormal state, thereby shutting down execution devices or displaying prompt information. If the user is informed of the current environment state, the user can also perform other operations, such as closing doors and windows, to improve the user experience.
[0081] In some embodiments, the present disclosure may determine that the current environment is in an abnormal state in the following manner: in response to the detection type devices including the first detection type devices and / or the second detection type devices, determine that the current environment is in an abnormal state based on the first detection type devices and / or the second detection type devices.
[0082] In some embodiments, the first detection type device is used to detect whether the environment is closed. For example, the first detection type device may be a door magnetic sensor. The second detection type device is used to detect whether there are animals in the room. For example, the second detection type device may be an infrared sensor. The first detection type sensor and the second detection type sensor exemplified in the present disclosure are only exemplary. All devices that can detect whether the room is closed may be first detection type devices, and all devices that can detect whether there are animals in the room may be second detection type devices. Among them, animals also include humans. If the first detection type device detects that the room is not closed, it can be determined that the current environment is in an abnormal state. If the second detection type device detects that there are no animals in the room, it can be determined that the current environment is in an abnormal state. If the first detection type device detects that the room is not closed, and the second detection type device detects that there are no animals in the room, it can be determined that the current environment is in an abnormal state.
[0083] In some embodiments, if the current environment is detected to be in an abnormal state based on the first detection device, the execution device with the same room attribute as the first detection device can be turned off. That is, the execution device in the same room as the first detection device is turned off. For example, if the current environment is not closed, the air conditioner in the current room is turned off. Alternatively, the user can be prompted that the room where the first detection device is located is in an abnormal state. The user can also be provided with an operation window for turning off the execution device in the same room as the first detection device, so that the user can conveniently perform the closing operation.
[0084] In some embodiments, shutting down execution-type devices may be shutting down all execution-type devices, or shutting down some preset execution-type devices. For example, for devices such as air conditioners and air evaporators, the shutdown operation may be performed in response to the current environment being in an abnormal state. For devices such as sweeping robots, they may continue to work when the current environment is in an abnormal state.
[0085] The present disclosure determines the abnormal state of the current environment through the first detection device and / or the second detection device, so as to effectively and efficiently shut down all or part of the execution devices or prompt information to the user to save power consumption.
[0086] In some embodiments, the present disclosure adopts the following method to determine that the current environment is in an abnormal state based on the first detection type device and / or the second detection type device: if the first detection type device detects that the current environment is not closed, it determines that the current environment is in an abnormal state; and / or, if the second detection type device detects that there are no animals in the current environment, it determines that the current environment is in an abnormal state.
[0087] In some embodiments, when the first detection device detects that the current environment is not closed, it can be determined that the current environment is in an abnormal state. For example, the first detection device can be a door magnetic sensor, which can detect whether the door or window is open or closed. If the door or window is open, the current environment is not closed, that is, it is determined that the current environment is in an abnormal state.
[0088] In some embodiments, when the second detection device detects that there are no animals in the current environment, it is determined that the current environment is in an abnormal state. For example, the second detection device may be an infrared sensor. The infrared sensor can detect whether there are animals in the room. Animals include pets such as cats and dogs, as well as people. If it is detected that there are no animals in the room, it is determined that the current environment is in an abnormal state.
[0089] The present disclosure determines the abnormal state of the current environment through the first detection device and / or the second detection device, so as to effectively and efficiently shut down all or part of the execution devices or prompt information to the user to save power consumption.
[0090] In some embodiments, the present disclosure may determine that the current environment is in an abnormal state in the following manner: in response to the detection type devices not including the first detection type device and / or the second detection type device, determine that the current environment is in an abnormal state based on data detected by the detection type devices.
[0091] In some embodiments, if the detection device does not include the first detection device and / or the second detection device, it can be determined that the current environment is in an abnormal state based on the data detected by other detection devices. For example, the current environment can be indirectly determined to be not in a closed state through the data detected by the detection device, thereby determining that the current environment is in an abnormal state. For example, when there is a large fluctuation in the data detected by the detection device, it can be determined that the current environment is in an abnormal state. Or when the data detected by the detection device is in a reverse growth trend, it can be determined that the current environment is in an abnormal state. Among them, the reverse growth trend refers to the opposite direction of the preset operation of the execution device. Taking the air conditioner as an example, if the air conditioner is cooling the room, when the detection device detects that the temperature of the room has risen, it means that it is in a reverse growth trend, and it can be determined that the current environment is in an abnormal state.
[0092] The present disclosure can indirectly determine that the current environment is in an abnormal state through data detected by the detection device, so that even if the user has not installed the first detection device and / or the second detection device, it can be determined that the current environment is in an abnormal state.
[0093] In some embodiments, the present disclosure determines that the current environment is in an abnormal state based on data detected by a detection device in the following manner: in response to a discontinuous increase or discontinuous decrease in data detected by the detection device, it is determined that the current environment is in an abnormal state.
[0094] In some embodiments, if the data detected by the detection device is discontinuously increasing or decreasing, it can be determined that the current environment is in an abnormal state. Among them, discontinuous increase or discontinuous decrease can be understood as fluctuation. Taking temperature as an example, discontinuous increase or discontinuous decrease means that the temperature exists in two states of rising and falling within a period of time. It is possible that the current room is in an unclosed state, and the indoor temperature is affected by both the outdoor temperature and the air conditioner, so it fluctuates. That is, assuming that the air conditioner is performing a cooling operation, causing the temperature to drop, and the outdoor temperature is high, which causes the indoor temperature to rise. Or, assuming that the air conditioner is performing a heating operation, causing the temperature to rise, and the outdoor temperature is low, which causes the indoor temperature to drop. At this time, the work of the air conditioner is meaningless, causing additional power consumption. Of course, the room is not closed is only a possible situation. There may also be other complex situations in reality, which cause the data detected by the detection device to increase or decrease discontinuously, but no matter what the situation is, if the data is discontinuously increasing or decreasing, it can be considered that the operation of the execution device is meaningless, so it can be determined that the current environment is in an abnormal state.
[0095] The present disclosure uses the data detected by the detection device to increase or decrease discontinuously, so as to directly determine that the current environment is in an abnormal state without determining the specific situation of the current environment. It can more simply, directly and efficiently determine that the current environment is in an abnormal state.
[0096] In some embodiments, Figure 4 is a flow chart of a method for determining an abnormal environment state according to an exemplary embodiment. Figure 4 As shown, the present disclosure uses the following method to determine that the current environment is in an abnormal state based on the data detected by the detection device.
[0097] In step S41, an expected steady-state time is calculated based on the detected data, where the expected steady-state time represents the time for the data to reach a target value, and the target value is determined based on a preset operation of the execution type device.
[0098] In some embodiments, the expected steady-state time can be calculated based on the detected data. Among them, the expected steady-state time can represent the time when the data reaches the target value. For example, if the detected data is the current temperature value, the expected steady-state time can represent the time when the air conditioner performs a heating or cooling operation and reaches the target temperature value from the current temperature value. For another example, if the detected data is the content of CO2 in the current air, the expected steady-state time can represent the time when the air purifier performs an air purification operation and reaches the target CO2 content from the current CO2 content. Of course, the above situation is only exemplary and is not limited to this. The target value can be determined based on the preset operation of the execution class device. That is, the target value can refer to the value in the embodiment of the above step S23.
[0099] In some embodiments, the target values may refer to Table 1. Table 1 provides reference settings for target values of PM2.5, TVOC, and temperature and humidity.
[0100] Table 1
[0101]
[0102] Among them, humidity has an impact on the perceived temperature. Figure 5 It is a schematic diagram of target values of temperature and humidity. Figure 5 As shown in the figure, the horizontal axis T represents temperature, the vertical axis RH represents humidity, and the winter area represents the target value range of temperature and humidity in winter. The summer area represents the target value range of temperature and humidity in summer. The higher the humidity, the higher the upper and lower limits of the suitable dry bulb temperature will be. The target values of temperature and humidity can be adjusted periodically according to the season.
[0103] In some embodiments, the expected steady-state time can be calculated based on the data detected by the detection device, the target value, the execution device parameter, the room volume, etc. The expected steady-state time can be a numerical value or a numerical range. For example, reference can be made to Table 2. Table 2 shows the method of calculating the expected steady-state time for different data and corresponding execution devices.
[0104] Table 2
[0105]
[0106] The t in the table represents the expected steady-state time, for example, t PM2.5 / TVOCIndicates the expected steady-state time of PM2.5 or TVOC. Sroom represents the area of the room, hroom represents the height of the room, Sroom·hroom represents the volume of the room, and can also represent the volume of the air in the room, or the air capacity of the room, etc. CADR stands for clean air delivery rate (CADR). It can be understood that the higher the CADR value, the higher the purification efficiency of the purifier, that is, the target value can be reached in a shorter time. CADRmax represents the maximum CADR value, that is, the highest purification efficiency that the purifier can achieve. Indicates the shortest time for the purifier to complete purification. CADRmin indicates the minimum CADR value, that is, the minimum purification efficiency of the purifier. Indicates the maximum time it takes for the purifier to complete purification. Indicates the time range for the purifier to complete purification, that is, the execution type equipment of PM2.5 / TVOC type, when processing PM2.5 / TVOC in the air, the time to reach the expected steady state is ∈ means belongs to.
[0107] For example, t 温度 Indicates the expected steady-state time of temperature. Cp is the specific heat capacity of air, measured in kilojoules per kilogram Kelvin (kJ / kg·K). T0 is the initial temperature, which is the temperature data detected by the detection equipment, and can also be understood as the current temperature. T1 is the target value of the temperature, that is, the target temperature. (T1-T0) represents the temperature difference between the current temperature and the target temperature. ρ is the air density, Sroom represents the area of the room, hroom represents the height of the room, Sroom·hroom represents the volume of the room, and can also represent the volume of the air in the room, or the air capacity of the room, etc. ρ·Sroom·hroom represents the mass of the air in the room. According to the law of thermal conductivity, Cp·(T1-T0)·(ρ·Sroom·hroom) represents heat. P represents the power of the equipment, such as the power of the air conditioner, in kilowatts per hour (kw / h), Pmax represents the maximum power, and Pmin represents the minimum power. η represents the average conversion efficiency. Indicates the shortest time from the current temperature to the target temperature. Indicates the maximum time from the current temperature to the target temperature. Represents the range of expected steady-state time for temperature.
[0108] For example, t 湿度 Indicates the expected steady-state time of humidity. Rv represents the gas constant of water vapor, which is 461.5 joules per kilogram Kelvin (J / kg·K). RH0 represents the initial relative humidity, which can be understood as the temperature data detected by the detection equipment, or it can be understood as the current humidity. satRepresents the saturated vapor pressure value, which is exp represents an exponential function with constant e as base. The value of e is about 2.71. Troom represents the current room temperature. e sat The unit is kilopascal (kPa). sat RH0 represents the initial absolute humidity, that is, the current absolute humidity. RH1 represents the target value of humidity, that is, the target relative humidity. sat RH1 represents the target absolute humidity. Sroom represents the area of the room, hroom represents the height of the room, and Sroom·hroom represents the volume of the room, and may also represent the volume of the air in the room, or the air capacity of the room, etc. P represents power, such as the power of a humidifier or a dehumidifier. Indicates the shortest time from the current absolute humidity to the target absolute humidity. Indicates the shortest time from the current absolute humidity to the target absolute humidity. Indicates the expected steady-state time for humidity.
[0109] In some embodiments, the room area and height, i.e., Sroom and hroom, may be set by the user. Alternatively, the area and height of different rooms may be determined according to preset values. For example, reference may be made to Table 3. Table 3 includes preset average area ranges and average height ranges of different room types.
[0110] Table 3
[0111]
[0112] It is understandable that the several methods for calculating the expected steady-state time provided in Table 2 are only exemplary, and the present disclosure cannot exhaustively list all situations, but is not limited. The preset average area range and average height range in Table 3 are exemplary and can be set according to actual conditions, and the present disclosure does not limit them.
[0113] In step S42, in response to the data failing to reach the target value for exceeding the expected steady-state time, it is determined that the current environment is in an abnormal state.
[0114] In some embodiments, if it is detected that the data exceeds the expected steady-state time and fails to reach the target value, it can be determined that the current environment is in an abnormal state. Wherein, when the expected steady-state time is a numerical value, it is detected that the data exceeds the numerical value and fails to reach the target value, and the current environment is determined to be in an abnormal state. When the expected steady-state time is a numerical range, it can be detected that the data exceeds the maximum value of the data range and fails to reach the target value, and the current environment is determined to be in an abnormal state. Alternatively, it can be detected that the data exceeds a certain intermediate value of the numerical range and fails to reach the target value, and the current environment is determined to be in an abnormal state.
[0115] The present disclosure calculates the expected steady-state time based on the detected data, and can more accurately determine whether the current environment is in an abnormal state.
[0116] In some embodiments, some devices, such as fresh air devices, are used to process two different substances in the air, and the change trends of the contents of these two substances are different when the current environment is not closed. Therefore, for such devices, the conditions for controlling their opening should also be different. Therefore, the present disclosure provides a device control method, including: in response to data detected by a detection device meeting a preset condition and detecting that the content of a first substance in the current environment increases, controlling a first execution device associated with the detection device to open.
[0117] In some embodiments, the first execution type device is used to process the first substance and the second substance in the environment. The first substance represents a substance whose content decreases when the current environment is not closed. For example, the first substance may be CO2. Since the outdoor CO2 is almost a constant value, the indoor CO2 content may decrease when the environment is in an unclosed state. Relatively speaking, the indoor CO2 content may increase when the environment is in a closed state. When there are animals indoors, the CO2 content may increase because the animals' breathing produces CO2. The second substance may be PM2.5, which may increase when the current environment is in an unclosed state. Therefore, for the first execution type device, it is necessary to determine whether the content of the first substance increases when it is detected that the content of the first substance or the second substance meets the preset conditions, and the first execution type device is turned on only when the first substance increases. If the content of the first substance decreases, it can be determined that the current environment is in an unclosed state or there are no animals in the current environment, and the first execution type device is not turned on.
[0118] In some embodiments, referring to Table 4, when there are animals and plants indoors, CO2 content will increase due to the respiration of animals and plants, while PM2.5 content will not change. When there is combustion indoors, PM2.5 and CO2 will be generated due to combustion, so both PM2.5 and CO2 content will increase. When the environment is not closed, PM2.5 will increase because outdoor PM2.5 is greater than indoor PM2.5, and CO2 will decrease because outdoor CO2 is less than or equal to indoor CO2. When volatile equipment is working indoors, PM2.5 will be generated, so PM2.5 content will increase, while CO2 content will hardly change.
[0119] Table 4
[0120]
[0121]
[0122] With reference to Table 4, it can be determined that when the CO2 content increases, it can be considered that the current environment is closed and there may be animals and plants, so the first execution type device can be turned on.
[0123] The present disclosure is aimed at some devices, namely, first execution type devices, considering the specific substances processed by them, and turning on the first execution type devices based solely on whether the detected data meets the preset conditions may cause meaningless power consumption. Therefore, by turning on the first execution type devices only when the first substance increases, power consumption can be saved in a targeted manner.
[0124] In some embodiments, the present disclosure provides a status prompt method. Figure 6 FIG. 1 is a flow chart of a status prompt method according to an exemplary embodiment. Figure 6 As shown, the status prompt method includes the following steps.
[0125] In step S51, the state of the current environment is determined according to the detected change trends of the first substance content and the second substance content.
[0126] In some embodiments, the state of the current environment can be determined based on the changing trend of the content of the first substance and the content of the second substance detected by the first substance. For example, referring to Table 4, when the content of the first substance increases, and the content of the second substance does not change significantly, it can be considered that there are animals and plants in the current environment. When the content of the first substance and the content of the second substance increase at the same time, it can be considered that there is a burning situation in the current environment. When the content of the first substance decreases, and the content of the second substance increases, it can be considered that the current environment is not closed. When the content of the first substance does not change significantly, and the content of the second substance increases, it can be considered that there is volatile equipment working in the current environment.
[0127] In some embodiments, the state of the current environment includes at least one of the following: the current environment is closed; the current environment is not closed; there are animals in the current environment; there are no animals in the current environment; there is burning in the current environment; there is no burning in the current environment; there is execution-type equipment running in the current environment that produces a second substance; there is no execution-type equipment running in the current environment that produces a second substance; there is execution-type equipment running in the current environment that eliminates a second substance; there is no execution-type equipment running in the current environment that eliminates the second substance.
[0128] In some embodiments, the state of the current environment can be determined according to Table 5. Table 5 takes the first substance as CO2 and the second substance as PM2.5 as an example, and shows various combinations of the changing trends of the first substance content and the second substance content, and the corresponding current environment states.
[0129] As shown in Table 5, when the first execution type device is not turned on, the following situations may be included: When the PM2.5 content increases and the CO2 content decreases, it can be determined that the current environment is not closed and there are volatile devices working. When the PM2.5 content remains unchanged and the CO2 content decreases, it can be determined that the current environment is not closed. When the PM2.5 content decreases and the CO2 content decreases, it can be determined that the current environment is not closed. When the PM2.5 content decreases and the CO2 content increases, it can be determined that the current environment is closed, there are animals and plants indoors, and there are other PM2.5 / CO2 execution type devices working. When the PM2.5 content remains and the CO2 content increases, it can be determined that the current environment is closed, there are animals and plants indoors, and there are other PM2.5 / CO2 execution type devices working. When both the PM2.5 content and the CO2 content increase, it can be determined that the current environment is closed, there are animals and plants indoors, and there are volatile devices working. When the PM2.5 content decreases and the CO2 content remains, it can be determined that there are other PM2.5 / CO2 execution type devices working. When the PM2.5 level increases and the CO2 level remains constant, it can be determined that volatile equipment is operating.
[0130] When the first execution type device is turned on, it is possible to calculate whether the first substance and the second substance have exceeded the expected steady-state time and failed to reach the target value based on the detected data, and determine the state of the current environment. The tPM2.5 in Table 5 represents the expected steady-state time of PM2.5, and tCO2 represents the expected steady-state time of CO2. For example, the following situations are included: If PM2.5 exceeds the expected steady-state time and fails to reach the target value, and CO2 reaches the target value within the expected steady-state time, it can be determined that the current environment is not closed, or that the current environment is in a closed state and volatile equipment is working. The timeout in Table 5 means that the target value has not been reached after the expected steady-state time, and no timeout means that the target value has been reached within the expected steady-state time. When both PM2.5 and CO2 have not timed out, it can be determined that the current environment is in a closed state. When PM2.5 has not timed out and CO2 has timed out, it can be determined that the current environment is in a closed state and there are animals and plants indoors, or that the current environment is in a closed state and there is no combustion. When both PM2.5 and CO2 exceed the time limit, it can be determined that the current environment is in a closed state and there are animals and plants indoors, or that the current environment is in a closed state and there is combustion, or that the current environment is in a closed state and volatile equipment is working.
[0131] Table 5
[0132]
[0133]
[0134] In step S52, a second prompt message is displayed, where the second prompt message is used to prompt the status of the current environment.
[0135] In some embodiments, a second prompt message may be displayed, and the second prompt message may be used to prompt the state of the current environment, so as to inform the user of the state of the current environment, so that the user can adjust the current environment according to the state of the current environment, for example, closing doors and windows, etc.
[0136] The present disclosure determines the state of the current environment according to the change trend of the content of the first substance and the content of the second substance, and prompts the user with the state of the current environment, so that the user can know the state of the current environment and can also adjust the current environment to improve the user experience.
[0137] In some embodiments, machine rest technology can be used to determine the user's behavior and habit preferences, and adjust the first control rule or the second control rule based on the determined new information.
[0138] In some embodiments, a first control rule matching the periodic timing may be set. For example, first control rules corresponding to different seasons and different time periods may be set. Different time periods may be, for example, nighttime or specific time.
[0139] In some embodiments, the preset conditions may be adjusted according to whether the user turns on or off the execution type device, and whether the first detection type device and / or the second detection type device exist.
[0140] Figure 7 is a flow chart of a device control method according to an exemplary embodiment. Figure 7 As shown, the present disclosure provides a device control rule recommendation method, which includes the following steps.
[0141] In step S61, a preset control rule is recommended.
[0142] In some embodiments, a preset control rule may be recommended, for example, a preset first control rule may be recommended, or a determined second control rule may be recommended.
[0143] In step S62, it is determined whether there is a door magnetic sensor and / or a human body sensor.
[0144] In some embodiments, whether there are door magnetic sensors and human body sensors can be determined based on whether the terminal is connected to the door magnetic sensors and human body sensors.
[0145] In step S63 , in response to the presence of the door magnetic sensor and / or the human body sensor, control rules associated with the door magnetic sensor and the human body sensor are recommended.
[0146] In some embodiments, if it is determined that there is a door magnetic sensor and / or a human body sensor. Then control rules associated with the door magnetic sensor and the human body sensor can be recommended. For example, it can be determined whether the current environment is in an abnormal state based on the door magnetic sensor and / or the human body sensor. If it is in an abnormal state, a first prompt message can be displayed to the user or the execution type device can be turned off. Among them, the door magnetic sensor can be a first detection type device, and the human body sensor can be a second detection type device. The specific implementation method can refer to the above-mentioned specific implementation methods of the first detection type device and the second detection type device, and the present disclosure will not be repeated here.
[0147] In step S64 , in response to the absence of the door magnetic sensor and the human body sensor, it is determined whether there is a first execution class device.
[0148] In some embodiments, if there is no door magnetic sensor and human body sensor, it can be determined whether there is a first execution type device. The first execution type device can be, for example, a fresh air type device.
[0149] In step S65, in response to the presence of a first execution type device, a rule for determining the current environmental state based on the PM2.5 and CO2 data and change trends is recommended.
[0150] In some embodiments, if there is a first execution type device, a rule for determining the current environmental state based on the data of PM2.5 and CO2 and the change trend can be recommended. That is, it can be determined whether the current environmental state is in an abnormal state based on the data of PM2.5 and CO2 and the change trend, or the state of the current environment can be determined and the second prompt information can be displayed to the user. The specific implementation method can refer to the above embodiment, and the present disclosure will not be repeated here.
[0151] In step S66 , in response to the absence of the first execution class device, a rule for determining the current environment state based on the expected steady-state time is recommended.
[0152] In some embodiments, if there is no first execution type device, a rule for determining the current environment state based on the expected steady state time can be recommended to the user. That is, based on whether the detected data reaches the target value when the expected steady state time is exceeded, it can be determined whether the current environment is in an abnormal state. The specific implementation method can refer to the above embodiment, and the present disclosure will not be repeated here.
[0153] The present disclosure recommends different rules to users to flexibly control devices in different situations and improve user experience.
[0154] Based on the same concept, the present disclosure provides a device for controlling an equipment.
[0155] It is understandable that the device control device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0156] It should be noted that those skilled in the art can understand that the various implementation methods / embodiments involved in the embodiments of the present disclosure can be used in conjunction with the aforementioned embodiments or can be used independently. Whether used alone or in conjunction with the aforementioned embodiments, the implementation principle is similar. In the implementation of the present disclosure, some embodiments are described in terms of implementation methods used together. Of course, those skilled in the art can understand that such examples are not limitations of the embodiments of the present disclosure.
[0157] Figure 8 FIG. 1 is a block diagram of a device control apparatus 100 according to an exemplary embodiment. Figure 8 As shown, the device 100 includes: a determining unit 101 and a processing unit 102 .
[0158] The determination unit 101 is used to determine a second control rule from at least one preset first control rule in response to the existence of a device to be configured. The device includes a detection device and an execution device, the detection device is used to detect data, the execution device is used to be controlled to perform a preset operation, the second control rule is one of the first control rules, and the first control rule or the second control rule is used to establish an association relationship between the detection device and the execution device. The processing unit 102 is used to control the device based on the second control rule.
[0159] In one embodiment, the determination unit 101 is further used to determine the attributes of the detection device and the attributes of the execution device. The processing unit 102 is further used to establish an association relationship between the detection device and the execution device having the same attributes. In response to the data detected by the detection device meeting the preset condition, the execution device associated with the detection device is controlled to perform a preset operation, and different second control rules correspond to different preset conditions and preset operations.
[0160] In one embodiment, the determining unit 101 controls the device based on the second control rule in the following manner: determining that the current environment is in an abnormal state, shutting down the execution device and / or triggering the first prompt information, the first prompt information being used to prompt that the current environment is in an abnormal state.
[0161] In one embodiment, the determination unit 101 determines that the current environment is in an abnormal state in the following manner: in response to the detection device including the first detection device and / or the second detection device, the current environment is determined to be in an abnormal state based on the first detection device and / or the second detection device. The first detection device is used to detect whether the environment is closed, and the second detection device is used to detect whether there are animals in the environment.
[0162] In one embodiment, the processing unit 102 determines that the current environment is in an abnormal state based on the first detection device and / or the second detection device in the following manner: if the first detection device detects that the current environment is not closed, then the current environment is determined to be in an abnormal state. And / or, if the second detection device detects that there are no animals in the current environment, then the current environment is determined to be in an abnormal state.
[0163] In one embodiment, the determination unit 101 determines that the current environment is in an abnormal state in the following manner: in response to the detection type devices not including the first detection type device and / or the second detection type device, determining that the current environment is in an abnormal state based on data detected by the detection type devices.
[0164] In one implementation, the determination unit 101 determines that the current environment is in an abnormal state based on data detected by the detection device in the following manner: in response to a discontinuous increase or a discontinuous decrease in the data detected by the detection device, it is determined that the current environment is in an abnormal state.
[0165] In one embodiment, the determination unit 101 determines that the current environment is in an abnormal state based on the data detected by the detection device in the following manner: based on the detected data, an expected steady-state time is calculated, where the expected steady-state time represents the time for the data to reach a target value, and the target value is determined based on a preset operation of the execution device. In response to the data failing to reach the target value beyond the expected steady-state time, it is determined that the current environment is in an abnormal state.
[0166] In one embodiment, the execution type device includes a first execution type device, and the processing unit 102 controls the execution type device associated with the detection type device to perform a preset operation in response to the data detected by the detection type device meeting the preset condition, including: in response to the data detected by the detection type device meeting the preset condition and detecting that the content of the first substance in the current environment increases, the first execution type device associated with the detection type device is controlled to start. The first execution type device is used to process the first substance and the second substance in the environment, the first substance represents a substance whose content decreases when the current environment is not closed, and the second substance represents a substance whose content increases when the current environment is not closed.
[0167] In one embodiment, the determination unit 101 is further used to determine the state of the current environment based on the detected change trends of the first substance content and the second substance content. The processing unit 102 is further used to display a second prompt message, and the second prompt message is used to prompt the state of the current environment. Among them, the state of the current environment includes at least one of the following: the current environment is closed. The current environment is not closed. There are animals in the current environment. There are no animals in the current environment. There is a burning situation in the current environment. There is no burning situation in the current environment. There is an execution type device running in the current environment that produces the second substance. There is no execution type device running in the current environment that produces the second substance. There is an execution type device running in the current environment that eliminates the second substance. There is no execution type device running in the current environment that eliminates the second substance.
[0168] Fig. 9 is a block diagram of a device control apparatus 200 according to an exemplary embodiment.
[0169] like Fig. 9 As shown, apparatus 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0170] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0171] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0172] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0173] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0174] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0175] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0176] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0177] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0178] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0179] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0180] The present disclosure determines a selected control rule from a plurality of preset control rules in response to the existence of a device with a configuration, and controls the device based on the selected control rule, so as to achieve efficient control of the device, avoid poor device control effects due to unfamiliarity of the user with complex operations, and improve the user experience.
[0181] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0182] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0183] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0184] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0185] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
Claims
1. A device control method, characterized in that: include: In response to the presence of a device to be configured, determining a second control rule from at least one preset first control rule; The device includes a detection device and an execution device, the detection device is used to detect data, the execution device is used to be controlled to perform a preset operation, the second control rule is one of the first control rules, and the first control rule or the second control rule is used to establish an association relationship between the detection device and the execution device; The device is controlled based on the second control rule.
2. The method according to claim 1, characterized in that The controlling the device based on the second control rule comprises: Determine the properties of the detection device and the properties of the execution device; Establishing an association relationship between the detection device and the execution device having the same attribute; In response to the data detected by the detection device satisfying a preset condition, the execution device associated with the detection device is controlled to execute a preset operation, and different second control rules correspond to different preset conditions and preset operations.
3. The method according to claim 1, characterized in that The controlling the device based on the second control rule comprises: Determine that the current environment is in an abnormal state; The execution device is turned off and / or a first prompt message is triggered, where the first prompt message is used to prompt that the current environment is in an abnormal state.
4. The method according to claim 3, characterized in that Determining that the current environment is in an abnormal state includes: In response to the detection devices including a first detection device and / or a second detection device, determining that the current environment is in an abnormal state based on the first detection device and / or the second detection device; Among them, the first detection type equipment is used to detect whether the environment is closed, and the second detection type equipment is used to detect whether there are animals in the environment.
5. The method according to claim 4, characterized in that The determining that the current environment is in an abnormal state based on the first detection device and / or the second detection device includes: If the first detection device detects that the current environment is not closed, it determines that the current environment is in an abnormal state; and / or, If the second detection type device detects that there are no animals in the current environment, it is determined that the current environment is in an abnormal state.
6. The method according to claim 3, characterized in that Determining that the current environment is in an abnormal state includes: In response to the detection devices not including the first detection device and / or the second detection device, it is determined that the current environment is in an abnormal state based on the data detected by the detection devices.
7. The method according to claim 6, characterized in that The determining that the current environment is in an abnormal state based on the data detected by the detection device includes: In response to the data detected by the detection device being non-continuously increased or decreased, it is determined that the current environment is in an abnormal state.
8. The method according to claim 6, characterized in that The determining that the current environment is in an abnormal state based on the data detected by the detection device includes: Calculating an expected steady-state time based on the detected data, the expected steady-state time indicating the time for the data to reach a target value, the target value being determined based on a preset operation of the execution-type device; In response to the data failing to reach the target value over the expected steady-state time, it is determined that the current environment is in an abnormal state.
9. The method according to claim 2, characterized in that: The execution type device includes a first execution type device, and in response to the data detected by the detection type device meeting a preset condition, controlling the execution type device associated with the detection type device to perform a preset operation includes: In response to the data detected by the detection device meeting a preset condition and detecting an increase in the content of a first substance in the current environment, controlling the first execution device associated with the detection device to start; The first execution type device is used to process the first substance and the second substance in the environment, the first substance refers to a substance whose content decreases when the environment is not closed, and the second substance refers to a substance whose content increases when the environment is not closed.
10. The method according to claim 9, characterized in that The method further comprises: determining a current environment state according to the detected change trends of the first substance content and the second substance content; Displaying second prompt information, where the second prompt information is used to prompt the state of the current environment; The current state of the environment includes at least one of the following: The current environment is closed; The current environment is not closed There are animals in the current environment; There are no animals in the current environment; The current environment is burning; There is no burning in the current environment; The current environment has execution equipment that produces a second substance running; There is no execution equipment in the current environment that produces the second substance; The current environment has execution equipment for eliminating the second substance running; There is currently no execution class equipment operating in the environment to eliminate the second substance.
11. A device control device, characterized in that: include: a determining unit, configured to determine a second control rule from at least one preset first control rule in response to the presence of a device to be configured; The device includes a detection device and an execution device, the detection device is used to detect data, the execution device is used to be controlled to perform a preset operation, the second control rule is one of the first control rules, and the first control rule or the second control rule is used to establish an association relationship between the detection device and the execution device; A processing unit is used to control the device based on the second control rule.
12. An electronic device, characterized in that: include: A memory for storing instructions; as well as A processor, configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 10.
13. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed by the processor, the method according to any one of claims 1 to 10 is executed.