CN106766022B - Sensor control method and device - Google Patents

Sensor control method and device Download PDF

Info

Publication number
CN106766022B
CN106766022B CN201611057399.2A CN201611057399A CN106766022B CN 106766022 B CN106766022 B CN 106766022B CN 201611057399 A CN201611057399 A CN 201611057399A CN 106766022 B CN106766022 B CN 106766022B
Authority
CN
China
Prior art keywords
sensor
working mode
data
intermittent
threshold value
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
Application number
CN201611057399.2A
Other languages
Chinese (zh)
Other versions
CN106766022A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi 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 Beijing Xiaomi Mobile Software Co Ltd, Beijing Smartmi Technology Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611057399.2A priority Critical patent/CN106766022B/en
Publication of CN106766022A publication Critical patent/CN106766022A/en
Application granted granted Critical
Publication of CN106766022B publication Critical patent/CN106766022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Abstract

The disclosure relates to a sensor control method and a sensor control device, and the method provided by the embodiment of the disclosure comprises the following steps: when the equipment starts to operate, the working mode of the sensor is set to be an intermittent working mode, and the variation amplitude of data acquired by the sensor between two intermittent working is determined; and under the condition that the change amplitude is larger than a preset first threshold value, the working mode of the sensor is adjusted to be a continuous working mode. According to the method and the device provided by the embodiment of the disclosure, the stability of the environment is determined according to the data collected by the sensor, so that the sensor enters a continuous working mode to work when the environment change amplitude is large, and enters an intermittent working mode to work when the environment change amplitude is small, and the optimization of the sensitivity of the sensor is ensured while the service life of the sensor is ensured.

Description

