CN111007781A - Control method and system of environment monitoring device - Google Patents

Control method and system of environment monitoring device Download PDF

Info

Publication number
CN111007781A
CN111007781A CN201911377670.4A CN201911377670A CN111007781A CN 111007781 A CN111007781 A CN 111007781A CN 201911377670 A CN201911377670 A CN 201911377670A CN 111007781 A CN111007781 A CN 111007781A
Authority
CN
China
Prior art keywords
mcu
wireless communication
communication module
switching
wake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911377670.4A
Other languages
Chinese (zh)
Inventor
龚水朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General 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 Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN201911377670.4A priority Critical patent/CN111007781A/en
Publication of CN111007781A publication Critical patent/CN111007781A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G05B19/0423Input/output
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Abstract

The invention discloses a control method and a system of an environment monitoring device, wherein the control method comprises the following steps: the wireless communication module generates a first awakening signal after awakening and when detecting that external data are input, the MCU awakens and acquires the external data according to the first awakening signal, the power supply switch is controlled to be switched on to supply power to the storage chip after external data transmission is completed, the external data are stored in the storage chip, the power supply switch is controlled to be switched off after external data storage is completed, the working mode is switched to the sleep mode again, and meanwhile the wireless communication module is controlled to enter the sleep mode. The invention reduces the electric quantity consumption by controlling the MCU and the wireless communication module to sleep when not in work, and meanwhile, the storage chip is only powered when in the working mode, thereby saving the electric quantity consumption when the storage chip is in the sleep mode, and prolonging the electric quantity use time of the environment monitoring device.

Description

Control method and system of environment monitoring device
Technical Field
The invention relates to the technical field of environment monitoring, in particular to a control method and a control system of an environment monitoring device.
Background
The existing environment monitoring device is generally powered by a rechargeable battery or a disposable lithium battery, and generally, the environment monitoring device is required to have a long working time, which is as short as several months and more than several years. When the environment monitoring device is operated in a relatively harsh environment, there may be no external power source available to provide charging during the period, and therefore, a rechargeable battery is not suitable in such a situation. If a high-capacity disposable lithium battery is adopted, the purpose of long-time use can be achieved only by carrying out low-power consumption circuit design on the lithium battery, so that the hardware cost of the lithium battery can be increased.
In summary, it is an urgent need to solve the technical problem of the art to provide a control method and system for an environment monitoring device to reduce power consumption of the environment monitoring device.
Disclosure of Invention
In view of this, the present invention discloses a method and a system for controlling an environment monitoring device, so as to reduce power consumption of the environment monitoring device and prolong power usage duration of the environment monitoring device.
A control method of an environment monitoring device is applied to a Micro Control Unit (MCU) in the environment monitoring device, and the environment monitoring device comprises the following steps: the battery is powered by the MCU through the first power conversion chip, the battery is connected with the second environmental information acquisition module through the second power conversion chip, the control end of the second power conversion chip is connected with the MCU, the MCU is connected with the first environmental information acquisition module through the switch tube, the MCU is connected with the storage chip through the power supply switch, the MCU is directly connected with the wireless communication module, and the control method comprises the following steps:
receiving a first wake-up signal sent by the wireless communication module, wherein the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected;
switching from a sleep mode to a working mode according to the first wake-up signal;
acquiring the external data transmitted by the wireless communication module;
after the external data transmission is finished, controlling the power supply switch to be conducted to supply power to the storage chip;
storing the acquired external data to the storage chip;
after the external data is stored, controlling the power supply switch to be switched off;
and switching the working mode into the sleep mode again, and simultaneously sending a sleep signal to the wireless communication module to enable the wireless communication module to enter the corresponding sleep mode according to the sleep signal.
The utility model provides a control system of environment monitoring device, control system is applied to the little the control unit MCU among the environment monitoring device, the environment monitoring device includes: battery, first power conversion chip, second power conversion chip MCU, switch tube, power switch, first environmental information collection module, second environmental information collection module, memory chip and wireless communication module, the battery passes through first power conversion chip does the MCU power supply, the battery passes through second power conversion chip with second environmental information collection module connects, the control end of second power conversion chip with MCU connects, MCU passes through the switch tube with first environmental information collection module connects, MCU passes through power switch with memory chip connects, MCU with wireless communication module lug connection, control system includes:
the first receiving unit is used for receiving a first wake-up signal sent by the wireless communication module, wherein the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected;
the first switching unit is used for switching from a sleep mode to a working mode according to the first wake-up signal;
a first acquisition unit, configured to acquire the external data transmitted by the wireless communication module;
the first conduction unit is used for controlling the power supply switch to be conducted to supply power to the storage chip after the external data transmission is finished;
a first storage unit configured to store the acquired external data in the memory chip;
the first turn-off unit is used for controlling the power supply switch to be turned off after the external data is stored;
and the sending unit is used for switching the working mode into the sleep mode again and sending a sleep signal to the wireless communication module at the same time so that the wireless communication module enters the corresponding sleep mode according to the sleep signal.
From the above technical solution, the present invention discloses a control method and a system for an environment monitoring device, the control method is applied to an MCU in the environment monitoring device, and the control method comprises: the wireless communication module generates a first wake-up signal and sends the first wake-up signal to the MCU after waking up and when detecting that external data is input, the MCU switches from a sleep mode to a working mode according to the first wake-up signal and acquires the external data transmitted by the wireless communication module, the MCU controls the power supply switch to be switched on to supply power to the storage chip after the external data is transmitted, the external data transmitted by the wireless communication module is stored to the storage chip, the MCU controls the power supply switch to be switched off after the external data is stored, the working mode is switched to the sleep mode again, and meanwhile, the wireless communication module is controlled to enter the sleep mode. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the MCU stores the acquired external data, and the power supply of the storage chip is cut off after the external data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power use duration of the environment monitoring device is prolonged.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the disclosed drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an environment monitoring device according to an embodiment of the present invention;
fig. 2 is a circuit diagram of a first power conversion chip according to an embodiment of the disclosure;
FIG. 3 is a circuit diagram of a second power conversion chip according to an embodiment of the disclosure;
FIG. 4 is a circuit diagram of a PMOS transistor according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for controlling an environmental monitoring apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another environmental monitoring apparatus according to an embodiment of the present disclosure;
FIG. 7 is a flowchart of another method for controlling an environmental monitoring device according to an embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating another exemplary method for controlling an environmental monitoring device according to an embodiment of the present disclosure;
FIG. 9 is a schematic structural diagram of a control system of an environmental monitoring apparatus according to an embodiment of the present disclosure;
FIG. 10 is a schematic structural diagram of a control system of another environment monitoring apparatus according to an embodiment of the disclosure;
fig. 11 is a schematic structural diagram of a control system of another environment monitoring device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a control method and a system of an environment monitoring device, wherein the control method is applied to an MCU in the environment monitoring device and comprises the following steps: the wireless communication module generates a first wake-up signal and sends the first wake-up signal to the MCU after waking up and when detecting that external data is input, the MCU switches from a sleep mode to a working mode according to the first wake-up signal and acquires the external data transmitted by the wireless communication module, the MCU controls the power supply switch to be switched on to supply power to the storage chip after the external data is transmitted, the external data transmitted by the wireless communication module is stored to the storage chip, the MCU controls the power supply switch to be switched off after the external data is stored, the working mode is switched to the sleep mode again, and meanwhile, the wireless communication module is controlled to enter the sleep mode. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the storage chip stores the acquired external data, and the power supply of the storage chip is cut off after the external data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power use duration of the environment monitoring device is prolonged.
To facilitate understanding of the technical solution of the present invention, the internal structure of the environment monitoring device is described below.
Referring to fig. 1, a schematic structural diagram of an environment monitoring device disclosed in an embodiment of the present invention is shown, the environment monitoring device includes: the battery pack comprises a battery 10, a first power conversion chip 11, a second power conversion chip 12, an MCU (micro control Unit) 13, a switch tube 14, a power supply switch 15, a first environmental information collection module 16, a second environmental information collection module 17, a wireless communication module 18 and a storage chip 19. The battery 10 supplies power to the MCU13 through the first power conversion chip 11, the MCU13 is connected to the first environmental information collection module 16 through the switch tube 14, the MCU13 is connected to the storage chip 19 through the power switch 15, and the MCU13 is directly connected to the wireless communication module 18.
Optionally, the wireless communication module 18 may be a ZigBee communication module.
The first environmental information collection module 16 may include: a temperature sensor and a humidity sensor.
The second environment information collecting module 17 may include: a pressure sensor.
In the present invention, the first power conversion chip 11 and the second power conversion chip 12 respectively convert the voltage of the battery 10 to obtain different voltages.
The first power conversion chip 11 can convert the 7V voltage output by the battery 10 into 3.3V voltage, the first power conversion chip 11 is mainly used for supplying power to the sensor in the first environmental information collection module 16, the second power conversion chip 12 can convert the 7V voltage output by the battery 10 into 5V voltage, wherein the control end of the second power conversion chip 12 is connected with the MCU13, and the second power conversion chip 12 is mainly used for supplying power to the sensor in the second environmental information collection module 17.
The environment monitoring device is in a sleep mode when not collecting data, at this time, the MCU13 enters the sleep mode to wait for the wake-up of an external interrupt, and the power supply of the MCU13 is still normal, so the first power conversion chip 11 is always in a working state. The electric quantity consumed by the environment monitoring device in the long-time standby state mainly comes from the no-load loss of the first power conversion chip 11, and in order to reduce unnecessary standby electric quantity consumption, in the invention, the quiescent current of the first power conversion chip 11 is smaller than the quiescent current threshold, the quiescent current threshold is in the uA level, and the specific numerical value is determined according to the actual needs, which is not limited herein. The first power conversion chip 11 is composed of a 7V to 3.3V power chip and a peripheral circuit thereof, see a circuit diagram of the first power conversion chip shown in fig. 2, U1 is the 7V to 3.3V power chip, a working current of the first power conversion chip 11 is 2uA in a no-load state, and the larger the resistance values of the voltage dividing resistors R3 and R4 are, the smaller the static current is.
The 5V voltage output by the second power conversion chip 12 mainly supplies power to the sensor in the second environmental information collection module 17, whether the output of the second power conversion chip 12 is controlled by the MCU13 or not is determined by the MCU13, and when the current time reaches the start time of the preset collection period, the MCU13 is awakened from the sleep mode and switched to the working mode. When the control end of the second power conversion chip 12 receives the working instruction sent by the MCU13, the second power conversion chip 12 converts the voltage output by the battery 10 from 7V to 5V, and outputs the 5V voltage to the second environment information acquisition module 17 to supply power to the sensor in the second environment information acquisition module 17. Referring to the circuit diagram of the second power conversion chip 12 shown in fig. 3, the second power conversion chip 12 is composed of a 7V to 5V power chip U2 and its peripheral circuits, the enable terminal EN of the U2 is used for connecting to the MCU13, when the enable terminal EN is at a low level, the second power conversion chip 12 does not output voltage, and at this time, the loss current is only 0.1uA, and the larger the resistances of the voltage dividing resistors R5 and R8 are, the smaller the quiescent current is. When the MCU13 switches from the sleep mode to the working mode, the level of the 5V _ IN _ INT pin is high, and at this time, the U2 outputs a 5V voltage, otherwise, the 5V _ IN _ INT pin is always low, and the U2 is IN the off mode and has no output, IN this case, the power consumed by the environment monitoring apparatus for a long time IN standby mode mainly comes from the loss of the second power conversion chip 12 IN the off mode, and IN order to reduce unnecessary consumption of the standby power, IN the present invention, the off current of the second power conversion chip 12 is smaller than the off current threshold, and the off current threshold is of the uA level, and the specific value is determined according to actual needs, which is not limited herein.
In the environment monitoring device, the storage chip 19, the first environment information acquisition module 16, the second environment information acquisition module 17 and other subsequent modules generate certain leakage current under the condition of non-operation to cause power consumption, the power consumed by the environment monitoring device in a standby state for a long time comprises the leakage current, and in order to reduce unnecessary standby power consumption, the switch tube 14 preferably selects a PMOS tube, and when the storage chip 19, the first environment information acquisition module 16, the second environment information acquisition module 17 and other subsequent modules do not operate, the MCU13 cuts off the power supply of the subsequent modules by controlling the PMOS tube to cut off, so that the standby power consumption is reduced. Specifically, referring to the circuit diagram of the PMOS transistor shown in fig. 4, U5 is the PMOS transistor, the end 3V3_ CAN _ EN _ PD3 is connected to the MCU13, the MCU13 controls the on/off of the PMOS transistor, VCC _ A3V3_ CAN is an output terminal of the first power conversion chip 11, and VCC _ D3V3_ CAN is an output terminal of the PMOS transistor connected to the first environmental information acquisition module 16.
In practical application, when the environment monitoring device performs data acquisition, the MCU13 pulls down the gate voltage of the PMOS transistor, the PMOS transistor is in a conducting state, VCC _ D3V3_ CAN generates a 3.3V level to supply power to the sensor in the first environmental information acquisition module 16, after the sensor finishes data acquisition, the gate voltage of the PMOS transistor changes to a high level, the PMOS transistor is turned off to cut off the power supply of the sensor in the first environmental information acquisition module 16, and then supplies power to the storage chip 19, after these actions are completed, the power switch 15 is turned off, and the MCU13 enters the sleep mode again until the next acquisition cycle, thereby achieving the purpose of reducing power consumption. The power supply switch 15 may also be a PMOS transistor. It should be noted that the number of the PMOS transistors in the switch tube 14 is equal to that of the sensors in the first environmental information collection module 16, and each PMOS transistor is connected to one sensor in the first environmental information collection module 16.
Referring to fig. 5, a flowchart of a control method of an environment monitoring apparatus according to an embodiment of the present invention is applied to an MCU in the environment monitoring apparatus shown in fig. 1, where the control method includes:
step S101, receiving a first wake-up signal sent by a wireless communication module;
the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected.
Assuming that the wireless communication module is a Zigbee chip, in a normal case, the Zigbee chip is in a sleep mode, an RTC (Real _ Time Clock, Clock chip) inside the Zigbee chip is waken up once every preset Time period, for example, 5s, when the Zigbee chip is waken up, the Zigbee chip may detect whether there is external data input, and when it is detected that there is no external data input, the Zigbee chip enters the sleep state again; when it is detected that external data is input, the Zigbee chip will control the level of the IO pin connected to the MCU to change from a low level to a high level, that is, the Zigbee chip generates a first wake-up signal and sends the first wake-up signal to the MCU.
Step S102, switching from a sleep mode to a working mode according to a first wake-up signal;
when the MCU detects that the level of the IO pin is changed from low level to high level, namely the MCU receives the first wake-up signal, the MCU is switched to a working mode from a sleep mode.
Step S103, acquiring external data transmitted by the wireless communication module;
when the wireless communication module detects that external data is input, the wireless communication module transmits the acquired external data to the MCU in real time.
Step S104, after the external data transmission is finished, controlling the power supply switch to be conducted to supply power to the storage chip;
when the wireless communication module does not transmit external data to the MCU any more, the MCU determines that the external data transmission is completed, and at the moment, the MCU controls the power supply switch to be switched on to supply power to the storage chip. That is to say, wireless communication module is at the in-process with the external data transmission to MCU of gathering, and the power switch who is connected with memory chip is in the off-state, and only when external data transmission accomplishes the back, MCU just can control power switch and switch on for memory chip power supply.
Step S105, storing the acquired external data to a storage chip;
s106, controlling a power supply switch to be turned off after external data storage is finished;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only turned on by the MCU through the control power switch when the MCU stores the acquired external data, and the power supply of the memory chip is cut off after the external data is stored.
And S107, switching the working mode to the sleep mode again, and simultaneously sending a sleep signal to the wireless communication module to enable the wireless communication module to enter the corresponding sleep mode according to the sleep signal.
After the MCU stores the external data transmitted by the wireless communication module to the storage chip, the MCU cuts off the power supply of the storage chip by controlling the power supply switch to be switched off. At this time, the MCU may enter the sleep mode again from the operating mode, and at the same time, the wireless communication module also enters the sleep mode by sending a sleep signal to the wireless communication module, so as to save power consumption.
In summary, the control method of the environment monitoring device disclosed by the invention includes that the wireless communication module generates a first wake-up signal and sends the first wake-up signal to the MCU after wake-up and when it is detected that external data is input, the MCU switches from the sleep mode to the working mode according to the first wake-up signal and acquires the external data transmitted by the wireless communication module, and after the external data is transmitted, the MCU controls the power supply switch to be turned on to supply power to the memory chip and store the external data transmitted by the wireless communication module to the memory chip, and after the external data is stored, the MCU controls the power supply switch to be turned off and switches from the working mode to the sleep mode again, and at the same time, the wireless communication module is controlled to enter the sleep mode. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the storage chip stores the acquired external data, and the power supply of the storage chip is cut off after the external data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power use duration of the environment monitoring device is prolonged.
It should be noted that, the input/output interface connected between the wireless communication module and the MCU may take over the control authority of the input/output interface by different execution bodies according to different modes of the MCU.
Therefore, in the foregoing embodiment, step S102 may specifically include:
according to the first wake-up signal, the sleep mode is switched to the working mode, and the control authority of the wireless communication module on the input and output interface is acquired, wherein the input and output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
Specifically, after the MCU is switched from the sleep mode to the working mode according to the first wake-up signal, the wireless communication module releases the control right to the input/output interface, and the MCU realizes the take-over of the control right to the input/output interface by acquiring the control right to the input/output interface released by the wireless communication module.
In the foregoing embodiment, step S107 may specifically include:
switching from the working mode to the sleep mode again;
sending a sleep signal to the wireless communication module to enable the wireless communication module to enter a corresponding sleep mode according to the sleep signal;
and releasing the control authority of the input and output interface to ensure that the wireless communication module acquires the control authority of the input and output interface.
Based on the above discussion, it can be seen that the MCU is awakened from the sleep mode according to the first wake-up signal sent by the wireless communication module, and the wireless communication module sends the first wake-up signal to the MCU through the input/output interface connected to the MCU, so as to ensure that the wireless communication module can still send the first wake-up signal to the MCU when it detects external data next time, and after the MCU is switched from the operating mode to the sleep mode again, the MCU can release the control right of the input/output interface, so that the wireless communication module can obtain the control right of the input/output interface again.
In the embodiment shown in fig. 5, the MCU is woken up by the first wake-up signal sent by the wireless communication module, and for the convenience of the following discussion of other wake-up manners for the MCU, the wake-up manner shown in fig. 5 may be named as wake-on-nothing.
In practical applications, when the environment monitoring device needs to collect vibration data of the surrounding environment, for example, sound data, a vibration sensor needs to be installed in the environment monitoring device. Referring to a schematic structural diagram of another environment monitoring apparatus shown in fig. 6, on the basis of the embodiment shown in fig. 1, the environment monitoring apparatus may further include: vibration sensor 20, vibration sensor 20 is connected with MCU 13.
Based on the environment monitoring device shown in fig. 6, referring to fig. 7, a flowchart of a control method of the environment monitoring device disclosed in an embodiment of the present invention is applied to the MCU in the environment monitoring device shown in fig. 6, and the control method includes the steps of:
step S201, receiving a second wake-up signal sent by a vibration sensor;
and the second wake-up signal is generated by the vibration sensor when the vibration amplitude of the acquired vibration data is determined to be not less than a preset amplitude threshold value.
In practical application, the vibration sensor collects vibration data of the surrounding environment in real time, compares the vibration amplitude of the collected vibration data with a preset amplitude threshold value, and generates a second awakening signal when the vibration amplitude of the collected vibration data is not smaller than the preset amplitude threshold value, and sends the second awakening signal to the MCU.
Step S202, switching from a sleep mode to a working mode according to a second wake-up signal;
and after receiving a second wake-up signal output by the vibration sensor, the MCU is switched from the sleep mode to the working mode.
Step S203, obtaining vibration data collected by a vibration sensor;
step S204, after the vibration data acquisition is finished, controlling a power supply switch to be conducted to supply power to the storage chip;
when the vibration sensor does not send vibration data to the MCU any more, or when the MCU determines that the acquisition time reaches a preset acquisition period, the MCU controls the power supply switch to be switched on to supply power to the storage chip. That is to say, vibration sensor is at the in-process of sending the vibration data of gathering to MCU, and the power switch who is connected with memory chip is in the off-state, and only when vibration data acquisition completion back, MCU just can control power switch and switch on for memory chip power supply.
Step S205, storing the acquired vibration data to a storage chip;
step S206, after the vibration data is stored, controlling the power supply switch to be switched off;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only switched on by the MCU through the control power switch when the MCU stores the acquired vibration data, and the power supply of the memory chip is cut off after the vibration data is stored.
Step S207, the operating mode is switched to the sleep mode again.
After the MCU stores the vibration data transmitted by the vibration sensor to the storage chip, the MCU cuts off the power supply of the storage chip by controlling the power supply switch to be turned off, and at the moment, the MCU enters the sleep mode again from the working mode.
In summary, according to the control method of the environment monitoring device disclosed by the invention, when the vibration sensor determines that the vibration amplitude of the acquired vibration data is not less than the preset amplitude threshold value, a second wake-up signal is generated and sent to the MCU, the MCU switches from the sleep mode to the working mode according to the second wake-up signal and acquires the vibration data acquired by the vibration sensor, after the vibration data is acquired, the MCU controls the power supply switch to be turned on to supply power to the storage chip and stores the acquired vibration data in the storage chip, and after the vibration data is stored, the MCU controls the power supply switch to be turned off and switches the working mode to the sleep mode again. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the storage chip stores the acquired vibration data, and the power supply of the storage chip is cut off after the vibration data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power consumption of the environment monitoring device is prolonged.
In the embodiment shown in fig. 7, the MCU is woken up by the second wake-up signal sent by the vibration sensor, and for the convenience of the following discussion of other wake-up manners of the MCU, the wake-up manner shown in fig. 7 may be named as vibration wake-up.
Based on the above discussion, it can be known that the MCU is passively awakened no matter the MCU is awakened wirelessly or by vibration, and in practical applications, the MCU can also be actively awakened.
Referring to fig. 8, a flowchart of a control method of an environment monitoring apparatus according to an embodiment of the present invention is disclosed, where the control method is applied to the MCU in the environment monitoring apparatus shown in fig. 1 or fig. 6, and the control method includes the steps of:
step S301, judging whether the current time reaches the starting time of a preset acquisition period, if so, executing step S302;
when the RTC inside the MCU reaches a preset acquisition period, namely when the MCU determines that the current time reaches the starting time of the preset acquisition period, the MCU actively wakes up, otherwise, when the MCU determines that the current time does not reach the starting time of the preset acquisition period, the MCU continues to be in a sleep mode.
Step S302, actively switching from a sleep mode to a working mode;
step S303, controlling the switching tube to be conducted to supply power to the first environmental information acquisition module, and simultaneously controlling the second power conversion chip to be operated as the second environmental information acquisition module to supply power;
when the MCU is in a sleep mode, the switch tube connected between the MCU and the first environmental information acquisition module is in a turn-off state, and at the moment, the first environmental information acquisition module is in a non-working state. After MCU awakens up, when MCU switched into operating mode by the sleep mode promptly, MCU just controlled switch tube switches on, for the power supply of first environmental information collection module to saved the power consumption that first environmental information collection module is in the sleep mode.
Similarly, when the MCU is in the sleep mode, the second power conversion chip connected between the MCU and the second environmental information collection module does not operate, and at this time, the second environmental information collection module is in an inoperative state. When the MCU wakes up, namely the MCU is switched to the working mode from the sleep mode, the MCU controls the second power conversion chip to work, the second power conversion chip converts the voltage output by the battery into 5V from 7V, and outputs the 5V voltage to the second environment information acquisition module to supply power for the sensor in the second environment information acquisition module, thereby saving the power consumption of the second environment information acquisition module in the sleep mode.
Step S304, acquiring first environmental data acquired by a first environmental information acquisition module and second environmental data acquired by a second environmental information acquisition module;
the first environmental data collected by the first environmental information collection module, such as ambient temperature, ambient humidity, etc.
And the second environmental data, such as pressure, is collected by the second environmental information collection module.
Step S305, when the time period for acquiring the first environmental data and the second environmental data reaches a preset acquisition period, controlling a switching tube to be switched off, controlling a second power conversion chip to stop working, and controlling a power supply switch to be switched on to supply power to a storage chip;
when the MCU determines that the time period for acquiring the first environmental data and the second environmental data reaches the preset acquisition period, namely, when the MCU finishes data acquisition of the preset acquisition period, the MCU can control the switching tube to be switched off, so that the power supply of the first environmental information acquisition module is cut off, and meanwhile, the second power conversion chip is controlled to stop working, so that the power supply of the second environmental information acquisition module is switched, and the power supply switch is controlled to be switched on to supply power for the storage chip, so that the acquired environmental data are stored to the storage chip subsequently.
Step S306, storing the acquired first environment data and the acquired second environment data to a storage chip;
step S307, after the first environmental data and the second environmental data are stored, controlling a power supply switch to be turned off;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only turned on by the MCU through the control power switch when the MCU stores the acquired environmental data, and the power supply of the memory chip is cut off after the environmental data is stored.
Step S308, the work mode is switched to the sleep mode again.
In summary, the control method of the environment monitoring device disclosed by the invention comprises the steps that when the MCU determines that the current time reaches the initial time of a preset acquisition period, the MCU actively wakes up, the switching tube is controlled to be conducted to supply power to the first environment information acquisition module and acquire first environment data acquired by the first environment information acquisition module, meanwhile, the second power conversion chip is controlled to be used as the second environment information acquisition module to supply power and acquire second environment data acquired by the second environment information acquisition module, when the time for acquiring the first environment data and the second environment data reaches the preset acquisition period, the switching tube is controlled to be turned off and the second power conversion chip is controlled to stop working, the power supply switch is controlled to be conducted to supply power to the storage chip, and when the acquired first environment data and the acquired second environment data are both stored in the storage chip, the MCU controls the power supply switch to be turned off, and the working mode is switched into the dormant mode again. Therefore, the electric quantity consumption is reduced by controlling the MCU and the wireless communication module to sleep when not in work, meanwhile, the first environment information acquisition module, the second environment information acquisition module and the storage chip are not powered all the time, the first environment information acquisition module and the second environment information acquisition module are only powered on by the MCU through controlling the switching tube and controlling the second power conversion chip to work and be powered on when the preset acquisition period of the MCU is reached, and the power supply of the first environment information acquisition module and the second environment information acquisition module is cut off when the acquisition period is reached; the storage chip is powered on by the MCU through controlling the power supply switch only when the MCU stores the acquired environmental data, and after the environmental data is stored, the power supply of the storage chip is cut off, namely the storage chip, the first environmental information acquisition module and the second environmental information acquisition module only have working modes, so that the electric quantity consumption of the storage chip, the first environmental information acquisition module and the second environmental information acquisition module in a dormant mode is saved, and the electric quantity use duration of the environment monitoring device is prolonged.
Based on the above discussion, the wake-up mode of the MCU includes: the method comprises the following steps of active awakening and passive awakening, wherein the passive awakening comprises: vibration wake-up and wireless wake-up. It should be noted that, in practical applications, the wake-up mode of the MCU may be: any one, two or all of active wake-up, vibration wake-up and wireless wake-up.
Corresponding to the embodiment of the method, the invention also discloses a control system of the environment monitoring device.
Referring to fig. 9, a schematic structural diagram of a control system of an environment monitoring apparatus according to an embodiment of the present invention is disclosed, where the control system is applied to an MCU in the environment monitoring apparatus shown in fig. 1, and the control system includes:
a first receiving unit 401, configured to receive a first wake-up signal sent by a wireless communication module;
the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected.
Assuming that the wireless communication module is a Zigbee chip, in a normal case, the Zigbee chip is in a sleep mode, an RTC (Real _ Time Clock, Clock chip) inside the Zigbee chip is waken up once every preset Time period, for example, 5s, when the Zigbee chip is waken up, the Zigbee chip may detect whether there is external data input, and when it is detected that there is no external data input, the Zigbee chip enters the sleep state again; when it is detected that external data is input, the Zigbee chip will control the level of the IO pin connected to the MCU to change from a low level to a high level, that is, the Zigbee chip generates a first wake-up signal and sends the first wake-up signal to the MCU.
A first switching unit 402, configured to switch from a sleep mode to a working mode according to a first wake-up signal;
when the MCU detects that the level of the IO pin is changed from low level to high level, namely the MCU receives the first wake-up signal, the MCU is switched to a working mode from a sleep mode.
A first obtaining unit 403, configured to obtain external data transmitted by the wireless communication module;
when the wireless communication module detects that external data is input, the wireless communication module transmits the acquired external data to the MCU in real time.
A first conduction unit 404, configured to control the power supply switch to be turned on to supply power to the memory chip after external data transmission is completed;
when the wireless communication module does not transmit external data to the MCU any more, the MCU determines that the external data transmission is completed, and at the moment, the MCU controls the power supply switch to be switched on to supply power to the storage chip. That is to say, wireless communication module is at the in-process with the external data transmission to MCU of gathering, and the power switch who is connected with memory chip is in the off-state, and only when external data transmission accomplishes the back, MCU just can control power switch and switch on for memory chip power supply.
A first storage unit 405 for storing the acquired external data to a memory chip;
the first turn-off unit 406 is used for controlling the power supply switch to turn off after the external data is stored;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only turned on by the MCU through the control power switch when the MCU stores the acquired external data, and the power supply of the memory chip is cut off after the external data is stored.
The sending unit 407 is configured to switch the operating mode to the sleep mode again, and send a sleep signal to the wireless communication module at the same time, so that the wireless communication module enters the corresponding sleep mode according to the sleep signal.
After the MCU stores the external data transmitted by the wireless communication module to the storage chip, the MCU cuts off the power supply of the storage chip by controlling the power supply switch to be switched off. At this time, the MCU may enter the sleep mode again from the operating mode, and at the same time, the wireless communication module also enters the sleep mode by sending a sleep signal to the wireless communication module, so as to save power consumption.
In summary, according to the control system of the environment monitoring device disclosed by the invention, after the wireless communication module is awakened and when the external data is detected to be input, a first awakening signal is generated and sent to the MCU, the MCU switches from the sleep mode to the working mode according to the first awakening signal and acquires the external data transmitted by the wireless communication module, after the external data is transmitted, the MCU controls the power supply switch to be turned on to supply power to the memory chip and stores the external data transmitted by the wireless communication module into the memory chip, and after the external data is stored, the MCU controls the power supply switch to be turned off and switches from the working mode to the sleep mode again, and at the same time, the wireless communication module is controlled to enter the sleep mode. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the storage chip stores the acquired external data, and the power supply of the storage chip is cut off after the external data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power use duration of the environment monitoring device is prolonged.
It should be noted that, the input/output interface connected between the wireless communication module and the MCU may take over the control authority of the input/output interface by different execution bodies according to different modes of the MCU.
The first switching unit 402 may specifically be configured to: according to the first wake-up signal, the sleep mode is switched to the working mode, and the control authority of the wireless communication module on the input and output interface is acquired, wherein the input and output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
Specifically, after the MCU is switched from the sleep mode to the working mode according to the first wake-up signal, the wireless communication module releases the control right to the input/output interface, and the MCU realizes the take-over of the control right to the input/output interface by acquiring the control right to the input/output interface released by the wireless communication module.
In the foregoing embodiment, the sending unit 407 may specifically be configured to:
switching from the working mode to the sleep mode again;
sending a sleep signal to the wireless communication module to enable the wireless communication module to enter a corresponding sleep mode according to the sleep signal;
releasing the control authority of the input and output interface to ensure that the wireless communication module obtains the control authority of the input and output interface, wherein the input and output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
Based on the above discussion, it can be seen that the MCU is awakened from the sleep mode according to the first wake-up signal sent by the wireless communication module, and the wireless communication module sends the first wake-up signal to the MCU through the input/output interface connected to the MCU, so as to ensure that the wireless communication module can still send the first wake-up signal to the MCU when it detects external data next time, and after the MCU is switched from the operating mode to the sleep mode again, the MCU can release the control right of the input/output interface, so that the wireless communication module can obtain the control right of the input/output interface again.
In the embodiment shown in fig. 5, the MCU is woken up by the first wake-up signal sent by the wireless communication module, and for the convenience of the following discussion of other wake-up manners for the MCU, the wake-up manner shown in fig. 5 may be named as wake-on-nothing.
In practical applications, when the environment monitoring device needs to collect vibration data of the surrounding environment, for example, sound data, a vibration sensor needs to be installed in the environment monitoring device. Referring to a schematic structural diagram of another environment monitoring apparatus shown in fig. 6, on the basis of the embodiment shown in fig. 1, the environment monitoring apparatus may further include: vibration sensor 20, vibration sensor 20 is connected with MCU 13.
Based on the environment monitoring device shown in fig. 6, referring to fig. 10, a schematic structural diagram of a control system of an environment monitoring device disclosed in another embodiment of the present invention is applied to the MCU in the environment monitoring device shown in fig. 6, and the control system includes:
a second receiving unit 501, configured to receive a second wake-up signal sent by the vibration sensor;
and the second wake-up signal is generated by the vibration sensor when the vibration amplitude of the acquired vibration data is determined to be not less than a preset amplitude threshold value.
In practical application, the vibration sensor collects vibration data of the surrounding environment in real time, compares the vibration amplitude of the collected vibration data with a preset amplitude threshold value, and generates a second awakening signal when the vibration amplitude of the collected vibration data is not smaller than the preset amplitude threshold value, and sends the second awakening signal to the MCU.
A second switching unit 502, configured to switch from the sleep mode to the working mode according to a second wake-up signal;
and after receiving a second wake-up signal output by the vibration sensor, the MCU is switched from the sleep mode to the working mode.
A second obtaining unit 503, configured to obtain vibration data collected by the vibration sensor;
the second conduction unit 504 is used for controlling the power supply switch to be conducted to supply power to the storage chip after the vibration data acquisition is finished;
when the vibration sensor does not send vibration data to the MCU any more, or when the MCU determines that the acquisition time reaches a preset acquisition period, the MCU controls the power supply switch to be switched on to supply power to the storage chip. That is to say, vibration sensor is at the in-process of sending the vibration data of gathering to MCU, and the power switch who is connected with memory chip is in the off-state, and only when vibration data acquisition completion back, MCU just can control power switch and switch on for memory chip power supply.
A second storage unit 505 for storing the acquired vibration data to a memory chip;
the second turn-off unit 506 is used for controlling the power supply switch to be turned off after the vibration data is stored;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only switched on by the MCU through the control power switch when the MCU stores the acquired vibration data, and the power supply of the memory chip is cut off after the vibration data is stored.
A third switching unit 507, configured to switch from the operating mode to the sleep mode again.
After the MCU stores the vibration data transmitted by the vibration sensor to the storage chip, the MCU cuts off the power supply of the storage chip by controlling the power supply switch to be turned off, and at the moment, the MCU enters the sleep mode again from the working mode.
In summary, according to the control system of the environment monitoring device disclosed by the invention, when the vibration sensor determines that the vibration amplitude of the acquired vibration data is not less than the preset amplitude threshold value, a second wake-up signal is generated and sent to the MCU, the MCU switches from the sleep mode to the working mode according to the second wake-up signal and acquires the vibration data acquired by the vibration sensor, after the vibration data is acquired, the MCU controls the power supply switch to be turned on to supply power to the storage chip and stores the acquired vibration data in the storage chip, and after the vibration data is stored, the MCU controls the power supply switch to be turned off and switches the working mode to the sleep mode again. Therefore, the power consumption is reduced by controlling the MCU and the wireless communication module to sleep when the MCU and the wireless communication module do not work, meanwhile, the storage chip is not powered all the time, the MCU controls the power supply switch to be powered on only when the storage chip stores the acquired vibration data, and the power supply of the storage chip is cut off after the vibration data is stored, namely, the storage chip only has a working mode, so that the power consumption of the storage chip in the sleep mode is saved, and the power consumption of the environment monitoring device is prolonged.
In the embodiment shown in fig. 7, the MCU is woken up by the second wake-up signal sent by the vibration sensor, and for the convenience of the following discussion of other wake-up manners of the MCU, the wake-up manner shown in fig. 7 may be named as vibration wake-up.
Based on the above discussion, it can be known that the MCU is passively awakened no matter the MCU is awakened wirelessly or by vibration, and in practical applications, the MCU can also be actively awakened.
Referring to fig. 11, a schematic structural diagram of a control system of an environment monitoring apparatus according to another embodiment of the present invention is disclosed, the control system is applied to the MCU in the environment monitoring apparatus shown in fig. 1 or fig. 6, and the control system includes:
a judging unit 601, configured to judge whether a current time reaches a start time of a preset acquisition period;
when the RTC inside the MCU reaches a preset acquisition period, namely when the MCU determines that the current time reaches the starting time of the preset acquisition period, the MCU actively wakes up, otherwise, when the MCU determines that the current time does not reach the starting time of the preset acquisition period, the MCU continues to be in a sleep mode.
A fourth switching unit 602, configured to actively switch from the sleep mode to the working mode if the determining unit 601 determines that the current mode is yes;
the third conducting unit 603 is configured to control the switching tube to conduct to supply power to the first environmental information acquisition module, and control the second power conversion chip to supply power to the second environmental information acquisition module;
when the MCU is in a sleep mode, the switch tube connected between the MCU and the first environmental information acquisition module is in a turn-off state, and at the moment, the first environmental information acquisition module is in a non-working state. After MCU awakens up, when MCU switched into operating mode by the sleep mode promptly, MCU just controlled switch tube switches on, for the power supply of first environmental information collection module to saved the power consumption that first environmental information collection module is in the sleep mode.
Similarly, when the MCU is in the sleep mode, the second power conversion chip connected between the MCU and the second environmental information collection module does not operate, and at this time, the second environmental information collection module is in an inoperative state. When the MCU wakes up, namely the MCU is switched to the working mode from the sleep mode, the MCU controls the second power conversion chip to work, the second power conversion chip converts the voltage output by the battery into 5V from 7V, and outputs the 5V voltage to the second environment information acquisition module to supply power for the sensor in the second environment information acquisition module, thereby saving the power consumption of the second environment information acquisition module in the sleep mode.
A third obtaining unit 604, configured to obtain first environmental data collected by the first environmental information collection module and second environmental data collected by the second environmental information collection module;
the first environmental information collection module collects environmental data, such as ambient temperature, ambient humidity, and the like.
And the second environmental data, such as pressure, is collected by the second environmental information collection module.
The third switching-off unit 605 is configured to control the switching-off of the switching tube and control the second power conversion chip to stop working when the time period for acquiring the first environmental data and the second environmental data reaches a preset acquisition period, and control the power supply switch to be switched on to supply power to the storage chip;
when the MCU determines that the time period for acquiring the first environmental data and the second environmental data reaches the preset acquisition period, namely, when the MCU finishes data acquisition of the preset acquisition period, the MCU can control the switching tube to be switched off, so that the power supply of the first environmental information acquisition module is cut off, and meanwhile, the second power conversion chip is controlled to stop working, so that the power supply of the second environmental information acquisition module is cut off, and the power supply switch is controlled to be switched on to supply power for the storage chip, so that the acquired environmental data are stored to the storage chip subsequently.
A third storage unit 606, configured to store the acquired first environment data and second environment data in a storage chip;
a fourth turn-off unit 607, configured to control the power supply switch to turn off after the first environmental data and the second environmental data are stored;
in this embodiment, the memory chip is not supplied with power all the time, and the memory chip is only turned on by the MCU through the control power switch when the MCU stores the acquired environmental data, and the power supply of the memory chip is cut off after the environmental data is stored.
A fifth switching unit 608, configured to switch from the operating mode to the sleep mode again.
In summary, the control system of the environment monitoring device disclosed by the invention comprises that when the MCU determines that the current time reaches the start time of the preset collection period, the MCU actively wakes up, the switching tube is controlled to be conducted to supply power to the first environment information collection module and obtain the first environment data collected by the first environment information collection module, meanwhile, the second power conversion chip is controlled to be operated as the second environment information collection module and obtain the second environment data collected by the second environment information collection module, when the time for collecting the first environment data and the second environment data reaches the preset collection period, the switching tube is controlled to be turned off and the second power conversion chip is controlled to stop working, the power switch is controlled to be conducted to supply power to the storage chip, and when the obtained first environment data and the obtained second environment data are both stored in the storage chip, the MCU controls the power switch to be turned off, and the working mode is switched into the dormant mode again. Therefore, the electric quantity consumption is reduced by controlling the MCU and the wireless communication module to sleep when not in work, meanwhile, the first environment information acquisition module, the second environment information acquisition module and the storage chip are not powered all the time, the first environment information acquisition module and the second environment information acquisition module are only powered on by the MCU through controlling the switching tube and controlling the second power conversion chip to work and be powered on when the preset acquisition period of the MCU is reached, and the power supply of the first environment information acquisition module and the second environment information acquisition module is cut off when the acquisition period is reached; the storage chip is powered on by the MCU through controlling the power supply switch only when the MCU stores the acquired environmental data, and after the environmental data is stored, the power supply of the storage chip is cut off, namely the storage chip, the first environmental information acquisition module and the second environmental information acquisition module only have working modes, so that the electric quantity consumption of the storage chip, the first environmental information acquisition module and the second environmental information acquisition module in a dormant mode is saved, and the electric quantity use duration of the environment monitoring device is prolonged.
Based on the above discussion, the wake-up mode of the MCU includes: the method comprises the following steps of active awakening and passive awakening, wherein the passive awakening comprises: vibration wake-up and wireless wake-up. It should be noted that, in practical applications, the wake-up mode of the MCU may be: any one, two or all of active wake-up, vibration wake-up and wireless wake-up.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A control method of an environment monitoring device is characterized in that the control method is applied to a Micro Control Unit (MCU) in the environment monitoring device, and the environment monitoring device comprises: the battery is powered by the MCU through the first power conversion chip, the battery is connected with the second environmental information acquisition module through the second power conversion chip, the control end of the second power conversion chip is connected with the MCU, the MCU is connected with the first environmental information acquisition module through the switch tube, the MCU is connected with the storage chip through the power supply switch, the MCU is directly connected with the wireless communication module, and the control method comprises the following steps:
receiving a first wake-up signal sent by the wireless communication module, wherein the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected;
switching from a sleep mode to a working mode according to the first wake-up signal;
acquiring the external data transmitted by the wireless communication module;
after the external data transmission is finished, controlling the power supply switch to be conducted to supply power to the storage chip;
storing the acquired external data to the storage chip;
after the external data is stored, controlling the power supply switch to be switched off;
and switching the working mode into the sleep mode again, and simultaneously sending a sleep signal to the wireless communication module to enable the wireless communication module to enter the corresponding sleep mode according to the sleep signal.
2. The control method according to claim 1, wherein the environment monitoring device further includes: the vibration sensor is connected with the MCU, and the control method further comprises the following steps:
receiving a second wake-up signal sent by the vibration sensor, wherein the second wake-up signal is generated by the vibration sensor when the vibration amplitude of the acquired vibration data is determined to be not less than a preset amplitude threshold value;
switching from a sleep mode to a working mode according to the second wake-up signal;
acquiring the vibration data acquired by the vibration sensor;
after the vibration data are collected, controlling the power supply switch to be conducted to supply power to the storage chip;
storing the acquired vibration data to the storage chip;
after the vibration data are stored, controlling the power supply switch to be switched off;
and switching from the working mode to the sleep mode again.
3. The control method according to claim 2, characterized by further comprising:
judging whether the current time reaches the initial time of a preset acquisition period or not;
if yes, actively switching from the sleep mode to the working mode;
the switching tube is controlled to be conducted to supply power to the first environmental information acquisition module, and meanwhile, the second power conversion chip is controlled to work to supply power to the second environmental information acquisition module;
acquiring first environmental data acquired by the first environmental information acquisition module and second environmental data acquired by the second environmental information acquisition module;
when the time period for acquiring the first environmental data and the second environmental data reaches the preset acquisition period, controlling the switching tube to be switched off, controlling the second power conversion chip to stop working, and controlling the power supply switch to be switched on to supply power to the storage chip;
storing the acquired first environment data and the acquired second environment data to the storage chip;
after the first environmental data and the second environmental data are stored, controlling the power supply switch to be switched off;
and switching from the working mode to the sleep mode again.
4. The control method according to claim 1, wherein switching from the sleep mode to the working mode according to the first wake-up signal specifically includes:
switching from a sleep mode to a working mode according to the first wake-up signal, and acquiring a control authority of the wireless communication module on an input/output interface, wherein the input/output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
5. The method according to claim 1, wherein the switching from the operating mode to the sleep mode again and sending a sleep signal to the wireless communication module at the same time, so that the wireless communication module enters the corresponding sleep mode according to the sleep signal specifically includes:
switching from the working mode to the sleep mode again;
sending a sleep signal to the wireless communication module, so that the wireless communication module enters a corresponding sleep mode according to the sleep signal;
releasing the control authority of the input/output interface to enable the wireless communication module to acquire the control authority of the input/output interface, wherein the input/output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
6. The utility model provides a control system of environment monitoring device which characterized in that, control system is applied to the little the control unit MCU among the environment monitoring device, the environment monitoring device includes: battery, first power conversion chip, second power conversion chip MCU, switch tube, power switch, first environmental information collection module, second environmental information collection module, memory chip and wireless communication module, the battery passes through first power conversion chip does the MCU power supply, the battery passes through second power conversion chip with second environmental information collection module connects, the control end of second power conversion chip with MCU connects, MCU passes through the switch tube with first environmental information collection module connects, MCU passes through power switch with memory chip connects, MCU with wireless communication module lug connection, control system includes:
the first receiving unit is used for receiving a first wake-up signal sent by the wireless communication module, wherein the first wake-up signal is generated by the wireless communication module after wake-up and when external data input is detected;
the first switching unit is used for switching from a sleep mode to a working mode according to the first wake-up signal;
a first acquisition unit, configured to acquire the external data transmitted by the wireless communication module;
the first conduction unit is used for controlling the power supply switch to be conducted to supply power to the storage chip after the external data transmission is finished;
a first storage unit configured to store the acquired external data in the memory chip;
the first turn-off unit is used for controlling the power supply switch to be turned off after the external data is stored;
and the sending unit is used for switching the working mode into the sleep mode again and sending a sleep signal to the wireless communication module at the same time so that the wireless communication module enters the corresponding sleep mode according to the sleep signal.
7. The control system of claim 6, wherein the environmental monitoring device further comprises: a vibration sensor, the vibration sensor with the MCU is connected, control system still includes:
the second receiving unit is used for receiving a second wake-up signal sent by the vibration sensor, and the second wake-up signal is generated when the vibration sensor determines that the vibration amplitude of the acquired vibration data is not smaller than a preset amplitude threshold value;
the second switching unit is used for switching from a sleep mode to a working mode according to the second wake-up signal;
the second acquisition unit is used for acquiring the vibration data acquired by the vibration sensor;
the second conduction unit is used for controlling the power supply switch to be conducted to supply power to the storage chip after the vibration data are collected;
the second storage unit is used for storing the acquired vibration data to the storage chip;
the second turn-off unit is used for controlling the power supply switch to be turned off after the vibration data are stored;
and the third switching unit is used for switching the working mode to the sleep mode again.
8. The control system of claim 7, further comprising:
the judging unit is used for judging whether the current time reaches the starting time of a preset acquisition period or not;
the fourth switching unit is used for actively switching from the sleep mode to the working mode under the condition that the judgment unit judges that the current time is longer than the preset time;
the third conduction unit is used for controlling the switch tube to be conducted to supply power to the first environmental information acquisition module and simultaneously controlling the second power conversion chip to work to supply power to the second environmental information acquisition module;
the third acquiring unit is used for acquiring the first environmental data acquired by the first environmental information acquiring module and the second environmental data acquired by the second environmental information acquiring module;
the third switching-off unit is used for controlling the switching-off of the switching tube and the stop of the second power conversion chip when the time period for acquiring the first environmental data and the second environmental data reaches the preset acquisition period, and controlling the power supply switch to be switched on to supply power to the storage chip;
a third storage unit, configured to store the acquired first environment data and the acquired second environment data in the storage chip;
the fourth turn-off unit is used for controlling the power supply switch to turn off after the first environmental data and the second environmental data are stored;
and the fifth switching unit is used for switching the working mode to the sleep mode again.
9. The control system according to claim 6, wherein the first switching unit is specifically configured to:
switching from a sleep mode to a working mode according to the first wake-up signal, and acquiring a control authority of the wireless communication module on an input/output interface, wherein the input/output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
10. The control system according to claim 6, wherein the sending unit is specifically configured to:
switching from the working mode to the sleep mode again;
sending a sleep signal to the wireless communication module, so that the wireless communication module enters a corresponding sleep mode according to the sleep signal;
releasing the control authority of the input/output interface to enable the wireless communication module to acquire the control authority of the input/output interface, wherein the input/output interface is as follows: and the input and output interface is connected between the MCU and the wireless communication module.
CN201911377670.4A 2019-12-27 2019-12-27 Control method and system of environment monitoring device Pending CN111007781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911377670.4A CN111007781A (en) 2019-12-27 2019-12-27 Control method and system of environment monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911377670.4A CN111007781A (en) 2019-12-27 2019-12-27 Control method and system of environment monitoring device

