Detection module control method, device and electronic equipment

By introducing a work proportion control method into the detection module of the air detection panel and adjusting the working time according to the detection information of the target object, the problem of sensor heating and noise is solved, and the efficiency of the equipment and the user experience are improved.

CN114705809BActive Publication Date: 2024-10-01SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210157828.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-21
Publication Date
2024-10-01
Estimated Expiration
2042-02-21

AI Technical Summary

Technical Problem

The sensor in the existing air detection panel generates serious heat and makes a lot of noise, which affects the use of the equipment.

Method used

By introducing the work proportion control method in the detection module, the working time of the detection module is adjusted according to the detection information of the target object. If the target object is detected, it will work for a longer time to provide real-time data. If the target object is not detected, it will work for a longer time. Work for short periods of time to reduce heat and noise.

Benefits of technology

It effectively reduces the heat and noise of the detection module and improves the efficiency and user experience of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114705809B_ABST
    Figure CN114705809B_ABST
Patent Text Reader

Abstract

The present application discloses a detection module control method, device and electronic device, which relates to the technical field of detection modules and is applied to electronic devices, wherein the electronic device includes a detection module, and the method includes: based on the detection module, obtaining detection information of a target object, wherein the detection information is used to determine whether the electronic device has detected the target object; if it is determined based on the detection information that the electronic device has detected the target object, controlling the detection module to operate at a first working ratio, wherein the first working ratio is used to characterize the ratio of the working time to the non-working time of the detection module; if it is determined based on the detection information that the electronic device has not detected the target object, controlling the detection module to operate at a second working ratio, wherein the first working ratio is greater than the second working ratio. The present application reduces the power consumption of electronic devices and reduces heat generation by controlling the detection modules to operate at different working ratios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of detection modules, and more specifically, to a detection module control method, device and electronic equipment. Background Art

[0002] At present, with the development and progress of society, people have higher and higher requirements for the air quality in their living environment. Usually, the air monitoring panel installed indoors can monitor the air quality in real time and feed back the data to the user. However, the sensors inside the current air detection panels generate severe heat and make a lot of noise. Summary of the invention

[0003] The present application proposes a detection module control method, device and electronic device to improve the above-mentioned defects.

[0004] In a first aspect, an embodiment of the present application provides a detection module control method, which is applied to an electronic device, wherein the electronic device includes a detection module, and the method includes: based on the detection module, acquiring detection information of a target object, wherein the detection information is used to determine whether the electronic device has detected the target object; if it is determined based on the detection information that the electronic device has detected the target object, controlling the detection module to operate at a first working ratio, wherein the first working ratio is used to characterize the ratio of the working time to the non-working time of the detection module; if it is determined based on the detection information that the electronic device has not detected the target object, controlling the detection module to operate at a second working ratio, wherein the first working ratio is greater than the second working ratio.

[0005] In a second aspect, an embodiment of the present application further provides a detection module control device, which is applied to an electronic device, wherein the electronic device includes a detection module, and the device includes: an acquisition unit, a first control unit, and a second control unit. The acquisition unit is used to acquire detection information of a target object based on the detection module, and the detection information is used to determine whether the electronic device has detected the target object; the first control unit is used to control the detection module to operate at a first working ratio if it is determined based on the detection information that the electronic device has detected the target object, and the first working ratio is used to characterize the ratio of the working time to the non-working time of the electronic device; the second control unit is used to control the detection module to operate at a second working ratio if it is determined based on the detection information that the electronic device has not detected the target object, wherein the first working ratio is greater than the second working ratio.

[0006] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] The detection module control method, device, electronic device, computer-readable medium and product provided by the present application, based on the detection module in the electronic device, obtains detection information, determines whether the electronic device detects the target object through the detection information, if it is determined based on the detection information that the electronic device detects the target object, it indicates that the user is more likely to view the data collected by the detection module, at this time, the detection module can be made to work for a longer period of time, so that the data can be provided to the user for viewing in a more timely manner, and the detection module can be controlled to work with a first working ratio, if it is determined based on the detection information that the electronic device does not detect the target object, it indicates that the user is unlikely to view the data collected by the detection module, at this time, the detection module can be made to work for a shorter period of time, so that the working time can be reduced, and at this time, the detection module can be controlled to work with a second working ratio, wherein the first working ratio is greater than the second working ratio. Since the detection module will continue to generate noise and heat when working for a long time, causing heat accumulation, the embodiment of the present application can reduce the working time of the detection module by making the detection module work with different working ratios, thereby reducing the heating and noise of the detection module.

[0008] Other features and advantages of the embodiments of the present application will be described in the subsequent description, and partly become apparent from the description, or can be understood by practicing the embodiments of the present application. The purposes and other advantages of the embodiments of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 An electronic device diagram showing a detection module control method provided by an embodiment of the present application;

[0011] Figure 2 A method flow chart of a detection module control method provided by an embodiment of the present application is shown;

[0012] Figure 3 A method flow chart of a detection module control method provided by another embodiment of the present application is shown;

[0013] Figure 4 A method flow chart of a detection module control method provided by another embodiment of the present application is shown;

[0014] Figure 5 Shows Figure 4 Implementation method of step S440;

[0015] Figure 6 A method flow chart of a detection module control method provided by another embodiment of the present application is shown;

[0016] Figure 7 Shows Figure 6 Implementation method of step S630;

[0017] Figure 8 Shows Figure 7 Implementation method of step S633;

[0018] Fig. 9 Shows Figure 6 Implementation method of step S640;

[0019] Fig.10 A schematic diagram of a flow chart of a detection module control method provided in yet another embodiment of the present application is shown;

[0020] Fig.11 A block diagram of a detection module control device according to an embodiment of the present application is shown;

[0021] Fig.12 A block diagram of an electronic device for executing a detection module control method according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0023] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0024] At present, with the development and progress of society, people pay more and more attention to high-quality life. In response to people's pursuit of air quality in their living environment, air monitoring panels are currently used indoors to monitor air quality and then feed back the data to users.

