CN114705809B - Detection module control method and device and electronic equipment - Google Patents
Detection module control method and device and electronic equipment Download PDFInfo
- Publication number
- CN114705809B CN114705809B CN202210157828.2A CN202210157828A CN114705809B CN 114705809 B CN114705809 B CN 114705809B CN 202210157828 A CN202210157828 A CN 202210157828A CN 114705809 B CN114705809 B CN 114705809B
- Authority
- CN
- China
- Prior art keywords
- detection module
- electronic equipment
- information
- work
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/0004—Gaseous mixtures, e.g. polluted air
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N33/00—Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
- G01N33/0004—Gaseous mixtures, e.g. polluted air
- G01N33/0009—General constructional details of gas analysers, e.g. portable test equipment
- G01N33/0073—Control unit therefor
Landscapes
- Chemical & Material Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Analytical Chemistry (AREA)
- Food Science & Technology (AREA)
- Medicinal Chemistry (AREA)
- Physics & Mathematics (AREA)
- Combustion & Propulsion (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Electronic Switches (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application discloses a detection module control method and device and electronic equipment, relates to the technical field of detection modules, and is applied to the electronic equipment, wherein the electronic equipment comprises a detection module, and the method comprises the following steps: based on the detection module, obtaining detection information of a target object, wherein the detection information is used for judging whether the electronic equipment detects the target object or not; if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at a first work duty ratio, wherein the first work duty 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 work duty ratio, wherein the first work duty ratio is larger than the second work duty ratio. According to the application, the detection module is controlled to work at different work duty ratios, so that the power consumption of the electronic equipment is reduced, and the heating is reduced.
Description
Technical Field
The present application relates to the field of detection modules, and in particular, to a detection module control method, a detection module control device, and an electronic device.
Background
Currently, with the development and progress of society, people have increasingly high requirements on air quality in living environments. Typically, an indoor mounted air monitoring panel is capable of monitoring air quality in real time and feeding data back to the user. However, the sensors inside the current air detection panel are severely heated and noisy.
Disclosure of Invention
The application provides a detection module control method and device and electronic equipment, so as to improve the defects.
In a first aspect, an embodiment of the present application provides a method for controlling a detection module, which is applied to an electronic device, where 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 for judging whether the electronic equipment detects the target object or not; if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at a first work duty ratio, wherein the first work duty 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 work duty ratio, wherein the first work duty ratio is larger than the second work duty ratio.
In a second aspect, an embodiment of the present application further provides a detection module control device, which is applied to an electronic device, where the electronic device includes a detection module, and the device includes: the device comprises an acquisition unit, a first control unit and a second control unit. The acquisition unit is used for 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 or not; the first control unit is used for controlling the detection module to work at a first work duty ratio if the electronic equipment detects the target object based on the detection information, wherein the first work duty ratio is used for representing the ratio of the work duration to the non-work duration of the electronic equipment; and the second control unit is used for controlling the detection module to work at a second work duty ratio if the electronic equipment does not detect the target object based on the detection information, wherein the first work duty ratio is larger than the second work duty 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 applications configured to perform the method described above.
According to the detection module control method, the detection device, the electronic equipment, the computer readable medium and the product, detection information is acquired based on the detection module in the electronic equipment, whether the electronic equipment detects the target object or not is determined through the detection information, if the electronic equipment detects the target object based on the detection information, the detection module is more likely to view data acquired by the detection module, the detection module can be enabled to work for a longer time period at the moment, so that the data can be provided for the user to view more promptly, the detection module can be controlled to work with a first work ratio, if the electronic equipment does not detect the target object based on the detection information, the detection module is unlikely to view the data acquired by the detection module, and the detection module can be enabled to work for a shorter time period at the moment, so that the working time can be reduced, and the detection module can be controlled to work with a second work ratio at the moment, wherein the first work ratio is larger than the second work ratio. Because the detection module continuously generates noise and heat for a long time to cause heat accumulation, the embodiment of the application can reduce the working time of the detection module by enabling the detection module to work with different working duty ratios, thereby reducing the heating and noise of the detection module.
Additional features and advantages of embodiments of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of embodiments of the application. The objectives and other advantages of 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 of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an electronic device diagram illustrating a control method of a detection module according to an embodiment of the present application;
fig. 2 shows a method flowchart of a detection module control method provided by an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for controlling a detection module according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for controlling a detection module according to another embodiment of the present application;
FIG. 5 shows an embodiment of step S440 of FIG. 4;
FIG. 6 is a flowchart illustrating a method for controlling a detection module according to still 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 shows an embodiment of step S640 in fig. 6;
fig. 10 is a schematic flow chart of a control method of a detection module according to still another embodiment of the present application;
FIG. 11 shows a block diagram of a detection module control device according to one embodiment of the application;
Fig. 12 shows a block diagram of an electronic device for executing the detection module control method according to the embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Currently, with the development and progress of society, people pay more and more attention to high-quality life. Aiming at pursuit of people to air quality in living environment, at present, an air monitoring panel is adopted to monitor air quality indoors, and then data is fed back to users.
Specifically, the air monitoring panel generally adopts a mounting mode of mounting the air monitoring panel into a 86-box by sticking 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 devices through the gateway.
However, the inventors have found in research that 86 boxes have a smaller product space volume, and that the sensor modules in air monitoring panels typically include multiple types of sensors that emit noise during continuous operation and also generate heat build-up in small spaces.
Therefore, in order to overcome the above-mentioned drawbacks, embodiments of the present application provide a method, an apparatus, and an electronic device for controlling a detection module, which reduce heat generation and noise of the detection module by operating at different duty ratios.
Referring to fig. 1, fig. 1 shows a detection module control method according to an embodiment of the present application, where the detection module control method may 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 detection module 110 may be configured to sense the measured information, and convert the sensed information into an electrical signal or other information in a required form according to a certain rule, so as to meet the requirements of information transmission, processing, storage, display, recording, control, and the like. Generally, it is classified into a thermosensitive element, a photosensitive element, a gas-sensitive element, a force-sensitive element, a magnetic-sensitive element, a moisture-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 of 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, 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 one embodiment of 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 (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 network module obtains data sent by the main control module 140 in the electronic device 100, where the data is obtained by the detection module 110, and then displays the data on the display screen. Specifically, the network module may be directly connected to the electronic device 100 to implement communication, so as to 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 Wi-Fi module is directly connected to the electronic device 100. 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 has access to the network to effect communications.
As an implementation manner, the network module may be a Zigbee module, and the Zigbee module accesses a network through a Zigbee gateway, and then performs data transmission with the electronic device 100 that is also accessed to the network, so as to display the data on a display screen. The network module may also be a Wi-Fi module of a wireless communication technology, and the Wi-Fi gateway accesses a network through the wireless communication technology, and then performs data transmission with the electronic device 100 that is also accessed to the network, so as to display the data on a display screen. For one embodiment of 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 configured to provide a user with an input message, and send an instruction to the central control module 140, so as to control the electronic device 100. For one embodiment of the present application, the input module 130 may be an input device disposed 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 may be a button keypad, a touch keypad, or the like. For other embodiments, the input device 130 may be further connected to other electronic devices via a network, so as to obtain an instruction input by a user from the other electronic devices, and further control the electronic device 100. The specific connection manner may be referred to the connection manner between the display module 120 and other electronic devices, which will not be described herein.
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 processed data through the display device 120. The main control module 140 may also be configured to receive the data sent by the input module 130, and control the electronic device 100. For some embodiments, the master control module 140 may be a micro control unit (Microcontroller Unit, MCU).
Referring to fig. 2, fig. 2 shows a control method of a detection module according to an embodiment of the present application, which can be applied to the electronic device 100 in the foregoing embodiment, and an execution subject of the method may be the main control module 140. Specifically, the method includes steps S210 to S230.
Step S210: based on the detection module, detection information of the target object is obtained.
Step S220: and if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at the first work duty ratio.
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 work duty ratio.
For some embodiments, detection information of the target object may be obtained based on the detection module 110, where the detection information is used to determine whether the electronic device 100 detects the target object. The detection information may be, for example, a distance of the acquisition target object from the detection module 110.
Further, based on the obtained detection information, it may be determined whether the electronic device 100 detects the target object, so as to control the detection module 110 to work with different duty ratios, where the duty ratio may be used to characterize a ratio of the working duration to the non-working duration of the detection module 110. Specifically, based on the detection information, determining that the electronic device detects the target object, controlling the detection module 110 to operate at the first 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 duty ratio. Wherein the first duty cycle is greater than the second duty cycle.
According to the detection module control method, the detection module control device, the electronic equipment, the computer readable medium and the product, based on the detection module 110 in the electronic equipment, detection information is acquired, whether the electronic equipment 100 detects a target object is determined through the detection information, if the electronic equipment 100 detects the target object based on the detection information, the detection module 110 can be controlled to work for a longer time period, so that the data can be provided for a user more timely for checking, the detection module 110 can be controlled to work with a first work duty ratio, and if the electronic equipment 100 does not detect the target object based on the detection information, the detection module 110 can be controlled to work for a shorter time period, so that the working time can be reduced, the detection module 110 can be controlled to work with a second work duty ratio, and the first work duty ratio is larger than the second work ratio. Because the detection module 110 continuously generates noise and heat for a long time to cause heat accumulation, the embodiment of the application can reduce the working time of the detection module 110 by enabling the detection module 110 to work with different working duty ratios, thereby reducing the heating and noise of the detection module 110.
Referring to fig. 3, fig. 3 illustrates a control method of a detection module according to an embodiment of the present application, which can be applied to the electronic device 100 in the foregoing embodiment, and an execution subject of the method may be the main control module 140. Specifically, the method includes steps S310 to S330.
For some implementations, the proximity information may be obtained based on the detection module 110.
Step S310: based on the detection module, proximity information of the target object is obtained.
Wherein the proximity information may be used to characterize the distance between the target object and the electronic device 100. Wherein the object may be a user, or other person in the same environmental space as the electronic device 100. By the detection module 110, a distance between a target object around the electronic device 100 and the detection module 110 is obtained. The detection module 110 may be a proximity sensor. The proximity sensor can detect the proximity of a detected object without touching, and the proximity sensor can detect the movement and the existence information of the object and convert the movement and the existence information into an electric signal by utilizing the sensitivity characteristic of the displacement sensor to the approaching object to identify the proximity of the object. The proximity sensor may be of an induction type, an electrostatic capacity type, an ultrasonic type, a photoelectric type, a magnetic type, or the like. For one embodiment of the present application, the proximity sensor may be an electrostatic capacitance 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 object exists in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at a first work duty ratio.
For some embodiments, a range may be set, and the detection module 110 determines 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 an object is in the range, the electronic device 100 is easier to be checked. At this time, the detection module 110 should be operated for more time and not operated for less time. Specifically, the first preset range may be used for recording, by the electronic device 100, the proximity information of the target object before the data is checked each time, and then analyzing each previous time of proximity information to obtain the predicted distance, where the predicted distance is used as the first preset range. For example, the first preset range may be a circular range with a radius of 0.5 meters with the electronic device 100 as a center. When the presence of the object within the range is monitored, 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 foregoing description of the first preset range is merely an example, and the shape, the size, etc. of the first preset range do not limit the embodiments provided in the present application, and the first preset range may be specified by itself according to needs in practical applications.
For some implementations, the duty cycle is used to characterize the ratio of the operational length to the non-operational length of the electronic device 100. For example, the working time period can be set to be a minutes, the non-working time period is set to be b minutes, wherein a and b are positive numbers, and the working duty ratio can be expressed asIt is readily understood that the greater the duty cycle, the longer the period of operation is relative to the period of non-operation. For example, in the first case, when the operating period a is 1 minute and the non-operating period b is 30 minutes, the operating ratio isIn the second case, when the operating time period is 5 minutes and the non-operating time period b is 30 minutes, the operating ratio isIt is easy to see that the water-soluble fiber is,The corresponding operating time period in the second case is longer than the non-operating time period.
Further, in one embodiment of the present application, the detection module 110 is in a continuous operation state with the first duty cycle of the detection module 110, that is, the non-operation time period is 0 minutes. The detection module 110 at the first duty cycle is capable of meeting the needs of being 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 closed until the duty ratio is changed next time. The working time length a and the non-working time length b can be respectively set, 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 operating time period a may be set to 60 minutes, and the non-operating time period may be set to 0.01 minutes, which may be approximately regarded as the continuous operation of the detection module 110.
Step S330: and if the object is determined to be absent in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at the second work duty ratio.
The foregoing step S310 and step S320 have been described in detail to describe the first preset range and obtain the target information within the first preset range, which will not be described herein.
When no object exists in the first preset range of the electronic device 100, the electronic device 100 is not easy to be checked by the user, and the detection module 110 can be operated for a shorter period of time at this time, so as to reduce the heat and noise of the detection module 110. I.e., the detection module 110 may be controlled to operate at the second duty cycle. For some embodiments, the first duty cycle is greater than the second duty cycle. It will be readily appreciated that since the operating time period is much longer than the non-operating time period for operation at the first operating ratio, the first operating ratio should beThe first duty cycle should be a state approaching infinity and the readily available second duty cycle should be less than the first duty cycle. For example, the second duty ratio may be set to 1 minute for the second duty period a and 30 minutes for the non-duty period bLess than the first duty cycle. The detection module 110 can be controlled to operate for 1 minute at this time, and stop operating for 30 minutes, and the detection module is cyclically reciprocated with this as a period until the operation time and the non-operation time are redistributed when the operation duty ratio is changed next time.
According to the detection module control method, the device, the electronic equipment, the computer readable medium and the product, based on the detection module 110 in the electronic equipment 100, the approach information is acquired, whether the target object is in the first preset range is judged according to the approach information, if the target object exists in the first preset range, the user is more likely to check the data acquired by the detection module 110, at the moment, the detection module 110 can be enabled to work for a longer time, so that the user can be immediately provided with the data for checking, the detection module 110 can be controlled to work with the first work duty ratio, if the target object does not exist in the first preset range, the user is unlikely to check the data acquired by the detection module 110, at the moment, the detection module 110 can be enabled to work with a shorter time, and therefore the working time can be reduced, at the moment, the detection module 110 can be controlled to work with the second work duty ratio, and the first work duty ratio is larger than the second work duty ratio. Because the detection module 110 continuously generates noise and heat for a long time to cause heat accumulation, the embodiment of the application can reduce the working time of the detection module 110 by enabling the detection module 110 to work with different working duty ratios, thereby reducing the heating and noise of the detection module 110.
Referring to fig. 4, fig. 4 illustrates a control method of a detection module according to an embodiment of the present application, which can be applied to the electronic device 100 in the foregoing embodiment, and an execution subject of the method may be the main control module 140. Specifically, the method includes steps S410 to S450.
Step S410: based on the detection module, proximity information of the target object is obtained.
Step S420: and if the object exists in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at a first work duty ratio.
The step S410 and the step S420 are described in detail in the above embodiments, and will not be described herein.
Step S430: if the fact that the target object does not exist in the first preset range of the electronic equipment is determined based on the proximity information, whether the target object exists in the second preset range of the electronic equipment is judged.
For some embodiments, when it is determined that no object exists in 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 an object is within the range, the electronic device 100 is easier to be checked. It is easy to understand that the second preset range should be greater 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 a radius of 0.5 meters and the electronic device 100 is the center of the circle, the second preset range may be set to be a circular range with a radius of 3 meters and the electronic device 100 is the center of the circle. At this time, the first preset range and the second preset range are concentric circles, and the radius of the circle 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 further use the electronic device 100 as a center point and use 1 meter as half length to make a positive direction, and then the circle of 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 the second preset range of the electronic equipment, controlling the detection module to work at a third work duty ratio.
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 duty ratio.
For example, the detection module 110 may include a proximity sensor, where the first preset range and the second preset range may be both 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, and the user has a maximum possibility of looking at the electronic device 100, the detection module 110 is controlled to operate at the first duty ratio; when the user is not detected within the first preset range, but the 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 active area of the user is just in the second preset range, and the detection module 110 may be controlled to work with the third duty ratio, so as to reduce power consumption.
Further, referring to fig. 5, the step may be further divided into step S441 and step S442.
Step S441: if the target object exists in the second preset range of the electronic equipment, judging whether the electronic equipment is in a specified period.
Step S442: and if the time period is within 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 specified period may refer to the following embodiments. For some embodiments, when the electronic device 100 is in the specified period of time, then the control detection module 110 operates at a third operating duty cycle. Further, if the time period is not within the specified time period, the detection module 110 may be controlled to operate at the fourth operation duty cycle.
For example, the specified period of time may be daytime, and when in the specified period of time, the detection module 110 may be controlled to operate at the third duty cycle if there is user activity within the second range, i.e., the user is more likely to view the electronic device 100. If not in the specified period, at this time, at night, even if the user is detected within the second range, the user is less likely to view the electronic device 100 than when in the specified period, and thus the detection module 110 may be controlled to operate at the fourth operation duty ratio.
For some embodiments, when the electronic device 100 is not in the specified period of time, then the control detection module 110 operates at a fourth operating duty cycle.
Step S450: and if the target object does not exist in the second preset range of the electronic equipment, controlling the detection module to work at the fourth work duty ratio.
When no object exists in the second preset range of the electronic device 100, the detection module 110 is controlled to operate at the fourth operation duty cycle.
Further, for one embodiment of the present application, the third duty cycle is greater than the fourth duty cycle, and both the third duty cycle and the fourth duty cycle are less than the first duty cycle. For example, the working time period can be set to be a minutes, the non-working time period is set to be b minutes, wherein a and b are positive numbers, and the working duty ratio can be expressed asFor the third duty ratio, the duty time a may be set to 5 minutes, and the non-duty time b may be set to 30 minutes, at which time the third duty ratio isFor the fourth duty ratio, the duty time may be set to 1 minute, and the duty ratio may be set to 30 minutes when the non-duty time b is 30 minutesIt is easy to see that the water-soluble fiber is,The third operating ratio is satisfied to be greater than the fourth operating ratio.
Referring to fig. 6, fig. 6 shows a control method of a detection module according to an embodiment of the present application, which can be applied to the electronic device 100 in the foregoing embodiment, and an execution subject of the method may be the main control module 140. Specifically, the method includes steps S610 to S650.
Step S610: based on the detection module, detection information of the target object is obtained.
Step S620: and if the electronic equipment detects the target object based on the detection information, controlling the detection module to work at the first work duty ratio.
The steps S610 and S620 are described in detail in the foregoing embodiments, and will not be described herein.
Step S630: it is detected whether the specified information is acquired.
For some embodiments, it may be possible to detect whether or not the specified information is obtained, where the specified information may be used to characterize whether or not the target object is present within the third preset range of the electronic device 100. 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 in which the electronic device 100 is located, such as an entire bedroom, an entire kitchen, or the like. If the specified information is acquired, it is determined that the target object exists in the third preset range of the electronic device, that is, it indicates that the electronic device 100 has a certain possibility of being checked by the user at this time. It is readily appreciated that this likelihood should be less than the likelihood that the electronic device 100 is being viewed when an object is present within the first predetermined range. The detection module 110 may be controlled to operate with a longer operation duration, where the operation duration should be less than the operation duration corresponding to the first operation duty cycle, for example, the detection module 110 may be controlled to operate with a third operation duty cycle, where the third operation duty cycle is less than the first operation duty cycle. If the specified information is not acquired, it is determined that no object exists in the third preset range of the electronic device 100, that is, it indicates that the electronic device 100 is unlikely to be viewed by the user at this time, then the detection module 110 may be controlled to operate with a shorter operation duration, for example, the detection module 110 may be controlled to operate with a fourth operation duty ratio, where the fourth operation duty ratio is smaller than the third operation duty ratio. The designation information is used to indicate that the target object exists in the third preset range of the electronic device 100, and the designation 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, the electronic device 100 and the detection device both access the network, and the data sent by the detection device can be obtained. For other embodiments, the designation information may also be entered directly by the user via an 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 specified information is sent to the electronic device 100 by the detection device within the third preset range, it may be first determined whether the electronic device 100 is in the network-access state. It is easy to understand that in the network-access state, that is, the electronic device 100 can access the internet, the electronic device 100 is more likely to be viewed by the user at this time. The detection device may be other sensing devices, where the other sensing devices may be connected to a network, and the other sensing devices may be a human presence sensor, a human sensor, a soft sensor, etc.
Further, for some embodiments, a gateway module may be provided to enable the electronic device 100 to access a network. For example, if the electronic device 100 is equipped with a Zigbee communication module, the electronic device may connect with a Zigbee gateway to implement access to a network; if the electronic device 100 is equipped with a Wi-Fi module, the Wi-Fi module may be connected to a Wi-Fi gateway to implement access to a network. The electronic device 100 is equipped with a bluetooth module that accesses a bluetooth network by means of bluetooth.
Step S632: 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-connected state, it may be detected whether the designation information is acquired. For some embodiments, the specified information may be pre-agreed, and a unique packet header may be added before the specified information. When the electronic device 100 reads the unique packet header, it can be determined that the specified information is received. For example, assume that the specified information exists in a variable x, and a packet header is agreed to be a binary code 1100 in advance, and then the packet header binary code 1100 is appended before the variable x to form 1100x. When the electronic device 100 reads 1100, the corresponding x is the designated information, so that it can be known that the designated information is acquired.
Step S633: if the electronic equipment is not in the network access state, judging whether the electronic equipment is in a specified period.
For some embodiments, if the electronic device 100 does not access the network, it is easy to know that the specified information sent by the detection device cannot be received through the network. At this time, it may be determined whether the electronic device 100 is in a specified period, and the allocation of the duty ratio of the detection module 110 is performed according to the specified period. The specified period of time may be determined based on the illumination intensity received by the electronic device 100, where the illumination intensity is illumination information. Wherein the illumination intensity may be detected by the detection module. A specified threshold may be set, and when the illumination intensity is not less than the specified threshold, it is determined that the electronic device 100 is in a specified 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, in order to describe the specified period in detail, the step S633 can 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, with the illumination sensor acquiring illumination information of the current environment. By means of the illumination sensor, light energy or photons can be converted into an electrical signal, and an electrical output signal with energy corresponding to the input light energy is generated, so that illumination information is obtained. The illumination information is used for representing the intensity of illumination received by the electronic equipment. It will be readily appreciated that when the amount of light is large, the sensed data provided by the electronic device 100 is more likely to be viewed by the user, and therefore should control the detection module 110 to operate more aggressively under such conditions, even if its duty cycle 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 illumination information.
Step S6332: and if the illumination information is not smaller than the specified threshold, determining that the electronic equipment is in the specified period.
For some embodiments, a specified threshold may be set that indicates a darker surrounding environment and a smaller range of motion for the user when the illumination information is less than the threshold, at which time the user will be less likely to view the electronic device 100, and indicates a brighter surrounding environment and a larger range of motion for the user when the illumination information is greater than the threshold, at which time the user may be likely to view the electronic device 100. And comparing the acquired illumination information with a specified threshold, and if the illumination information is not smaller than the specified threshold, determining that the electronic device 100 is in a specified period. For example, the specified threshold may be set to 10lux, and if the illumination information is detected to be 15lux, because 15lux >10lux, the illumination information is not smaller than the specified threshold, and at this time, it is determined that the illumination information is not smaller than the specified threshold, the electronic device 100 is in the specified period. Wherein lux is a unit of illuminance.
Step S6333: if the illumination information is smaller than the specified threshold, the electronic equipment is judged not to be in the specified period.
For other embodiments, if the specified threshold is set to 10lux, if the illumination information is detected to be 5lux, because 5lux <10lux, the illumination information is smaller than the specified threshold, and at this time, the electronic device 100 is not in the specified period if the illumination information is determined to be smaller than the specified threshold.
Step S634: and if the time period is within the designated time period, controlling the detection module to work at a third work duty ratio.
Further, it has been possible to determine whether the electronic product 100 is in a specified period of time from the above steps. In one embodiment of the present application, when the electronic product 100 is in the specified period, the detection module 110 is controlled to operate with the third duty cycle. Wherein the second duty cycle comprises a third duty cycle and a fourth duty cycle.
Step S635: if the operation time is not in the designated time period, the control detection module operates at a fourth operation duty ratio.
Further, it has been possible to determine whether the electronic product 100 is in a specified period of time from the above steps. In one embodiment of the present application, when the electronic product 100 is not in the specified period, the detection module 110 is controlled to operate with the fourth operation duty cycle.
For example, if the specified period is daytime and if not, then it is night time, whether a user is detected in the room in which the electronic device 100 is located or not, the user is less likely to view the electronic device 100 than if it is in the specified period, and thus the detection module 110 may be controlled to operate at the fourth operation duty cycle. It should be noted that, if the user is detected in the room where the electronic device 100 is located, the user may sleep at night because the current environment is night, and the detection module 110 may be controlled to operate at the fourth duty ratio and operate at a shorter operation duration, so as to avoid the influence of noise on the user.
For other embodiments, determining whether the electronic device 100 is within a specified period of time may also be by determining whether the current time is within a preset period of time. 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 a specified period.
Step S640: if the specified information is acquired, determining that the target object exists in a third preset range of the electronic equipment, and controlling the detection module to work at a third work duty ratio.
Step S650: if the specified information is not acquired, judging that no target object exists in a third preset range of the electronic equipment, and controlling the detection module to work at a fourth work duty ratio.
For some embodiments, if the specified information has been obtained, it may be determined that a target object exists in the third preset range of the electronic device 100; if the specified information is not acquired, it may be determined that no object exists in the third preset range of the electronic device 100. When it is determined that the target object exists in the third preset range, the detection module 110 may be controlled to operate at a third duty ratio; when it is determined that the object is not present within the third preset range of the electronic device 100, the detection module 110 may be controlled to operate at the fourth operation 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, determining that the target object exists in a third preset range of the electronic equipment, and determining whether the electronic equipment is in a specified period.
Step S642: and if the time period is within the designated time period, controlling the detection module to work at a third work duty ratio.
When the specified information is acquired, it may also be determined whether or not it is in the specified period, and if so, the control detection module 110 operates at the third operation duty ratio. The method for determining whether the electronic device is in the specified period may refer to the above steps S6331 to S6333, which are not described herein.
For example, the specified period may be daytime, when specified information is acquired and in the specified period, i.e., currently in daytime, and there is a user in the room in which the electronic device 100 is located, at which time the user is more likely to view the electronic device 100, the detection module 110 may be controlled to operate at the third duty cycle. The third duty ratio is smaller than the first duty ratio and larger than the fourth duty ratio, so that the electronic device 100 can not only meet the requirement that the user can timely acquire the required detection data when viewing, but also can meet 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 medium, 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 is judged according to the proximity information, and when the target object is in the first preset range, the user is more likely to view the electronic equipment 100; judging whether the target object is in a third preset range or not through the specified information, and when the target object is in the third preset range, the user has a certain possibility of checking the electronic equipment 100; judging whether the electronic equipment 100 is in a specified period or not through illumination information, wherein when the electronic equipment 100 is in the specified period, a user is likely to check the electronic equipment 100; and detecting whether the electronic device 100 is in a network-connected state, when the electronic device 100 is in the network-connected state, the user has a certain possibility of checking the electronic device 100; the detection module 110 is controlled to operate at a first operating ratio or a third operating ratio or a fourth operating ratio for different situations, wherein the first operating ratio is continuous operation, and the third operating ratio is larger than the fourth operating ratio. Because the detection module 110 continuously generates noise and heat for a long time to cause heat accumulation, the embodiment of the application can reasonably arrange the working time of the detection module 110 by enabling the detection module 110 to work at different working duty ratios, thereby reducing the heat generation and noise of the detection module 110.
Referring to fig. 10, fig. 10 is a 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 subject of the method may be the main control module 140. Specifically, the flow includes steps S1010 to S1020.
Step S1010: starting.
For some embodiments, after the power-on and power-on operations are performed on the electronic device 100, the detection module control method provided by the embodiment of the present application is automatically started to be performed. Execution may also be initiated for a user manually set up through the input module 130 of the electronic device 100.
Step S1011: whether a target object exists in the first preset range.
For some embodiments, it may be determined whether an object is present within a first preset range of the electronic device 100 by obtaining proximity information, wherein the proximity information is used to characterize a distance between the object and the electronic device 100. If the target object exists in the first preset range, the process may jump to step S1015, where the detection module 110 is controlled to operate at the first duty ratio. If no object exists in the first preset range, the process may jump to step S1012 or step S1018.
Step S1012: whether the electronic product is on the network or not.
For some embodiments, whether to access the network may be determined by detecting whether the electronic device 100 accesses a corresponding gateway. If the network is connected, the process goes to step S1013, and if the network is not connected, the process goes to step S1017.
Step S1013: whether the target object exists in the third preset range.
For some embodiments, it may be determined whether the target object exists within the third preset range of the electronic device 100 by acquiring the specified information. 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, to control the detection module 110 to operate at the fourth operation duty cycle.
Step S1014: whether or not it is in a specified period.
For some implementations, it may be determined whether the electronic device 100 is in a specified period of time by obtaining illumination information. Wherein the illumination information may be obtained by the detection module 110, the detection module 110 may comprise an illumination sensor. When the electronic device 100 is in the specified period, the process may jump to step S1016 to control the detection module 110 to operate at the third duty cycle; when the electronic device 100 is not in the specified period, the process may jump to step S1020 to control the detection module 110 to operate at the fourth operation duty cycle.
Step S1015: a first duty cycle.
For some embodiments, the first duty cycle may be continuous operation.
Step S1016: and a third duty cycle.
For some embodiments, the third duty cycle may be an on period, an off period, and a sequential cycle. For example, the operation may be performed for 1 minute, stopped for 5 minutes, and sequentially cycled until the next shift of the duty cycle.
Step S1017: whether or not it is in a specified period.
The method for determining whether the specified period is in the same as step S1014 is not described here. When the electronic device 100 is in the specified period, step S1016 may be skipped, controlling the detection module 110 to operate at the third operation duty cycle; when the electronic device 100 is not in the designated period, step S1020 may be skipped to control the detection module 110 to operate at the fourth operation duty cycle.
Step S1018: whether the target object exists in the second preset range.
When the target object exists in the second preset range of the electronic device 100, the step may jump to step S1016 to control the detection module 110 to operate at the third duty cycle; when the target object is not present in the second preset range of the electronic device 100, the process goes to step S1020 to control the detection module 110 to operate at the fourth duty cycle.
Step S1019: whether or not it is in a specified period.
The method for determining whether the specified period is in the same as step S1014 is not described here. When the electronic device 100 is in the specified period, step S1016 may be skipped, controlling the detection module 110 to operate at the third operation duty cycle; when the electronic apparatus 100 is not in the specified period, step S1019 may be skipped.
Step S1020: and a fourth duty cycle.
For some embodiments, the third duty cycle may be an on period, an off period, and a sequential cycle. For example, the operation may be performed for 1 minute, stopped for 30 minutes, and sequentially cycled until the next shift of the duty cycle. Wherein the fourth duty cycle is less than the third duty cycle in step S1016.
Referring to fig. 11, a block diagram illustrating a detection module control apparatus 1100 according to an embodiment of the present application 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 acquiring unit 1110 is configured to acquire 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 duty ratio if it is determined that the electronic device detects the target object based on the detection information, where the first duty ratio is used to characterize a ratio of an operating duration to a non-operating duration of the electronic device.
Further, the first control unit 1120 is further configured to control the detection module to operate at the first duty ratio if it is determined that the target object exists in the first preset range of the electronic device based on the proximity information; if it is determined that the electronic device does not detect the target object based on the detection information, the control detection module operates at a second duty ratio, including: and if the object is determined to be absent in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at the second work duty ratio.
Further, the first control unit 1120 is further configured to determine whether a target object exists in a second preset range of the electronic device if it is determined that the target object does not exist in 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 the second preset range of the electronic equipment, controlling the detection module to work at a third work duty ratio; and if no target object exists in the second preset range of the electronic equipment, controlling the detection module to work at a fourth work duty ratio, wherein the third work duty ratio is larger than the fourth work duty ratio.
Further, the first control unit 1120 is further configured to determine whether the electronic device is in the specified period if the target object exists in the second preset range of the electronic device; and if the detection module is not in the specified period, the sensing module is controlled to work at a fourth work duty ratio.
And a second control unit 1130, configured to control the detection module to operate at a second duty ratio if it is determined that the electronic device does not detect the target object based on the detection information, where the first duty ratio is greater than the second duty ratio.
Further, the second control unit 1130 is further configured to detect whether or not the specified information is acquired, where the specified information is used to indicate that the target object exists in the third preset range of the electronic device, and the specified information is sent by the detection device in the third preset range or is input by the 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 at a third work duty ratio; if the specified information is not acquired, judging that no target object exists in a third preset range of the electronic equipment, and controlling the detection module to work at a fourth work duty ratio, wherein the third work duty ratio is larger than the fourth work duty ratio.
Further, the second control unit 1130 is further configured to determine that the target object exists in the third preset range of the electronic device if the specified information is obtained, and determine whether the electronic device is in the specified period; and if the time period is within 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; 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 the specified period if the electronic device is not in the network access state; and if the time period is within 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 at the fourth operation duty ratio if the detection module is not in the specified period.
Further, the second control unit 1130 is further configured to determine whether the electronic device is in the specified 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 specified time period is in, controlling the detection module to work at a third work duty ratio; and if the time period is not in the designated time period, controlling the detection module to work at a fourth work duty ratio, wherein the third work duty ratio is larger than the fourth work duty ratio.
Further, the second control unit 1130 is further configured to obtain illumination information based on the detection module, where the illumination information includes current illumination intensity of an environment where the electronic device is located; if the illumination information is not smaller than the specified threshold, the electronic equipment is judged to be in the specified period; if the illumination information is smaller than the specified threshold, the electronic equipment is judged not to be in the specified period.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the elements to each other may be electrical, mechanical, or other.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Referring to fig. 12, a block diagram of an electronic device according to an embodiment of the application is shown. The electronic device 1200 may be an air detection panel that includes the detection module 110. The electronic device 1200 of the present application may include one or more of the following: processor, memory 1220, temperature and humidity sensor 1230, carbon dioxide sensor 1240, PM2.5 sensor 1250, proximity sensors 1260, duan Mabing 1270, keys 1280, ac input 1293, first linear voltage regulator 1291, second linear voltage 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 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 the main control chip 1210. The master control chip 1210 may include one or more processing cores. The main control chip 1210 connects various parts within 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 sensors 1260, duan Mabing 1270 and the keys 1280, respectively. The first linear voltage stabilizer 1291 is 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, respectively. The second linear voltage regulator 1292 is connected to the ac input 1293, the carbon dioxide sensor 1240, and the proximity sensors 1260, duan Mabing, 1270, respectively. Ac input 1293 is connected to first linear regulator 1291, second linear regulator 1292, and PM2.5 sensor 1250, respectively.
Alternatively, the main control chip 1220 may employ a micro control unit (Microcontroller Unit; MCU). The control unit may integrate a communication module, for example, a Wi-Fi module, a Zigbee module, or a bluetooth module, which are wireless communication technologies. It can be understood that the above communication module may not be integrated into the main control chip 1220, and may be implemented by a single communication chip.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing various method embodiments described below, and the like. The storage data area may also store data or the like created by the electronic device 1200 in use.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (8)
1. A detection module control method, characterized by being applied to an electronic device, the electronic device including a detection module, the method comprising:
Based on the detection module, obtaining detection information of a target object, wherein the detection information is used for judging whether the electronic equipment detects the target object or not, the detection information comprises proximity information, and the proximity information is used for representing the distance between the target object and the electronic equipment;
If the target object exists in the first preset range of the electronic equipment based on the proximity information, controlling the detection module to work at a first work duty ratio, wherein the first work duty ratio is used for representing the ratio of the working time length to the non-working time length of the detection module;
If the object is not in the first preset range of the electronic equipment based on the proximity information, judging whether the electronic equipment is in a network access state;
If the electronic equipment is in the network access state, 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;
if the appointed information is acquired, judging whether the electronic equipment is in an appointed period;
if the time interval is within the specified time interval, controlling the detection module to work at a third work duty ratio;
If the specified information is not acquired, judging that the target object does not exist in the third preset range of the electronic equipment, and controlling the detection module to work at a fourth work duty ratio;
wherein the first duty cycle is greater than a third duty cycle and a fourth duty cycle, the third duty cycle being greater than the fourth duty cycle.
2. The method of claim 1, wherein the designation information is transmitted by a detection device within the third preset range or is input by a user through the electronic device.
3. The method as recited in claim 1, further comprising:
If the electronic equipment is not in the network access state, judging whether the electronic equipment is in a specified period;
and if the specified time period is in the specified time period, controlling the detection module to work at the third work duty ratio.
4. A method according to claim 1 or 3, further comprising:
and if the preset time period is not met, controlling the detection module to work at the fourth work duty ratio.
5. The method of claim 1, wherein the determining whether the electronic device is in a specified period of time comprises:
Based on the detection module, acquiring illumination information, 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, determining that the electronic equipment is in the specified period;
and if the illumination information is smaller than the specified threshold, judging that the electronic equipment is not in the specified period.
6. A detection module control apparatus, characterized by being applied to an electronic device including a detection module, the apparatus comprising:
The electronic equipment comprises an acquisition unit, a detection module and a detection unit, wherein the acquisition unit is used for acquiring detection information of a target object based on the detection module, the detection information is used for judging whether the electronic equipment detects the target object or not, the detection information comprises proximity information, and the proximity information is used for representing the distance between the target object and the electronic equipment;
the first control unit is used for controlling the detection module to work at a first work duty ratio if the target object exists in a first preset range of the electronic equipment based on the proximity information, wherein the first work duty ratio is used for representing the ratio of the work duration to the non-work duration of the electronic equipment;
the second control unit is used for judging whether the electronic equipment is in a network access state or not if the object is determined to be absent in the first preset range of the electronic equipment based on the proximity information;
If the electronic equipment is in the network access state, 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;
if the appointed information is acquired, judging whether the electronic equipment is in an appointed period;
if the time interval is within the specified time interval, controlling the detection module to work at a third work duty ratio;
If the specified information is not acquired, judging that the target object does not exist in the third preset range of the electronic equipment, and controlling the detection module to work at a fourth work duty ratio;
wherein the first duty cycle is greater than a third duty cycle and a fourth duty cycle, the third duty cycle being greater than the fourth duty cycle.
7. 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 applications configured to perform the method of any of claims 1-3.
8. The electronic device of claim 7, 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 Duan Mabing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210157828.2A CN114705809B (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 CN114705809B (en) | 2022-02-21 | 2022-02-21 | Detection module control method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114705809A CN114705809A (en) | 2022-07-05 |
CN114705809B true CN114705809B (en) | 2024-10-01 |
Family
ID=82167456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210157828.2A Active CN114705809B (en) | 2022-02-21 | 2022-02-21 | Detection module control method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114705809B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06209250A (en) * | 1992-11-18 | 1994-07-26 | Omron Corp | Photoelectric switch |
CN105404378A (en) * | 2014-09-15 | 2016-03-16 | 丰唐物联技术(深圳)有限公司 | Smart bracelet and electricity saving method of smart bracelet |
CN117555269A (en) * | 2023-11-10 | 2024-02-13 | 深圳绿米联创科技有限公司 | Equipment control method, device, electronic equipment and storage medium |
Family Cites Families (32)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08274846A (en) * | 1995-03-31 | 1996-10-18 | Casio Comput Co Ltd | Portable wireless communication device |
GB2391752A (en) * | 2002-08-07 | 2004-02-11 | Nec Technologies | Reducing power consumption of display illumination |
CN102456235A (en) * | 2010-11-02 | 2012-05-16 | 中兴通讯股份有限公司 | Information processing method and server |
KR101936737B1 (en) * | 2012-01-02 | 2019-04-09 | 코웨이 주식회사 | 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 |
TW201335744A (en) * | 2012-02-21 | 2013-09-01 | Quanta Comp Inc | Portable electronic device and control method thereof |
US9883331B2 (en) * | 2012-03-30 | 2018-01-30 | Intel Corporation | Wireless network connectivity prediction based on user patterns and behavior |
CN103973472A (en) * | 2013-01-31 | 2014-08-06 | 西门子公司 | Method and device used for determining presence of personnel in building |
CN104244381B (en) * | 2013-06-17 | 2018-06-05 | 华为终端(东莞)有限公司 | Wake-up control method, device and terminal device |
CN103369635A (en) * | 2013-07-29 | 2013-10-23 | 广州市沃希信息科技有限公司 | Sign-in method, mobile terminal and sign-in server |
JP6022524B2 (en) * | 2014-11-21 | 2016-11-09 | 京セラドキュメントソリューションズ株式会社 | Electronics |
KR102301397B1 (en) * | 2014-11-28 | 2021-09-14 | 삼성전자주식회사 | Apparatus and method for controlling standby power of mobile terminal |
GB2550523A (en) * | 2015-02-02 | 2017-11-22 | Beijing Didi Infinity Tech And Dev Co Ltd | Methods and systems for order processing |
CN105654283A (en) * | 2015-04-20 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Safety payment method and apparatus thereof |
CN106710019A (en) * | 2016-12-05 | 2017-05-24 | 乐视控股(北京)有限公司 | Data processing method and device and electronic equipment |
CN108286818B (en) * | 2017-01-09 | 2020-08-07 | 芜湖美的厨卫电器制造有限公司 | Water heater and control method thereof |
CN107959920B (en) * | 2017-12-27 | 2020-11-03 | 上海连尚网络科技有限公司 | Wireless network-based sign-in method and equipment |
CN110351741A (en) * | 2018-04-04 | 2019-10-18 | 华为技术有限公司 | Measurement method, display control method and equipment |
CN108810821B (en) * | 2018-05-31 | 2021-09-17 | 苏州达家迎信息技术有限公司 | Attendance tracking method, device, terminal, server and storage medium |
CN109918273B (en) * | 2019-01-25 | 2022-12-06 | 深圳绿米联创科技有限公司 | Data display method and device, terminal equipment and storage medium |
CN109872491B (en) * | 2019-02-22 | 2021-07-06 | 深圳绿米联创科技有限公司 | Fire monitoring method and device, electronic equipment and system |
CN110062446B (en) * | 2019-04-23 | 2022-05-24 | 广东小天才科技有限公司 | Mode switching method and device of equipment, wearable equipment and storage medium |
CN109936818B (en) * | 2019-04-29 | 2021-03-19 | 新华三技术有限公司 | Positioning method, positioning device and storage medium |
CN110359960A (en) * | 2019-07-24 | 2019-10-22 | 精英数智科技股份有限公司 | A kind of safety alarming method and equipment for the passage of coal mine elevating conveyor |
CN110989031B (en) * | 2019-10-18 | 2022-09-27 | 深圳绿米联创科技有限公司 | Human body detection method, device, system, electronic equipment and storage medium |
CN111239696A (en) * | 2020-01-15 | 2020-06-05 | 深圳大学 | Method, device, device and storage medium for dynamic display of target trajectory |
CN113225814B (en) * | 2020-02-04 | 2022-11-01 | 上海朗帛通信技术有限公司 | Method and apparatus in a node used for wireless communication |
JP7452052B2 (en) * | 2020-02-05 | 2024-03-19 | 富士フイルムビジネスイノベーション株式会社 | Control systems and shared equipment |
CN111918326B (en) * | 2020-08-03 | 2025-01-21 | 上海闻泰信息技术有限公司 | Method, device, electronic device and storage medium for determining signal detection period |
CN112039740B (en) * | 2020-09-01 | 2021-12-10 | 宁波向往智能科技有限公司 | Household equipment connection control system and method based on big data |
CN113467270B (en) * | 2021-08-11 | 2022-07-01 | 深圳市海曼科技股份有限公司 | Smart home linkage method and device and computer storage medium |
CN113760128A (en) * | 2021-09-03 | 2021-12-07 | Oppo广东移动通信有限公司 | Electronic device control method, electronic device control device, storage medium and electronic device |
-
2022
- 2022-02-21 CN CN202210157828.2A patent/CN114705809B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06209250A (en) * | 1992-11-18 | 1994-07-26 | Omron Corp | Photoelectric switch |
CN105404378A (en) * | 2014-09-15 | 2016-03-16 | 丰唐物联技术(深圳)有限公司 | Smart bracelet and electricity saving method of smart bracelet |
CN117555269A (en) * | 2023-11-10 | 2024-02-13 | 深圳绿米联创科技有限公司 | Equipment control method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114705809A (en) | 2022-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11398145B2 (en) | Thoughtful elderly monitoring in a smart home environment | |
CN110827818B (en) | Control method, device, equipment and storage medium of intelligent voice equipment | |
JP6105667B2 (en) | Smart home devices and methods for optimizing smart home device user interface behavior | |
CN107678649B (en) | Information display method and device of intelligent panel | |
KR102465543B1 (en) | Method and electronic device controlling applications and components | |
JP2015138488A (en) | Dementia prediction system, dementia prediction program, and dementia prediction method | |
KR102269387B1 (en) | Information sharing method depends on a situation and electronic device supporting the same | |
US20220269331A1 (en) | Electronic pen, method and device for controlling electronic pen, and computer-readable storage medium | |
KR20180094699A (en) | Electronic device for measuring gas and method thereof | |
Liaqat et al. | Sidewinder: An energy efficient and developer friendly heterogeneous architecture for continuous mobile sensing | |
US11725971B2 (en) | Disaggregation of water consumption data | |
CN114705809B (en) | Detection module control method and device and electronic equipment | |
CN207585659U (en) | A kind of house air monitoring device based on Zigbee networkings | |
KR102251629B1 (en) | Ultra low power wireless sensor module for being selectively connected to various sensors | |
KR102686151B1 (en) | Electronic device and method for providng notification using the same | |
CN113570808A (en) | Wireless smoke detector based on ZYNQ7020 | |
KR20150094275A (en) | Server of health management using semantic analysis for sensing data of care plug device, and the method thereof | |
CN104238979B (en) | Parameter adjustment method, information transmission method and electronic equipment | |
Hsiao et al. | The Implementation of Smart Home Power Management: Integration of Internet of Things and Cloud Computing | |
US20220103889A1 (en) | Thermostat with interactive features and system and method for use of same | |
CN107300418B (en) | Intelligent light sensing system | |
CN116184851A (en) | Sleep mode adjusting method, device, terminal and storage medium | |
CN204117304U (en) | A kind of radio house safety-protection system based on ZigBee | |
CN111121987A (en) | Special refrigerator temperature monitoring system of hospital | |
CN114205559B (en) | Safety detection method, device, electronic device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |