CN116887210A - Working method of wireless sensor - Google Patents

Working method of wireless sensor Download PDF

Info

Publication number
CN116887210A
CN116887210A CN202310942931.2A CN202310942931A CN116887210A CN 116887210 A CN116887210 A CN 116887210A CN 202310942931 A CN202310942931 A CN 202310942931A CN 116887210 A CN116887210 A CN 116887210A
Authority
CN
China
Prior art keywords
time
wireless
mode
sleep
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
CN202310942931.2A
Other languages
Chinese (zh)
Inventor
孙海波
安华
周键斌
李雅静
叶雪智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tongquan Technology Jiaxing Co ltd
Original Assignee
Tongquan Technology Jiaxing 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 Tongquan Technology Jiaxing Co ltd filed Critical Tongquan Technology Jiaxing Co ltd
Priority to CN202310942931.2A priority Critical patent/CN116887210A/en
Publication of CN116887210A publication Critical patent/CN116887210A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0235Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a power saving command
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a working method of a wireless sensor, which comprises the following steps of S1: in the sleep state, the MCU and the wireless transmission module are in a low-power sleep state, the default wireless sensor works in a sleep period of keeping the wake-up of the T1 time after each sleep time T0, and if the wake-up signal of the wireless gateway is received in the T1 time, the standby state of the step S2 is entered, otherwise, the sleep is continued and the step S1 is repeated. The wireless sensor working method disclosed by the invention has multiple working modes, more perfect functions and more application scenes; the device has a plurality of working modes including a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, and can meet a plurality of modes such as short-time continuous test, long-time period monitoring, threshold trigger acquisition and the like.

Description

