Equipment control method based on light sensing module, environment monitoring equipment and storage medium
By detecting changes in ambient brightness using a light-sensing module and controlling the operating status of the wireless communication module, the problems of high energy consumption and complex design in intelligent environmental monitoring equipment are solved, achieving intelligent control and cost reduction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2026-03-10
AI Technical Summary
Existing intelligent environmental monitoring equipment suffers from high energy consumption, increased hardware costs, and complex appearance during long-term operation and wireless communication, posing particular challenges in the design of small household devices.
A light-sensing module is used to detect changes in ambient brightness. By judging whether the frequency of brightness changes within a preset time period meets preset conditions, the working state of the wireless communication module is controlled, replacing the traditional switch control mechanism and realizing intelligent control of the target device.
It reduces the energy consumption and hardware cost of the equipment, simplifies the design, improves the aesthetics and intelligence of the control, and reduces the use of switching components.
Smart Images

Figure CN121634870A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent control, and in particular to a device control method based on a light sensing module, an environment monitoring device and a storage medium. BACKGROUND
[0002] At present, with the improvement of people's living quality, the application of intelligent environment monitoring devices in the family becomes more and more widespread. These intelligent environment monitoring devices usually need to run continuously to collect various parameters in the environment, such as temperature, humidity, gas concentration, etc., which leads to the demand for long-time continuous work. In addition, many intelligent environment monitoring devices integrate wireless communication modules (such as Wi-Fi, Bluetooth, etc.) for real-time data transmission, which further increases the energy consumption.
[0003] In order to reduce energy consumption, some devices use a switch control wireless communication module, which only turns on the wireless communication module when there is a need to transmit data. However, this switch control design also brings problems in appearance and cost. Due to the addition of a switch control component, the overall design of the device may become more complex, affecting the simplicity of the appearance. In addition, the switch control mechanism increases the hardware cost, and may also cause the device to increase in size, bringing challenges to the design of small household devices. SUMMARY
[0004] The embodiments of the present application provide a device control method based on a light sensing module, an environment monitoring device and a storage medium, which aims to control the target device by determining whether the change of the brightness value in the light sensing environment meets the preset condition, replacing the existing switch control mechanism, making the control of the target device more intelligent and reducing the switch component, improving the appearance while reducing the cost.
[0005] In a first aspect, the embodiments of the present application provide a device control method based on a light sensing module, applied to an environment detection device, the environment detection device comprising: an environment detection module, a light sensing module and a processing module; the method comprising:
[0006] receiving the brightness value of the surrounding environment collected by the light sensing module;
[0007] determining whether the change of the brightness value within a preset time period meets a preset condition;
[0008] if the change of the brightness value within the preset time period meets the preset condition, controlling the working state of the target device based on the environment data collected by the environment detection module.
[0009] In an embodiment, the environment monitoring device further comprises a wireless communication module; and after the change of the brightness value within the preset time period meets the preset condition, the method comprises:
[0010] Control the wireless communication module to enter the working state;
[0011] After the wireless communication module enters the working state, it sends the environmental data collected by the environmental detection module to the terminal device through the wireless communication module, so as to instruct the terminal device to control the working state of the target device based on the environmental data, or to receive the setting parameters sent by the terminal device and control the working state of the target device based on the setting parameters.
[0012] In one embodiment, after the change in brightness value within a preset time period no longer meets a preset condition, the process includes:
[0013] Control the wireless communication module to enter sleep mode.
[0014] In one embodiment, determining whether the change in brightness value within a preset time period meets a preset condition includes:
[0015] If the frequency of change of brightness value within a preset time period is greater than or equal to a preset frequency threshold, it is determined that the change of brightness value within a preset time period meets the preset condition.
[0016] If the frequency of changes in brightness value within a preset time period is less than a preset frequency threshold, it is determined that the change in brightness value within a preset time period does not meet the preset conditions.
[0017] In one embodiment, if the frequency of change of the brightness value within a preset time period is greater than or equal to a preset frequency threshold, it includes:
[0018] If the collected brightness value shows an instantaneous decrease within a preset time period, and the number of times it recovers to the original brightness level after decreasing to less than or equal to a preset brightness threshold is greater than or equal to a preset frequency threshold.
[0019] In one embodiment, the environmental detection module includes, but is not limited to, at least one of: a temperature acquisition module, a humidity acquisition module, and a clock.
[0020] In one embodiment, the target device includes: a smart home device.
[0021] Secondly, embodiments of this application provide an environmental monitoring device, including: an environmental acquisition module, a light sensing module, and a processing module; the environmental acquisition module is used to acquire environmental data; the light sensing module is connected to the processing module and is used to acquire the brightness value of the surrounding environment and send the brightness value to the processing module; the processing module is used to determine whether the change of the brightness value within a preset time period meets a preset condition, and if the change of the brightness value within the preset time period meets the preset condition, the working state of the target device is controlled based on the environmental data acquired by the environmental detection module.
[0022] In one embodiment, the environmental monitoring device further includes a wireless communication module.
[0023] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program; when the computer program is executed by one or more processing modules, it causes the one or more processing modules to perform the steps of the device control method based on the light-sensing module as described above.
[0024] This application provides a device control method, an environmental monitoring device, and a storage medium based on a light-sensing module. The method is applied to an environmental monitoring device, which includes an environmental monitoring module, a light acquisition module, and a processing module. The method includes: receiving brightness values of the surrounding environment collected by the light-sensing module; determining whether the change in brightness values within a preset time period meets preset conditions; and if the change in brightness values within the preset time period meets the preset conditions, controlling the operating state of the target device based on the environmental data collected by the environmental monitoring module. This method aims to control the target device by sensing whether changes in brightness values in the environment meet preset conditions, replacing existing switch control mechanisms. This not only makes the control of the target device more intelligent but also saves on switch components, improving aesthetics and reducing costs. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 Figure 1 A schematic diagram illustrating the implementation flow of the device control method based on a photosensitive module provided in this application embodiment;
[0027] Figure 2 A schematic block diagram of an environmental monitoring device provided in an embodiment of this application;
[0028] Figure 3 A schematic block diagram of an environmental monitoring device provided in another embodiment of this application;
[0029] Figure 4 A schematic diagram of the interaction flow of the device control method based on the photosensitive module provided in the embodiments of this application;
[0030] Figure 5 This is a schematic block diagram of an environmental monitoring system provided in an embodiment of this application. Detailed Implementation
[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0032] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0033] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0034] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0035] The technical solution provided in this application will be described in detail below with reference to the accompanying drawings.
[0036] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating the implementation process of the device control method based on a photosensitive module provided in an embodiment of this application.
[0037] It should be noted that this device control method based on the light-sensing module is applied to environmental monitoring equipment, which is used to detect environmental data and can control target equipment based on the environmental data.
[0038] For example, such as Figure 2 As shown, Figure 2 This is a schematic block diagram of an environmental monitoring device provided in one embodiment of this application. Figure 2 It is known that the environmental monitoring device 20 includes: an environmental monitoring module 201, a light sensing module 202, and a processing module 203.
[0039] The environmental monitoring module 201 includes, but is not limited to, at least one of the following: a temperature acquisition module (such as a temperature sensor), a humidity acquisition module (such as a humidity sensor), a gas detection module (such as a gas sensor), an air quality detection module (such as an air quality sensor), a noise detection module (such as a noise sensor), or a clock. Each component of the environmental monitoring module can be used individually or integrated into a complex environmental monitoring system to collect comprehensive environmental data.
[0040] The light sensing module 202 includes, but is not limited to, one of the following: a photoelectric sensor module, a photodiode module, a phototransistor module, an ambient light sensor module, etc., used to detect the light intensity value in the corresponding environment in real time.
[0041] The processing module 203 can be a general-purpose processor, digital signal processor, embedded processor, special-purpose processor or quantum processor, etc., used to analyze the light intensity value collected by the light sensing module 202, and control the target device based on the environmental data collected by the environmental detection module 201 when the light intensity value meets the preset conditions.
[0042] Specifically, this application embodiment does not specifically limit the environmental detection module 201, the light sensing module 202, and the processing module 203.
[0043] The environmental monitoring device 20 can be an indoor environmental monitoring device, which can be flexibly placed in the required location according to user needs. This environmental monitoring device detects the brightness value of the environment through a light-sensing module, and then, after the brightness value of the environment meets the preset conditions, it can control the working status of the target device based on the environmental data collected by the environmental monitoring module. This not only eliminates the need for a switch module, making the appearance more aesthetically pleasing, but also saves costs and makes the control of the target device more intelligent.
[0044] like Figure 1 As shown, the device control method based on the photosensitive module provided in this application includes steps S101 to S103.
[0045] S101: Receives the brightness value of the surrounding environment collected by the light sensor module.
[0046] S102: Determine whether the change in brightness value within a preset time period meets the preset conditions.
[0047] Determining whether the change in brightness value within a preset time period meets preset conditions includes: if the frequency of change in brightness value within a preset time period is greater than or equal to a preset frequency threshold, it is determined that the change in brightness value within a preset time period meets the preset conditions; if the frequency of change in brightness value within a preset time period is less than the preset frequency threshold, it is determined that the change in brightness value within a preset time period does not meet the preset conditions.
[0048] The preset duration can be flexibly set according to the different environments in which the environmental monitoring equipment is placed. For example, the environmental monitoring equipment can be placed in the living room, bathroom, or bedroom to control the activation of air conditioners, smart lights, or other smart home devices that enhance the user experience.
[0049] The preset duration can be set to less than 10 seconds, for example, 3 seconds or 5 seconds. Under normal circumstances, the brightness value collected by the light-sensing module of the environmental detection device remains constant within the preset duration. However, when an obstruction blocks the light-sensing module, the brightness value collected by the light-sensing module will suddenly decrease, even approaching 0. For example, when a user returns home and wants to turn on a target device such as an air conditioner, they can cover the light-sensing module with their hand. After the user covers the light-sensing module with their hand, the brightness value collected by the light-sensing module will suddenly decrease. At this time, the processing module will determine that target device control is required based on the change in brightness value. In addition, to prevent false detections, this application embodiment sets up a method to compare the frequency of brightness value changes within the preset duration with a preset frequency threshold, such as the frequency of changes within the preset duration of 5 seconds not being less than 3 times, to improve the accuracy of the judgment.
[0050] Specifically, if the frequency of brightness value changes within a preset time period is greater than or equal to a preset frequency threshold, including: if the number of times the collected brightness value shows an instantaneous decrease within the preset time period, and then recovers to its original brightness level after decreasing to less than or equal to the preset brightness threshold, is greater than or equal to the preset frequency threshold. By setting a preset frequency threshold, some occasional brightness changes can be filtered out, avoiding unnecessary responses caused by brief or single changes. This mechanism can effectively reduce the possibility of false triggers, ensuring that subsequent operations are only triggered when frequent and significant brightness fluctuations are detected, thereby improving response accuracy.
[0051] S103: If the change in brightness value within a preset time period meets the preset conditions, control the working status of the target device based on the environmental data collected by the environmental detection module.
[0052] The target devices include smart furniture, such as smart home appliances, smart speakers and entertainment devices, smart temperature control devices, smart security devices, or smart lighting devices.
[0053] As can be seen from the above analysis, the device control method based on a light-sensing module provided in this application receives the brightness value of the surrounding environment collected by the light-sensing module; determines whether the change in brightness value within a preset time period meets a preset condition; if the change in brightness value within the preset time period meets the preset condition, controls the working state of the target device based on the environmental data collected by the environmental detection module. This method aims to control the target device by sensing whether the change in brightness value in the environment meets a preset condition, replacing the existing switch control mechanism. This not only makes the control of the target device more intelligent but also saves on switch components, improving aesthetics while reducing costs.
[0054] It should be noted that the above Figure 2 The embodiments shown are merely illustrative examples of environmental monitoring equipment and do not constitute a limitation thereof. In other embodiments, the environmental monitoring equipment may include, but is not limited to, […]. Figure 2 The module shown in the embodiment.
[0055] For example, such as Figure 3 As shown, Figure 3 A schematic block diagram of an environmental monitoring device provided in another embodiment of this application.
[0056] The environmental monitoring equipment 20 provided in this embodiment is compared to... Figure 2 The environmental monitoring device shown also includes a wireless communication module 301. The processing module 203, after determining the change in ambient brightness within a preset time period and setting preset conditions, controls the wireless communication module 301 to communicate with a terminal device. The wireless communication module 301 sends environmental data to the terminal device, which then controls the operating state of the target device based on the environmental data. Alternatively, the wireless communication module 301 receives setting parameters sent by the terminal device and controls the operating state of the target device based on these parameters. The setting parameters sent by the terminal device include, but are not limited to, the period at which the environmental monitoring module collects environmental data, and the correlation between various environmental data and the target device. These setting parameters can be configured by the user through the terminal device; no specific limitations are specified here.
[0057] It should be noted that, in specific implementation, such as Figure 3 As shown, the environmental monitoring device 20 also includes a memory 302. The processing module 203 and the memory 302 are connected via a bus 303, such as an I2C (Inter-integrated Circuit) bus.
[0058] Specifically, the memory 302 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc.
[0059] The processing module 203 is used to run a computer program stored in the memory 302 and to implement the steps of the device control method based on the light-sensing module when executing the computer program.
[0060] For example, the processing module 203 is used to run a computer program stored in the memory 302, and performs the following steps when executing the computer program:
[0061] It receives the brightness values of the surrounding environment collected by the light-sensing module;
[0062] Determine whether the change in brightness value within a preset time period meets preset conditions;
[0063] If the change in brightness value within a preset time period meets the preset conditions, the working status of the target device is controlled based on the environmental data collected by the environmental detection module.
[0064] In one embodiment, after the change in brightness value within a preset time period meets a preset condition, the process includes:
[0065] Control the wireless communication module to enter the working state;
[0066] After the wireless communication module enters the working state, it sends the environmental data collected by the environmental detection module to the terminal device through the wireless communication module, so as to instruct the terminal device to control the working state of the target device based on the environmental data.
[0067] In one embodiment, after the change in brightness value within a preset time period no longer meets a preset condition, the process includes:
[0068] Control the wireless communication module to enter sleep mode.
[0069] In one embodiment, determining whether the change in brightness value within a preset time period meets a preset condition includes:
[0070] If the frequency of change of brightness value within a preset time period is greater than or equal to a preset frequency threshold, it is determined that the change of brightness value within a preset time period meets the preset condition.
[0071] If the frequency of changes in brightness value within a preset time period is less than a preset frequency threshold, it is determined that the change in brightness value within a preset time period does not meet the preset conditions.
[0072] In one embodiment, if the frequency of change of the brightness value within a preset time period is greater than or equal to a preset frequency threshold, it includes:
[0073] If the collected brightness value shows an instantaneous decrease within a preset time period, and the number of times it recovers to the original brightness level after decreasing to less than or equal to a preset brightness threshold is greater than or equal to a preset frequency threshold.
[0074] In one embodiment, the environmental monitoring module includes, but is not limited to, at least one of: a temperature acquisition module, a humidity acquisition module, and a clock.
[0075] In one embodiment, the target device includes: a smart home device.
[0076] As can be seen from the above analysis, the environmental monitoring device provided in this application embodiment can also send environmental data to a terminal device through a wireless communication module, and the terminal device can control the target device based on the environmental data, so as to improve the flexibility of target device control.
[0077] Specifically, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the interaction flow of the device control method based on a photosensitive module provided in an embodiment of this application. Figure 4 It can be seen that the interaction process between environmental monitoring equipment and terminal equipment includes:
[0078] S401: The environmental monitoring equipment receives the brightness value of the surrounding environment collected by the light sensing module.
[0079] S402: The environmental monitoring equipment determines whether the change in brightness value within a preset time period meets the preset conditions.
[0080] S403: If the environmental monitoring equipment determines that the change in brightness value within a preset time period meets the preset conditions, it controls the wireless communication module to enter the working state.
[0081] S404: After the wireless communication module enters the working state, the environmental monitoring equipment transmits the environmental data collected by the environmental monitoring module through the wireless communication module.
[0082] S405: The terminal device controls the working status of the target device based on environmental monitoring data.
[0083] The terminal devices include, but are not limited to, handheld devices such as mobile phones and wearable devices such as watches. In practical use, the terminal devices can also be equipped with a smart home control APP. Users can log in to the smart home control APP to view the environmental data received by the terminal devices, and then perform operations in the smart home control APP based on the environmental data, adaptively selecting and triggering control of target devices to improve the flexibility of smart home control.
[0084] like Figure 5 As shown, Figure 5 This is a schematic block diagram of an environmental monitoring system provided in an embodiment of this application. Figure 5 It can be seen that the environmental monitoring system 50 includes environmental monitoring equipment 20 and terminal equipment 30. The environmental monitoring equipment 20 can be referenced from... Figure 3The description of the illustrated embodiment will not be repeated here. The terminal device 30 can be a handheld device such as a mobile phone, a wearable device such as a watch, etc. Specifically, the environmental detection device 20 and the terminal device 30 are connected via a wireless communication module 301. After determining that the change in the ambient brightness value within a preset time period meets a preset condition, the environmental detection device 20 controls the wireless communication module 301 to enter the working state. After the wireless communication module 301 enters the working state, it sends the environmental data collected by the environmental detection module 201 to the terminal device 30. After receiving the environmental data, the terminal device 30 controls the working state of the target device based on the environmental data.
[0085] Specifically, the detailed implementation process of the functions of each module can be found in the detailed description of the corresponding embodiments above, and will not be repeated here.
[0086] This application embodiment also provides a computer-readable storage medium storing a computer program, which, when executed by a processing module, causes the processing module to perform the following steps:
[0087] It receives the brightness values of the surrounding environment collected by the light-sensing module;
[0088] Determine whether the change in brightness value within a preset time period meets preset conditions;
[0089] If the change in brightness value within a preset time period meets the preset conditions, the working status of the target device is controlled based on the environmental data collected by the environmental detection module.
[0090] In one embodiment, the environmental monitoring device further includes: a wireless communication module; and after the change in brightness value within a preset time period meets a preset condition, it includes:
[0091] Control the wireless communication module to enter the working state;
[0092] After the wireless communication module enters the working state, it sends the environmental data collected by the environmental detection module to the terminal device through the wireless communication module, so as to instruct the terminal device to control the working state of the target device based on the environmental data.
[0093] In one embodiment, after the change in brightness value within a preset time period no longer meets a preset condition, the process includes:
[0094] Control the wireless communication module to enter sleep mode.
[0095] In one embodiment, determining whether the change in brightness value within a preset time period meets a preset condition includes:
[0096] If the frequency of change of brightness value within a preset time period is greater than or equal to a preset frequency threshold, it is determined that the change of brightness value within a preset time period meets the preset condition.
[0097] If the frequency of changes in brightness value within a preset time period is less than a preset frequency threshold, it is determined that the change in brightness value within a preset time period does not meet the preset conditions.
[0098] In one embodiment, if the frequency of change of the brightness value within a preset time period is greater than or equal to a preset frequency threshold, it includes:
[0099] If the collected brightness value shows an instantaneous decrease within a preset time period, and the number of times it recovers to the original brightness level after decreasing to less than or equal to a preset brightness threshold is greater than or equal to a preset frequency threshold.
[0100] In one embodiment, the environmental monitoring module includes, but is not limited to, at least one of: a temperature acquisition module, a humidity acquisition module, and a clock.
[0101] In one embodiment, the target device includes: a smart home device.
[0102] The computer-readable storage medium can be an internal storage unit of the environmental monitoring device in the aforementioned embodiments, such as the hard drive or memory of the environmental monitoring device. Alternatively, the computer-readable storage medium can be an external storage device of the environmental monitoring device, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the environmental monitoring device.
[0103] It should be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application.
[0104] It should also be understood that the term “and / or” as used in this application and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0105] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A device control method based on a photosensitive module, characterized in that, The application is applied to an environment detection device, and the environment detection device comprises an environment detection module, a light sensing module and a processing module. Receiving a brightness value of a surrounding environment collected by the light sensing module; Determining whether a change of the brightness value within a preset time length meets a preset condition; If the change of the brightness value within the preset time length meets the preset condition, controlling a working state of a target device based on environment data collected by the environment detection module.
2. The light-sensing module-based device control method of claim 1, wherein, The environment monitoring device further comprises a wireless communication module. After the change of the brightness value within the preset time length does not meet the preset condition, the method comprises: Controlling the wireless communication module to enter a sleep state. 3.The method of claim 2, wherein, The determination of whether the change of the brightness value within the preset time length meets the preset condition comprises: If a change frequency of the brightness value within the preset time length is greater than or equal to a preset frequency threshold, it is determined that the change of the brightness value within the preset time length meets the preset condition.
4. The light-sensing module-based device control method according to any one of claims 1 to 3, characterized in that, If the change frequency of the brightness value within the preset time length is less than the preset frequency threshold, it is determined that the change of the brightness value within the preset time length does not meet the preset condition. If the change frequency of the brightness value within the preset time length is greater than or equal to the preset frequency threshold, the method comprises: If a time, during which the brightness value within the preset time length presents a transient decrease and then restores to an original brightness level after decreasing to be less than or equal to a preset brightness threshold, is greater than or equal to a preset frequency threshold.
5. The light-sensing module-based device control method of claim 4, wherein, The environment detection module comprises, but is not limited to, at least one of a temperature collection module, a humidity collection module and a clock. The target device comprises a smart home.
6. The light-sensing module-based device control method of claim 5, wherein, The method comprises:
7. The light-sensing module-based device control method according to claim 5 or 6, wherein, An environment collection module, a light sensing module and a processing module; 8. An environmental monitoring device, characterized by, The environment collection module is configured to collect environment data. The light sensing module is connected to the processing module and is configured to collect a brightness value of a surrounding environment and send the brightness value to the processing module. The processing module is configured to determine whether a change of the brightness value within a preset time length meets a preset condition, and if the change of the brightness value within the preset time length meets the preset condition, to control a working state of a target device based on environment data collected by the environment detection module. The environment monitoring device further comprises a wireless communication module. The computer readable storage medium stores a computer program.
9. The environmental monitoring device of claim 8, wherein, The computer program is executed by one or more processing modules, so that the one or more processing modules perform the steps of the device control method based on the light sensing module according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that,