Publications (1)

Publication Number Publication Date
CN111007781A true CN111007781A (en) 2020-04-14

Family

ID=70119049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911377670.4A Pending CN111007781A (en) 2019-12-27 2019-12-27 Control method and system of environment monitoring device

Country Status (1)

Country Link
CN (1) CN111007781A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112105041A (en) * 2020-08-17 2020-12-18 漳州立达信光电子科技有限公司 Control method and device for environment adjusting equipment powered by battery and terminal
CN112104995A (en) * 2020-08-05 2020-12-18 中国农业科学院农业资源与农业区划研究所 Mushroom growth environment monitoring equipment and system capable of remotely waking up
CN112566048A (en) * 2020-12-11 2021-03-26 上海宜链物联网有限公司 Event-driven ultra-low power consumption passive sensor data acquisition terminal and method
CN112834020A (en) * 2020-12-31 2021-05-25 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN113155613A (en) * 2021-04-22 2021-07-23 中煤科工集团重庆研究院有限公司 Transmission device and method for transmitting electromagnetic waves through concrete
CN113514327A (en) * 2021-04-22 2021-10-19 中煤科工集团重庆研究院有限公司 Penetrating type wireless stress strain sensor for thick buried layer concrete
CN113611064A (en) * 2021-08-10 2021-11-05 厦门市弘威崇安科技有限公司 Unattended vibration-magnetism-sound sensor node
CN114136265A (en) * 2021-11-30 2022-03-04 中大检测(湖南)股份有限公司 NB-IOT wireless inclinometer measuring system
CN115019494A (en) * 2022-06-02 2022-09-06 武汉领普科技有限公司 Wireless switch, processing method of wireless switch and control system
CN115278586A (en) * 2022-09-30 2022-11-01 宁波中车时代传感技术有限公司 Low-power-consumption wireless data acquisition method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201417142Y (en) * 2009-04-16 2010-03-03 北京华创风云科技有限责任公司 Ultrasonic wave depth detection device based on Zigbee technology
CN207460377U (en) * 2017-10-12 2018-06-05 中傲智能科技(苏州)有限公司 Low-power consumption based on Lora wireless transmissions shakes monitoring system
CN108156651A (en) * 2017-12-25 2018-06-12 北京润科通用技术有限公司 Method for handover control and system between radio listening silence state and transmission state
CN110223496A (en) * 2019-07-09 2019-09-10 杭州博联智能科技股份有限公司 Sensor-based method for realizing low power consumption, device, terminal, medium and system
CN110337139A (en) * 2019-07-18 2019-10-15 河南兵峰电子科技有限公司 A kind of Low-power-consumptiocontrol control method and wireless sensor based on wireless sensor
CN209766595U (en) * 2019-05-17 2019-12-10 北京润科通用技术有限公司 overlength standby device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201417142Y (en) * 2009-04-16 2010-03-03 北京华创风云科技有限责任公司 Ultrasonic wave depth detection device based on Zigbee technology
CN207460377U (en) * 2017-10-12 2018-06-05 中傲智能科技(苏州)有限公司 Low-power consumption based on Lora wireless transmissions shakes monitoring system
CN108156651A (en) * 2017-12-25 2018-06-12 北京润科通用技术有限公司 Method for handover control and system between radio listening silence state and transmission state
CN209766595U (en) * 2019-05-17 2019-12-10 北京润科通用技术有限公司 overlength standby device
CN110223496A (en) * 2019-07-09 2019-09-10 杭州博联智能科技股份有限公司 Sensor-based method for realizing low power consumption, device, terminal, medium and system
CN110337139A (en) * 2019-07-18 2019-10-15 河南兵峰电子科技有限公司 A kind of Low-power-consumptiocontrol control method and wireless sensor based on wireless sensor

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104995A (en) * 2020-08-05 2020-12-18 中国农业科学院农业资源与农业区划研究所 Mushroom growth environment monitoring equipment and system capable of remotely waking up
CN112105041A (en) * 2020-08-17 2020-12-18 漳州立达信光电子科技有限公司 Control method and device for environment adjusting equipment powered by battery and terminal
CN112566048A (en) * 2020-12-11 2021-03-26 上海宜链物联网有限公司 Event-driven ultra-low power consumption passive sensor data acquisition terminal and method
CN112566048B (en) * 2020-12-11 2022-07-08 上海宜链物联网有限公司 Event-driven ultra-low power consumption passive sensor data acquisition terminal and method
CN112834020B (en) * 2020-12-31 2022-10-14 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN112834020A (en) * 2020-12-31 2021-05-25 重庆国际复合材料股份有限公司 Low-power-consumption data acquisition system and method for tray
CN113155613A (en) * 2021-04-22 2021-07-23 中煤科工集团重庆研究院有限公司 Transmission device and method for transmitting electromagnetic waves through concrete
CN113514327A (en) * 2021-04-22 2021-10-19 中煤科工集团重庆研究院有限公司 Penetrating type wireless stress strain sensor for thick buried layer concrete
CN113514327B (en) * 2021-04-22 2023-05-09 中煤科工集团重庆研究院有限公司 Thick buried layer concrete penetrating type wireless stress strain sensor
CN113611064A (en) * 2021-08-10 2021-11-05 厦门市弘威崇安科技有限公司 Unattended vibration-magnetism-sound sensor node
CN114136265A (en) * 2021-11-30 2022-03-04 中大检测(湖南)股份有限公司 NB-IOT wireless inclinometer measuring system
CN115019494A (en) * 2022-06-02 2022-09-06 武汉领普科技有限公司 Wireless switch, processing method of wireless switch and control system
CN115019494B (en) * 2022-06-02 2024-02-06 武汉领普科技有限公司 Wireless switch, processing method and control system of wireless switch
CN115278586A (en) * 2022-09-30 2022-11-01 宁波中车时代传感技术有限公司 Low-power-consumption wireless data acquisition method