[0025] Specifically, the air monitoring panel is generally installed in a wall-mounted 86-box, which can monitor indoor temperature, carbon dioxide concentration, PM2.5 concentration, humidity, etc. in real time. This information is displayed on the panel screen or pushed to other electronic devices through the gateway.

[0026] However, the inventors found in their research that the spatial volume of the 86-box product is relatively small, while the sensor module in the air monitoring panel generally contains multiple types of sensors, which will make noise when working continuously and will also generate heat accumulation in a small space.

[0027] Therefore, in order to overcome the above-mentioned defects, the embodiments of the present application provide a detection module control method, device and electronic device, which reduce the heat and noise of the detection module by making it work at different working ratios.

[0028] See also Figure 1 , Figure 1 A detection module control method provided in an embodiment of the present application is shown, and the detection module control method can be applied to an electronic device 100, which includes a detection module 110, a display module 120, an input module 130, and a main control module 140. The main control module 140 is connected to the detection module 110, the display module 120, and the input module 130, respectively.

[0029] Among them, the detection module 110 can be used to sense the measured information, and can transform the sensed information into electrical signals or other required forms of information output according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control. Usually, according to their basic sensing functions, they are divided into thermal sensors, photosensitive elements, gas sensors, force sensors, magnetic sensors, humidity sensors, sound sensors, radiation sensors, color sensors and taste sensors, etc. For an embodiment provided by the present application, the detection module 110 may include a temperature and humidity sensor, a carbon dioxide sensor, a PM2.5 sensor, a proximity sensor, etc.

[0030] Further, the display module 120 is used to display the data acquired by the detection module 110, and the data is processed by the main control module 140 and sent to the display module 120 for display. For an embodiment provided by the present application, the display module 120 can be a display screen arranged on the electronic device 100, and the display screen can be a segment code screen, or a liquid crystal display (LCD), etc. For other embodiments, the display module 120 can also be an independent display device, and the display module 120 includes a display screen and a network module, and the data sent by the main control module 140 in the electronic device 100 is acquired by the detection module 110 through the network module, and then the data is displayed on the display screen. Specifically, the network module can be directly connected to the electronic device 100 to realize communication, and then display the data collected by the detection module 110. For example, for some embodiments, the network module can be a Bluetooth module, and the Bluetooth module is directly connected to the electronic device 100; the network module can also be a wireless communication technology Wi-Fi module, and the wireless communication technology Wi-Fi module is directly connected to the electronic device 100. For some other implementations, the network module can also access the network through a corresponding gateway device, and then connect to the electronic device 100 that is also connected to the network to achieve communication.

[0031] As an implementation method, the network module can be a Zigbee module, which accesses the network through a Zigbee gateway, and then transmits data with the electronic device 100 that is also connected to the network, and then displays the data on the display screen. The network module can also be a wireless communication technology Wi-Fi module, which accesses the network through a wireless communication technology Wi-Fi gateway, and then transmits data with the electronic device 100 that is also connected to the network, and then displays the data on the display screen. For an implementation method provided by the present application, the other electronic device can be a mobile phone, a tablet computer, a notebook computer, a desktop computer, etc.

[0032] Furthermore, the input module 130 can be used to provide a method for the user to input messages, send instructions to the central control module 140, and then control the electronic device 100. For an embodiment provided in the present application, the input module 130 can be an input device provided on the electronic device 100, and the user directly controls the electronic device 100 through the input module 130. For example, the input module 130 can be a button keyboard, or a touch keyboard, etc. For other embodiments, the input device 130 can also be connected to a network with other electronic devices, and then obtain the instructions input by the user from other electronic devices, and then control the electronic device 100. The specific connection method can refer to the method of connecting the above-mentioned display module 120 and other electronic devices, which will not be repeated here.

[0033] Furthermore, the main control module 140 can be used to obtain various data collected by the detection module 110, perform comprehensive processing on the data, and then display it through the display device 120. The main control module 140 can also be used to receive data sent by the input module 130 to control the electronic device 100. For some embodiments, the main control module 140 can be a microcontroller unit (MCU).

[0034] See also Figure 2 , Figure 2 A detection module control method provided in an embodiment of the present application is shown, and the method can be applied to the electronic device 100 in the above embodiment, and the execution subject of the method can be the main control module 140. Specifically, the method includes steps S210 to S230.

[0035] Step S210: Based on the detection module, the detection information of the target object is obtained.

[0036] Step S220: If it is determined based on the detection information that the electronic device detects the target object, the detection module is controlled to operate at a first operating ratio.

[0037] Step S230: If it is determined based on the detection information that the electronic device has not detected the target object, the detection module is controlled to operate at a second operating ratio.

[0038] For some implementations, detection information of the target object may be obtained based on the detection module 110, wherein the detection information is used to determine whether the electronic device 100 detects the target object. In an exemplary embodiment, the detection information may be the distance between the target object and the detection module 110.

[0039] Further, based on the detection information obtained above, it can be determined whether the electronic device 100 detects the target object, and then the detection module 110 is controlled to work with different working proportions, wherein the working proportion can be used to characterize the ratio of the working time to the non-working time of the detection module 110. Specifically, based on the detection information, it is determined that the electronic device detects the target object, and the detection module 110 is controlled to work with a first working proportion; if it is determined based on the detection information that the electronic device 100 does not detect the target object, the detection module 110 is controlled to work with a second working proportion. Among them, the first working proportion is greater than the second working proportion.

[0040] The detection module control method, device, electronic device, computer-readable medium and product provided in the present application obtain detection information based on the detection module 110 in the electronic device, and determine whether the electronic device 100 detects the target object through the detection information. If it is determined based on the detection information that the electronic device 100 detects the target object, it indicates that the user is more likely to view the data collected by the detection module 110. In this case, the detection module 110 can be made to work for a longer period of time, so that data can be provided to the user for viewing in a more timely manner. The detection module 110 can be controlled to work with a first working ratio. If it is determined based on the detection information that the electronic device 100 does not detect the target object, it indicates that the user is unlikely to view the data collected by the detection module 110. In this case, the detection module 110 can be made to work for a shorter period of time, so that the working time can be reduced. In this case, the detection module 110 can be controlled to work with a second working ratio, wherein the first working ratio is greater than the second working ratio. Since the detection module 110 will continuously generate noise and heat when working for a long time, causing heat accumulation, the embodiment of the present application can reduce the working time of the detection module 110 by making the detection module 110 work at different working ratios, thereby reducing the heat and noise of the detection module 110.

