CN112258807A - Low-power-consumption cover opening alarm with multi-stage alarm and control method - Google Patents

Low-power-consumption cover opening alarm with multi-stage alarm and control method Download PDF

Info

Publication number
CN112258807A
CN112258807A CN202011342641.7A CN202011342641A CN112258807A CN 112258807 A CN112258807 A CN 112258807A CN 202011342641 A CN202011342641 A CN 202011342641A CN 112258807 A CN112258807 A CN 112258807A
Authority
CN
China
Prior art keywords
alarm
angle
calibration
threshold value
state
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
CN202011342641.7A
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.)
Fushui Zhilian Technology Co.,Ltd.
Original Assignee
Fuzhou Deyi Electronic Technology Co ltd
Fushui Zhilian 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 Fuzhou Deyi Electronic Technology Co ltd, Fushui Zhilian Technology Co ltd filed Critical Fuzhou Deyi Electronic Technology Co ltd
Priority to CN202011342641.7A priority Critical patent/CN112258807A/en
Publication of CN112258807A publication Critical patent/CN112258807A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Emergency Alarm Devices (AREA)

Abstract

The invention provides a multi-level alarm low-power-consumption cover opening alarm and a control method, which are characterized by comprising the following steps of: the device comprises an MCU control module, a Hall sensor, a three-axis sensor, a communication module and a battery module, wherein the Hall sensor, the three-axis sensor, the communication module and the battery module are respectively connected with the MCU control module; the Hall sensor is used as an external event trigger switch; the three-axis sensor is used for detecting an angle and providing a wake-up signal for the MCU control module. It has mainly solved the accurate discernment of well lid angle of uncapping, battery continuation of the journey problem. The key point is that a Hall sensor is used for activating equipment and serving as an external event trigger switch, and therefore a low-power-consumption device design scheme is realized; the adoption of the three-axis sensor provides an accurate angle monitoring function.

Description

Low-power-consumption cover opening alarm with multi-stage alarm and control method
Technical Field
The invention relates to the field of intelligent well lids, in particular to a low-power-consumption cover opening alarm with multi-stage alarm and a control method.
Background
The manhole covers are road facilities which are visible in streets and lanes, the number of the manhole covers can be extremely large, attention is paid, and cases of casualties caused by the fact that maintenance personnel cannot repair the manhole covers in time due to the fact that the manhole covers are damaged are compared with other cases, and therefore the technology for monitoring the manhole covers is developed. And the alarm of uncapping of prior art can discern closing and opening of well lid through the sensor module that the angle is relevant, can play the monitoring to the well lid to a certain extent. Meanwhile, the state of the equipment is sent to the server side through communication network modes such as NB-IoT internet of things technology and the like, and relevant information of the well lid is notified to rear-end maintenance personnel. The internet of things technology has the characteristics of wide coverage, large connection, deep coverage and low power consumption.
Present alarm of uncapping through the sensor that the angle is relevant, can accomplish to uncap the well lid and close the lid and detect, but do not have the angle of uncapping that detects out the well lid that can be accurate, if the well lid is opened completely, the drainage of uncapping of small-angle etc. can not clearly and definitely show the state that the well lid was located, increases maintainer's the maintenance degree of difficulty easily, causes the wasting of resources, and more serious is unpredictable's security problem. Meanwhile, the existing cover opening alarm is designed in a sealing mode due to the fact that the outer package is waterproof and moistureproof, the battery is difficult to replace again, the equipment is electrified and operated after being produced and assembled, and a large amount of power consumption can be caused by the equipment in storage, so that the endurance of the equipment after installation is influenced.
Disclosure of Invention
In order to overcome the defects and shortcomings in the prior art, the invention provides a novel multi-level alarming low-power-consumption cover opening alarm and a control method, and mainly solves the problems of accurate identification of a cover opening angle of a well cover and battery endurance. The key point is that a Hall sensor is used for activating equipment and serving as an external event trigger switch, and therefore a low-power-consumption device design scheme is realized; the adoption of the three-axis sensor provides an accurate angle monitoring function.
Based on the device scheme, the automatic calibration operation can be further realized, and meanwhile, an alarm identification scheme is provided, so that multi-stage alarm can be realized.
The technical scheme is as follows:
the utility model provides a low-power consumption alarm that uncaps of multistage warning which characterized in that includes: the device comprises an MCU control module, a Hall sensor, a three-axis sensor, a communication module and a battery module, wherein the Hall sensor, the three-axis sensor, the communication module and the battery module are respectively connected with the MCU control module; the Hall sensor is used as an external event trigger switch; the three-axis sensor is used for detecting an angle and providing a wake-up signal for the MCU control module.
Preferably, the MCU control module adopts STM32L071XXX of ST-means semiconductor; the battery module adopts a lithium-thionyl chloride winding type battery ER 26500M; the Hall sensor adopts TMR 1302; the triaxial sensor adopts LIS2DH 12; the communication module adopts a remote NB-IOT module.
Preferably, fix at the well lid back, and the inclination on well lid place road surface is less than 30.
Preferably, the hall sensor projects an operating area on a shell of the cover opening alarm, and the operating area is used for being matched with the magnet to trigger the hall sensor.
The control method of the low-power-consumption cover opening alarm based on the multi-stage alarm is characterized by comprising the following steps of:
step S1: fixedly mounting the cover opening alarm on the back of the well cover;
step S2: activating the cover opening alarm in an inactivated ultra-low power consumption state to a delivery state by adopting a magnet, and starting the functions of angle identification and data communication; and putting the well lid back to the original position;
step S3: triggering calibration operation of the cover opening alarm by adopting a magnet, and setting a pulse signal gravity acceleration parameter of the three-axis sensor to enable the three-axis sensor to generate an awakening signal when an angle changes;
step S4: when the MCU receives the wake-up signal, passively waking up and reading the data of the three-axis sensor;
step S5: the MCU processes the data of the three-axis sensor, converts the data into a deviation angle and judges whether an alarm angle threshold value is reached, if not, the step returns to the step S14, and if so, the step S4 is executed;
step S6: and the MCU transmits alarm information to the remote terminal through the communication module.
Preferably, in step S3, the calibration operation specifically includes the following steps:
step S31: starting calibration operation is triggered by the operation that the magnet is close to the Hall sensor for more than preset time;
step S32: the MCU acquires the component of an xyz axis at the starting moment through the three-axis sensor;
step S33: in the calibration process, the three-axis sensor continuously acquires the component of the xyz axis, the MCU and the component data acquired in the step S32 calculate the included angle between the z axis and the gravity acceleration by using a vector point multiplication algorithm; when the included angle between the angle and the angle when the calibration is started reaches the set angle, stopping collecting, or else, continuing to execute the step S33 until the calibration time is over;
step S34: after the calibration time is over, components of the xyz axis are continuously acquired, whether an included angle obtained in the calibration process reaches a set angle or not is calculated by using a point multiplication algorithm, if the set angle is met, the vector in the step S33 is used as a calibration initial position, and if the set angle is not reached, the vector in the step S32 is used as the calibration initial position;
step S35: calculating the information of the upturning axial direction by using the vector of the calibration starting position and the vector at the end of calibration and using a cross multiplication algorithm, and simultaneously recording the information of the standing angle; in step S5, whether or not the alarm angle threshold is reached is determined by the deviation angle from the direction of the flip-up axis.
Preferably, when the calibration is abnormal, the remote terminal sends a calibration instruction to the MCU, the MCU collects the current xyz axis component through the three-axis sensor, and the current xyz axis component and the xyz axis component recorded when the external trigger calibration starts are calculated by using a cross-product algorithm, and the information of the standing angle is recorded to complete the calibration.
Preferably, in step S5, the determination of the alarm angle threshold is implemented by combining interruption and round robin; the alarm angle threshold is divided into three opening states: the alarm angle control method comprises the following steps of setting an angle threshold value from 0 degree to a first alarm angle threshold value as no alarm, setting a first alarm angle threshold value to a second alarm angle threshold value as a first-level alarm, setting a second-level alarm when the angle threshold value is larger than the second alarm angle threshold value, and setting the first alarm angle threshold value and the second alarm angle threshold value as configurable parameters.
Preferably, the model of the MCU is STM32 series; step S5 specifically includes the following steps:
step S51: when the MCU is awakened by the interrupt trigger of the three-axis sensor, the interrupt is closed, a round-robin mode is adopted, the acquisition is set once every 10ms, a Stream mode with an embedded FIFO is used, 32 data are taken in each group, 5 data at the head and the tail are removed, and the average angle is calculated and used as the current opening angle;
step S52: setting the current manhole cover to be in a non-alarm state or a primary alarm state or a secondary alarm state according to the opening angle obtained in the step S51: if the alarm is in the no-alarm state, clearing the first-level alarm and the second-level alarm identification; if the alarm is in the first-level alarm state, clearing the no-alarm and second-level alarm marks; if the alarm is in the second-level alarm, only clearing the alarm-free identification; respectively recording the identified initial time for each state;
step S53: repeating step S52 until the state is considered stable when in a mode for more than 5 seconds; if the cover is in the non-alarm state and the angle is smaller than the first alarm angle threshold value, the cover is considered to be in the cover closing state, and two interruption threshold values of +/-the first alarm angle threshold value are set; if the angle is not in the alarm state but the angle is in the first alarm angle threshold value < beta < second alarm angle threshold value, setting the angle as a primary alarm interruption threshold value; if the alarm is in the first-level alarm, setting a second-level alarm interruption threshold value; if the alarm is in the second-level alarm, a first-level alarm interruption threshold value is set, and an interruption function is started.
Preferably, if the current state is a secondary alarm state or no alarm state, the round robin is not needed, and the interruption is waited; if the alarm is in the first-level alarm state, adopting Stream mode data circulating FIFO every 30 seconds to assist in judging whether to close, and adopting interruption to judge whether to enter a second-level alarm state.
The invention and the preferable scheme thereof can realize that the equipment runs at low power consumption in the stock state, and activates the equipment in a non-contact way through the Hall sensor when being installed and deployed, so that the equipment can carry out communication processing. The purpose of saving power consumption is achieved to a certain extent.
It can realize multistage warning, more can embody the state of current well lid, uses the characteristic of triaxial sensor (accelerator), through accurate warning judgement algorithm, can carry out accurate judgement to the angle of uncapping, realizes the discernment of multistage warning, can judge that the well lid is at present to open entirely or state such as drainage of uncapping.
The automatic calibration operation of equipment can be realized, abnormal equipment can be corrected through the cooperation with a server platform end or other remote terminals, and the equipment can always acquire the correct cover opening angle.
Drawings
The invention is described in further detail below with reference to the following figures and detailed description:
FIG. 1 is a schematic diagram of the overall structure of an embodiment of the present invention;
FIG. 2 is a schematic illustration of the location of the operating area of an embodiment of the present invention;
FIG. 3 is a perspective view of an embodiment of the present invention;
FIG. 4 is a schematic circuit diagram 1 of an embodiment of the present invention;
FIG. 5 is a schematic circuit diagram of an embodiment of the present invention, FIG. 2;
fig. 6 is a schematic circuit diagram 3 according to an embodiment of the present invention.
Detailed Description
In order to make the features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail as follows:
as shown in fig. 1, the apparatus of the present embodiment mainly includes: the MCU control module is connected with the CU control module, and the CU control module comprises a Hall sensor, a three-axis sensor, a communication module and a battery module which are respectively connected with the MCU control module; the Hall sensor is used as an external event trigger switch; the three-axis sensor is used for detecting an angle and providing a wake-up signal for the MCU control module.
The MCU control module used in the embodiment is STM32L071XXX of ST intention semiconductor, the chip is a microcontroller based on ARM Cortex M0+ high performance and ultra-low power consumption, and has rich peripherals such as 128KB FLASH, 6KB internal EEPROM, ADC and the like, thereby completely meeting the requirements of the embodiment and carrying out control management on each peripheral module. Meanwhile, the characteristic of ultra-low power consumption meets the requirement of a low-power consumption device.
The battery module used in the embodiment is a lithium-thionyl chloride wound battery ER26500M, which has a 6Ah capacity, a wide temperature range of-60 degrees to 85 degrees, a maximum continuous discharge current of 1000mA, a maximum pulse capacity of 2000mA, a self-discharge rate lower than 3%, excellent performance capable of supporting the power requirement of a communication module, and a high capacity of 6Ah capable of guaranteeing the endurance requirement of the equipment for running for many years.
The hall sensor used in this embodiment is a sensor TMR1302, which is an all-pole magnetic switch that integrates a Tunnel Magnetoresistive (TMR) sensor and a CMOS technology, is developed for high-sensitivity, high-speed, low-power consumption, and high-precision applications, and becomes an ideal choice for low-power consumption and high-performance applications with low operating voltage, microampere-level supply current, high response frequency, and a wide operating temperature range. The sensor is used as an external event trigger switch, and is in an interrupted communication mode with the MCU, when triggered by an external magnetic field, the sensor generates an interrupt signal for waking up the MCU, and controls the switching of equipment states, calibration processing and other event processing. As shown in fig. 2, the hall sensor projects an operating area on the housing of the cover opening alarm, and the operating area is used for being matched with the magnet to trigger the hall sensor.
The tri-axial accelerator (sensor) used in this embodiment is LIS2DH12, which is an ultra low power, high performance tri-axial accelerator capable of measuring acceleration output data rates from 1 hz to 5.3 khz, and can be configured to generate interrupt signals for 2 independent inertial wake-up/fall events. The performance of the ultra-low power consumption meets the requirement of the embodiment, and meanwhile, the device can be awakened by the interrupt signal, so that conditions are provided for reducing the overall power consumption of the device. This sensor is connected with MCU interrupt IO mouth, sets up certain angle of awakening up, when triggering the angle of awakening up, provides the pulse of awakening up for MCU awakens up, makes sensor and MCU communicate through I2C interface simultaneously, reads FIFO data among the module and carries out data judgment and handles.
The communication module used in this embodiment is a remote NB-IOT module. The module is an NB-IOT module based on the narrow-band Internet of things technical standard of a cellular network, and has the advantages of supporting mass connection, having deep coverage capability, ultralow power consumption, low cost, stability and reliability. Especially, the characteristic of ultra-low power consumption, an ultra-long DRX (discontinuous reception) power saving technology and a PSM power saving mode are introduced to be selected. The ultra-low power consumption characteristic meets the requirement of the embodiment. The MCU communicates with the communication module through a serial port, data is sent and received, data processing is finished, and the communication module can quickly enter a PSM power-saving state.
As shown in fig. 4 to 6, the present embodiment provides a schematic circuit diagram of a scheme of the apparatus constituting the present embodiment based on the above electronic components.
As shown in fig. 3, the circuit components provided by the present invention are installed in a housing for being integrally fixed on the back of the manhole cover, and the inclination angle of the road surface where the manhole cover is located is less than 30 °. It is equipped with the following notes:
the installation region and the stores pylon on the well lid need clean before the installation, and the installation region is level and smooth and does not influence the rust etc. of pasting the fastness.
The situation that the devices cannot be normally used due to connection failure caused by poor network is avoided according to the situation that the coverage of the NB-IoT network is good.
Support fixed modes such as screw fixation, welding, glue paste, can select suitable fixed mode according to the material and the type of well lid.
When installed, the device was locked to the hanger using M4 x 8 round head screws. Firstly, a steel wire wheel is used for polishing the area of the fixing equipment on the back of the well lid as smooth as possible, so that the surface is clean and free of dirt and rust. Glue is smeared on the hanging rack, attention is paid to the fact that the glue cannot be stuck on the equipment and the screw hole, and otherwise, the equipment cannot be taken out subsequently. The equipment is adhered to the ground well lid area, and the periphery of the hanging frame is reinforced by strong glue. And finally, placing a 3000 gauss magnet (preferably adopting a permanent magnet) in an equipment operation area for more than 5 seconds until the indicator lamp is turned on, taking away the magnet after the indicator lamp is turned on, and closing the well cover.
Regarding the mounting position selection: the equipment is installed in the central area on the back of the well lid, and if the central area is occupied, the equipment is installed as close to the central area as possible.
The details of the control method of this embodiment are more clearly understood through the following flow descriptions, and the main flow is as follows:
1) when the equipment is not installed and deployed in production, the equipment is in a stock state, and each module is in a low power consumption state, so that the equipment is in an ultra-low power consumption state when not installed, when the cover opening alarm is to be installed and deployed, the magnet is used for carrying out strong magnetic activation on the Hall sensor for multiple times, namely when the MCU receives a pulse signal of the Hall sensor, the triggering equipment is activated to a factory state, and the angle identification, data communication and the like can be carried out in the factory state;
2) when the alarm is installed, the magnet is used for calibrating the long strong magnetic trigger equipment of the Hall sensor, the alarm can correctly read the relevant parameters of the triaxial accelerator through the calibration operation, the angle is calculated, and meanwhile, the pulse signal gravity acceleration parameters of the triaxial accelerator are set, so that the triaxial accelerator can generate a second impact signal to wake up the equipment when the angle changes;
3) when the MCU receives the alarm pulse signal, passively awakening;
4) the MCU reads the sensor data of the triaxial accelerator;
5) converting data of each read sensor into an angle, judging the angle through an alarm mechanism algorithm, if the angle is identified by an alarm angle, triggering a primary alarm angle threshold or triggering a secondary alarm angle threshold, executing the step 6), and if not, returning to the step 3) to continue executing;
6) the MCU sends primary or secondary alarm information to the remote server platform through the NB communication module;
7) the remote server platform can control the on-line cover opening alarm, when the equipment calibration is abnormal, a recalibration command can be issued through the platform, and the abnormality occurring during calibration can be corrected.
The calibration operation principle described above is illustrated as follows:
(1) triggering and starting calibration operation by long-time Hall operation through an external magnet;
(2) the MCU acquires the component of an xyz axis at the starting moment through the three-axis sensor;
(3) in the calibration process, the three-axis sensor continuously acquires the component of the xyz axis and the component in the step (2), the vector point multiplication algorithm is used for calculating the included angle between the z + axis and the gravitational acceleration, the acquisition is stopped when the included angle is identified to reach the set angle when the calibration is started, and otherwise, the step (3) is continuously executed;
(4) when the calibration time is up, continuously acquiring the component of the xyz axis, calculating whether an included angle obtained in the calibration process reaches a set angle by using a point multiplication algorithm, if the set angle is met, using the vector in the step (3) as a calibration initial position, and if the set angle is not reached, using the vector in the step (2) as the initial position;
(5) and calculating the information of the upturned axial direction by using the vector of the calibration starting position and the vector at the end of calibration and using a cross multiplication algorithm, and simultaneously recording the information of a standing angle and the like. Subsequent cover opening and closing operations can be conducted in the same or different axial directions, and whether the cover is opened or closed can be judged.
The above-described platform calibration operating principle is illustrated as follows:
(1) the server platform receives the abnormal calibration information, and performs a configuration recalibration command, and the command can take effect when the next communication is carried out;
(2) the uncapping alarm receives a recalibration command and starts recalibration;
(3) the MCU acquires the current xyz-axis component through the triaxial accelerator, the component and the xyz-axis component recorded when the external trigger calibration starts are calculated by using a cross multiplication algorithm, and meanwhile, information such as standing angles and the like is recorded to finish calibration.
The principle of the above alarm recognition is explained as follows:
and on the basis of the completion of the calibration, the calibration is realized by adopting a mode of combining interruption and round robin. According to whether the alarm information is reported or not, the method is divided into three opening states, which are respectively: no alarm (0-15 degrees), primary alarm (15-60 degrees) and secondary alarm (>60 degrees), wherein the currently limited 15 degrees and 60 degrees are configurable parameters.
(1) And when the MCU is awakened by the interrupt trigger of the triaxial accelerator, the interrupt is closed, the round-robin mode is adopted, the acquisition is set once every 10ms, the Stream mode of embedded FIFO is used, 32 data are taken in each group, the head and the tail are removed for 5 times respectively, and the average angle is calculated and used as the current opening angle.
(2) And setting whether the current well lid is in a non-alarm state or a primary alarm state or a secondary alarm state according to the opening angle obtained in the last step. If the alarm is in the no-alarm state, the primary alarm and the secondary alarm identification are required to be cleared; if the alarm is in the first-level alarm state, the no-alarm and second-level alarm marks need to be cleared; if the alarm is in the second-level alarm, only the non-alarm mark is cleared. Each state also needs to record the recognized starting time respectively.
(3) Repeating step (2) until the state is considered stable when in a mode for more than 5 seconds. If the cover is in the non-alarm state and the angle is smaller than 15 degrees, the cover is considered to be in the cover closing state, and two interruption threshold values of +/-15 degrees are set; if the alarm is not given, but the angle is 15 degrees < beta <60 degrees, setting a primary alarm interruption threshold value; if the alarm is in the first-level alarm, setting a second-level alarm interruption threshold value; if the alarm is in the second-level alarm, a first-level alarm interruption threshold value is set, and an interruption function is started.
If the current state is in a secondary alarm state or no alarm state, the round robin is not needed, and the interruption is waited. If the alarm is in the first-level alarm state, adopting Stream mode data circulating FIFO every 30 seconds to assist in judging whether to close, and adopting interruption to judge whether to enter a second-level alarm state.
The present invention is not limited to the above preferred embodiments, and any person can obtain other multi-stage alarm with low power consumption and cover-opening alarm and control method, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (10)

1. The utility model provides a low-power consumption alarm that uncaps of multistage warning which characterized in that includes: the device comprises an MCU control module, a Hall sensor, a three-axis sensor, a communication module and a battery module, wherein the Hall sensor, the three-axis sensor, the communication module and the battery module are respectively connected with the MCU control module; the Hall sensor is used as an external event trigger switch; the three-axis sensor is used for detecting an angle and providing a wake-up signal for the MCU control module.
2. The low-power-consumption cover-opening alarm with the multi-level alarm according to claim 1, which is characterized in that: the MCU control module adopts STM32L071XXX of ST-method semiconductor; the battery module adopts a lithium-thionyl chloride winding type battery ER 26500M; the Hall sensor adopts TMR 1302; the triaxial sensor adopts LIS2DH 12; the communication module adopts a remote NB-IOT module.
3. The low-power-consumption cover-opening alarm with the multi-level alarm according to claim 1, which is characterized in that: fix at the well lid back, and the inclination on well lid place road surface is less than 30.
4. The low-power-consumption cover-opening alarm with the multi-level alarm according to claim 1, which is characterized in that: the Hall sensor is projected with an operation area on a shell of the cover opening alarm, and the operation area is used for being matched with the magnet to trigger the Hall sensor.
5. The control method of the low-power-consumption cover opening alarm with the multi-level alarm according to any one of claims 1 to 4, characterized by comprising the following steps of:
step S1: fixedly mounting the cover opening alarm on the back of the well cover;
step S2: activating the cover opening alarm in an inactivated ultra-low power consumption state to a delivery state by adopting a magnet, and starting the functions of angle identification and data communication; and putting the well lid back to the original position;
step S3: triggering calibration operation of the cover opening alarm by adopting a magnet, and setting a pulse signal gravity acceleration parameter of the three-axis sensor to enable the three-axis sensor to generate an awakening signal when an angle changes;
step S4: when the MCU receives the wake-up signal, passively waking up and reading the data of the three-axis sensor;
step S5: the MCU processes the data of the three-axis sensor, converts the data into a deviation angle and judges whether an alarm angle threshold value is reached, if not, the step returns to the step S14, and if so, the step S4 is executed;
step S6: and the MCU transmits alarm information to the remote terminal through the communication module.
6. The method for controlling the multi-level alarm low-power-consumption cover-opening alarm device according to claim 5, wherein in the step S3, the calibration operation specifically comprises the following steps:
step S31: starting calibration operation is triggered by the operation that the magnet is close to the Hall sensor for more than preset time;
step S32: the MCU acquires the component of an xyz axis at the starting moment through the three-axis sensor;
step S33: in the calibration process, the three-axis sensor continuously acquires the component of the xyz axis, the MCU and the component data acquired in the step S32 calculate the included angle between the z axis and the gravity acceleration by using a vector point multiplication algorithm; when the included angle between the angle and the angle when the calibration is started reaches the set angle, stopping collecting, or else, continuing to execute the step S33 until the calibration time is over;
step S34: after the calibration time is over, components of the xyz axis are continuously acquired, whether an included angle obtained in the calibration process reaches a set angle or not is calculated by using a point multiplication algorithm, if the set angle is met, the vector in the step S33 is used as a calibration initial position, and if the set angle is not reached, the vector in the step S32 is used as the calibration initial position;
step S35: calculating the information of the upturning axial direction by using the vector of the calibration starting position and the vector at the end of calibration and using a cross multiplication algorithm, and simultaneously recording the information of the standing angle; in step S5, whether or not the alarm angle threshold is reached is determined by the deviation angle from the direction of the flip-up axis.
7. The control method of the multi-level alarm low-power-consumption cover opening alarm device according to claim 6, characterized in that: when the calibration is abnormal, the remote terminal sends a calibration instruction to the MCU, the MCU acquires the component of the current xyz axis through the three-axis sensor, the component and the component of the xyz axis recorded when the external trigger calibration starts are calculated by using a cross multiplication algorithm, and meanwhile, the information of the standing angle is recorded to finish the calibration.
8. The control method of the multi-level alarm low-power-consumption cover opening alarm device according to claim 5, characterized in that: in step S5, the alarm angle threshold is determined by a combination of interruption and round robin; the alarm angle threshold is divided into three opening states: the alarm angle control method comprises the following steps of setting an angle threshold value from 0 degree to a first alarm angle threshold value as no alarm, setting a first alarm angle threshold value to a second alarm angle threshold value as a first-level alarm, setting a second-level alarm when the angle threshold value is larger than the second alarm angle threshold value, and setting the first alarm angle threshold value and the second alarm angle threshold value as configurable parameters.
9. The control method of the multi-level alarm low-power-consumption cover opening alarm device according to claim 8, characterized in that: the model of the MCU is STM32 series; step S5 specifically includes the following steps:
step S51: when the MCU is awakened by the interrupt trigger of the three-axis sensor, the interrupt is closed, a round-robin mode is adopted, the acquisition is set once every 10ms, a Stream mode with an embedded FIFO is used, 32 data are taken in each group, 5 data at the head and the tail are removed, and the average angle is calculated and used as the current opening angle;
step S52: setting the current manhole cover to be in a non-alarm state or a primary alarm state or a secondary alarm state according to the opening angle obtained in the step S51: if the alarm is in the no-alarm state, clearing the first-level alarm and the second-level alarm identification; if the alarm is in the first-level alarm state, clearing the no-alarm and second-level alarm marks; if the alarm is in the second-level alarm, only clearing the alarm-free identification; respectively recording the identified initial time for each state;
step S53: repeating step S52 until the state is considered stable when in a mode for more than 5 seconds; if the cover is in the non-alarm state and the angle is smaller than the first alarm angle threshold value, the cover is considered to be in the cover closing state, and two interruption threshold values of +/-the first alarm angle threshold value are set; if the angle is not in the alarm state but the angle is in the first alarm angle threshold value < beta < second alarm angle threshold value, setting the angle as a primary alarm interruption threshold value; if the alarm is in the first-level alarm, setting a second-level alarm interruption threshold value; if the alarm is in the second-level alarm, a first-level alarm interruption threshold value is set, and an interruption function is started.
10. The control method of the multi-level alarm low-power-consumption cover opening alarm device according to claim 9, characterized in that: if the current state is in a secondary alarm state or no alarm state, the round robin is not needed, and the interruption is waited; if the alarm is in the first-level alarm state, adopting Stream mode data circulating FIFO every 30 seconds to assist in judging whether to close, and adopting interruption to judge whether to enter a second-level alarm state.
CN202011342641.7A 2020-11-25 2020-11-25 Low-power-consumption cover opening alarm with multi-stage alarm and control method Pending CN112258807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011342641.7A CN112258807A (en) 2020-11-25 2020-11-25 Low-power-consumption cover opening alarm with multi-stage alarm and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011342641.7A CN112258807A (en) 2020-11-25 2020-11-25 Low-power-consumption cover opening alarm with multi-stage alarm and control method

Publications (1)

Publication Number Publication Date
CN112258807A true CN112258807A (en) 2021-01-22

Family

ID=74225136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011342641.7A Pending CN112258807A (en) 2020-11-25 2020-11-25 Low-power-consumption cover opening alarm with multi-stage alarm and control method

Country Status (1)

Country Link
CN (1) CN112258807A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114061667A (en) * 2021-11-22 2022-02-18 广东电网有限责任公司 Cable trench detection system and method
CN114519930A (en) * 2022-02-23 2022-05-20 西安中星测控有限公司 Activation method of intelligent well lid monitoring terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114061667A (en) * 2021-11-22 2022-02-18 广东电网有限责任公司 Cable trench detection system and method
CN114519930A (en) * 2022-02-23 2022-05-20 西安中星测控有限公司 Activation method of intelligent well lid monitoring terminal
CN114519930B (en) * 2022-02-23 2023-04-28 西安中星测控有限公司 Activation method of intelligent well lid monitoring terminal

Similar Documents

Publication Publication Date Title
CN112258807A (en) Low-power-consumption cover opening alarm with multi-stage alarm and control method
US6753778B2 (en) Orientation/time sensing alarm device for golf club
CN205494329U (en) Intelligence is saved oneself and is led blind walking stick
CN103399483B (en) Method and device for power management of wearable device
US7245230B2 (en) Dual magnetic field sensor unit
CN111806297A (en) Sleeping and awakening system and method of vehicle-mounted battery management system
EP3091553B1 (en) Circuit breaker sensor
RU2010128612A (en) FAST CHARGING AND POWER SUPPLY COMPLETED WITH BATTERY POWER ANALYTES METER IN A FLUID ENVIRONMENT
CN108663623B (en) Method for calculating electric quantity of lithium-manganese disposable battery in ultra-long standby tracker and tracker
CN213582522U (en) Low-power-consumption cover opening alarm with multi-stage alarm
EP3462280A2 (en) Motion triggered system power up
CN106530819A (en) Vehicle detection device and detection method
CN207037104U (en) A kind of vehicle-mounted antitheft positioning terminal
CN210342090U (en) Intelligent outdoor fire hydrant
CN104200612A (en) In-car baby detecting and alarming device
CN109693682A (en) A kind of skate monitoring method, device and its skate
CN204808545U (en) Human body detection device that tumbles based on dual sensor
US20220283230A1 (en) Battery capacity indicator
US20130076530A1 (en) Portable device environmental monitoring apparatus and method
CN114519930B (en) Activation method of intelligent well lid monitoring terminal
CN116295633A (en) Well lid state monitoring method based on Hall effect and non-contact ranging
JP5365549B2 (en) Satellite signal receiving device and control method of satellite signal receiving device
CN111915826A (en) Intelligent door and window opening and closing detection alarm device and detection method thereof
CN106963604A (en) One kind automatically updates human-computer dialogue intelligent blind-guiding device
CN218241052U (en) Safety protection warning terminal equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211224

Address after: 350015 floor 1, building 1, No. 1, Chashan Road, Mawei District, Fuzhou City, Fujian Province (in the pilot Free Trade Zone)

Applicant after: Fushui Zhilian Technology Co.,Ltd.

Address before: No.16, Xingye West Road, high tech park, Mawei District, Fuzhou City, Fujian Province, 350015

Applicant before: Fushui Zhilian Technology Co.,Ltd.

Applicant before: Fuzhou Deyi Electronic Technology Co., Ltd