CN111352496A - Low-power-consumption processing method combining single chip microcomputer and LoRa technology - Google Patents
Low-power-consumption processing method combining single chip microcomputer and LoRa technology Download PDFInfo
- Publication number
- CN111352496A CN111352496A CN201811579521.1A CN201811579521A CN111352496A CN 111352496 A CN111352496 A CN 111352496A CN 201811579521 A CN201811579521 A CN 201811579521A CN 111352496 A CN111352496 A CN 111352496A
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- single chip
- lora
- low
- mode
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3209—Monitoring remote activity, e.g. over telephone lines or network connections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3243—Power saving in microcontroller unit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Microcomputers (AREA)
- Power Sources (AREA)
Abstract
The invention provides a low-power consumption processing method combining a single chip microcomputer and an LoRa technology, which comprises the steps that firstly, the single chip microcomputer carries out system initialization, radio frequency parameters are configured for a LoRa chip, and the LoRa chip is configured into a sleep mode; then, setting the awakening time of an RTC (real time clock) timer carried by the single chip microcomputer, and turning off the peripheral and setting the single chip microcomputer to be in a stop mode; and finally, waiting for the single chip microcomputer to be awakened periodically by an RTC timer, using a low-speed clock to run, configuring the LoRa chip into a monitoring mode, enabling the single chip microcomputer to enter a stop mode again, repeating the periodic awakening of the single chip microcomputer until the LoRa chip receives data, awakening the single chip microcomputer, configuring the high-speed clock to run, and processing and analyzing the received data by the single chip microcomputer. The method makes full use of the functions of low power consumption, periodic self-awakening and the like of the singlechip, adopts different clock drives in the processing sleep mode and the working mode, and realizes low power consumption.
Description
Technical Field
The invention relates to the technical field of low power consumption, in particular to a low power consumption processing method combining a single chip microcomputer and a LoRa technology.
Background
With the development of the internet of things technology, the low-power wireless communication technology becomes an important research direction in various application fields. The system has extremely high requirements on low power consumption in various industries such as geological disaster monitoring, structural safety monitoring, wireless meter reading, agricultural production monitoring and the like.
In order to achieve low power consumption, conventional solutions typically employ periodic polling operation in an active mode, which operates for a short time and typically at a frequency of no more than 1/h, and a sleep mode, which operates most of the time. The defects are that the time of the device running in the working mode is fixed, the communication can be initiated only in a single direction, the interaction is inconvenient, and the watchdog processing can not be realized in the sleep mode.
The LoRa technology is based on a wireless transmission technology below 1GHz, and has the outstanding characteristics in the aspects of strong anti-interference performance, long-distance transmission, low power consumption and the like. And the special monitoring mode of loRa chip combines singlechip controller to handle, when equipment is in the sleep mode, can make equipment awaken up at any time.
The loRa monitoring mode is not a function that a loRa chip can independently be accomplished, and a lot of research to loRa low-power consumption at present only explain loRa solitary workflow and consumption itself, have broken away from the cooperation work with single chip microcomputer controller for communication unilateral is launched, is interacted inconvenient, can't realize the watchdog under the sleep mode and handle the scheduling problem and still exist.
Disclosure of Invention
The invention aims to provide a low-power-consumption processing method combining a single chip microcomputer and an LoRa technology, which can process a dog feeding event when equipment is in a sleep mode, enables the equipment to be in a state of being awakened at any time and realizes low power consumption.
The technical scheme adopted by the invention for solving the problems is as follows:
a low-power consumption processing method combining a singlechip and an LoRa technology comprises the following steps:
s1, the single chip microcomputer initializes the system, configures radio frequency parameters for the LoRa chip, and configures the LoRa chip into a sleep mode;
s2, setting the periodic awakening time of the RTC timer of the single chip microcomputer to ns, wherein n is more than or equal to 1, closing the peripheral by the single chip microcomputer and setting the single chip microcomputer to be in a stop mode;
after S3 and ns, the single chip microcomputer is awakened periodically by the RTC timer, runs by using a low-speed clock, configures the LoRa chip into a monitoring mode, and enters a stop mode again;
and S4, repeating the step S3 until the LoRa chip receives the data, waking up the single chip microcomputer, configuring the high-speed clock of the single chip microcomputer to run, processing and analyzing the received data, and executing the step S2 after the processing is finished.
Further, after the LoRa chip enters the channel monitoring mode in step S4, monitoring whether there is a preamble, and if not, executing step S2; and if the preamble is monitored, configuring the LoRa chip as a receiving mode.
Further, in the step S2, the value of n is 1-10S.
Further, the RTC timer carries out dog feeding processing, high and low speed clock switching, LoRa mode configuration and parameter matching.
Further, in step S2, the peripheral device of the single chip microcomputer includes a peripheral circuit of the single chip microcomputer, and the peripheral device, functions and IO configurations of the single chip microcomputer.
The invention has the beneficial effects that:
the invention provides a low-power consumption processing method combining a single chip microcomputer and an LoRa technology, which fully utilizes the functions of low power consumption, periodic self-awakening and the like of the single chip microcomputer, adopts different clock drives in a processing sleep mode and a working mode, and realizes low power consumption.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart of a low power consumption processing method combining a single chip microcomputer and an LoRa technology according to an embodiment of the present invention.
Detailed Description
The low power consumption processing method combining the single chip microcomputer and the LoRa technology is described in detail through the implementation mode in combination with the attached drawings.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The invention provides a low-power consumption processing method combining a single chip microcomputer and a LoRa technology, which is applied to low-power consumption wireless equipment for laying a wireless sensing network in the fields of geological disaster monitoring, structural safety monitoring, wireless meter reading, agricultural production monitoring and the like, wherein a wireless equipment system comprises an STM32L series single chip microcomputer and an SX127x series LoRa chip, and the implementation method comprises the following steps:
the method comprises the following steps: the single chip microcomputer carries out system initialization, configures the LoRa chip with corresponding radio frequency parameters, and then configures the LoRa chip into a sleep mode.
Step two: the single chip microcomputer is set to wake up (n is larger than or equal to 1) with an RTC timer ns, the single chip microcomputer closes the peripheral equipment, the single chip microcomputer is set to be in a stop mode, and at the moment, the whole wireless equipment system is in a sleep mode and the power consumption is lowest.
Step three: and after ns, the single chip microcomputer is awakened by the RTC timer, runs by using a low-speed clock, configures the LoRa chip into a monitoring mode, and then enters a stop mode again.
Step four: and repeating the third step until the LoRa chip receives the data, waking up the single chip microcomputer, configuring a high-speed clock to run, and processing and analyzing the received data. And after the treatment is finished, executing the step two.
The single-chip microcomputer is not limited to STM32L series, and the selected single-chip microcomputer has available low power consumption modes and timer awakening functions.
The wireless equipment system comprises but is not limited to an STM32L series single chip microcomputer and an SX127x series LoRa chip, various functional circuits can be added, and only low power consumption is required to be processed when peripheral equipment is closed.
The shutdown peripherals comprise a singlechip peripheral circuit, singlechip on-chip peripherals, functions and IO configuration so as to achieve the lowest power consumption.
The RTC timing time is set according to the actual use condition, and the use requirement can be met when the value of n is generally between 1 and 10 s.
The single chip microcomputer stop mode is a low power consumption mode of STM32L series single chip microcomputers, and in the mode, an IO state is maintained, and the single chip microcomputer is in extremely low power consumption.
The single chip microcomputer runs by using the low-speed clock, the power consumption of the whole device is reduced, and the single chip microcomputer runs by using the high-speed clock, so that the data processing time is shortened.
The RTC timer plays roles in dog feeding processing, high-speed and low-speed clock switching, LoRa mode configuration, parameter matching and the like.
The invention discloses a low-power consumption processing method combining a singlechip and a LoRa technology, which completes one-time awakening and communication and goes through three processes: the device sleep period, the low-speed running period and the high-speed running period. During low speed operation, the system clock is reduced to reduce power consumption, and during high speed operation, the operation time is shortened to reduce power consumption, wherein the clock is in inverse proportion to the time, and the parameter selection needs to be compared in a calculation mode.
The invention is explained in detail below with reference to specific embodiments, and as shown in fig. 1, the low power consumption processing method combining the single chip microcomputer and the LoRa technology includes the following steps:
s01: the single chip microcomputer firstly carries out necessary initialization on the whole system, including peripheral circuits of the single chip microcomputer, functions on the single chip microcomputer, IO setting and the like.
S02: and carrying out necessary radio frequency parameter configuration on the LoRa chip, wherein the consistency of the radio frequency parameters is a necessary condition for ensuring communication. After the configuration is completed, the LoRa chip is set to the sleep mode.
S03: the RTC timer function on the single chip is set and configured to be driven by an external low-speed crystal oscillator, the timing awakening time is 3s, and the awakening time can be set according to the actual use condition.
S04: and closing the functions of the singlechip peripherals, including singlechip peripheral circuits, singlechip on-chip peripherals, functions, IO (input/output) setting and the like, and setting the singlechip into a stop mode. At this time, the whole wireless device system is in a sleep mode, and the power consumption is lowest.
S05: when the single chip microcomputer is in a stop mode, the internal RTC timer can work continuously, and the power consumption is extremely low. When the RTC timer reaches 3s, the singlechip is awakened periodically, and the singlechip is in a low-speed crystal oscillator running state, namely, the low-speed clock runs, so that the power consumption is very low. Then the single chip computer configures the LoRa chip to enter a monitoring mode, and starts to wait for interruption, and the single chip computer enters a stop mode again.
S06: after the LoRa chip enters the channel monitoring mode, the subsequent monitoring work is completed by the LoRa chip, and if the lead code is not monitored, S04 is executed; and if the preamble is monitored, configuring the LoRa chip as a receiving mode.
S07: the LoRa chip is in the receiving mode, and after the receipt data is accomplished, the configuration singlechip is in high-speed crystal oscillator running state, high-speed clock operation promptly.
S08: the single chip microcomputer processes and analyzes the data received by the LoRa chip, and then S04 is executed.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The invention has not been described in detail and is in part known to those of skill in the art.
Claims (5)
1. A low-power consumption processing method combining a singlechip and an LoRa technology is characterized by comprising the following steps:
s1, the single chip microcomputer initializes the system, configures radio frequency parameters for the LoRa chip, and configures the LoRa chip into a sleep mode;
s2, setting the periodic awakening time of the RTC timer of the single chip microcomputer to ns, wherein n is more than or equal to 1, closing the peripheral by the single chip microcomputer and setting the single chip microcomputer to be in a stop mode;
after S3 and ns, the single chip microcomputer is awakened periodically by the RTC timer, runs by using a low-speed clock, configures the LoRa chip into a monitoring mode, and enters a stop mode again;
and S4, repeating the step S3 until the LoRa chip receives the data, waking up the single chip microcomputer, configuring the high-speed clock of the single chip microcomputer to run, processing and analyzing the received data, and executing the step S2 after the processing is finished.
2. The low power consumption processing method of claim 1, wherein in step S4, after entering the channel listening mode, the LoRa chip listens for a preamble, and if the preamble is not listened, step S2 is executed; and if the preamble is monitored, configuring the LoRa chip as a receiving mode.
3. The low-power processing method according to claim 1, wherein n is 1-10S in step S2.
4. The low power processing method of claim 1, wherein the RTC timer is used for dog feeding processing, high and low speed clock switching, LoRa mode configuration and parameter matching.
5. The low power consumption processing method according to claim 1, wherein the one-chip peripheral devices in step S2 include one-chip peripheral circuits and one-chip on-chip peripheral devices, functions and IO configurations.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811579521.1A CN111352496A (en) | 2018-12-24 | 2018-12-24 | Low-power-consumption processing method combining single chip microcomputer and LoRa technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811579521.1A CN111352496A (en) | 2018-12-24 | 2018-12-24 | Low-power-consumption processing method combining single chip microcomputer and LoRa technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111352496A true CN111352496A (en) | 2020-06-30 |
Family
ID=71195466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811579521.1A Pending CN111352496A (en) | 2018-12-24 | 2018-12-24 | Low-power-consumption processing method combining single chip microcomputer and LoRa technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111352496A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112596599A (en) * | 2020-12-21 | 2021-04-02 | 上海商米科技集团股份有限公司 | Method for reducing power consumption applied to embedded system |
CN113784232A (en) * | 2021-01-12 | 2021-12-10 | 青岛鼎信通讯股份有限公司 | Low-power-consumption communication method of intelligent water meter based on LoRa |
CN114019858A (en) * | 2021-10-29 | 2022-02-08 | 上海建工集团股份有限公司 | Concrete admixture secondary compensation quantitative control method |
CN114427434A (en) * | 2020-09-21 | 2022-05-03 | 中国石油化工股份有限公司 | Underground low-power-consumption management method and device based on clock management |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988554A (en) * | 2016-01-27 | 2016-10-05 | 上海华测导航技术股份有限公司 | Method for enabling single-chip microcomputer to periodically and regularly enter low-power-consumption mode |
CN106253943A (en) * | 2016-08-12 | 2016-12-21 | 长江水利委员会长江科学院 | Sensor acquisition device based on LoRa technology, network system and communication means |
CN106781413A (en) * | 2017-01-03 | 2017-05-31 | 国网江苏省电力公司电力科学研究院 | The multilist collection that a kind of self adaptation is checked meter copies communication interface converter |
CN106792916A (en) * | 2016-12-13 | 2017-05-31 | 浙江科技学院 | A kind of mixed type remote-wireless sensor network system and its communication means |
CN206249548U (en) * | 2016-12-16 | 2017-06-13 | 宁夏计算机软件与技术服务有限公司 | Environmental detection set based on low power loss communication network Yu sensor integration technology |
CN108170628A (en) * | 2017-12-25 | 2018-06-15 | 东华理工大学 | A kind of water meter meter based on LORA communications |
CN207652706U (en) * | 2017-06-26 | 2018-07-24 | 东华理工大学 | A kind of meter reading repeater based on LORA communications |
-
2018
- 2018-12-24 CN CN201811579521.1A patent/CN111352496A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105988554A (en) * | 2016-01-27 | 2016-10-05 | 上海华测导航技术股份有限公司 | Method for enabling single-chip microcomputer to periodically and regularly enter low-power-consumption mode |
CN106253943A (en) * | 2016-08-12 | 2016-12-21 | 长江水利委员会长江科学院 | Sensor acquisition device based on LoRa technology, network system and communication means |
CN106792916A (en) * | 2016-12-13 | 2017-05-31 | 浙江科技学院 | A kind of mixed type remote-wireless sensor network system and its communication means |
CN206249548U (en) * | 2016-12-16 | 2017-06-13 | 宁夏计算机软件与技术服务有限公司 | Environmental detection set based on low power loss communication network Yu sensor integration technology |
CN106781413A (en) * | 2017-01-03 | 2017-05-31 | 国网江苏省电力公司电力科学研究院 | The multilist collection that a kind of self adaptation is checked meter copies communication interface converter |
CN207652706U (en) * | 2017-06-26 | 2018-07-24 | 东华理工大学 | A kind of meter reading repeater based on LORA communications |
CN108170628A (en) * | 2017-12-25 | 2018-06-15 | 东华理工大学 | A kind of water meter meter based on LORA communications |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114427434A (en) * | 2020-09-21 | 2022-05-03 | 中国石油化工股份有限公司 | Underground low-power-consumption management method and device based on clock management |
CN114427434B (en) * | 2020-09-21 | 2024-06-07 | 中国石油化工股份有限公司 | Underground low-power consumption management method and device based on clock management |
CN112596599A (en) * | 2020-12-21 | 2021-04-02 | 上海商米科技集团股份有限公司 | Method for reducing power consumption applied to embedded system |
CN113784232A (en) * | 2021-01-12 | 2021-12-10 | 青岛鼎信通讯股份有限公司 | Low-power-consumption communication method of intelligent water meter based on LoRa |
CN113784232B (en) * | 2021-01-12 | 2023-05-30 | 青岛鼎信通讯股份有限公司 | Low-power-consumption communication method of intelligent water meter based on LoRa |
CN114019858A (en) * | 2021-10-29 | 2022-02-08 | 上海建工集团股份有限公司 | Concrete admixture secondary compensation quantitative control method |
CN114019858B (en) * | 2021-10-29 | 2024-04-02 | 上海建工集团股份有限公司 | Concrete admixture secondary compensation quantitative control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111352496A (en) | Low-power-consumption processing method combining single chip microcomputer and LoRa technology | |
US7505795B1 (en) | Power save management with customized range for user configuration and tuning value based upon recent usage | |
US8509859B2 (en) | Apparatus and methods for control of sleep modes in a transceiver | |
CN101539797B (en) | Method, system and device for controlling dynamic clock and power supply | |
US20070140199A1 (en) | Power saving in multi-processor device | |
CN103857021B (en) | Method for controlling bluetooth device, bluetooth device and electronic device | |
CN103645796A (en) | High-performance hydrology and water resource RTU (remote terminal unit) based on ARM (advanced RISC machine) framework and power consumption control method of RTU | |
CN110568921B (en) | Method for reducing chip power consumption | |
CN108777862B (en) | Bluetooth transmission method, Bluetooth controller and Bluetooth device | |
CN101884028A (en) | Method and apparatus for timer event management | |
CN102831452A (en) | Low power consumption operation for active RFID (Radio Frequency Identification) system | |
KR102060431B1 (en) | Apparatus and method for managing power in multi-core system | |
EP3610354A1 (en) | Energy-aware computing system | |
CN106598193B (en) | Power consumption control method and device | |
CN106063304B (en) | System and method for message-based fine-grained system-on-chip power control | |
CN102801871B (en) | Radio frequency smart card and control method thereof | |
CN112020031A (en) | Low-power consumption thing allies oneself with communication device based on wireless awakening of low frequency and wiFi | |
WO2013112567A1 (en) | Network application proxy systems and methods | |
CN105183131A (en) | Low power BT40 chip | |
WO2013159464A1 (en) | Multiple core processor clock control device and control method | |
CN110999417B (en) | Low power supporting programmable hardware sleep cycle controller for 802.11 wireless devices | |
CN107526603B (en) | Application awakening method and device | |
CN111417179A (en) | Embedded low-power-consumption dual-chip 4G Internet of things communication method and system | |
CN111857841A (en) | Awakening method of main control chip, storage medium and intelligent terminal | |
CN116669158A (en) | PSM dormancy method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200630 |