[0041] See also Figure 3 , Figure 3 A detection module control method provided in an embodiment of the present application is shown, and the method can be applied to the electronic device 100 in the above embodiment, and the execution subject of the method can be the main control module 140. Specifically, the method includes steps S310 to S330.

[0042] For some implementations, the proximity information may be acquired based on the detection module 110 .

[0043] Step S310: Based on the detection module, obtain the proximity information of the target object.

[0044] Among them, the proximity information can be used to characterize the distance between the target object and the electronic device 100. Among them, the target object can be a user, or other people in the same environment space as the electronic device 100. Through the detection module 110, the distance between the target object around the electronic device 100 and the detection module 110 is obtained. Among them, the detection module 110 can be a proximity sensor. The proximity sensor can detect the proximity of the detection object without contact. It uses the displacement sensor to have sensitive characteristics to approaching objects to identify the approach of the object. It can detect the movement and existence information of the object and convert it into an electrical signal. The proximity sensor can be an inductive type, an electrostatic capacitance type, an ultrasonic type, a photoelectric type, a magnetic type, etc. For an embodiment provided in the present application, the proximity sensor can be an electrostatic capacitance type. For example, the detection module 110 can detect the distance between the target object and the electronic device 100, and the distance can be used as proximity information.

[0045] Step S320: If it is determined based on the proximity information that there is a target object within the first preset range of the electronic device, control the detection module to operate at a first operating ratio.

[0046] For some embodiments, a range can be set, and the detection module 110 can be used to determine whether there is a target object within the range. Specifically, a first preset range can be set, and the first preset range is used to characterize a certain range of the electronic device 100. If there is a target object within the range, the electronic device 100 is easier to be viewed. At this time, the detection module 110 should be made to work more time and not work less time. Specifically, the first preset range can be recorded by the electronic device 100 before each data is viewed, and then the proximity information before each time is analyzed to obtain a predicted distance, and the predicted distance is used as the first preset range. For example, the first preset range can be a circular range with the electronic device 100 as the center and a radius of 0.5 meters. When the presence of a target object in the range is detected, the message is fed back to the main control module 140. At this time, the main control module 140 controls the detection module 110 to work at the first work ratio.

[0047] It is easy to understand that the description of the above-mentioned first preset range is only an example, and the shape, size, etc. of the first preset range do not constitute a limitation to the implementation method provided in the present application. In actual applications, the first preset range can be specified as needed.

[0048] For some implementations, the working ratio is used to characterize the ratio of the working time to the non-working time of the electronic device 100. For example, the working time can be set to a minutes and the non-working time can be set to b minutes, where a and b are both positive numbers, and the working ratio can be expressed as It is easy to understand that the greater the proportion of work, the longer the working time is relative to the non-working time. For example, in the first case, when the working time a is 1 minute and the non-working time b is 30 minutes, the proportion of work is In the second case, when the working time is 5 minutes and the non-working time b is 30 minutes, the working ratio is Easy to see, In the second case, the corresponding working hours become longer relative to the non-working hours.

[0049] Further, in an embodiment provided in the present application, the detection module 110 is in a continuous working state with a first working ratio, that is, the non-working time is 0 minutes. The detection module 110 with the first working ratio can meet the needs of being viewed by users at any time. Specifically, the detection module 110 can be directly set to work continuously, for example, the detection module 110 is controlled to start working by the main control module 140, and the detection module 110 is no longer turned off before the next change of the working ratio. The working time a and the non-working time b can also be set separately, so that the working time a is much larger than the non-working time b, and the non-working time b itself is a positive number close to 0. For example, the working time a can be set to 60 minutes and the non-working time can be set to 0.01 minutes. At this time, it can be approximately regarded as the detection module 110 working continuously.

[0050] Step S330: If it is determined based on the proximity information that there is no target object within the first preset range of the electronic device, the detection module is controlled to operate at a second operating ratio.

[0051] Among them, the aforementioned step S310 and step S320 have already introduced the first preset range and the acquisition of target object information within the first preset range in detail, which will not be repeated here.

[0052] When there is no target object within the first preset range of the electronic device 100, the electronic device 100 is not easy to be viewed by the user. At this time, the detection module 110 can be made to work for a shorter period of time to reduce the heating and noise of the detection module 110. That is, the detection module 110 can be controlled to work at the second working ratio. For some embodiments, the first working ratio is greater than the second working ratio. It is easy to understand that because the working time of the first working ratio is much longer than the non-working time, the first working ratio should be Therefore, the first work ratio should be close to infinity, and it is easy to get that the second work ratio should be less than the first work ratio. For example, the working time a corresponding to the second work ratio can be set to 1 minute, and the non-working time b can be set to 30 minutes. At this time, the second work ratio is If the working time is less than the first working ratio, the detection module 110 can be controlled to work for 1 minute and stop working for 30 minutes, and the cycle is repeated until the working time and non-working time are reallocated when the working ratio is changed next time.

[0053] The detection module control method, device, electronic device, computer-readable medium and product provided in the present application obtain proximity information based on the detection module 110 in the electronic device 100, and judge whether the target object is within the first preset range through the proximity information. If there is a target object within the first preset range, it indicates that the user is more likely to view the data collected by the detection module 110. At this time, the detection module 110 can be made to work for a longer period of time, so that the data can be immediately provided to the user for viewing. The detection module 110 can be controlled to work with a first working ratio. If there is no target object within the first preset range, it indicates that the user is unlikely to view the data collected by the detection module 110. At this time, the detection module 110 can be made to work for a shorter period of time, so that the working time can be reduced. At this time, the detection module 110 can be controlled to work with a second working ratio, wherein the first working ratio is greater than the second working ratio. Since the detection module 110 will continue to generate noise and heat when it works for a long time, causing heat accumulation, the embodiment of the present application can reduce the working time of the detection module 110 by making the detection module 110 work with different working ratios, thereby reducing the heating and noise of the detection module 110.

