CN114705809A - Detection module control method and device and electronic equipment - Google Patents

Detection module control method and device and electronic equipment Download PDF

Info

Publication number
CN114705809A
CN114705809A CN202210157828.2A CN202210157828A CN114705809A CN 114705809 A CN114705809 A CN 114705809A CN 202210157828 A CN202210157828 A CN 202210157828A CN 114705809 A CN114705809 A CN 114705809A
Authority
CN
China
Prior art keywords
detection module
information
electronic equipment
target object
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210157828.2A
Other languages
Chinese (zh)
Inventor
王志乾
邱明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202210157828.2A priority Critical patent/CN114705809A/en
Publication of CN114705809A publication Critical patent/CN114705809A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • G01N33/0009General constructional details of gas analysers, e.g. portable test equipment
    • G01N33/0073Control unit therefor

Abstract

The application discloses a detection module control method, a detection module control device and electronic equipment, relates to the technical field of detection modules, and is applied to the electronic equipment, the electronic equipment comprises a detection module, and the method comprises the following steps: acquiring detection information of a target object based on the detection module, wherein the detection information is used for judging whether the electronic equipment detects the target object; if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at a first working ratio, wherein the first working ratio is used for representing the ratio of the working time length to the non-working time length of the detection module; and if the electronic equipment does not detect the target object based on the detection information, controlling the detection module to work at a second working ratio, wherein the first working ratio is greater than the second working ratio. This application reduces electronic equipment's consumption through control detection module with different work accounts for than carrying out work, reduces to generate heat.

Description