Sensor control method and device
Technical Field
The present disclosure relates to the field of sensor technologies, and in particular, to a sensor control method and apparatus.
Background
An air purifier, also called as an air purifier, is a product device capable of adsorbing, decomposing or converting various air pollutants and effectively improving the air cleanliness. In the air purifier, a dust sensor for detecting the content of pollutants in the air is a core device of the air purifier, and the air purifier controls the working state of the air purifier according to data collected by the dust sensor.
A laser sensor is one type of dust sensor. The laser sensor (also referred to as a light sensor) can determine the ambient brightness and perform intermittent operation after the ambient brightness is lower than a certain value.
However, when a laser sensor is used, if the light at the storage position of the device is always weak or strong, the problems of untimely data acquisition, short service life of the sensor and the like can be caused. Moreover, temporary shielding can cause the equipment to switch the working state, so that the problem of data error acquisition is easy to occur.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a sensor control method and apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided a sensor control method including: when the equipment starts to operate, the working mode of the sensor is set to be an intermittent working mode, and the variation amplitude of data acquired by the sensor between two intermittent working is determined; and under the condition that the change amplitude is larger than a preset first threshold value, the working mode of the sensor is adjusted to be a continuous working mode.
In a possible implementation manner, the case that the variation amplitude is greater than a preset first threshold includes: and comparing the reading of the data acquired this time by the sensor with the reading of the data acquired last time, wherein the change range of the reading of the data acquired twice is larger than the first threshold value.
In a possible implementation manner, the method further includes: determining a statistical value of data of specified times collected by a sensor under the condition that the working mode of the sensor is a continuous working mode; and under the condition that the statistical value is smaller than a preset second threshold value, adjusting the working mode of the sensor to be an intermittent working mode.
In a possible implementation manner, the case that the statistical value is smaller than a preset second threshold includes: after the sensor collects data of specified times, the variance value of the data of all times collected by the sensor is counted; a variance value is less than a second threshold value.
In a possible implementation manner, the case that the statistical value is smaller than a preset second threshold includes: recording data of specified times in the data collected by the sensor, and counting variance values of the recorded data of all times; a variance value is less than a second threshold value.
In one possible implementation, the second threshold is equal to the square of the first threshold.
In a possible implementation manner, the method further includes: when the equipment is not started to operate, the working mode of the sensor is set to be an intermittent working mode, and the time interval of the intermittent working is increased.
According to a second aspect of the embodiments of the present disclosure, there is provided a sensor control device including:
the first intermittent working module is configured to set the working mode of the sensor to be an intermittent working mode when the equipment starts to run, and determine the change amplitude of data acquired by the sensor between two intermittent working;
and the continuous working module is configured to adjust the working mode of the sensor to be the continuous working mode under the condition that the variation amplitude is larger than a preset first threshold value.
In one possible implementation, the continuous operation module includes: and the first comparison submodule is configured to compare the reading of the data acquired by the sensor at this time with the reading of the data acquired last time, and determine that the change amplitude of the reading of the data acquired twice is larger than a first threshold value.
In a possible implementation manner, the apparatus further includes:
the data recording module is configured to count the statistical value of the data of the appointed times collected by the sensor under the condition that the working mode of the sensor is a continuous working mode;
and the second intermittent operation module is configured to adjust the operation mode of the sensor to an intermittent operation mode when the statistic value is smaller than a preset second threshold value.
In one possible implementation, the second intermittent operation module includes: the first statistic submodule is configured to count variance values of data acquired by the sensor for all times after the sensor acquires data of a specified number of times; and determining a condition that the variance value is less than a second threshold.
In one possible implementation, the second intermittent operation module includes: the second counting submodule is configured to record data of specified times in the data collected by the sensor and count variance values of the recorded data of all times; and determining a condition that the variance value is less than a second threshold.
In one possible implementation, the second threshold is equal to the square of the first threshold.
In a possible implementation manner, the apparatus further includes: and the third intermittent operation module is configured to set the operation mode of the sensor to an intermittent operation mode and increase the time interval of the intermittent operation when the equipment does not start to operate.
According to a third aspect of the embodiments of the present disclosure, there is provided a sensor control device including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when equipment starts to run, setting the working mode of a sensor to be an intermittent working mode, and determining the change amplitude of data acquired by the sensor between two intermittent working;
and under the condition that the variation amplitude is larger than the preset first threshold value, adjusting the working mode of the sensor to a continuous working mode.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: under the intermittent working mode of the sensor, the stability of the environment can be judged through the variation amplitude, and under the condition that the variation amplitude is larger than a certain threshold value, the continuous working mode can be adjusted. And when the equipment detects that the environment is changed, the equipment immediately enters continuous detection, so that the sensitivity is ensured.
Furthermore, the discrete degree of the data collected by the sensor can be obtained by calculating the statistical value in the continuous working mode, the stability of the environment is further determined, the intermittent working mode can be adjusted under the condition that the statistical value is smaller than a certain threshold value, the intermittent working is realized when the environment is stable, and the service life of the sensor can be ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a sensor control method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating an example of a method of controlling a sensor in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a sensor control apparatus according to an exemplary embodiment;
FIG. 4 is yet another block diagram of a sensor control device shown in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a sensor control device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flow chart illustrating a sensor control method according to an exemplary embodiment, which may be used in a terminal, as shown in fig. 1. The method may include the following steps S11 and S12.
In step S11, when the device starts to operate, the operation mode of the sensor is set to the intermittent operation mode, and the variation width of the data collected by the sensor between two intermittent operations is determined.
In this embodiment, when a device, such as an air purifier, is started, a sensor, such as a laser sensor, in the device enters an intermittent operation mode. And awakening the sensor at regular intervals, controlling the sensor to acquire data representing the environment, and controlling the sensor to stop acquiring after the sensor finishes data acquisition. The time interval of the intermittent operation can be set according to the environment or the requirement of a user. For example: the time interval of the intermittent operation may be set to 1 minute.
In step S12, if the variation width is larger than a first threshold value set in advance, the operation mode of the sensor is adjusted to the continuous operation mode.
In a possible implementation manner, the case that the variation amplitude is larger than the preset first threshold includes: and comparing the reading of the data acquired this time by the sensor with the reading of the data acquired last time, wherein the change range of the reading of the data acquired twice is larger than the first threshold value.
In this embodiment, during the intermittent operation of the sensor, the stability of the environment can be judged through the variation range. For example, the smaller the magnitude of the change, the more stable the environment. The first threshold may be set according to the environment, the type of data collected by the sensor, etc., for example the first threshold may be 20. The data collected by the sensors may include, but is not limited to: the size of the dust particles, the concentration of the dust particles, etc.
Further, in the case where the magnitude of the change is less than or equal to the first threshold value, the sensor may be controlled to continue to operate in the intermittent operation mode. In a possible implementation manner, the method further includes: determining a statistical value of data of specified times collected by the sensor under the condition that the working mode of the sensor is adjusted to a continuous working mode; and adjusting the working mode of the sensor to be an intermittent working mode under the condition that the statistical value is smaller than a second threshold value. And controlling the sensor to continue to operate in the continuous operation mode when the statistical value is greater than or equal to the second threshold value.
In one possible implementation, the second threshold is equal to the square of the first threshold.
In this embodiment, the statistical value is calculated in the continuous operating mode, so that the discrete degree of the data acquired by the sensor can be obtained, and the stability of the environment can be further determined. For example, the larger the statistical value, the more unstable the environment. The statistical value may be a value reflecting the degree of dispersion of data, such as variance, standard deviation, and the like. The second threshold may be set according to the environment, the type of data collected by the sensor, etc., and for example, when the first threshold is 20, the second threshold may be 400.
In a possible implementation manner, the case whether the statistical value is smaller than the preset second threshold may include various examples, as follows:
the method comprises the steps that firstly, after data of a sensor are recorded every time the sensor collects data of a specified number of times, variance values of the data of all the times collected by the sensor are counted; a variance value less than a second threshold value.
Example two, in the data collected by the sensor, data of specified times are recorded, and variance values of the recorded data of all times are counted; a variance value is less than a second threshold value.
In comparison, the data processing amount of the second mode is smaller than that of the first mode. The accuracy of mode one may be greater than mode two.
For example, after the sensor enters the continuous operation mode, data is collected every 1 second, and data is recorded every 20 seconds, and after 9 times (i.e., 3 minutes) of continuous recording, variance values of all recorded data are calculated. The calculated variance value is then compared to a second threshold value, such as the square of the first threshold value. And when the variance value is smaller than the second threshold value, the equipment enters intermittent work. Otherwise, continuing to work and recording the data again. The time interval of continuous acquisition, the time interval of recording, and the number of times of recording can be flexibly set according to the working environment of the sensor, and the specific values of the parameters are not limited in this embodiment.
In a possible implementation manner, the method further includes: when the equipment is not started to operate, the working mode of the sensor is set to be an intermittent working mode, and the time interval of the intermittent working is increased. The time interval may be increased to 10 minutes, for example. The sensor works intermittently in the process that the equipment stops running, and the change condition of the environment can be known through data collected by the sensor so as to determine when to start the equipment.
Under the intermittent working mode of the sensor, the stability of the environment can be judged through the variation amplitude, and under the condition that the variation amplitude is larger than a certain threshold value, the continuous working mode can be adjusted. And when the equipment detects that the environment is changed, the equipment immediately enters continuous detection, so that the sensitivity is ensured.
Furthermore, the discrete degree of the data collected by the sensor can be obtained by calculating the statistical value in the continuous working mode, the stability of the environment is further determined, the intermittent working mode can be adjusted under the condition that the statistical value is smaller than a certain threshold value, the intermittent working is realized when the environment is stable, and the service life of the sensor can be ensured.
According to the above sensor control method, the present disclosure provides an example of a sensor control method, and fig. 2 is a flowchart illustrating an example of a sensor control method according to an exemplary embodiment, as shown in fig. 2, the sensor control method example including:
judging the operation state of the device (S1), controlling the sensor to enter an intermittent operation mode when the device is turned off, waking up the sensor every 10 minutes, and turning off the sensor after the sensor collects data (S8).
When the device is turned on, the sensor is controlled to enter an intermittent operation mode, the sensor is awakened every 1 minute, and is turned off after the sensor collects data (S2). Then, the reading of the data collected this time by the sensor is compared with the reading of the data collected when the sensor was waken up last time, and the change width of the data is determined (S3). Then, it is determined whether the variation width is greater than 20 (i.e., the first threshold) (S4), and when the variation width is less than or equal to 20, S2 is continued. When the variation amplitude is larger than 20, controlling the sensor to enter a continuous working mode, and acquiring data every 1 second (S5); and data collected by the sensor is recorded every 20 seconds, and after 9 times (i.e., 3 minutes) of data are continuously recorded, variance values of the recorded 9 times of data are calculated (S6). Finally, it is determined whether the variance value is less than 400 (i.e., the second threshold), and in the case where the variance value is greater than or equal to 400, S5 is continued. In the case where the variance value is less than 400, S2 is continued.
Meanwhile, in the process of S1-S7, if it is detected that the device is turned off, S8 is directly performed.
In the intermittent working mode of the sensor, the stability of the environment can be judged through the change amplitude, and the continuous working mode can be adjusted when the change amplitude is larger than a certain threshold (20). And when the equipment detects that the environment is changed, the equipment immediately enters continuous detection, so that the sensitivity is ensured. Furthermore, the variance value is calculated in a continuous working mode, so that the discrete degree of data collected by the sensor can be obtained, the stability of the environment is further determined, the intermittent working mode can be adjusted under the condition that the variance value is smaller than a certain threshold (400), the intermittent working mode is realized when the environment is stable, and the service life of the sensor can be ensured.
FIG. 3 is a block diagram illustrating a sensor control apparatus according to an exemplary embodiment. Referring to fig. 3, the apparatus includes a first intermittent operation module 101 and a continuous operation module 102.
The first intermittent operation module 101 is configured to set the operation mode of the sensor to an intermittent operation mode when the device starts to operate, and determine the change amplitude of the data acquired by the sensor between two intermittent operations.
The continuous operation module 102 is configured to adjust the operation mode of the sensor to a continuous operation mode if the magnitude of the change is greater than a first threshold.
In one possible implementation, as shown in fig. 3, the apparatus further includes a data recording module 103 and a second intermittent operation module 104.
The data recording module 103 is configured to record statistics of data collected by the sensor a specified number of times if the operation mode of the sensor is the continuous operation mode.
The second intermittent operation module 104 is configured to adjust the operation mode of the sensor to an intermittent operation mode if the statistical value is less than a second threshold value.
In one possible implementation, the second threshold is equal to the square of the first threshold.
In one possible implementation, as shown in fig. 3, the apparatus further includes a third intermittent operation module 105, and the third intermittent operation module 105 is configured to set the operation mode of the sensor to an intermittent operation mode and increase the time interval of the intermittent operation when the device is not started to operate.
Based on the apparatus shown in fig. 3, fig. 4 is yet another block diagram of a sensor control apparatus shown according to an exemplary embodiment. The components in fig. 4 having the same reference numerals as those in fig. 3 have the same meanings and are not described again.
In one possible implementation, referring to fig. 4, the continuous operation module 102 includes a first comparison sub-module 1021, where the first comparison sub-module 1021 is configured to compare a reading of data acquired this time by the sensor with a reading of data acquired last time, and determine that a change amplitude of the reading of the data acquired two times is greater than a first threshold.
In one possible implementation, referring to fig. 4, the second intermittent operation module 104 includes a first statistic sub-module 1041 configured to count a variance value of data collected by the sensor for all times after the sensor collects data for every specified number of times; and determining a condition that the variance value is less than a second threshold.
In one possible implementation, referring to fig. 4, the second intermittent operation module 104 includes a second counting submodule 1042 configured to record data of a specified number of times among the data collected by the sensors, and count variance values of the recorded data of all times; and determining a condition that the variance value is less than a second threshold.
By the device, under the intermittent working mode of the sensor, the stability of the environment can be judged through the variation amplitude, and under the condition that the variation amplitude is larger than a certain threshold value, the continuous working mode can be adjusted. And when the equipment detects that the environment is changed, the equipment immediately enters continuous detection, so that the sensitivity is ensured.
Furthermore, the discrete degree of the data collected by the sensor can be obtained by calculating the statistical value in the continuous working mode, the stability of the environment is further determined, the intermittent working mode can be adjusted under the condition that the statistical value is smaller than a certain threshold value, the intermittent working is realized when the environment is stable, and the service life of the sensor can be ensured.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The disclosed embodiment also provides another sensor control device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to; when equipment starts to run, setting the working mode of a sensor to be an intermittent working mode, and determining the change amplitude of data acquired by the sensor between two intermittent working; and under the condition that the variation amplitude is larger than a preset first threshold value, adjusting the working mode of the sensor to a continuous working mode. The device determines the stability of the environment according to the data collected by the sensor, so that the sensor enters a continuous working mode when the environment change amplitude is large, and enters an intermittent working mode when the environment change amplitude is small, thereby ensuring the service life of the sensor and simultaneously ensuring the optimization of the sensitivity of the sensor.
Fig. 5 is a block diagram illustrating a sensor control device 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. A sensor control method, characterized by comprising:
when equipment starts to operate, the working mode of a sensor is set to be an intermittent working mode, the change amplitude of data acquired by the sensor between two times of intermittent working is determined, the intermittent working mode is that the sensor is awakened at regular intervals, the sensor is controlled to acquire the data of the environment where the sensor is located, and the sensor is turned off after the sensor acquires the data, and the data acquired by the sensor comprises: the size of the dust particles;
under the condition that the variation amplitude is larger than a preset first threshold value, adjusting the working mode of the sensor to be a continuous working mode;
under the condition that the working mode of the sensor is adjusted to be the continuous working mode, recording the sensor data by using a time interval which is larger than the sampling interval of the sensor, and determining the statistic value of the data recorded by the sensor for a specified number of times;
adjusting the working mode of the sensor to the intermittent working mode under the condition that the statistic value is smaller than a preset second threshold value, wherein the second threshold value is equal to the square of the first threshold value;
and when the equipment is not started to operate, setting the working mode of the sensor to be an intermittent working mode, and increasing the time interval of intermittent working.
2. The method according to claim 1, wherein the case that the variation amplitude is larger than a preset first threshold value comprises:
and comparing the reading of the data acquired this time by the sensor with the reading of the data acquired last time, wherein the change range of the reading of the data acquired twice is larger than the first threshold value.
3. The method according to claim 1, wherein the condition that the statistical value is smaller than a preset second threshold value comprises:
counting variance values of the recorded data of all times;
a variance value is less than a second threshold value.
4. A sensor control device, comprising:
the first intermittent working module is configured to set a working mode of a sensor to an intermittent working mode when equipment starts to run, and determine a change amplitude of data acquired by the sensor between two intermittent working modes, wherein the intermittent working mode is that the sensor is awakened at regular time intervals, the sensor is controlled to acquire data of an environment where the sensor is located, and the sensor is turned off after the sensor acquires the data, and the data acquired by the sensor comprises: the size of the dust particles;
the continuous working module is configured to adjust the working mode of the sensor to a continuous working mode under the condition that the variation amplitude is larger than a preset first threshold value;
a data recording module configured to record the sensor data using a time interval greater than the sensor sampling interval and determine a statistical value of data recorded by the sensor a specified number of times, in case the operation mode of the sensor is the continuous operation mode;
a second intermittent operation module configured to adjust an operation mode of the sensor to the intermittent operation mode if the statistical value is less than a preset second threshold value, wherein the second threshold value is equal to a square of the first threshold value;
a third intermittent operation module configured to set the operation mode of the sensor to an intermittent operation mode and increase a time interval of the intermittent operation when the apparatus is not started to operate.
5. The apparatus of claim 4, wherein the continuous operation module comprises:
and the first comparison submodule is configured to compare the reading of the data acquired by the sensor at this time with the reading of the data acquired last time, and determine that the change amplitude of the reading of the data acquired twice is larger than the first threshold value.
6. The apparatus of claim 4, wherein the second intermittent operation module comprises:
a first statistic submodule configured to count variance values of the recorded data of all times, and determine a case where the variance values are smaller than a second threshold.
7. A sensor control device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when equipment starts to operate, the working mode of a sensor is set to be an intermittent working mode, the change amplitude of data acquired by the sensor between two times of intermittent working is determined, the intermittent working mode is that the sensor is awakened at regular intervals, the sensor is controlled to acquire the data of the environment where the sensor is located, and the sensor is turned off after the sensor acquires the data, and the data acquired by the sensor comprises: the size of the dust particles;
under the condition that the variation amplitude is larger than a preset first threshold value, adjusting the working mode of the sensor to be a continuous working mode;
under the condition that the working mode of the sensor is adjusted to be the continuous working mode, recording the sensor data by using a time interval which is larger than the sampling interval of the sensor, and determining the statistic value of the data recorded by the sensor for a specified number of times;
and under the condition that the statistical value is smaller than a preset second threshold value, adjusting the working mode of the sensor to be the intermittent working mode, and when the equipment does not start running, setting the working mode of the sensor to be the intermittent working mode and increasing the time interval of intermittent working, wherein the second threshold value is equal to the square of the first threshold value.
CN201611057399.2A 2016-11-26 2016-11-26 Sensor control method and device Active CN106766022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611057399.2A CN106766022B (en) 2016-11-26 2016-11-26 Sensor control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611057399.2A CN106766022B (en) 2016-11-26 2016-11-26 Sensor control method and device