[0054] See also Figure 4 , Figure 4 A detection module control method provided in an embodiment of the present application is shown, which can be applied to the electronic device 100 in the above embodiment, and the execution subject of the method can be the main control module 140. Specifically, the method includes steps S410 to S450.

[0055] Step S410: Based on the detection module, obtain the proximity information of the target object.

[0056] Step S420: If it is determined based on the proximity information that there is a target object within the first preset range of the electronic device, the detection module is controlled to operate at a first operating ratio.

[0057] Among them, step S410 and step S420 have been described in detail in the above embodiment and will not be repeated here.

[0058] Step S430: If it is determined based on the proximity information that there is no target object within the first preset range of the electronic device, then determine whether there is a target object within the second preset range of the electronic device.

[0059] For some embodiments, when it is determined that there is no target object within the first preset range around the electronic device 100, a second preset range can be further set for judgment. The first preset range is used to characterize a certain range of the electronic device 100. If there is a target object within the range, the electronic device 100 is easier to be viewed. It is easy to understand that the second preset range should be larger than the first preset range. If there is a target object within the second preset range, the possibility of the user viewing the electronic device 100 is less than the possibility of the target object within the first preset range. Specifically, assuming that the first preset range is a circular range with the electronic device 100 as the center and a radius of 0.5 meters, the second preset range can be set to be a circular range with the electronic device 100 as the center and a radius of 3 meters. At this time, the first preset range and the second preset range are concentric circles, and the circular radius of the second preset range is greater than the circular radius of the first preset range, then it can be concluded that the second preset range is greater than the first preset range. For other embodiments, the second preset range can also be made with the electronic device 100 as the center point and 1 meter as the half side length as a positive direction, then the circle of the first preset range is the inscribed circle of the positive direction of the second preset range.

[0060] Step S440: If there is a target object within the second preset range of the electronic device, control the detection module to operate at a third operating ratio.

[0061] When there is a target object within the second preset range of the electronic device 100, the detection module is controlled to operate at a third operating ratio.

[0062] As an exemplary embodiment, the detection module 110 may include a proximity sensor, and the first preset range and the second preset range may both be smaller than the maximum detection distance of the proximity sensor. When the proximity sensor detects that the user is in the first preset range, the possibility that the user views the electronic device 100 is greatest at this time, and the detection module 110 is controlled to operate with a first working ratio; when the user is not detected within the first preset range, but a human body is detected within the second preset range, the user may need to view the electronic device 100, or the user may not need to view the electronic device 100, but the user's activity area happens to be within the second preset range, and the detection module 110 can be controlled to operate with a third working ratio to reduce power consumption.

[0063] For further information, see Figure 5 , this step can also be divided into step S441 and step S442.

[0064] Step S441: If there is a target object within the second preset range of the electronic device, determine whether the electronic device is in a specified time period.

[0065] Step S442: If it is in the designated time period, control the detection module to operate at the third operating ratio.

[0066] The method for determining whether the electronic device 100 is in the specified time period can be referred to in the subsequent embodiments. For some implementations, when the electronic device 100 is in the specified time period, the detection module 110 is controlled to work at the third working ratio. Further, if it is not in the specified time period, the detection module 110 can also be controlled to work at the fourth working ratio.

[0067] In an exemplary embodiment, the designated time period may be daytime. When the designated time period is in progress, if there is user activity within the second range, that is, the user is more likely to view the electronic device 100, the detection module 110 may be controlled to operate at the third operating ratio. If the designated time period is not in progress, and it is night, even if a user is detected within the second range, the possibility of the user viewing the electronic device 100 is lower than that during the designated time period, the detection module 110 may be controlled to operate at the fourth operating ratio.

[0068] For some implementations, when the electronic device 100 is not in the specified time period, the detection module 110 is controlled to operate at a fourth operating ratio.

[0069] Step S450: If there is no target object within the second preset range of the electronic device, control the detection module to operate at a fourth operating ratio.

[0070] When there is no target object within the second preset range of the electronic device 100, the detection module 110 is controlled to operate at the fourth operating ratio.

[0071] Further, for an implementation method provided by the present application, the third work ratio is greater than the fourth work ratio, and the third work ratio and the fourth work ratio are both less than the first work ratio. For example, the working time can be set to a minutes and the non-working time to b minutes, where a and b are both positive numbers, then the work ratio can be expressed as For the third work ratio, you can set the working time a to 5 minutes and the non-working time b to 30 minutes. At this time, the third work ratio is For the fourth work ratio, the working time can be set to 1 minute and the non-working time b to 30 minutes. At this time, the work ratio is Easy to see, The proportion of the third task being satisfied is greater than the proportion of the fourth task being satisfied.

[0072] See also Figure 6 , Figure 6A detection module control method provided in an embodiment of the present application is shown, which can be applied to the electronic device 100 in the above embodiment, and the execution subject of the method can be the main control module 140. Specifically, the method includes steps S610 to S650.

[0073] Step S610: Based on the detection module, the detection information of the target object is obtained.

[0074] Step S620: If it is determined based on the detection information that the electronic device detects the target object, the detection module is controlled to operate at a first operating ratio.

[0075] Among them, step S610 and step S620 have been described in detail in the above embodiments and will not be repeated here.

[0076] Step S630: Check whether the specified information is obtained.