Detection module control method and device and electronic equipment
Technical Field
The present disclosure relates to the field of detection module technologies, and in particular, to a method and an apparatus for controlling a detection module, and an electronic device.
Background
At present, with the development and progress of society, people have higher and higher requirements on the air quality in the living environment. Generally, an indoor-installed air monitoring panel is capable of monitoring air quality in real time and feeding back data to a user. However, the sensors inside the current air detection panels generate heat seriously and have large noise.
Disclosure of Invention
The application provides a detection module control method, a detection module control device and electronic equipment, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a detection module control method, which is applied to an electronic device, where the electronic device includes a detection module, and the method includes: acquiring detection information of a target object based on the detection module, wherein the detection information is used for judging whether the electronic equipment detects the target object; if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at a first working ratio, wherein the first working ratio is used for representing the ratio of the working time length to the non-working time length of the detection module; and if the electronic equipment does not detect the target object based on the detection information, controlling the detection module to work at a second working ratio, wherein the first working ratio is greater than the second working ratio.
In a second aspect, an embodiment of the present application further provides a detection module control apparatus, which is applied to an electronic device, where the electronic device includes a detection module, and the apparatus includes: the device comprises an acquisition unit, a first control unit and a second control unit. An obtaining unit, configured to obtain detection information of a target object based on the detection module, where the detection information is used to determine whether the electronic device detects the target object; the first control unit is used for controlling the detection module to work at a first working ratio if the electronic equipment detects the target object based on the detection information, wherein the first working ratio is used for representing the ratio of the working time length to the non-working time length of the electronic equipment; and the second control unit is used for controlling the detection module to work at a second working ratio if the electronic equipment is determined not to detect the target object based on the detection information, wherein the first working ratio is greater than the second working ratio.
In a third aspect, an embodiment of the present application further provides an electronic device, including: 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, the one or more programs configured to perform the methods described above.
The method, the device, the electronic device, the computer readable medium and the product for controlling the detection module provided by the application are characterized in that detection information is acquired based on the detection module in the electronic device, whether the target object is detected by the electron is determined through the detection information, if the target object is determined to be detected by the electronic device based on the detection information, the user is more likely to view the data collected by the detection module, at the moment, the detection module can be enabled to work in more time, so that the data can be provided for the user to view more immediately, the detection module can be controlled to work in a first work duty ratio, if the target object is determined not to be detected by the electronic device based on the detection information, the user is less likely to view the data collected by the detection module, and at the moment, the detection module can be enabled to work in shorter time, thereby, the operation time can be reduced, at which time the detection module can be controlled to operate with a second operation duty ratio, wherein the first operation duty ratio is larger than the second operation duty ratio. Because detection module long-time work can continuously produce noise and heat, causes the heat to pile up, consequently, this application embodiment can be through making detection module account for than work with different work, has reduced detection module's operating time to detection module's the generate heat and noise have been reduced.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a diagram illustrating an electronic device of a control method of a detection module according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for controlling a detection module according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method for controlling a detection module according to another embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of controlling a detection module according to another embodiment of the present application;
FIG. 5 illustrates an embodiment of step S440 in FIG. 4;
FIG. 6 is a flowchart illustrating a method for controlling a detection module according to another embodiment of the present application;
FIG. 7 shows an embodiment of step S630 in FIG. 6;
FIG. 8 shows an embodiment of step S633 in FIG. 7;
FIG. 9 illustrates an embodiment of step S640 of FIG. 6;
FIG. 10 is a flow chart illustrating a method for controlling a detection module according to still another embodiment of the present application;
FIG. 11 illustrates a block diagram of a detection module control apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of an electronic device for executing a detection module control method according to an embodiment of the present application in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Currently, people pay more and more attention to high-quality life with the development and progress of society. Aiming at pursuit of people for air quality in living environment, air quality is mostly monitored indoors by adopting an air monitoring panel at present, and data is fed back to a user.
Specifically, the air monitoring panel is generally mounted in a 86-box manner by being attached to a wall, and can monitor indoor temperature, carbon dioxide concentration, PM2.5 concentration, humidity and the like in real time. The information is displayed on the screen of the panel or pushed to other electronic equipment through the gateway.
However, the inventor has found that the volume of the 86-box product space is small, and the sensor module in the air monitoring panel generally includes various types of sensors, which emit noise when the sensor module is continuously operated and generate heat accumulation in a narrow space.
Therefore, in order to overcome the above-mentioned drawbacks, embodiments of the present application provide a method and an apparatus for controlling a detection module, and an electronic device, which operate at different duty ratios, so as to reduce heat generation and noise of the detection module.
Referring to fig. 1, fig. 1 illustrates a detection module control method provided in an embodiment of the present application, where the detection module control method can be applied to an electronic device 100, and the electronic device 100 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.
The detecting module 110 can be used for sensing the measured information and converting the sensed information into an electrical signal or other information in a required form according to a certain rule to output, so as to meet the requirements of information transmission, processing, storage, display, recording, control and the like. Generally, the sensor is classified into a heat-sensitive element, a light-sensitive element, a gas-sensitive element, a force-sensitive element, a magnetic-sensitive element, a humidity-sensitive element, a sound-sensitive element, a radiation-sensitive element, a color-sensitive element, a taste-sensitive element, and the like according to its basic sensing function. For one embodiment provided herein, the detection module 110 may include a temperature and humidity sensor, a carbon dioxide sensor, a PM2.5 sensor, a proximity sensor, and the like.
Further, the display module 120 is configured to display the data acquired by the detection module 110, and the data is comprehensively processed by the main control module 140 and sent to the display module 120 for display. For an implementation manner provided by the present application, the Display module 120 may be a Display screen disposed on the electronic device 100, and the Display screen may be a segment code screen, a Liquid Crystal Display (LCD), or the like. For other embodiments, the display module 120 may also be a stand-alone display device, where 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 through the network module, and the data is acquired by the detection module 110 and then displayed on the display screen. Specifically, the network module may be directly connected to the electronic device 100 to implement communication, and further display the data collected by the detection module 110. For example, for some embodiments, the network module may be a bluetooth module, through which the electronic device 100 is directly connected; the network module may also be a wireless communication technology Wi-Fi module, through which the electronic device 100 is directly connected. For other embodiments, the network module may also access the network through a corresponding gateway device, and then connect to the electronic device 100 that also accesses the network to implement communication.
As an embodiment, the network module may be a Zigbee (Zigbee) module, which is accessed to a network through a Zigbee gateway, and then transmits data with the electronic device 100 that is also accessed to the network, so as to display the data on the display screen. The network module may also be a wireless communication technology Wi-Fi module, which accesses a network through a wireless communication technology Wi-Fi gateway, and then transmits data with the electronic device 100 that also accesses the network, thereby displaying the data on a display screen. For one embodiment provided by the present application, the other electronic device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Further, the input module 130 may be used to provide a user with a way to input a message, and send an instruction to the central control module 140, so as to control the electronic device 100. For an embodiment provided by the present application, the input module 130 may be an input device disposed on the electronic apparatus 100, and a user directly controls the electronic apparatus 100 through the input module 130. For example, the input module 130 may be a button keypad, a touch keypad, or the like. For other embodiments, the input device 130 may also be connected to other electronic devices through a network, so as to acquire an instruction input by a user from the other electronic devices, and then control the electronic device 100. For a specific connection manner, reference may be made to the manner in which the display module 120 is connected to other electronic devices, and details are not described here.
Further, the main control module 140 may be configured to obtain various data collected by the detection module 110, perform comprehensive processing on the data, and display the data through the display device 120. The main control module 140 may also be configured to receive data sent by the input module 130 and control the electronic device 100. For some embodiments, the master control module 140 may be a Microcontroller Unit (MCU).
Referring to fig. 2, fig. 2 shows a method for controlling a detection module according to an embodiment of the present application, where the method can be applied to the electronic device 100 in the foregoing embodiment, and an execution main body of the method can be the main control module 140. Specifically, the method includes steps S210 to S230.
Step S210: and acquiring the detection information of the target object based on the detection module.
Step S220: and if the electronic equipment detects the target object based on the detection information, controlling the detection module to work according to the first work proportion.
Step S230: and if the electronic equipment does not detect the target object based on the detection information, controlling the detection module to work at a second working ratio.
For some embodiments, 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. For example, the detection information may be the distance of the target object from the detection module 110.
Further, based on the acquired detection information, it may be determined whether the electronic device 100 detects the target object, and then the detection module 110 is controlled to operate at different duty ratios, where the duty ratios may be used to represent a ratio of an operating time to a non-operating time of the detection module 110. Specifically, it is determined that the electronic device detects the target object based on the detection information, and the detection module 110 is controlled to operate at a first operation duty ratio; if it is determined that the electronic device 100 does not detect the target object based on the detection information, the detection module 110 is controlled to operate at the second operation ratio. Wherein the first duty cycle is greater than the second duty cycle.
The detection module control method, device, electronic device, computer readable medium and product provided by the present application, based on the detection module 110 in the electronic device, obtain the detection information, determine whether the electronic device 100 detects the target object through the detection information, if it is determined that the electronic device 100 detects the target object based on the detection information, 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 may be operated with a longer duration, so as to provide the data for the user to view more immediately, the detection module 110 may be controlled to operate at the first operation duty ratio, if it is determined that the electronic device 100 does not detect the target object based on the detection information, it indicates that the user is less likely to view the data collected by the detection module 110, at this time, the detection module 110 may be operated with a shorter duration, so as to reduce the operation time, the detection module 110 may now be controlled to operate at a second duty cycle, wherein the first duty cycle is greater than the second duty cycle. Because the detection module 110 can continuously generate noise and heat after long-time operation, and heat accumulation is caused, the embodiment of the application can reduce the operation time of the detection module 110 by enabling the detection module 110 to operate at different operation duty ratios, thereby reducing the heat generation and noise of the detection module 110.
Referring to fig. 3, fig. 3 illustrates a detection module control method provided in an embodiment of the present application, where the method may be applied to the electronic device 100 in the foregoing embodiment, and an execution main body of the method may be the main control module 140. Specifically, the method includes steps S310 to S330.
For some embodiments, the proximity information may be obtained based on the detection module 110.
Step S310: and acquiring the approach information of the target object based on the detection module.
The proximity information may be used to characterize, among other things, the distance between the target object and the electronic device 100. The target object may be a user or other person in the same environmental space as the electronic device 100. The distance between the object around the electronic device 100 and the detection module 110 is obtained by the detection module 110. The detection module 110 may be a proximity sensor. The proximity sensor can detect the approach condition of a detected object without contact, and can identify the approach of the object by utilizing the sensitive characteristic of the displacement sensor to the approaching object, and can detect the movement and existence information of the object and convert the information into an electric signal. The proximity sensor may be of an inductive type, a capacitive type, an ultrasonic type, a photoelectric type, a magnetic type, or the like. For one embodiment provided herein, the proximity sensor may be of a capacitive type. For example, the detection module 110 may detect a distance between the target object and the electronic device 100, and may use the distance as the proximity information.
Step S320: and if the target object is determined to exist in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work according to the first work proportion.
For some embodiments, a range may be set, and the detection module 110 may determine whether the target object exists in the range. Specifically, a first preset range may be set, where the first preset range is used to represent a certain range of the electronic device 100, and if there is an object in the range, the electronic device 100 is easier to view. In this case, the detection module 110 should be operated for more time and not operated for less time. Specifically, the first preset range may be obtained by recording, by the electronic device 100, proximity information of the target object before the data is viewed each time, analyzing the proximity information each time before, obtaining a predicted distance, and using the predicted distance as the first preset range. For example, the first predetermined range may be a circular range with a radius of 0.5 m and centered on the electronic device 100. When the target object is detected to exist in the range, 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 operate at the first duty ratio.
It is to be understood that the above description of the first preset range is only an example, the shape, size and the like of the first preset range do not limit the embodiments provided in the present application, and the first preset range may be automatically specified as required in practical applications.
For some embodiments, the duty cycle is used to characterize a ratio of an operating time period to a non-operating time period of the electronic device 100. For example, an operating time period of a minutes and a non-operating time period of b minutes, where a and b are both positive numbers, may be set, and the duty ratio may be expressed as
Figure BDA0003513478480000061
It is easily understood that the larger the duty ratio, the longer the operation period is relative to the non-operation period. For example, in the first case, when the operation period a is 1 minute and the non-operation period b is 30 minutes, the duty ratio is
Figure BDA0003513478480000062
In the second case, when the operation period is 5 minutes and the non-operation period b is 30 minutes, the duty ratio is
Figure BDA0003513478480000063
The method is easy to see, and the device is easy to see,
Figure BDA0003513478480000064
the corresponding operating time length in the second case becomes longer relative to the non-operating time length.
Further, in an embodiment provided by the present application, the detection module 110 uses the first working ratio as the continuous working state of the detection module 110, that is, the non-working time period is 0 minute. The detection module 110 with the first duty cycle can satisfy the demand to be viewed by the user at any time. Specifically, the detection module 110 may be directly set to continuously operate, for example, the main control module 140 controls the detection module 110 to start to operate, and the detection module 110 is not turned off until the duty ratio is changed next time. The working time length a and the non-working time length b can be set respectively, so that the working time length a is far longer than the non-working time length b, and the non-working time length b is a positive number close to 0. For example, the operation time period a may be set to 60 minutes, and the non-operation time period may be set to 0.01 minutes, which may be regarded as the detection module 110 being continuously operated.
Step S330: and if the target object does not exist in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work according to the second working proportion.
The foregoing steps S310 and S320 already describe the first preset range and obtain the target object information in the first preset range in detail, and details are not repeated here.
When the target does not exist in the first preset range of the electronic device 100, the electronic device 100 is not easy to be viewed by the user, and at this time, the detection module 110 may operate for a shorter time period to reduce heat generation and noise of the detection module 110. I.e., may control the detection module 110 to operate at the second operating ratio. For some embodiments, the first duty cycle is greater than the second duty cycle.It will be readily appreciated that, because the operating time period for operation at the first duty cycle is much greater than the non-operating time period, the first duty cycle should be such that
Figure BDA0003513478480000071
The first duty cycle should be a state approaching infinity and the available second duty cycle should be less than the first duty cycle. For example, the working time period a corresponding to the second duty ratio may be set to 1 minute, the non-working time period b may be set to 30 minutes, and the second duty ratio may be set to
Figure BDA0003513478480000072
Less than the first duty cycle. The detection module 110 may be controlled to operate for 1 minute and stop operating for 30 minutes, and the operation and non-operation time periods are re-allocated until the next operation duty ratio change.
The detection module control method, device, electronic device, computer readable medium and product provided by the present application, based on the detection module 110 in the electronic device 100, obtain the proximity information, determine whether the target object is within a first preset range through the proximity information, if the target object is within the first preset range, it indicates that the user is more likely to check the data collected by the detection module 110, at this time, the detection module 110 may be operated for a longer time period, so as to immediately provide the data for the user to check, the detection module 110 may be controlled to operate at a first operation duty ratio, if the target object is not within the first preset range, it indicates that the user is less likely to check the data collected by the detection module 110, at this time, the detection module 110 may be operated for a shorter time period, so as to reduce the operation time, at this time, the detection module 110 may be controlled to operate at a second operation duty ratio, wherein the first duty cycle is greater than the second duty cycle. Because the detection module 110 can continuously generate noise and heat after long-time operation, and heat accumulation is caused, the embodiment of the application can reduce the operation time of the detection module 110 by enabling the detection module 110 to operate at different operation duty ratios, thereby reducing the heat generation and noise of the detection module 110.
Referring to fig. 4, fig. 4 shows a detection module control method provided in the embodiment of the present application, where the method may be applied to the electronic device 100 in the foregoing embodiment, and an execution main body of the method may be the main control module 140. Specifically, the method includes steps S410 to S450.
Step S410: and acquiring the approach information of the target object based on the detection module.
Step S420: and if the target object is determined to exist in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work according to the first work proportion.
Step S410 and step S420 have been described in detail in the above embodiments, and are not described herein again.
Step S430: and if the target object does not exist in the first preset range of the electronic equipment based on the proximity information, judging whether the target object exists in the second preset range of the electronic equipment.
For some embodiments, when it is determined that the target object does not exist within the first preset range around the electronic device 100, a second preset range may be further set for determination. The first preset range is used for representing a certain range of the electronic device 100, and if a target object is within the range, the electronic device 100 is easier to view. It is easy to understand that the second preset range should be larger than the first preset range, and if the target object exists in the second preset range, the possibility that the user views the electronic device 100 is less than the possibility that the target object exists in the first preset range. Specifically, assuming that the first preset range is a circular range with the electronic device 100 as a center and the radius of 0.5 m, the second preset range may also be a circular range with the electronic device 100 as a center and the radius of 3 m. At this time, the first preset range and the second preset range are concentric circles, and the circle radius of the second preset range is larger than that of the first preset range, so that the second preset range is larger than the first preset range. For other embodiments, the second preset range may also take the electronic device 100 as a center point, and take 1 meter as a half-side length to make a positive direction, and then the circle in the first preset range is an inscribed circle in the positive direction of the second preset range.
Step S440: and if the target object exists in a second preset range of the electronic equipment, controlling the detection module to work according to a third work proportion.
When the target object exists in the second preset range of the electronic device 100, the detection module is controlled to operate at the third operation duty ratio.
For example, the detection module 110 may include a proximity sensor, and the first preset range and the second preset range may both be smaller than a maximum detection distance of the proximity sensor, and when the proximity sensor detects that the user is in the first preset range, where the possibility that the user views the electronic device 100 is maximum, the detection module 110 is controlled to operate at a first duty ratio; when the user is not detected in the first preset range but the human body is detected in the second preset range, the user may need to check the electronic device 100, or the user may not need to check the electronic device 100, but only the activity area of the user is just in the second preset range, and the detection module 110 may be controlled to operate at the third operation duty ratio, so as to reduce power consumption.
Further, referring to fig. 5, the step can be further divided into step S441 and step S442.
Step S441: and if the target object exists in the second preset range of the electronic equipment, judging whether the electronic equipment is in the specified time period.
Step S442: and if the time is in the designated time period, controlling the detection module to work at a third work duty ratio.
The method for determining whether the electronic device 100 is in the designated time period may refer to the following embodiments. For some embodiments, when the electronic device 100 is in the specified time period, the detection module 110 is controlled to operate at a third duty cycle. Further, if the time period is not within the designated time period, the detection module 110 may be controlled to operate at a fourth duty ratio.
For example, the designated time period may be day time, and when the designated time period is reached, if there is user activity in 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 duty ratio. If the user is not in the designated time period, which is night, even if the user is detected in the second range, the possibility that the user views the electronic device 100 is lower than that in the designated time period, so that the detection module 110 can be controlled to operate in the fourth duty ratio.
For some embodiments, when the electronic device 100 is not in the specified time period, the detection module 110 is controlled to operate in the fourth duty cycle.
Step S450: and if the target does not exist in the second preset range of the electronic equipment, controlling the detection module to work according to the fourth working proportion.
When the target does not exist within the second preset range of the electronic device 100, the detection module 110 is controlled to operate at the fourth operation ratio.
Further, for an embodiment provided by the present application, the third duty ratio is greater than the fourth duty ratio, and both the third duty ratio and the fourth duty ratio are less than the first duty ratio. For example, an operating time period of a minutes and a non-operating time period of b minutes, where a and b are both positive numbers, may be set, and the duty ratio may be expressed as
Figure BDA0003513478480000091
For the third duty ratio, the working time period a is set to 5 minutes, the non-working time period b is set to 30 minutes, and the third duty ratio is set
Figure BDA0003513478480000092
For the fourth duty ratio, the working time period may be set to 1 minute, the non-working time period b may be set to 30 minutes, and the working ratio is set to
Figure BDA0003513478480000093
The method is easy to see, and the device is easy to see,
Figure BDA0003513478480000094
the third work proportion is larger than the fourth work proportion.
Referring to fig. 6, fig. 6 shows a method for controlling a detection module according to an embodiment of the present application, where the method may be applied to the electronic device 100 in the foregoing embodiment, and an execution main body of the method may be the main control module 140. Specifically, the method includes steps S610 to S650.
Step S610: and acquiring the detection information of the target object based on the detection module.
Step S620: and if the electronic equipment detects the target object based on the detection information, controlling the detection module to work according to the first work proportion.
The steps S610 and S620 are already described in detail in the foregoing embodiments, and are not repeated here.
Step S630: and detecting whether the specified information is acquired.
For some embodiments, whether the specific information is obtained or not may be detected, and the specific information may be used to characterize whether the target object exists within a third preset range of the electronic device 100 or not. For example, the third preset range may be greater than the second preset range, and the third preset range may be an entire range of a room where the electronic device 100 is located, such as an entire range of a bedroom, or an entire range of a kitchen. If the specific information is acquired, it is determined that the target object exists within the third preset range of the electronic device, that is, it indicates that the electronic device 100 has a certain possibility of being viewed by the user at this time. It will be readily appreciated that this probability should be less than the probability that the electronic device 100 is viewed when the target object is present within the first predetermined range. Then the detection module 110 may be controlled to operate at a longer operation time, which should be shorter than the operation time corresponding to the first operation ratio, for example, the detection module 110 may be controlled to operate at a third operation ratio, which is smaller than the first operation ratio. If the specific information is not acquired, it is determined that the target object does not exist within the third preset range of the electronic device 100, that is, the electronic device 100 is unlikely to be viewed by the user at this time, the detection module 110 may be controlled to operate for a shorter operation time, for example, the detection module 110 may be controlled to operate at a fourth operation ratio, and the fourth operation ratio is smaller than the third operation ratio. The specifying information is used to indicate that the target object exists in a third preset range of the electronic device 100, and the specifying information is sent by the detection device in the third preset range or input by the user through the electronic device. For example, for some embodiments, if both the electronic device 100 and the detection device access a network, the data sent by the detection device can be acquired. For other embodiments, the user may also directly input the specific information through the input module 130 on the electronic device 100.
Further, referring to fig. 7, fig. 7 illustrates an embodiment of step S630. Specifically, step S630 may include steps S631 to S635.
Step S631: and judging whether the electronic equipment is in a network access state.
For some embodiments, if the detection device is in the network access state, when the specific information is sent to the electronic device 100 by the detection device within the third preset range, it may be determined whether the electronic device 100 is in the network access state first. It is easy to understand that the electronic device 100 is in the network accessing state, that is, the electronic device 100 can access the internet, and the electronic device 100 is more likely to be viewed by the user at this time. The detection device may be other sensing devices, the other sensing devices may be capable of accessing a network, and the other sensing devices may be human presence sensors, human body sensors, soft sensors, and the like.
Further, for some embodiments, the electronic device 100 may access the network through a gateway module. For example, if the electronic device 100 is equipped with a Zigbee communication module, the electronic device may be connected to a Zigbee gateway to implement network access; if the electronic device 100 is equipped with a Wi-Fi module, the electronic device can be connected with a Wi-Fi gateway to access a network. The electronic device 100 is equipped with a bluetooth module and accesses a bluetooth network by means of bluetooth.
Step S632: and if the electronic equipment is in the network access state, detecting whether the specified information is acquired.
Further, when the electronic device 100 is in the network access state, it may be detected whether the specific information is acquired. For some embodiments, the specific information may be agreed in advance, and a unique packet header is added to be appended before the specific information. When the electronic device 100 reads the unique packet header, it can be determined that the specific information is received. For example, assume that the specific information is stored in a variable x, the packet header is agreed to be the binary code 1100 in advance, and the binary code 1100 of the packet header is attached to the front of the variable x to form 1100 x. When the electronic device 100 reads 1100, the corresponding x is the designated information, and thus it can be known that the designated information is acquired.
Step S633: and if the electronic equipment is not in the network access state, judging whether the electronic equipment is in the specified time period.
For some embodiments, if the electronic device 100 does not access the network, it is easy to know that the specific information sent by the detection device cannot be received through the network. At this time, it can be determined whether the electronic device 100 is in a designated time period, and the work duty ratio of the detection module 110 is assigned according to the designated time period. The designated time period may be determined based on the intensity of light received by the electronic device 100, which is the light information. Wherein the illumination intensity can be detected by the detection module. A specified threshold value can be set, and when the illumination intensity is not less than the specified threshold value, the electronic device 100 is determined to be in a specified time period; when the illumination intensity is less than the specified threshold, it is determined that the electronic device 100 is not in the specified period. Further, referring to fig. 8, for describing the designated period in detail, the step S633 may be further divided into steps S6331 to S6333.
Step S6331: and acquiring illumination information based on the detection module.
For some embodiments, the detection module may include an illumination sensor, by which illumination information of the current environment is acquired. With the illumination sensor, light energy or photons can be converted into an electrical signal, producing an electrical output signal having energy corresponding to the input light energy, thereby obtaining illumination information. The illumination information is used for representing the size of illumination received by the electronic equipment. It is easy to understand that when the amount of light is large, the sensing data provided by the electronic device 100 is more likely to be viewed by the user, so that the detection module 110 should be controlled to work more actively under the condition that the duty ratio is not too small. Specifically, the detection module 110 may be controlled to collect the illumination intensity received by the electronic device 100, and use the illumination intensity as the illumination information.
Step S6332: and if the illumination information is not less than the specified threshold value, judging that the electronic equipment is in the specified time period.
For some embodiments, a specific threshold may be set, and when the illumination information is less than the threshold, it indicates that the surrounding environment is dark and the activity range of the user is small, and at this time, the user will be unlikely to view the electronic device 100, and when the illumination information is greater than the threshold, it indicates that the surrounding environment is bright and the activity range of the user is large, and at this time, the user may view the electronic device 100. And comparing the acquired illumination information with a specified threshold, and if the illumination information is not less than the specified threshold, judging that the electronic device 100 is in a specified time period. For example, the designated threshold may be set to 10lux, and if the detected illumination information is 15lux, because 15lux >10lux, the illumination information is not less than the designated threshold, and at this time, it is determined that the illumination information is not less than the designated threshold, and the electronic device 100 is in the designated time period. Where lux is a unit of illumination.
Step S6333: and if the illumination information is smaller than the specified threshold value, judging that the electronic equipment is not in the specified time period.
For other embodiments, if the specified threshold is set to 10lux, if the detected illumination information is 5lux, because 5lux is less than 10lux, the illumination information is less than the specified threshold, and at this time, it is determined that the illumination information is less than the specified threshold, and the electronic device 100 is not in the specified time period.
Step S634: and if the time is in the designated time period, controlling the detection module to work at a third work duty ratio.
Further, it can be determined whether the electronic product 100 is in the designated time period by the above steps. In one embodiment, when the electronic product 100 is in a specific time period, the detection module 110 is controlled to operate at the third duty ratio. Wherein the second duty cycle comprises a third duty cycle and a fourth duty cycle.
Step S635: and if the time interval is not within the designated time interval, controlling the detection module to work at a fourth work proportion.
Further, it can be determined whether the electronic product 100 is in the designated time period by the above steps. In one embodiment provided herein, when the electronic product 100 is not in the designated time period, the detection module 110 is controlled to operate in the fourth duty ratio.
For example, if the specified time period is day time, and if the specified time period is not within the specified time period, then the time period is night time, and whether the user is detected in the room where the electronic device 100 is located or not, the user has a lower possibility of viewing the electronic device 100 than when the user is within the specified time period, and therefore the detection module 110 can be controlled to operate in the fourth duty ratio. It should be noted that, if the user is detected in the room where the electronic device 100 is located, and the user may be sleeping due to the current environment being at night, the detection module 110 may be controlled to operate at the fourth duty ratio and operate at the shorter operating time, so as to avoid the influence of noise on the user.
For other embodiments, determining whether the electronic device 100 is in the specified time period may also be performed by determining whether the current time is within a preset time period. For example, the preset time period may be 6:00-18:00, and if the current time is within the preset time period, the electronic device 100 is in the designated time period.
Step 640: and if the specified information is acquired, judging that the target object exists in a third preset range of the electronic equipment, and controlling the detection module to work according to a third work proportion.
Step S650: if the specified information is not acquired, it is judged that no target object exists in a third preset range of the electronic equipment, and the detection module is controlled to work in a fourth working proportion.
For some embodiments, if the specific information is already acquired, it may be determined that a target object exists within a third preset range of the electronic device 100; if the specific information is not obtained, it may be determined that the target object does not exist within the third preset range of the electronic device 100. When it is determined that the target object exists within the third preset range, the detection module 110 may be controlled to operate at a third operation duty ratio; when it is determined that the target object does not exist within the third preset range of the electronic device 100, the detection module 110 may be controlled to operate in the fourth duty ratio. Wherein the third duty cycle is greater than the fourth duty cycle. Further, referring to fig. 9, step S640 may further include step S641 and step S642.
Step S641: if the specified information is acquired, whether a target object exists in a third preset range of the electronic equipment is judged, and whether the electronic equipment is in a specified time period or not is judged.
Step S642: and if the time is in the designated time period, controlling the detection module to work at a third working duty ratio.
When the specific information is acquired, it may be further determined whether the time period is within the specific time period, and if the time period is within the specific time period, the detection module 110 is controlled to operate at the third duty ratio. The method for determining whether the electronic device is in the designated time period may refer to steps S6331 to S6333, which are not described herein again.
For example, the designated time period may be day time, and when the designated information is acquired and is in the designated time period, that is, the day time is currently in and the user is 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 in the third duty ratio. The third duty ratio is smaller than the first duty ratio and larger than the fourth duty ratio, which not only can satisfy the requirement that the user can timely obtain the required detection data when looking up the electronic device 100, but also can consider the requirement of reducing the power consumption of the detection module 110 to prolong the service life.
According to the detection module control method, the detection module control device, the electronic equipment, the computer readable medium and the computer readable product, the proximity information is acquired based on the detection module 110 in the electronic equipment, whether the target object is in the first preset range or not is judged through the proximity information, and when the target object exists in the first preset range, a user is more likely to check the electronic equipment 100; judging whether the target object is in a third preset range or not through the specified information, wherein when the target object is in the third preset range, the user has certain possibility of checking the electronic device 100; judging whether the electronic device 100 is in a specified time period or not through the illumination information, wherein when the electronic device 100 is in the specified time period, a user has certain possibility of checking the electronic device 100; whether the electronic device 100 is in the network access state is detected, and when the electronic device 100 is in the network access state, a user has a certain possibility of checking the electronic device 100; and controlling the detection module 110 to work according to a first working ratio, a third working ratio or a fourth working ratio according to different conditions, wherein the first working ratio is continuous working, and the third working ratio is greater than the fourth working ratio. Because the detection module 110 can continuously generate noise and heat after working for a long time, and heat accumulation is caused, the working time of the detection module 110 can be reasonably arranged by enabling the detection module 110 to work in different working duty ratios, and therefore heating and noise of the detection module 110 are reduced.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a control method of a detection module according to an embodiment of the present application, where the method may be applied to the electronic device 100 in the foregoing embodiment, and an execution main body of the method may be the main control module 140. Specifically, the flow includes steps S1010 to S1020.
Step S1010: and starting.
For some embodiments, after the electronic device 100 starts to perform the power-on and power-on operations, the method for controlling the detection module provided by the embodiment of the present application starts to be performed automatically. The start execution may also be manually set for the user through the input module 130 of the electronic device 100.
Step S1011: whether the target object exists in the first preset range or not.
For some embodiments, whether a target object exists within a first preset range of the electronic device 100 may be determined by obtaining proximity information, where the proximity information is used to represent a distance between the target object and the electronic device 100. If the target object exists in the first preset range, the process may jump to step S1015 to control the detection module 110 to operate at the first operation duty ratio. If the target does not exist within the first preset range, the process may jump to step S1012 or step S1018.
Step S1012: whether the electronic product is connected to the network.
For some embodiments, whether to access the network may be determined by detecting whether the electronic device 100 accesses the corresponding gateway. If the network is accessed, the process proceeds to step S1013, and if the network is not accessed, the process may proceed to step S1017.
Step S1013: whether the target object exists within a third preset range.
For some embodiments, whether the target object exists within the third preset range of the electronic device 100 may be determined by acquiring the specific information. Wherein the specific information may be transmitted by the detection device within the third preset range or input by the user through the electronic device 100. When the target object exists in the third preset range, the process may jump to step S1014, and when the target object does not exist in the third preset range, the process may jump to step S1020, and the detection module 110 is controlled to operate at the fourth duty ratio.
Step S1014: whether or not it is in a specified period.
For some implementations, whether the electronic device 100 is in a specified period of time may be determined by obtaining lighting information. Wherein the illumination information may be acquired by the detection module 110, the detection module 110 may comprise an illumination sensor. When the electronic device 100 is in the designated time period, the method can jump to step S1016 to control the detection module 110 to operate at the third duty ratio; when the electronic device 100 is not in the designated time period, the method can jump to step S1020 and control the detection module 110 to operate in the fourth duty ratio.
Step S1015: a first duty cycle.
For some embodiments, the first duty cycle may be continuous duty.
Step S1016: and a third duty ratio.
For some embodiments, the third duty cycle may be a period of operation, a period of inactivity, and a cycle in sequence. For example, the operation may be performed for 1 minute, and the operation may be stopped for 5 minutes, and the operation may be cycled sequentially until the next shift operation is performed.
Step S1017: whether or not it is in a specified period.
The method for determining whether the time interval is within the designated time interval is the same as step S1014, and will not be described herein again. When the electronic device 100 is in the designated time period, the method can skip step S1016 to control the detecting module 110 to operate at the third duty ratio; when the electronic device 100 is not in the designated time period, the method may jump to step S1020, and control the detecting module 110 to operate at the fourth duty ratio.
Step S1018: whether the target object exists within a second preset range.
When the target object exists in the second preset range of the electronic device 100, the process may jump to step S1016, and control the detection module 110 to operate at the third duty ratio; when the target does not exist within the second preset range of the electronic device 100, the process goes to step S1020, and the detecting module 110 is controlled to operate at the fourth duty ratio.
Step S1019: whether in a specified period of time.
The method for determining whether the time interval is within the designated time interval is the same as step S1014, and will not be described herein again. When the electronic device 100 is in the designated time period, the method can skip step S1016 to control the detecting module 110 to operate at the third duty ratio; when the electronic apparatus 100 is not in the designated period, it may jump to step S1019.
Step S1020: and the fourth operation is in proportion.
For some embodiments, the third duty cycle may be a period of operation, a period of inactivity, and a cycle in sequence. For example, the operation may be performed for 1 minute, and the operation may be stopped for 30 minutes, and the operation may be cycled sequentially until the next shift operation is performed. Wherein the fourth duty cycle is less than the third duty cycle in step S1016.
Referring to fig. 11, a block diagram of a detection module control apparatus 1100 provided in an embodiment of the present application is shown, and is applied to an electronic device, where the electronic device 100 includes a detection module 110, and the apparatus may include: an acquisition unit 1110, a first control unit 1120, a second control unit 1130.
The obtaining unit 1110 is configured to obtain detection information of the target object based on the detection module, where the detection information is used to determine whether the electronic device detects the target object.
The first control unit 1120 is configured to control the detection module to operate at a first operation ratio if it is determined that the electronic device detects the target object based on the detection information, where the first operation ratio is used to represent a ratio of an operating time period to a non-operating time period of the electronic device.
Further, the first control unit 1120 is further configured to control the detection module to operate at a first operation duty ratio if it is determined that the target object exists within a first preset range of the electronic device based on the proximity information; if the electronic equipment does not detect the target object based on the detection information, the detection module is controlled to work according to a second working proportion, and the method comprises the following steps: and if the target object does not exist in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at a second working ratio.
Further, the first control unit 1120 is further configured to determine whether the target object exists within a second preset range of the electronic device if it is determined that the target object does not exist within the first preset range of the electronic device based on the proximity information, where the second preset range is greater than the first preset range; if the target object exists in a second preset range of the electronic equipment, controlling the detection module to work according to a third work proportion; and if the target does not exist in the second preset range of the electronic equipment, controlling the detection module to work at a fourth working ratio, wherein the third working ratio is greater than the fourth working ratio.
Further, the first control unit 1120 is further configured to determine whether the electronic device is in a specified time period if the target object exists within a second preset range of the electronic device; and in a specified time period, controlling the detection module to work at the third working ratio and controlling the sensing module to work at the fourth working ratio if the detection module is not in the specified time period.
The second control unit 1130 is configured to control the detection module to operate at a second operation ratio if it is determined that the electronic device does not detect the target object based on the detection information, where the first operation ratio is greater than the second operation ratio.
Further, the second control unit 1130 is further configured to detect whether specified information is acquired, where the specified information is used to indicate that a target object exists within a third preset range of the electronic device, and the specified information is sent by a detection device within the third preset range or is input by a user through the electronic device; if the specified information is acquired, judging that a target object exists in a third preset range of the electronic equipment, and controlling the detection module to work according to a third work proportion; if the specified information is not acquired, it is judged that the target does not exist in a third preset range of the electronic equipment, and the detection module is controlled to work according to a fourth working proportion, wherein the third working proportion is larger than the fourth working proportion.
Further, the second control unit 1130 is further configured to determine that a target object exists within a third preset range of the electronic device if the specified information is obtained, and determine whether the electronic device is in a specified time period; and if the time is in the designated time period, controlling the detection module to work at a third work duty ratio.
Further, the second control unit 1130 is further configured to determine whether the electronic device is in a network access state; and if the electronic equipment is in the network access state, detecting whether the specified information is acquired.
Further, the second control unit 1130 is further configured to determine whether the electronic device is in a specified time period if the electronic device is not in the network access state; and if the time is in the designated time period, controlling the detection module to work at a third work duty ratio.
Further, the second control unit 1130 is further configured to control the detection module to operate according to a fourth duty ratio if the time interval is not within the specified time interval.
Further, the second control unit 1130 is further configured to determine whether the electronic device is in the specified time period if it is determined that the target object does not exist within the first preset range of the electronic device based on the proximity information; if the time is in the appointed time period, controlling the detection module to work at a third work duty ratio; and if the time interval is not within the designated time interval, controlling the detection module to work at a fourth working ratio, wherein the third working ratio is greater than the fourth working ratio.
Further, the second control unit 1130 is further configured to obtain, based on the detection module, illumination information, where the illumination information includes a current illumination intensity of an environment where the electronic device is located; if the illumination information is not less than the specified threshold value, judging that the electronic equipment is in the specified time period; and if the illumination information is smaller than the specified threshold value, judging that the electronic equipment is not in the specified time period.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the units may be electrical, mechanical or other type of coupling.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Referring to fig. 12, a block diagram of an electronic device according to an embodiment of the present disclosure is shown. The electronic device 1200 may be an air detection panel that includes the detection module 110. The electronic device 1200 in the present application may include one or more of the following components: a processor, memory 1220, a temperature and humidity sensor 1230, a carbon dioxide sensor 1240, a PM2.5 sensor 1250, a proximity sensor 1260, a segment screen 1270, keys 1280, an ac input 1293, a first linear regulator 1291, a second linear regulator 1293, and one or more applications, wherein the one or more applications may be stored in memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the foregoing method embodiments.
Further, the processor may be a main control chip 1210. The master control chip 1210 may include one or more processing cores. The main control chip 1210 is connected to various parts of the entire electronic device 1200 using various interfaces and lines, and performs various functions of the electronic device 1200 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1220 and calling data stored in the memory 1220. The main control chip 1210 is 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 screen 1270, and the button 1280, respectively. The first linear regulator 1291 is connected to the ac input 1293, the main control chip 1210, the memory 1220, the input module 1280, and the temperature/humidity sensor 1230, respectively. The second linear regulator 1292 is coupled to the ac input 1293, the carbon dioxide sensor 1240, the proximity sensor 1260, and the segment code screen 1270, respectively. The ac inputs 1293 are connected to a first linear regulator 1291, a second linear regulator 1292, and a PM2.5 sensor 1250, respectively.
Alternatively, the main control chip 1220 may employ a Micro Controller Unit (MCU). The control unit may integrate a communication module, such as a Wi-Fi module, a Zigbee module, or a bluetooth module. It is understood that the above communication module may not be integrated into the main control chip 1220, but may be implemented by a single communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, 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 various method embodiments described below, and the like. The stored data area may also store data created during use by the electronic device 1200, and the like.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (14)