Publications (2)

Publication Number Publication Date
CN106766022A CN106766022A (en) 2017-05-31
CN106766022B true CN106766022B (en) 2020-09-15

Family

ID=58911392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611057399.2A Active CN106766022B (en) 2016-11-26 2016-11-26 Sensor control method and device

Country Status (1)

Country Link
CN (1) CN106766022B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107390004A (en) * 2017-06-15 2017-11-24 国网浙江义乌市供电公司 The Multipurpose electric flow table and control method of DATA REASONING efficiency can be improved
CN107238747A (en) * 2017-06-15 2017-10-10 国网浙江义乌市供电公司 Can wireless charging Multipurpose electric flow table and control method
CN109426210B (en) * 2017-09-04 2022-09-02 卓尔悦欧洲控股有限公司 Electronic cigarette control method and device and electronic cigarette
CN108105951A (en) * 2017-10-31 2018-06-01 青岛海尔空调器有限总公司 Inletting fresh air control method
CN109282455A (en) * 2018-08-17 2019-01-29 珠海格力电器股份有限公司 A kind of method, apparatus and air-conditioning system of the operation of control sensor
CN109271031A (en) * 2018-09-27 2019-01-25 中国科学院深圳先进技术研究院 A kind of haptic signal detection method, device, system, equipment and storage medium
CN109595738A (en) * 2018-11-30 2019-04-09 广东美的制冷设备有限公司 Control method, device and the air conditioner with it of air conditioner
CN110136358A (en) * 2019-04-24 2019-08-16 安克创新科技股份有限公司 The control method of intelligent express delivery cabinet and intelligent express delivery cabinet
CN111148060A (en) * 2020-03-12 2020-05-12 杭州涂鸦信息技术有限公司 Data acquisition device, control method thereof, control device and storage medium
CN111780808A (en) * 2020-07-10 2020-10-16 北京航宇军科机电设备有限公司 Detection device and detection system
CN112524733A (en) * 2020-12-07 2021-03-19 南京千里行测控技术有限公司 Intelligent detection air purifier and air purification system thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100107286A (en) * 2009-03-25 2010-10-05 위니아만도 주식회사 Freezing protection method for evaporator of air conditioner
CN102446405A (en) * 2011-08-24 2012-05-09 广东美的电器股份有限公司 Sensor control method and control device thereof
CN104750154A (en) * 2015-03-31 2015-07-01 宁波双林汽车部件股份有限公司 Circuit device of reducing energy consumption of sensor
CN104914026A (en) * 2015-06-12 2015-09-16 艾欧史密斯(中国)热水器有限公司 Dust concentration detection method and dust concentration sensor
CN104930660A (en) * 2015-06-24 2015-09-23 北京奇虎科技有限公司 Air state monitoring method and device
CN105451398A (en) * 2015-12-30 2016-03-30 广东美的制冷设备有限公司 Sampling control method of light sensor in air conditioner and air conditioner
CN105465972A (en) * 2016-01-13 2016-04-06 东莞市利发爱尔空气净化系统有限公司 Working method and device for controlling sensor of air purifier
CN105609085A (en) * 2015-12-29 2016-05-25 广东欧珀移动通信有限公司 Screen brightness adjustment method and mobile terminal
CN105628569A (en) * 2015-12-24 2016-06-01 惠州华阳通用电子有限公司 Control method and device for PM2.5 sensor
CN105987785A (en) * 2015-03-24 2016-10-05 中山市六源通电子科技有限公司 Activation method of tire pressure sensor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100107286A (en) * 2009-03-25 2010-10-05 위니아만도 주식회사 Freezing protection method for evaporator of air conditioner
CN102446405A (en) * 2011-08-24 2012-05-09 广东美的电器股份有限公司 Sensor control method and control device thereof
CN105987785A (en) * 2015-03-24 2016-10-05 中山市六源通电子科技有限公司 Activation method of tire pressure sensor
CN104750154A (en) * 2015-03-31 2015-07-01 宁波双林汽车部件股份有限公司 Circuit device of reducing energy consumption of sensor
CN104914026A (en) * 2015-06-12 2015-09-16 艾欧史密斯(中国)热水器有限公司 Dust concentration detection method and dust concentration sensor
CN104930660A (en) * 2015-06-24 2015-09-23 北京奇虎科技有限公司 Air state monitoring method and device
CN105628569A (en) * 2015-12-24 2016-06-01 惠州华阳通用电子有限公司 Control method and device for PM2.5 sensor
CN105609085A (en) * 2015-12-29 2016-05-25 广东欧珀移动通信有限公司 Screen brightness adjustment method and mobile terminal
CN105451398A (en) * 2015-12-30 2016-03-30 广东美的制冷设备有限公司 Sampling control method of light sensor in air conditioner and air conditioner
CN105465972A (en) * 2016-01-13 2016-04-06 东莞市利发爱尔空气净化系统有限公司 Working method and device for controlling sensor of air purifier