[0077] For some embodiments, it can be detected whether the specified information is obtained, and the specified information can be used to characterize whether there is a target object within the third preset range of the electronic device 100. In an exemplary manner, the third preset range can be greater than the second preset range, and the third preset range can be the overall range of the room where the electronic device 100 is located, such as the overall range of the bedroom, or the overall range of the kitchen. If the specified information is obtained, it is determined that there is a target object within the third preset range of the electronic device, which means that the electronic device 100 has a certain possibility of being viewed by the user at this time. It is easy to understand that this possibility should be less than the possibility of the electronic device 100 being viewed when there is a target object within the first preset range. At this time, the detection module 110 can be controlled to work with a longer working time, which should be less than the working time corresponding to the first working proportion. For example, the detection module 110 can be controlled to work with a third working proportion, and the third working proportion is less than the first working proportion. If the specified information is not obtained, it is determined that there is no target object within the third preset range of the electronic device 100, which means that the electronic device 100 is unlikely to be viewed by the user at this time. At this time, the detection module 110 can be controlled to work with a shorter working time, for example, the detection module 110 can be controlled to work with a fourth working ratio, and the fourth working ratio is less than the third working ratio. Among them, the specified information is used to indicate that there is a target object within the third preset range of the electronic device 100, and the specified information is sent by the detection device within the third preset range or input by the user through the electronic device. For example, for some embodiments, the electronic device 100 and the detection device are both connected to the network, and the data sent by the detection device can be obtained. For other embodiments, the user can also directly input the specified information through the input module 130 on the electronic device 100.

[0078] For further information, see Figure 7 , Figure 7 An implementation of step S630 is shown. Specifically, step S630 may include steps S631 to S635.

[0079] Step S631: Determine whether the electronic device is in a network access state.

[0080] For some embodiments, if the detection device is in a networked state, when the designated information is sent to the electronic device 100 by the detection device within the third preset range, it can be first determined whether the electronic device 100 is in a networked state. It is easy to understand that being in a networked state means that the electronic device 100 can access the Internet, and at this time the electronic device 100 is more likely to be viewed by the user. Among them, the detection device can be other sensing devices, the other sensing devices can access the network, and the other sensing devices can be human presence sensors, human sensors, soft sensors, etc.

[0081] Furthermore, for some embodiments, a gateway module can be used to enable the electronic device 100 to access the network. For example, if the electronic device 100 is equipped with a Zigbee communication module, it can be connected to a Zigbee gateway to access the network; if the electronic device 100 is equipped with a wireless communication technology Wi-Fi module, it can be connected to a Wi-Fi gateway to access the network. The electronic device 100 is equipped with a Bluetooth module and accesses the Bluetooth network via Bluetooth.

[0082] Step S632: If the electronic device is in a network access state, it is detected whether the specified information is obtained.

[0083] Furthermore, when the electronic device 100 is in a network access state, it can be detected whether the specified information has been obtained. For some implementations, the specified information can be agreed upon in advance, and a unique message header can be added and attached before the specified information. When the electronic device 100 reads the unique message header, it can be determined that the specified information has been received. For example, assuming that the specified information exists in the variable x, it is agreed in advance that the message header is the binary code 1100, and then the message header binary code 1100 is attached before the variable x to form 1100x. When the electronic device 100 reads 1100, the corresponding x thereafter is the specified information, thereby knowing that the specified information has been obtained.

[0084] Step S633: If the electronic device is not in a network access state, determine whether the electronic device is in a specified time period.

[0085] For some embodiments, if the electronic device 100 is not connected to the network, it is easy to know that it is impossible to receive the specified information sent by the detection device through the network. At this time, it can be determined whether the electronic device 100 is in the specified time period, and the work proportion of the detection module 110 is allocated according to the specified time period. Among them, the specified time period can be determined based on the light intensity to which the electronic device 100 is exposed, and the light intensity is the light information. The light intensity can be detected by the detection module. A specified threshold can be set. When the light intensity is not less than the specified threshold, it is determined that the electronic device 100 is in the specified time period; when the light intensity is less than the specified threshold, it is determined that the electronic device 100 is not in the specified time period. For further information, please refer to Figure 8 In order to describe the specified time period in detail, step S633 can also be divided into steps S6331 to S6333.

[0086] Step S6331: Acquire lighting information based on the detection module.

[0087] For some embodiments, the detection module may include a light sensor, and the light sensor obtains the light information of the current environment. Through the light sensor, light energy or photons can be converted into electrical signals, and an electrical output signal with energy corresponding to the input light energy is generated, thereby obtaining light information. Among them, the light information is used to characterize the amount of light received by the electronic device. It is easy to understand that when the amount of light is large, the sensor data provided by the electronic device 100 is more likely to be viewed by the user, so under this condition, the detection module 110 should be controlled to work more actively, even if its work proportion cannot be too small. Specifically, the detection module 110 can be controlled to collect the light intensity received by the electronic device 100, and the light intensity is used as light information.

[0088] Step S6332: If the light information is not less than the specified threshold, it is determined that the electronic device is in a specified time period.

[0089] For some embodiments, a specified threshold value can be set. When the light information is less than the threshold value, it indicates that the surrounding environment is relatively dark and the user's activity range is small. At this time, the user is unlikely to view the electronic device 100. If the light information is greater than the threshold value, it indicates that the surrounding environment is relatively bright and the user's activity range is large. At this time, the user is likely to view the electronic device 100. The acquired light information is compared with the specified threshold value. If the light information is not less than the specified threshold value, it is determined that the electronic device 100 is in a specified period. For example, the specified threshold value can be set to 10lux. If the light information is detected to be 15lux, because 15lux>10lux, the light information is not less than the specified threshold value. At this time, it is determined that the light information is not less than the specified threshold value, and the electronic device 100 is in a specified period. Among them, lux is a unit of illumination.

[0090] Step S6333: If the light information is less than the specified threshold, it is determined that the electronic device is not in the specified time period.

[0091] For some other embodiments, if the specified threshold is set to 10lux, if the detected light information is 5lux, because 5lux<10lux, the light information is less than the specified threshold. At this time, it is judged that the light information is less than the specified threshold, and the electronic device 100 is not in the specified time period.

[0092] Step S634: If it is in the designated time period, control the detection module to operate at the third operating ratio.