Working method of wireless sensor
Technical Field
The invention belongs to the technical field of wireless sensor state monitoring, and particularly relates to a wireless sensor working method.
Background
Compared with the traditional wired test technology, the wireless sensor does not need wiring, is fast to install, is flexible and convenient to use, and is more and more widely applied in the application scene of inconvenient wiring of a rotating or moving platform, such as a gear box, a fan blade, a roller coaster, a crane, a vehicle-mounted transportation test and the like. The traditional wired sensor generally has only a state sensing function, but the wireless sensor has the functions of data acquisition, wireless transmission, battery power supply, data processing and the like besides the state sensing function, and is also widely applied in the industrial field. Different from the traditional wired sensor, the wireless sensor has the functions of CPU and wireless transmission, and embedded programs are internally operated, so that some intelligent working methods can be realized according to actual needs.
The wireless intelligent sensor is generally powered by a rechargeable battery or a disposable lithium battery, and in order to improve the endurance time of the wireless sensor, the current wireless intelligent sensor generally adopts a timing sampling method. In some test environments, it is desirable that the wireless sensor has a continuous acquisition function, and fully acquires all data under a certain working condition, and the acquisition time is generally different from a few minutes to a few hours. In some severe environment application scenarios, it is not desirable to collect data immediately after the sensor is deployed, but rather to start the collection after counting down for a period of time. In some equipment vibration state monitoring application scenarios, the user does not pay attention to the data of smaller vibration, but hopes to adopt a triggering acquisition method, namely when the vibration magnitude reaches a set threshold value, the wireless intelligent sensor starts to acquire a section of data with a preset length, and when the equipment state is monitored, people pay attention to some large vibration events, and the large vibration events can better reflect the health condition of the equipment, so that timely vibration event triggering is very useful. However, in the conventional industry, the main controller of the wireless sensor periodically reads the data of the sensor to judge whether the trigger threshold is reached, the method needs the participation of the main controller, the power consumption is high, meanwhile, the periodic reading mode may miss some instant vibration events, and if the reading frequency is increased, the battery power consumption is further challenged.
Accordingly, the above problems are further improved.
Disclosure of Invention
The invention mainly aims to provide a wireless sensor working method which has a plurality of working modes, more perfect functions and more application scenes; the device has a plurality of working modes including a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, and can meet a plurality of modes such as short-time continuous test, long-time period monitoring, threshold trigger acquisition and the like.
In order to achieve the above object, the present invention provides a working method of a wireless sensor, wherein the state of the wireless sensor comprises sleep, standby, parameter setting and acquisition, the wireless sensor comprises an MCU, a wireless transmission module, a first acceleration sensor, a second acceleration sensor and a storage module, and the working method comprises the following steps:
step S1: in the sleep state, the MCU and the wireless transmission module are in a low-power sleep state, the default wireless sensor works in a sleep period of keeping a wake-up of a T1 time after each sleep time of T0, and if a wake-up signal of the wireless gateway is received in the T1 time, the MCU and the wireless transmission module enter a standby state of the step S2, otherwise, the MCU and the wireless transmission module continue to enter sleep and repeat the step S1;
step S2: the MCU and the wireless transmission module keep working state in standby state (after the wireless sensor is awakened), the MCU and the wireless transmission module respond to each instruction from the wireless gateway at any time in the state, if a dormancy instruction is received or no instruction exists in the elapsed time T2, the MCU and the wireless transmission module enter the dormancy state again, and if a parameter setting instruction is received, the MCU and the wireless transmission module enter the parameter setting state of the step S3;
step S3: in the parameter setting state, the user remotely controls parameters of the wireless sensor including a measuring range K, a sampling rate N, a filtering parameter L, a working mode M0, a countdown time T3, a period T4, a period duration T5, a trigger threshold Z0 and a trigger duration T6 through a wireless gateway, if an acquisition starting instruction is received, the acquisition state of the step S4 is entered, and if a dormancy instruction is received or no instruction exists in the elapsed time T2, the dormancy state is re-entered;
step S4: the wireless sensor works according to the set working modes including a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, if an instruction for ending acquisition is received in the working process, the wireless sensor enters a standby state of the step S2, and otherwise, the wireless sensor always works in the mode.
As a further preferable technical solution of the above technical solution, step S4 is specifically implemented as the following steps:
s4.1: in the normal working mode, the wireless sensor is in a continuous acquisition state (through a first acceleration sensor), continuous data acquisition is carried out at a sampling rate N, real-time wireless transmission or data storage is carried out on acquired data (through a storage module), and in the mode, if a midway wireless gateway is powered off, the wireless sensor stops acquisition after continuing to acquire T2 time, and the sleep state of the step S1 is entered;
s4.2: in the silence mode, the wireless sensor is in a continuous acquisition state (through the first acceleration sensor), in the mode, if the wireless gateway is powered off halfway, after the wireless sensor continues to acquire the T2 time, the wireless sensor turns off the wireless transmission module, keeps the radio silence and does not transmit data wirelessly any more, but continues to acquire and store the data in the storage module (in the mode, certain energy can be saved, and the measured data cannot be stolen by other receivers, so that the radio is prevented from being leaked);
s4.3: in the countdown mode, after receiving a command for starting acquisition, the wireless sensor sleeps and starts to start a timer, and after the timer reaches a set countdown time T3, the wireless sensor enters a continuous acquisition state (through a first acceleration sensor) and keeps radio silent and does not transmit data wirelessly, but continues to acquire and store the data in a storage module;
s4.4: in the periodic mode, after receiving a command for starting acquisition, the wireless sensor continuously acquires data of T5 time (through the first acceleration sensor) after each sleep time T4, wirelessly transmits the data and stores the data into the storage module;
s4.5: in the triggering mode, the wireless sensor enters a dormant state after receiving a command for starting acquisition, waits for a triggering event of a second acceleration sensor, (the triggering threshold is set by a user and is provided with a plurality of gears such as 50mg, 100mg, 200mg, 300mg, … … g, 4g and the like, the second vibration sensor is a low-power-consumption vibration sensor), and generates a high-level signal after the triggering threshold is reached, so as to wake up the MCU, thereby driving the first acceleration sensor to acquire (high-precision data) data in the time of T6;
s4.6: in the period+trigger mode, the wireless sensor responds to the trigger mode at the same time of period acquisition, enters a dormant state after receiving an acquisition starting command, continuously acquires data in a T5 time after each dormant time is T4 time, wirelessly transmits the data and stores the data into a storage module;
the sleep is also responded to the trigger event of the second acceleration sensor, and after the trigger threshold is reached, a high-level signal is generated to wake up the MCU, so that the first acceleration sensor is driven to collect (high-precision data) data of the time T6.
As a further preferable technical scheme of the above technical scheme, step S4.4 is specifically implemented as:
in the period mode, the MCU enters a sleep state, the first acceleration sensor and the analog conditioning circuit are turned off, the second acceleration sensor is in the sleep mode, the wake-up of the T1 time is kept every sleep T0 time during the sleep of the MCU, and the counter Ns is accumulated to be 1;
if the counter Ns multiplied by T0 in the sleep time T0 is more than or equal to T4, the timing period comes, so that the MCU is awakened, a first acceleration sensor and a simulated conditioning circuit are started, high-precision data generated by the first acceleration sensor are collected, transmitted and stored, and after the data in the time T5 is collected, the MCU continues to enter the sleep state;
(periodically, in order to avoid that the wireless sensor is always in the dead loop state and does not respond to other instructions), during the sleep period, the MCU and the wireless transceiver module are in a receiving state when the wireless sensor is awakened for a time T1 every sleep time T0, and enter a standby state and exit a periodic mode if the awakening signal from the wireless gateway is received in the time, wherein the wireless sensor keeps relatively low power consumption in the time T4, only collects and transmits data in the time T5, and has higher power consumption.
As a further preferable embodiment of the foregoing embodiment, step S5 is specifically implemented as:
(to avoid that the wireless sensor is always in the dead loop state and no other instructions are responded), during the dormancy period, the wake-up of the T1 time is kept every dormancy T0 time, at this time, the MCU and the wireless transceiver module are in the receiving state, if the wake-up signal from the wireless gateway is received in this time, the MCU and the wireless transceiver module enter the standby state, and exit the trigger mode.
As a further preferable embodiment of the foregoing embodiment, step S6 is specifically implemented as:
if the second acceleration sensor does not reach the trigger level, during the sleep period of the MCU, keeping the awakening of the T1 time every sleep time T0, accumulating 1 by the counter Ns, if the counter Ns multiplied by T0 of the sleep time T0 is more than or equal to T4, indicating that the timing period arrives, thus awakening the MCU, starting the first acceleration sensor and the analog conditioning circuit, collecting high-precision data generated by the first acceleration sensor, transmitting and storing the high-precision data, and continuously entering the sleep state of the MCU after starting to collect the data of the time T5 (repeated cycles);
the MCU and the wireless transceiver module are in a receiving state when the wireless sensor is in the dead loop state and does not respond to other instructions, and if the wireless sensor is in the dead loop state, the wireless sensor is in the standby state and exits the periodic mode after the wireless sensor is in the receiving state and the wireless transceiver module is in the receiving state after each sleep time T0 time is in the sleep period.
The invention has the beneficial effects that:
1. the system has multiple working modes, more perfect functions and more application scenes. A wireless sensor working method comprises a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, and can meet various modes such as short-time continuous test, long-time period monitoring, threshold trigger acquisition and the like.
2. In the triggering mode, the acceleration sensor structure of the first acceleration sensor and the second acceleration sensor is adopted, so that lower power consumption is achieved. The traditional wireless sensor triggering scheme is as follows: only one acceleration sensor is adopted, the MCU is required to wake up periodically and collect acceleration data, after the vibration magnitude reaches a certain set threshold value, the MCU formally starts to collect a section of data, the intervention of the MCU is required in the middle, the power consumption is high, and the periodic inquiry of the MCU possibly leaks some large vibration events. The invention adopts the second acceleration sensor with low power consumption for triggering, MCU intervention is not needed in the middle, the power consumption is lower, and the second acceleration sensor is always in a triggering state, so that the vibration event reaching the triggering threshold value can not be missed.
3. In the silence mode, the wireless sensor is in a continuous acquisition state, the wireless transmission module is closed to be in a radio silence state, data are not transmitted wirelessly any more, but the data are continuously acquired and stored in the sensor.
4. In the period+trigger mode, the trigger mode is also responded at the same time of period acquisition, and a large vibration event can be captured at the same time of periodic monitoring. The equipment state monitoring is particularly sensitive to large vibration events, which often indicate the occurrence of serious problems, and the large vibration events are more capable of reflecting the health condition of the equipment, so that the equipment state monitoring is more interesting to the large vibration events and is more meaningful than periodically acquired data. However, if only the trigger mode is provided, the trigger mode may not be triggered for a long time under the condition of better working conditions, no data is generated, and the periodic acquisition can compensate for the condition.
Drawings
Fig. 1 is a schematic diagram of a wireless sensor according to a working method of the wireless sensor of the present invention.
Fig. 2 is a flow chart of a method of operation of a wireless sensor of the present invention.
FIG. 3 is a schematic diagram of various data acquisition modes of a wireless sensor operating method according to the present invention
FIG. 4 is a periodic pattern flow chart of a wireless sensor method of operation of the present invention
Fig. 5 is a flow chart of a trigger mode of a method of operation of a wireless sensor of the present invention.
Fig. 6 is a schematic diagram of a cycle+trigger mode of a wireless sensor operation method according to the present invention.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
In a preferred embodiment of the present invention, it should be noted by those skilled in the art that the wireless gateway and the like to which the present invention relates can be regarded as prior art.
Preferred embodiments.
As shown in fig. 1-6, the invention discloses a working method of a wireless sensor, wherein the state of the wireless sensor comprises dormancy, standby, parameter setting and acquisition, the wireless sensor comprises an MCU, a wireless transmission module, a first acceleration sensor, a second acceleration sensor and a storage module, and the working method comprises the following steps:
after the wireless sensor is powered on or reset, the wireless sensor enters a dormant state;
step S1: in the sleep state, the MCU and the wireless transmission module are in a low-power sleep state, the default wireless sensor works in a sleep period of keeping a wake-up of a T1 time after each sleep time T0, and if a wake-up signal of the wireless gateway is received in the T1 time, the standby state of the step S2 is entered, otherwise, the sleep is continuously entered and the step S1 is repeated (the shorter the time T0 is, the shorter the time required for waking up the wireless sensor is, but the average sleep power consumption is increased);
step S2: the MCU and the wireless transmission module keep working state in standby state (after the wireless sensor is awakened), the MCU and the wireless transmission module respond to each instruction from the wireless gateway at any time in the state, if a dormancy instruction is received or no instruction exists in the elapsed time T2, the MCU and the wireless transmission module enter the dormancy state again, and if a parameter setting instruction is received, the MCU and the wireless transmission module enter the parameter setting state of the step S3;
step S3: in the parameter setting state, the user remotely controls parameters of the wireless sensor including a measuring range K, a sampling rate N, a filtering parameter L, a working mode M0, a countdown time T3, a period T4, a period duration T5, a trigger threshold Z0 and a trigger duration T6 through a wireless gateway, if an acquisition starting instruction is received, the acquisition state of the step S4 is entered, and if a dormancy instruction is received or no instruction exists in the elapsed time T2, the dormancy state is re-entered;
step S4: the wireless sensor works according to the set working modes including a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, if an instruction for ending acquisition is received in the working process, the wireless sensor enters a standby state of the step S2, and otherwise, the wireless sensor always works in the mode.
Specifically, step S4 is implemented as the following steps:
s4.1: in the normal working mode, the wireless sensor is in a continuous acquisition state (through the first acceleration sensor), continuous data acquisition is carried out at a sampling rate N, real-time wireless transmission or data storage is carried out on acquired data (through the storage module), and in the mode, if the midway wireless gateway is powered off, the wireless sensor stops acquisition after continuously acquiring T2 time, and enters a dormant state of the step S1, so that power consumption is saved;
s4.2: in the silence mode, the wireless sensor is in a continuous acquisition state (through the first acceleration sensor), in the mode, if the wireless gateway is powered off halfway, after the wireless sensor continues to acquire the T2 time, the wireless sensor turns off the wireless transmission module, keeps the radio silence and does not transmit data wirelessly any more, but continues to acquire and store the data in the storage module (in the mode, certain energy can be saved, and the measured data cannot be stolen by other receivers, so that the radio is prevented from being leaked);
s4.3: in the countdown mode, after receiving a command for starting acquisition, the wireless sensor sleeps and starts to start a timer, and after the timer reaches a set countdown time T3, the wireless sensor enters a continuous acquisition state (through a first acceleration sensor) and keeps radio silent and does not transmit data wirelessly, but continues to acquire and store the data in a storage module;
s4.4: in the periodic mode, after receiving a command for starting acquisition, the wireless sensor continuously acquires data of T5 time (through the first acceleration sensor) after each sleep time T4, wirelessly transmits the data and stores the data into the storage module;
s4.5: in the triggering mode, the wireless sensor enters a dormant state after receiving a command for starting acquisition, waits for a triggering event of a second acceleration sensor, (the triggering threshold is set by a user and is provided with a plurality of gears such as 50mg, 100mg, 200mg, 300mg, … … g, 4g and the like, the second vibration sensor is a low-power-consumption vibration sensor), and generates a high-level signal of an interrupt signal after the triggering threshold is reached, so as to wake up the MCU, thereby driving the first acceleration sensor and the analog conditioning circuit to acquire (high-precision data) data of T6 time;
s4.6: in the period+trigger mode, the wireless sensor responds to the trigger mode at the same time of period acquisition, enters a dormant state after receiving an acquisition starting command, continuously acquires data in a T5 time after each dormant time is T4 time, wirelessly transmits the data and stores the data into a storage module;
the method comprises the steps of responding to a triggering event of a second acceleration sensor while dormancy, generating a high-level signal after a set triggering threshold is reached to wake up an MCU, driving a first acceleration sensor to collect (high-precision data) data of T6 time (after a wireless sensor receives a collection starting command, entering a dormant state, enabling the MCU to dormancy, turning off the first acceleration sensor and a simulation conditioning circuit, enabling the second acceleration sensor to be in a low-power triggering mode, waiting for the triggering event of the second vibration sensor, entering the triggering mode after the set triggering threshold is reached, generating a level signal to wake up the MCU, starting the first acceleration sensor and the simulation conditioning circuit, collecting the high-precision data generated by the first vibration sensor, transmitting and storing the data of the T6 time, and continuing dormancy after the data of the T6 time is collected).
More specifically, step S4.4 is specifically implemented as:
in the period mode, the MCU enters a sleep state, the first acceleration sensor and the analog conditioning circuit are turned off, the second acceleration sensor is in the sleep mode, the wake-up of the T1 time is kept every sleep T0 time during the sleep of the MCU, and the counter Ns is accumulated to be 1;
if the counter Ns multiplied by T0 in the sleep time T0 is more than or equal to T4, the timing period comes, so that the MCU is awakened, a first acceleration sensor and a simulated conditioning circuit are started, high-precision data generated by the first acceleration sensor are collected, transmitted and stored, and after the data in the time T5 is collected, the MCU continues to enter the sleep state;
(periodically, in order to avoid that the wireless sensor is always in the dead loop state and does not respond to other instructions), during the sleep period, the MCU and the wireless transceiver module are in a receiving state when the wireless sensor is awakened for a time T1 every sleep time T0, and enter a standby state and exit a periodic mode if the awakening signal from the wireless gateway is received in the time, wherein the wireless sensor keeps relatively low power consumption in the time T4, only collects and transmits data in the time T5, and has higher power consumption.
Further, the step S5 is specifically implemented as:
(to avoid that the wireless sensor is always in the dead loop state and no other instructions are responded), during the dormancy period, the wake-up of the T1 time is kept every dormancy T0 time, at this time, the MCU and the wireless transceiver module are in the receiving state, if the wake-up signal from the wireless gateway is received in this time, the MCU and the wireless transceiver module enter the standby state, and exit the trigger mode.
Further, step S6 is specifically implemented as:
if the second acceleration sensor does not reach the trigger level, during the sleep period of the MCU, keeping the awakening of the T1 time every sleep time T0, accumulating 1 by the counter Ns, if the counter Ns multiplied by T0 of the sleep time T0 is more than or equal to T4, indicating that the timing period arrives, thus awakening the MCU, starting the first acceleration sensor and the analog conditioning circuit, collecting high-precision data generated by the first acceleration sensor, transmitting and storing the high-precision data, and continuously entering the sleep state of the MCU after starting to collect the data of the time T5 (repeated cycles);
the MCU and the wireless transceiver module are in a receiving state when the wireless sensor is in the dead loop state and does not respond to other instructions, and if the wireless sensor is in the dead loop state, the wireless sensor is in the standby state and exits the periodic mode after the wireless sensor is in the receiving state and the wireless transceiver module is in the receiving state after each sleep time T0 time is in the sleep period.
The wireless sensor comprises an MCU, a wireless transmission module, a first acceleration sensor, an analog conditioning circuit, a second acceleration sensor, a storage module and a power management circuit, and is shown in figure 1.
The MCU realizes data acquisition, processing and data receiving and transmitting control of the wireless transmission module, and is realized by adopting a low-power-consumption processor. The MCU is a core control unit of the wireless sensor, and preferably adopts a low-power consumption processor STM32L476RGT6. The MCU is used for controlling to realize AD data acquisition, controlling the storage module to realize base data storage and reading, controlling the wireless communication module to realize wireless receiving and transmitting of data, and realizing downloading of stored data through the USB module. The MCU runs a wireless protocol stack, controls the wireless communication module to communicate with a remote wireless gateway, receives an instruction of the wireless gateway and sends acquired data to the wireless gateway.
The wireless transmission module realizes a wireless data receiving and transmitting function, communicates with a remote wireless gateway under the control of the MCU, receives an instruction of the wireless gateway and transmits acquired data to the wireless gateway;
the first acceleration sensor is a high-precision sensor and is provided with an analog signal output interface, and an MEMS acceleration sensor or a piezoelectric acceleration sensor can be adopted, and an analog conditioning circuit is used for conditioning, filtering and AD acquisition of the first acceleration sensor; for an analog triaxial acceleration sensor, three paths of conditioning, filtering and AD acquisition are needed. The SPI interface is used for AD acquisition and is connected with the MCU, and under the condition of parallel acquisition by using a plurality of AD acquisition circuits, the SPI mode of the daisy chain is used for connecting with the CPU module, so that the synchronism of multi-channel data acquisition can be ensured. In the sleep state, the first acceleration sensor and the analog conditioning circuit are in a low power consumption or off mode so as to save power consumption.
The second acceleration sensor is a digital low-power consumption acceleration sensor, has a threshold triggering function, can be directly connected with the MCU through a digital interface, and has a simple structure, lower power consumption and lower cost compared with the first acceleration sensor and an analog conditioning circuit thereof, but has lower precision and bandwidth than the first acceleration sensor. In the sleep state, other peripheral modules of the MCU are in a low power consumption or off state, and the second acceleration sensor can continue to operate so as to respond to the trigger signal. Preferably, the second acceleration sensor employs ADXL362.
The storage module adopts a large-capacity nonvolatile memory, can adopt NAND FLASH or SD card and SDNAND, and is characterized by small volume, large capacity, low cost, high reliability and easy integration. The MCU is connected with the storage circuit through an SPI or SDIO interface. And embedded software in the MCU realizes high-speed data read-write memory. NAND FLASH and SDNAND are both welding modes, and anti-vibration impact performance is good, and ordinary SD cassette is the shell fragment, can't withstand high vibration quantity's impact, causes the short-time loosening easily under big vibration and impact. In the case that the storage medium adopts the SD card, the invention adopts a bonding wire mode, the SD card and the PCB are welded by using a connecting wire, more reliable electric connection is realized, and the whole inside of the shell is filled with glue, so that the influence of vibration and impact on the SD card part is reduced.
The power management circuit realizes the functions of wireless sensor power supply, charging and low power consumption management. The wireless sensor is powered by a secondary power supply, the MCU and the second acceleration sensor are powered by a primary power supply, and the first acceleration sensor, the analog conditioning circuit, the storage module and the wireless transmission module are powered by a secondary power supply. The MCU can control the enabling of the secondary power supply circuit, thereby cutting off the secondary power supply. When the user controls the system to sleep or after the user does not operate the system for a set time, the system automatically sleeps so as to save power consumption. The power supply circuit can realize the battery charging function, when a user accesses the USB power supply, the charging chip can automatically charge the battery, and when the battery is fully charged, the charging chip can automatically stop charging.
Preferably, during sleep, the wake-up of the T1 time is maintained every sleep T0 time, and the average sleep current is:
AVs=(Ad×T1+As×T0)/(T0+T1)
the duration in normal mode is (in hours): Q/Ag
The duration in silence mode is (in hours): Q/Aj
In the countdown mode, if the gateway is opened, the duration is (in hours) calculated from the countdown: Q/Ag
In the countdown mode, if the gateway is closed, the duration is (in hours) calculated from the countdown: Q/Aj
In periodic mode, and sleep time T4 is related to continuous acquisition time T5, typically T4 is much greater than T5, ag is much greater than AVs, and the duration is (in hours): q× (T4+T5)/(AVs×T4+Ag×T5)
In the periodic mode, to increase the endurance time, it is necessary to increase T4 and decrease T5;
in the trigger mode, the duration is related to the actual trigger times Nc continuous acquisition time T6, the maximum supported trigger times nc≡q/(ag×t6), if the trigger is frequent and the acquisition time T6 is long, the duration is short, if the trigger condition is rarely reached or the acquisition time T6 is short, the duration is long, and if the trigger is performed once in H hours, the duration is: Q×H/(Ag×T6);
in the period+trigger mode, the duration calculation is complex, and the sleep time T4 is related to the continuous acquisition time T5 and the trigger continuous acquisition time T6, if the trigger is performed once in H hours, the duration calculation is as follows:
Q/[(AVs×T4+Ag×T5)/(T4+T5)+(Ag×T6)/H];
in the period+trigger mode, to increase the duration, it is necessary to increase T4, decrease T5, and increase the trigger threshold to decrease the trigger acquisition duration T6.
It should be noted that technical features such as a wireless gateway and the like related to the present application should be considered as the prior art, and specific structures, working principles, and control modes and spatial arrangement modes possibly related to the technical features should be selected conventionally in the art, and should not be considered as the invention point of the present application, and the present application is not further specifically developed in detail.
Modifications of the embodiments described above, or equivalents of some of the features may be made by those skilled in the art, and any modifications, equivalents, improvements or etc. within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims (5)

1. The working method of the wireless sensor comprises the steps of dormancy, standby, parameter setting and acquisition, wherein the wireless sensor comprises an MCU, a wireless transmission module, a first acceleration sensor, a second acceleration sensor, an analog conditioning circuit, a power management circuit and a storage module, and is characterized by comprising the following steps:
step S1: in the sleep state, the MCU and the wireless transmission module are in a low-power sleep state, the default wireless sensor works in a sleep period of keeping a wake-up of a T1 time after each sleep time of T0, and if a wake-up signal of the wireless gateway is received in the T1 time, the MCU and the wireless transmission module enter a standby state of the step S2, otherwise, the MCU and the wireless transmission module continue to enter sleep and repeat the step S1;
step S2: in the standby state, the MCU and the wireless transmission module keep working state, respond to each instruction from the wireless gateway at any time in the state, enter the sleep state again if the sleep instruction is received or the elapsed time T2 does not have any instruction, and enter the parameter setting state of the step S3 if the parameter setting instruction is received;
step S3: in the parameter setting state, parameters of a wireless sensor including a measuring range K, a sampling rate N, a filtering parameter L, a working mode M0, a countdown time T3, a period T4, a period duration T5, a trigger threshold Z0 and a trigger duration T6 are remotely controlled through a wireless gateway, if an acquisition starting instruction is received, the acquisition state of the step S4 is entered, and if a dormancy instruction is received or no instruction exists in the elapsed time T2, the dormancy state is entered again;
step S4: the wireless sensor works according to the set working modes including a normal mode, a silent mode, a countdown mode, a periodic mode, a trigger mode and a period+trigger mode, if an instruction for ending acquisition is received in the working process, the wireless sensor enters a standby state of the step S2, and otherwise, the wireless sensor always works in the mode.
2. The method of claim 1, wherein step S4 is implemented as the following steps:
s4.1: in the normal working mode, the wireless sensor is in a continuous acquisition state, continuous data acquisition is carried out at a sampling rate N, real-time wireless transmission or data storage is carried out on acquired data, and in the mode, if the wireless gateway is powered off midway, the wireless sensor stops acquisition after continuing to acquire the T2 time, and the sleep state of the step S1 is entered;
s4.2: in the silence mode, the wireless sensor is in a continuous acquisition state, and in the mode, if the wireless gateway is powered off midway, after the wireless sensor continues to acquire the T2 time, the wireless sensor turns off the wireless transmission module, keeps the radio silence and does not transmit data wirelessly, but continues to acquire and store the data in the storage module;
s4.3: in the countdown mode, after receiving a command for starting acquisition, the wireless sensor sleeps and starts to start a timer, and after the timer reaches a set countdown time T3, the wireless sensor enters a continuous acquisition state and keeps wireless silence and does not transmit data wirelessly, but continues to acquire and store the data in a storage module;
s4.4: in the periodic mode, after receiving a command for starting acquisition, the wireless sensor continuously acquires data in the time of T5 after each time of dormancy for T4, wirelessly transmits the data and stores the data into the storage module;
s4.5: in the triggering mode, the wireless sensor enters a dormant state after receiving a command for starting acquisition, waits for a triggering event of the second acceleration sensor, and generates a high-level signal to wake up the MCU after reaching a set triggering threshold value so as to drive the first acceleration sensor to acquire data of T6 time;
s4.6: in the period+trigger mode, the wireless sensor responds to the trigger mode at the same time of period acquisition, enters a dormant state after receiving an acquisition starting command, continuously acquires data in a T5 time after each dormant time is T4 time, wirelessly transmits the data and stores the data into a storage module;
the sleep is also responded to a trigger event of the second acceleration sensor, and after the trigger event reaches a set trigger threshold, a high-level signal is generated to wake up the MCU so as to drive the first acceleration sensor to acquire data of the T6 time.
3. The method of claim 2, wherein step S4.4 is implemented as:
in the period mode, the MCU enters a sleep state, the first acceleration sensor and the analog conditioning circuit are turned off, the second acceleration sensor is in the sleep mode, the wake-up of the T1 time is kept every sleep T0 time during the sleep of the MCU, and the counter Ns is accumulated to be 1;
if the counter Ns multiplied by T0 in the sleep time T0 is more than or equal to T4, the timing period comes, so that the MCU is awakened, a first acceleration sensor and a simulated conditioning circuit are started, high-precision data generated by the first acceleration sensor are collected, transmitted and stored, and after the data in the time T5 is collected, the MCU continues to enter the sleep state;
during the sleep period, the wake-up of the T1 time is kept every sleep T0 time, at this time, the MCU and the wireless transceiver module are in a receiving state, and if the wake-up signal from the wireless gateway is received in the time, the MCU and the wireless transceiver module enter a standby state and exit the periodic mode.
4. A method of operating a wireless sensor according to claim 3, wherein step S5 is implemented as:
and in the dormancy period, keeping the wakeup of the T1 time every dormancy T0 time, wherein the MCU and the wireless transceiver module are in a receiving state, and entering a standby state and exiting a triggering mode if the wakeup signal from the wireless gateway is received in the time.
5. The method of claim 4, wherein step S6 is implemented as:
if the second acceleration sensor does not reach the trigger level, keeping the awakening of the T1 time every sleep time T0 in the MCU sleep period, accumulating 1 by the counter Ns, if the counter Ns multiplied by T0 of the sleep time T0 is more than or equal to T4, indicating that a timing period arrives, waking up the MCU, starting the first acceleration sensor and the analog conditioning circuit, collecting high-precision data generated by the first acceleration sensor, transmitting and storing the high-precision data, and continuously entering the MCU sleep state after starting to collect the data of the time T5;
during the sleep period, the wake-up of the T1 time is kept every sleep T0 time, at this time, the MCU and the wireless transceiver module are in a receiving state, and if the wake-up signal from the wireless gateway is received in the time, the MCU and the wireless transceiver module enter a standby state and exit the periodic mode.
CN202310942931.2A 2023-07-29 2023-07-29 Working method of wireless sensor Pending CN116887210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310942931.2A CN116887210A (en) 2023-07-29 2023-07-29 Working method of wireless sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310942931.2A CN116887210A (en) 2023-07-29 2023-07-29 Working method of wireless sensor

Publications (1)

Publication Number Publication Date
CN116887210A true CN116887210A (en) 2023-10-13

Family

ID=88260345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310942931.2A Pending CN116887210A (en) 2023-07-29 2023-07-29 Working method of wireless sensor

Country Status (1)

Country Link
CN (1) CN116887210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117979400A (en) * 2024-03-29 2024-05-03 安徽容知日新科技股份有限公司 Wireless acquisition method and system for operation data of unsteady state equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117979400A (en) * 2024-03-29 2024-05-03 安徽容知日新科技股份有限公司 Wireless acquisition method and system for operation data of unsteady state equipment

Similar Documents

Publication Publication Date Title
US11669147B2 (en) Dynamic power consumption management and wake-up method and application system therefor
CN116887210A (en) Working method of wireless sensor
CN201259540Y (en) Low power consumption positioning terminal
CN111007781A (en) Control method and system of environment monitoring device
CN109803224B (en) Low-power-consumption positioning method and system, positioning terminal, service platform and control terminal
CN101365197A (en) Energy consumption control method for positioning terminal and positioning terminal applying the method
BRPI0717541A2 (en) PERSISTENT LOW POWER SENSOR SENSOR DEVICE
CN110337139B (en) Low-power-consumption control method based on wireless sensor and wireless sensor
WO2021233219A1 (en) Automatic wake-up and diagnosis method for battery management system, battery management system, and vehicle
CN106264541A (en) Motion sensor control method, device and mobile terminal
CN112616178A (en) Energy consumption management method and device, electronic equipment and storage medium
CN102571573B (en) Router, wireless sensing network and method for monitoring terminal node
CN105490902A (en) Intelligent home system, and wireless information acquisition equipment control method and apparatus
CN114777880A (en) Water level monitoring method and water level monitoring device
CN110320840A (en) A kind of method and system reducing internet of things product battery power consumption
CN113380015A (en) Wireless passive sensor and working method of wireless passive controller thereof
CN210300462U (en) Intelligent awakening pillow
CN111193912A (en) Low-power-consumption battery camera set system
CN113433926B (en) Ultra-low power consumption fault detection method and ultra-low power consumption elevator opening/closing door fault detection device
CN116030599A (en) Slope monitoring device control method, slope monitoring device and storage medium
CN110081933B (en) Vibration polling instrument, low-power-consumption frequency domain transformation method thereof and computer readable storage medium
CN210741555U (en) Environmental monitoring acquisition terminal and system
CN111683398A (en) Low-power-consumption electric energy meter reading method and electric energy meter
CN215601055U (en) Wireless sensing node device triggered by wireless charging technology
CN214150769U (en) Wireless acceleration sensor

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