Similar Documents

Publication Publication Date Title
CN111007781A (en) Control method and system of environment monitoring device
US20190190271A1 (en) Hybrid power supply method, device, and micro-energy power supply based on micro-energy collection
CN100530046C (en) Ultra low power wake-up circuit
CN110337139B (en) Low-power-consumption control method based on wireless sensor and wireless sensor
CN202758480U (en) Power-saving remote control
CN106427835A (en) Low-power-consumption dormancy circuit of new energy automobile electronic VCU module
CN112616178A (en) Energy consumption management method and device, electronic equipment and storage medium
CN102214846A (en) Method for reducing consumption of battery management system and low-consumption battery management system
CN111044912B (en) Dormancy monitoring system and method
CN202372938U (en) Telequipment
CN202306451U (en) Wireless keyboard with automatic sleeping and awakening functions
CN114167971A (en) Dormancy awakening circuit, automatic walking equipment and awakening method thereof
CN113805507A (en) Low-power consumption electronic switch device and equipment control system
CN112732062B (en) Energy management method and system for lightweight operating system of terminal of Internet of things
CN113380015A (en) Wireless passive sensor and working method of wireless passive controller thereof
CN210468864U (en) Low-power consumption battery management circuit
CN113687711B (en) Terminal wake-up circuit and wake-up method
CN206259869U (en) Temperature measuring equipment and electromagnetic heater
CN215646234U (en) Dormancy awakening circuit based on optical coupling switch
CN209767527U (en) Low-power-consumption realization circuit, WIFI module and remote controller
CN107741865B (en) Standby system capable of self-awakening and standby method
AU2019100309A4 (en) Hybrid power supply method, device, and micro-energy power supply based on micro-energy collection
CN111683398A (en) Low-power-consumption electric energy meter reading method and electric energy meter
CN218273678U (en) Bed-wetting management system
CN106877632B (en) The energy management circuit and energy management method of sleep-awake mode

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414