[0093] Further, the above steps can determine whether the electronic product 100 is in a specified period. In one embodiment provided in the present application, when the electronic product 100 is in a specified period, the detection module 110 is controlled to operate at a third operating ratio. The second operating ratio includes a third operating ratio and a fourth operating ratio.

[0094] Step S635: If it is not in the designated time period, control the detection module to operate at the fourth operating ratio.

[0095] Furthermore, the above steps can determine whether the electronic product 100 is in the specified time period. In an embodiment provided by the present application, when the electronic product 100 is not in the specified time period, the detection module 110 is controlled to operate at the fourth operating ratio.

[0096] In an exemplary embodiment, if the specified time period is daytime, if it is not in the specified time period, it is nighttime, regardless of whether the user is detected in the room where the electronic device 100 is located, the possibility of the user viewing the electronic device 100 is smaller than when it is in the specified time period, so the detection module 110 can be controlled to work at the fourth working ratio. It should be noted that if a user is detected in the room where the electronic device 100 is located, because the current environment is at night, the user may be sleeping, and the detection module 110 can be controlled to work at the fourth working ratio and work with a shorter working time, so as to avoid the impact of noise on the user.

[0097] For other embodiments, whether the electronic device 100 is in the specified time period can also be determined by determining whether the current time is in a preset time period. For example, the preset time period can be 6:00-18:00, and if the current time is in the preset time period, the electronic device 100 is in the specified time period.

[0098] Step S640: If the designated information is obtained, it is determined that there is a target object within the third preset range of the electronic device, and the detection module is controlled to operate at a third operating ratio.

[0099] Step S650: If the designated information is not obtained, it is determined that there is no target object within the third preset range of the electronic device, and the detection module is controlled to operate at the fourth operating ratio.

[0100] For some implementations, if the specified information has been obtained, it can be determined that there is a target object within the third preset range of the electronic device 100; if the specified information has not been obtained, it can be determined that there is no target object within the third preset range of the electronic device 100. When it is determined that there is a target object within the third preset range, the detection module 110 can be controlled to operate at a third working ratio; when it is determined that there is no target object within the third preset range of the electronic device 100, the detection module 110 can be controlled to operate at a fourth working ratio. The third working ratio is greater than the fourth working ratio. For further information, please refer to Fig. 9 , step S640 may also include step S641 and step S642.

[0101] Step S641: If the designated information is obtained, it is determined that there is a target object within the third preset range of the electronic device, and whether the electronic device is in a designated time period is determined.

[0102] Step S642: If it is in the designated time period, control the detection module to operate at the third operating ratio.

[0103] When the specified information is obtained, it can also be determined whether it is in the specified time period. If it is in the specified time period, the control detection module 110 operates at the third working ratio. The method for determining whether the electronic device is in the specified time period can refer to the above steps S6331 to S6333, which will not be repeated here.

[0104] In an exemplary embodiment, the designated time period may be daytime. When the designated information is obtained and the designated time period is in place, that is, it is currently daytime and there is a user in the room where the electronic device 100 is located, the user is more likely to view the electronic device 100 at this time, so the detection module 110 may be controlled to operate at the third working ratio. The third working ratio is less than the first working ratio and greater than the fourth working ratio, which can satisfy the need to obtain the required detection data in a timely manner when the user views the electronic device 100, and can also take into account the need to reduce the power consumption of the detection module 110 to extend its life.

[0105] The detection module control method, device, electronic device, computer-readable medium and product provided in the present application obtain proximity information based on the detection module 110 in the electronic device, and determine whether the target object is within a first preset range through the proximity information. When there is a target object within the first preset range, the user is more likely to view the electronic device 100; determine whether the target object is within a third preset range through designated information. When there is a target object within the third preset range, the user is likely to view the electronic device 100; determine whether the electronic device 100 is in a designated time period through illumination information. When the electronic device 100 is in the designated time period, the user is likely to view the electronic device 100; and detect whether the electronic device 100 is in a networked state. When the electronic device 100 is in a networked state, the user is likely to view the electronic device 100; and control the detection module 110 to operate at a first working ratio, a third working ratio or a fourth working ratio according to different situations, wherein the first working ratio is continuous operation and the third working ratio is greater than the fourth working ratio. Since the detection module 110 will continuously generate noise and heat when working for a long time, causing heat accumulation, the embodiment of the present application can reasonably arrange the working time of the detection module 110 by making the detection module 110 work at different working ratios, thereby reducing the heat and noise of the detection module 110.

[0106] See also Fig.10 , Fig.10 The flowchart of a detection module control method provided in an embodiment of the present application is shown, and the method can be applied to the electronic device 100 in the above embodiment, and the execution subject of the method can be the main control module 140. Specifically, the flow includes step S1010 to step S1020.

[0107] Step S1010: Start.

[0108] For some implementations, the detection module control method provided in the embodiment of the present application may be automatically started after the electronic device 100 is powered on, or may be manually set to start execution by the user through the input module 130 of the electronic device 100.

[0109] Step S1011: Whether there is a target object within the first preset range.

[0110] For some implementations, it can be determined whether there is a target object within the first preset range of the electronic device 100 by acquiring proximity information, wherein the proximity information is used to characterize the distance between the target object and the electronic device 100. If there is a target object within the first preset range, the process can jump to step S1015, and control the detection module 110 to work at the first working ratio. If there is no target object within the first preset range, the process can jump to step S1012 or step S1018.

[0111] Step S1012: Whether the electronic product is connected to the network.

[0112] For some implementations, whether the electronic device 100 is connected to the network can be determined by detecting whether the electronic device 100 is connected to the corresponding gateway. If the electronic device 100 is connected to the network, the process jumps to step S1013; if the electronic device 100 is not connected to the network, the process jumps to step S1017.

[0113] Step S1013: Check whether there is a target object within the third preset range.

[0114] For some implementations, it is possible to determine whether there is a target object within the third preset range of the electronic device 100 by obtaining designated information. The designated information may be sent by a detection device within the third preset range or input by a user through the electronic device 100. When there is a target object within the third preset range, the process may jump to step S1014; when there is no target object within the third preset range, the process may jump to step S1020 to control the detection module 110 to operate at the fourth working ratio.

[0115] Step S1014: Whether it is in the specified time period.

[0116] For some embodiments, it can be determined whether the electronic device 100 is in a specified time period by acquiring light information. The light information can be acquired by the detection module 110, and the detection module 110 can include a light sensor. When the electronic device 100 is in the specified time period, the process can jump to step S1016 to control the detection module 110 to work at the third working ratio; when the electronic device 100 is not in the specified time period, the process can jump to step S1020 to control the detection module 110 to work at the fourth working ratio.

[0117] Step S1015: first work proportion.

[0118] For some implementation modes, the first working ratio may be continuous working.

[0119] Step S1016: third work proportion.

[0120] For some implementations, the third working ratio may be to work for a period of time, stop working for a period of time, and cycle sequentially. For example, it may work for 1 minute, stop working for 5 minutes, and cycle sequentially until the next change of working ratio.

[0121] Step S1017: Whether it is in the specified time period.

[0122] The method for determining whether the electronic device 100 is in the specified time period is the same as step S1014, and will not be described in detail here. When the electronic device 100 is in the specified time period, the process may jump to step S1016 to control the detection module 110 to work at the third working ratio; when the electronic device 100 is not in the specified time period, the process may jump to step S1020 to control the detection module 110 to work at the fourth working ratio.

[0123] Step S1018: Check whether there is a target object within the second preset range.

[0124] When there is a target object within the second preset range of the electronic device 100, the process can jump to step S1016 to control the detection module 110 to operate at the third working ratio; when there is no target object within the second preset range of the electronic device 100, the process can jump to step S1020 to control the detection module 110 to operate at the fourth working ratio.

[0125] Step S1019: Whether it is in the specified time period.

[0126] The method for determining whether the electronic device 100 is in the specified time period is the same as step S1014, and will not be described in detail here. When the electronic device 100 is in the specified time period, the process may jump to step S1016 to control the detection module 110 to operate at the third working ratio; when the electronic device 100 is not in the specified time period, the process may jump to step S1019.

[0127] Step S1020: fourth work proportion.

[0128] For some implementations, the third work ratio may be to work for a period of time, stop working for a period of time, and cycle sequentially. For example, it may work for 1 minute, stop working for 30 minutes, and cycle sequentially until the next change of the work ratio. The fourth work ratio is less than the third work ratio in step S1016.

[0129] See also Fig.11 , which shows a structural block diagram of a detection module control device 1100 provided in an embodiment of the present application, which is applied to an electronic device. The electronic device 100 includes a detection module 110, and the device may include: an acquisition unit 1110, a first control unit 1120, and a second control unit 1130.

[0130] The acquisition unit 1110 is used to acquire detection information of the target object based on the detection module, and the detection information is used to determine whether the electronic device detects the target object.

[0131] The first control unit 1120 is used to control the detection module to operate at a first operating ratio if it is determined based on the detection information that the electronic device detects a target object. The first operating ratio is used to represent the ratio of the working time of the electronic device to the non-working time.

[0132] Furthermore, the first control unit 1120 is also used to control the detection module to operate at a first working ratio if it is determined based on the proximity information that there is a target object within a first preset range of the electronic device; wherein, if it is determined based on the detection information that the electronic device has not detected the target object, the detection module is controlled to operate at a second working ratio, including: if it is determined based on the proximity information that there is no target object within the first preset range of the electronic device, the detection module is controlled to operate at a second working ratio.

[0133] Furthermore, the first control unit 1120 is also used to determine whether there is a target object within a second preset range of the electronic device if it is determined based on the proximity information that there is no target object within the first preset range of the electronic device, wherein the second preset range is larger than the first preset range; if there is a target object within the second preset range of the electronic device, control the detection module to operate with a third working ratio; if there is no target object within the second preset range of the electronic device, control the detection module to operate with a fourth working ratio, wherein the third working ratio is larger than the fourth working ratio.

[0134] Furthermore, the first control unit 1120 is also used to determine whether the electronic device is in a specified time period if there is a target object within a second preset range of the electronic device; during the specified time period, the detection module is controlled to operate at a third working ratio; if it is not in the specified time period, the sensing module is controlled to operate at a fourth working ratio.

[0135] The second control unit 1130 is used to control the detection module to operate at a second operating ratio if it is determined based on the detection information that the electronic device has not detected the target object, wherein the first operating ratio is greater than the second operating ratio.

[0136] Furthermore, the second control unit 1130 is also used to detect whether specified information is obtained, and the specified information is used to indicate that there is a target object within a third preset range of the electronic device. The specified information is sent by a detection device within the third preset range or input by a user through the electronic device; if the specified information is obtained, it is determined that there is a target object within the third preset range of the electronic device, and the detection module is controlled to operate with a third working ratio; if the specified information is not obtained, it is determined that there is no target object within the third preset range of the electronic device, and the detection module is controlled to operate with a fourth working ratio, wherein the third working ratio is greater than the fourth working ratio.

[0137] Furthermore, the second control unit 1130 is also used to determine whether there is a target object within a third preset range of the electronic device and whether the electronic device is in a specified time period if the specified information is obtained; if it is in the specified time period, control the detection module to operate at a third working ratio.

[0138] Furthermore, the second control unit 1130 is also used to determine whether the electronic device is in a network-connected state; if the electronic device is in a network-connected state, detect whether the specified information is obtained.

[0139] Furthermore, the second control unit 1130 is also used to determine whether the electronic device is in a specified time period if the electronic device is not in a network access state; if it is in the specified time period, control the detection module to operate at a third working ratio.

[0140] Furthermore, the second control unit 1130 is further configured to control the detection module to operate at a fourth operating ratio if the time period is not specified.

[0141] Furthermore, the second control unit 1130 is also used to determine whether the electronic device is in a specified time period if it is determined based on the proximity information that there is no target object within the first preset range of the electronic device; if it is in the specified time period, control the detection module to operate with a third working ratio; if it is not in the specified time period, control the detection module to operate with a fourth working ratio, wherein the third working ratio is greater than the fourth working ratio.

[0142] Furthermore, the second control unit 1130 is also used to obtain lighting information based on the detection module, and the lighting information includes the current light intensity of the environment in which the electronic device is located; if the lighting information is not less than a specified threshold, it is determined that the electronic device is in a specified time period; if the lighting information is less than the specified threshold, it is determined that the electronic device is not in the specified time period.

[0143] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0144] In several embodiments provided in the present application, the coupling between the units may be electrical, mechanical or other forms of coupling.

[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] See also Fig.12, which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 1200 may be an air detection panel including a detection module 110. The electronic device 1200 in the present application may include one or more of the following components: a processor, a memory 1220, a temperature and humidity sensor 1230, a carbon dioxide sensor 1240, a PM2.5 sensor 1250, a proximity sensor 1260, a segment code screen 1270, a button 1280, an AC input 1293, a first linear regulator 1291, a second linear regulator 1293 and one or more applications, wherein one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the method as described in the aforementioned method embodiment.

[0147] Further, the processor may be a main control chip 1210. The main control chip 1210 may include one or more processing cores. The main control chip 1210 uses various interfaces and lines to connect various parts of the entire electronic device 1200, and executes various functions and processes data of the electronic device 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Among them, the main control chip 1210 is respectively connected to the memory 1220, the temperature and humidity sensor 1230, the carbon dioxide sensor 1240, the PM2.5 sensor 1250, the proximity sensor 1260, the segment code screen 1270 and the button 1280. The first linear regulator 1291 is respectively connected to the AC input 1293, the main control chip 1210, the memory 1220, the input module 1280 and the temperature and humidity sensor 1230. The second linear regulator 1292 is respectively connected to the AC input 1293, the carbon dioxide sensor 1240, the proximity sensor 1260, and the segment code screen 1270. The AC input 1293 is respectively connected to the first linear regulator 1291, the second linear regulator 1292, and the PM2.5 sensor 1250.

[0148] Optionally, the main control chip 1220 may adopt a microcontroller unit (MCU). The control unit may integrate a communication module, such as a wireless communication technology Wi-Fi module, a Zigbee module, or a Bluetooth module. It is understandable that the above communication modules may not be integrated into the main control chip 1220, but may be implemented separately through a communication chip.

[0149] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 1200 during use, etc.

[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A detection module control method, characterized in that: Applied to an electronic device, the electronic device includes a detection module, and the method includes: Based on the detection module, acquiring detection information of the target object, the detection information is used to determine whether the electronic device detects the target object, the detection information includes proximity information, and the proximity information is used to represent the distance between the target object and the electronic device; If it is determined based on the proximity information that the target object exists within the first preset range of the electronic device, controlling the detection module to operate at a first operating ratio, where the first operating ratio is used to represent a ratio of the operating time to the non-operating time of the detection module; If it is determined based on the proximity information that the target object does not exist within the first preset range of the electronic device, determining whether the electronic device is in a network access state; If the electronic device is in the network access state, detecting whether specified information is obtained, the specified information being used to indicate that the target object exists within a third preset range of the electronic device; If the specified information is obtained, determining whether the electronic device is in a specified time period; If it is in the specified time period, controlling the detection module to operate at a third operating ratio; If the designated information is not obtained, determining that the target object does not exist within the third preset range of the electronic device, and controlling the detection module to operate at a fourth operating ratio; Among them, the proportion of the first work is greater than the proportion of the third work and the proportion of the fourth work, and the proportion of the third work is greater than the proportion of the fourth work.

2. The method according to claim 1, characterized in that The designated information is sent by a detection device within the third preset range or is input by a user through the electronic device.

3. The method according to claim 1, characterized in that: Also includes: If the electronic device is not in the network access state, determining whether the electronic device is in a specified time period; If it is in the designated time period, the detection module is controlled to operate at the third operating ratio.

4. The method according to claim 1 or 3, characterized in that: Also includes: If it is not in the specified time period, the detection module is controlled to operate at the fourth operating ratio.

5. The method according to claim 1, characterized in that The determining whether the electronic device is in a specified time period includes: Based on the detection module, obtaining illumination information, wherein the illumination information includes the current illumination intensity of the environment where the electronic device is located; If the illumination information is not less than a specified threshold, determining that the electronic device is in the specified time period; If the illumination information is less than the specified threshold, it is determined that the electronic device is not in the specified time period.

6. A detection module control device, characterized in that: Applied to electronic equipment, the electronic equipment includes a detection module, and the device includes: an acquisition unit, configured to acquire detection information of the target object based on the detection module, wherein the detection information is used to determine whether the electronic device has detected the target object, and the detection information includes proximity information, and the proximity information is used to represent the distance between the target object and the electronic device; A first control unit, configured to control the detection module to operate at a first operating ratio if it is determined based on the proximity information that the target object exists within a first preset range of the electronic device, wherein the first operating ratio is used to represent a ratio of the operating time to the non-operating time of the electronic device; a second control unit, configured to determine whether the electronic device is in a network access state if it is determined based on the proximity information that the target object does not exist within the first preset range of the electronic device; If the electronic device is in the network access state, detecting whether specified information is obtained, the specified information being used to indicate that the target object exists within a third preset range of the electronic device; If the specified information is obtained, determining whether the electronic device is in a specified time period; If it is in the specified time period, controlling the detection module to operate at a third operating ratio; If the designated information is not obtained, determining that the target object does not exist within the third preset range of the electronic device, and controlling the detection module to operate at a fourth operating ratio; Among them, the proportion of the first work is greater than the proportion of the third work and the proportion of the fourth work, and the proportion of the third work is greater than the proportion of the fourth work.

7. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 3.

8. The electronic device according to claim 7, characterized in that: Also includes: Main control chip, temperature and humidity sensor, carbon dioxide sensor, PM2.5 sensor, proximity sensor and segment code screen; The main control chip is respectively connected to the temperature and humidity sensor, the carbon dioxide sensor, the PM2.5 sensor, the proximity sensor and the segment code screen.