1. A detection module control method is applied to an electronic device, the electronic device comprises a detection module, and the method comprises the following steps:
acquiring detection information of a target object based on the detection module, wherein the detection information is used for judging whether the electronic equipment detects the target object;
if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at a first working ratio, wherein the first working ratio is used for representing the ratio of the working time length to the non-working time length of the detection module;
and if the electronic equipment does not detect the target object based on the detection information, controlling the detection module to work at a second working ratio, wherein the first working ratio is greater than the second working ratio.
2. The method of claim 1, wherein the detection information includes proximity information, the proximity information being used to characterize a distance between the object and the electronic device, and the controlling the detection module to operate at a first operating ratio if it is determined that the electronic device detects the object based on the detection information comprises:
if the target object is determined to exist in a first preset range of the electronic equipment based on the proximity information, controlling the detection module to work according to the first work proportion;
if it is determined that the target object is not detected by the electronic device based on the detection information, controlling the detection module to work according to a second work proportion, including:
and if the target object does not exist in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work according to the second working ratio.
3. The method of claim 2, wherein the second duty ratio comprises a third duty ratio and a fourth duty ratio, and the controlling the detection module to operate at the second duty ratio if it is determined that the object does not exist within the first preset range of the electronic device based on the proximity information comprises:
if it is determined that the target object does not exist in the first preset range of the electronic equipment based on the proximity information, judging whether the target object exists in a second preset range of the electronic equipment, wherein the second preset range is larger than the first preset range;
if the target object exists in the second preset range of the electronic equipment, controlling the detection module to work according to the third working ratio;
and if the target does not exist in the second preset range of the electronic equipment, controlling the detection module to work at the fourth working ratio, wherein the third working ratio is greater than the fourth working ratio.
4. The method of claim 3, wherein if the target object exists within the second predetermined range of the electronic device, controlling the detection module to operate at the third duty ratio comprises:
if the target object exists in the second preset range of the electronic equipment, judging whether the electronic equipment is in a specified time period;
and if the time is in the designated time period, controlling the detection module to work at the third work duty ratio.
5. The method of claim 1, wherein the second duty cycle comprises a third duty cycle and a fourth duty cycle, and wherein controlling the detection module to operate at the second duty cycle if it is determined that the object is not detected by the electronic device based on the detection information comprises:
detecting whether specified information is acquired, wherein the specified information is used for indicating that the target object exists in a third preset range of the electronic equipment, and the specified information is sent by detection equipment in the third preset range or input by a user through the electronic equipment;
if the specified information is acquired, judging that the target object exists in the third preset range of the electronic equipment, and controlling the detection module to work according to the third work proportion;
if the specified information is not acquired, it is determined that the target does not exist within the third preset range of the electronic device, and the detection module is controlled to work according to the fourth work proportion, wherein the third work proportion is larger than the fourth work proportion.
6. The method according to claim 5, wherein the determining that the target object exists within the third preset range of the electronic device if the specific information is acquired, and controlling the detection module to operate at the third duty ratio includes: if the specified information is acquired, judging that the target object exists in the third preset range of the electronic equipment, and judging whether the electronic equipment is in a specified time period;
and if the time is in the designated time period, controlling the detection module to work at the third work duty ratio.
7. The method according to claim 5, wherein the detecting device is in a network access state, the specifying information is sent by the detecting device within the third preset range, and the detecting whether the specifying information is obtained includes:
judging whether the electronic equipment is in the network access state;
and if the electronic equipment is in the network access state, detecting whether the specified information is acquired.
8. The method of claim 7, further comprising:
if the electronic equipment is not in the network access state, judging whether the electronic equipment is in a specified time period;
and if the time is in the designated time period, controlling the detection module to work at the third work duty ratio.
9. The method of claim 4, 6 or 8, further comprising:
and if the time is not in the designated time period, controlling the detection module to work with the fourth work proportion.
10. The method of claim 2, wherein the second duty cycle comprises a third duty cycle and a fourth duty cycle, and wherein controlling the detection module to operate at the second duty cycle if it is determined that the target object does not exist within the first preset range of the electronic device based on the proximity information comprises:
if it is determined that no target object exists in the first preset range of the electronic equipment based on the proximity information, judging whether the electronic equipment is in a specified time period;
if the time is in the designated time period, controlling the detection module to work according to the third work proportion;
and if the time interval is not within the designated time interval, controlling the detection module to work with the fourth work proportion, wherein the third work proportion is larger than the fourth work proportion.
11. The method of claim 4, 6, 8 or 10, wherein the determining whether the electronic device is in a specified time period comprises:
acquiring illumination information based on the detection module, wherein the illumination information comprises the current illumination intensity of the environment where the electronic equipment is located;
if the illumination information is not smaller than a specified threshold value, determining that the electronic equipment is in the specified time period;
and if the illumination information is smaller than the specified threshold value, judging that the electronic equipment is not in the specified time period.
12. A detection module control device is applied to electronic equipment, wherein the electronic equipment comprises a detection module, and the device comprises:
an obtaining unit, configured to obtain detection information of a target object based on the detection module, where the detection information is used to determine whether the electronic device detects the target object;
the first control unit is used for controlling the detection module to work at a first working ratio if the electronic equipment detects the target object based on the detection information, wherein the first working ratio is used for representing the ratio of the working time length to the non-working time length of the electronic equipment;
and the second control unit is used for controlling the detection module to work at a second working ratio if the electronic equipment is determined not to detect the target object based on the detection information, wherein the first working ratio is greater than the second working ratio.
13. 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, the one or more programs configured to perform the method of any of claims 1-11.
14. The electronic device of claim 13, further comprising:
the device comprises a main control chip, a temperature and humidity sensor, a carbon dioxide sensor, a PM2.5 sensor, a proximity sensor and a segment code screen;
the main control chip is respectively connected with the temperature and humidity sensor, the carbon dioxide sensor, the PM2.5 sensor, the proximity sensor and the segment code screen.
CN202210157828.2A 2022-02-21 2022-02-21 Detection module control method and device and electronic equipment Pending CN114705809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210157828.2A CN114705809A (en) 2022-02-21 2022-02-21 Detection module control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210157828.2A CN114705809A (en) 2022-02-21 2022-02-21 Detection module control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114705809A true CN114705809A (en) 2022-07-05