Also Published As

Publication number Publication date
CN106766022A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106766022B (en) Sensor control method and device
US10649648B2 (en) Method and apparatus for screen capture processing
WO2017113660A1 (en) Application program management method and device
US10409684B2 (en) Method, device and storage medium for cleaning memory
EP3182716A1 (en) Method and device for video display
CN107943409B (en) Touch screen control method and device
US10610152B2 (en) Sleep state detection method, apparatus and system
EP3073792A1 (en) Method and device for awaking element
EP2953133A1 (en) Method and device of playing multimedia
CN105933539B (en) audio playing control method and device and terminal
EP3163884A1 (en) Image acquiring method and apparatus, computer program and recording medium
CN107608561B (en) Touch screen control method and device
CN107102772B (en) Touch control method and device
CN107943347B (en) Touch screen control method and device
EP3133874A1 (en) Method and apparatus for starting energy saving mode
US11194297B2 (en) Method and apparatus for controlling alarm clock
US10234924B2 (en) Method and apparatus for displaying time on mobile device
EP3024211A1 (en) Method and device for announcing voice call
CN107480785B (en) Convolutional neural network training method and device
EP3322227A1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN109862169B (en) Electronic equipment control method, device and storage medium
CN106599858B (en) Fingerprint identification method and device and electronic equipment
US20170034347A1 (en) Method and device for state notification and computer-readable storage medium
CN106527703B (en) Message reminding method and device
CN105786561B (en) Method and device for calling process

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