Family

ID=82167456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210157828.2A Pending CN114705809A (en) 2022-02-21 2022-02-21 Detection module control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114705809A (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06209250A (en) * 1992-11-18 1994-07-26 Omron Corp Photoelectric switch
GB0218317D0 (en) * 2002-08-07 2002-09-11 Nec Technologies Uk Ltd Method and apparatus for reducing power consumption in a portable device
KR20130079098A (en) * 2012-01-02 2013-07-10 코웨이 주식회사 Apparatus for energy saving control function and, bidet and water treatment apparatus having the same
JP2013156941A (en) * 2012-01-31 2013-08-15 Fujitsu Marketing Ltd Telework management device, telework management method and telework management program
US20130215007A1 (en) * 2012-02-21 2013-08-22 Quanta Computer Inc. Portable electronic device and control method thereof
US20140287773A1 (en) * 2012-03-30 2014-09-25 Mats Agerstam Wireless network connectivity prediction based on user patterns and behavior
US20160044598A1 (en) * 2013-06-17 2016-02-11 Huawei Device Co., Ltd. Wake-Up Control Method and Apparatus, and Terminal Device
CN105404378A (en) * 2014-09-15 2016-03-16 丰唐物联技术(深圳)有限公司 Smart bracelet and electricity saving method of smart bracelet
US20160150111A1 (en) * 2014-11-21 2016-05-26 Kyocera Document Solutions Inc. Electronic Device that Detects Return Timing in Low Electric Power Consumption Mode with Low Electric Power Consumption
CN105654283A (en) * 2015-04-20 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Safety payment method and apparatus thereof
US20170347320A1 (en) * 2014-11-28 2017-11-30 Samsung Electronics Co., Ltd. Device and method for controlling standby power of mobile terminal
US20180025407A1 (en) * 2015-02-02 2018-01-25 Beijing Didi Infinity Technology And Development Co., Ltd. Methods and systems for order processing
CN109872491A (en) * 2019-02-22 2019-06-11 深圳绿米联创科技有限公司 Fire monitoring method, device, electronic equipment and system
CN110062446A (en) * 2019-04-23 2019-07-26 广东小天才科技有限公司 Mode switching method, device, wearable device and the storage medium of equipment
CN110351741A (en) * 2018-04-04 2019-10-18 华为技术有限公司 Measurement method, display control method and equipment
CN110989031A (en) * 2019-10-18 2020-04-10 深圳绿米联创科技有限公司 Human body detection method, device, system, electronic equipment and storage medium
CN111239696A (en) * 2020-01-15 2020-06-05 深圳大学 Target track dynamic display method, device, equipment and storage medium
WO2022027918A1 (en) * 2020-08-03 2022-02-10 闻泰科技(深圳)有限公司 Method and apparatus for determining signal measurement cycle, and electronic device and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06209250A (en) * 1992-11-18 1994-07-26 Omron Corp Photoelectric switch
GB0218317D0 (en) * 2002-08-07 2002-09-11 Nec Technologies Uk Ltd Method and apparatus for reducing power consumption in a portable device
KR20130079098A (en) * 2012-01-02 2013-07-10 코웨이 주식회사 Apparatus for energy saving control function and, bidet and water treatment apparatus having the same
JP2013156941A (en) * 2012-01-31 2013-08-15 Fujitsu Marketing Ltd Telework management device, telework management method and telework management program
US20130215007A1 (en) * 2012-02-21 2013-08-22 Quanta Computer Inc. Portable electronic device and control method thereof
US20140287773A1 (en) * 2012-03-30 2014-09-25 Mats Agerstam Wireless network connectivity prediction based on user patterns and behavior
US20160044598A1 (en) * 2013-06-17 2016-02-11 Huawei Device Co., Ltd. Wake-Up Control Method and Apparatus, and Terminal Device
CN105404378A (en) * 2014-09-15 2016-03-16 丰唐物联技术(深圳)有限公司 Smart bracelet and electricity saving method of smart bracelet
US20160150111A1 (en) * 2014-11-21 2016-05-26 Kyocera Document Solutions Inc. Electronic Device that Detects Return Timing in Low Electric Power Consumption Mode with Low Electric Power Consumption
US20170347320A1 (en) * 2014-11-28 2017-11-30 Samsung Electronics Co., Ltd. Device and method for controlling standby power of mobile terminal
US20180025407A1 (en) * 2015-02-02 2018-01-25 Beijing Didi Infinity Technology And Development Co., Ltd. Methods and systems for order processing
CN105654283A (en) * 2015-04-20 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Safety payment method and apparatus thereof
CN110351741A (en) * 2018-04-04 2019-10-18 华为技术有限公司 Measurement method, display control method and equipment
CN109872491A (en) * 2019-02-22 2019-06-11 深圳绿米联创科技有限公司 Fire monitoring method, device, electronic equipment and system
CN110062446A (en) * 2019-04-23 2019-07-26 广东小天才科技有限公司 Mode switching method, device, wearable device and the storage medium of equipment
CN110989031A (en) * 2019-10-18 2020-04-10 深圳绿米联创科技有限公司 Human body detection method, device, system, electronic equipment and storage medium
CN111239696A (en) * 2020-01-15 2020-06-05 深圳大学 Target track dynamic display method, device, equipment and storage medium
WO2022027918A1 (en) * 2020-08-03 2022-02-10 闻泰科技(深圳)有限公司 Method and apparatus for determining signal measurement cycle, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
US20210110701A1 (en) Interpreting presence signals using historical data
US9386281B2 (en) Image surveillance and reporting technology
CN105588923B (en) Method of environmental monitoring based on environment monitor and environment monitoring device
KR20180015038A (en) A display driving method and a display driving circuit and an electronic device supporting the same
CN110827818A (en) Control method, device, equipment and storage medium of intelligent voice equipment
US11614790B2 (en) Electronic pen, method and device for controlling electronic pen, and computer-readable storage medium
CN103576852A (en) Mobile device with sensor hub and method for controlling same
EP2645680A1 (en) Mobile terminal, non-transitory computer-readable medium storing control program therefor, and control method
US10107849B2 (en) Diagnostic system for a home appliance and method for diagnosing a home appliance
EP3054651B1 (en) Electronic apparatus, control method and system thereof
CN111238574A (en) Environmental monitoring system based on Internet of things
KR20180094699A (en) Electronic device for measuring gas and method thereof
CN109036563B (en) Control analysis system and method based on mattress
CN107543583A (en) Portable air quality monitor and its application system
CN114705809A (en) Detection module control method and device and electronic equipment
US11725971B2 (en) Disaggregation of water consumption data
CN207585659U (en) A kind of house air monitoring device based on Zigbee networkings
US20150172868A1 (en) Server and method of transmitting data thereof, and mobile device and sensing method thereof
KR20150094275A (en) Server of health management using semantic analysis for sensing data of care plug device, and the method thereof
CN207232730U (en) A kind of Intelligent environment monitoring system of Zigbee network
CN207301695U (en) A kind of home environment safety monitoring device
CN109507902A (en) A kind of information intelligent method for pushing based on smart home device
TW201617775A (en) Power monitoring and feedback system and its implementing method
Sofian et al. Online Parking System Using ESP32
CN214342275U (en) Intelligent monitoring system for community solitary old people

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination