CN113395754B - High-precision low-power-consumption time keeping method - Google Patents
High-precision low-power-consumption time keeping method Download PDFInfo
- Publication number
- CN113395754B CN113395754B CN202110943302.2A CN202110943302A CN113395754B CN 113395754 B CN113395754 B CN 113395754B CN 202110943302 A CN202110943302 A CN 202110943302A CN 113395754 B CN113395754 B CN 113395754B
- Authority
- CN
- China
- Prior art keywords
- time
- low
- frequency
- frequency clock
- time keeping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention discloses a high-precision low-power consumption time keeping method.A time keeping module comprises an MCU (microprogrammed control Unit), a UWB (ultra wide band) module, a low-frequency clock consisting of a low-frequency crystal oscillator and a high-frequency clock consisting of a high-frequency crystal oscillator, and the high-frequency clock and the low-frequency clock are used simultaneously, so that the time keeping module can ensure the precision through the high-frequency clock, and can ensure the low power consumption because the low-frequency clock works at most of the time, thereby realizing the design purpose of ensuring the high precision and reducing the power consumption. In addition, in practical use, the time keeping module achieves the high-precision time keeping effect by using the PID algorithm.
Description
Technical Field
The invention relates to the field of wireless communication, in particular to a high-precision low-power-consumption time keeping method.
Background
Currently, indoor positioning technology is developed rapidly, various indoor positioning technologies are also developed endlessly, and UWB indoor positioning technology among them has the characteristics of low power consumption, high precision, wide coverage, strong robustness and the like, so that compared with other indoor positioning technologies, the UWB indoor positioning technology has more advantages.
However, UWB is a time division multiplexing system, and at the same time, two UWB time keeping modules cannot transmit signals together, otherwise the judgment of the receiving time is affected. In an indoor positioning scene, there are often many tags in an area to be positioned. In order to prolong the endurance time, the tags generally enter a sleep state after one positioning, however, a low-frequency crystal oscillator adopted in the sleep state cannot keep a high-precision clock reference, and when a positioning application is transmitted next time, the tags may interfere with positioning applications of other tags, so that the distance measurement is abnormal or fails. If the label is used for keeping a high-precision clock reference, a high-frequency crystal oscillator is used all the time, power consumption is increased, and the endurance time is greatly shortened.
In patent CN202010894315.0, it is proposed that a relatively low power wireless device, such as a bluetooth module, can be used to connect with a base station, so as to determine the positioning time with the base station, thereby enabling the UWB time keeping module to sleep when not positioned, and thus reducing power consumption.
However, in actual operation, some positioning mechanisms may not have other wireless components, and the wireless components are always connected, which causes the wireless components to consume much power, and how to realize high precision and low power consumption by only the UWB itself without depending on other wireless devices becomes a problem to be solved.
Disclosure of Invention
The invention mainly aims to provide a high-precision low-power consumption timekeeping method which ensures high precision and reduces power consumption.
A high-precision low-power consumption time keeping method needs to apply the above mentioned time keeping module, and comprises the following steps:
1) after the time keeping module is started, an initial count value is set for the low-frequency clock, then the low-frequency clock starts to run, a positioning application frame is sent to a base station, and the system transmitting time is obtained;
2) the base station replies a reply frame after receiving the positioning application frame, wherein the reply frame comprises the actual transmitting time when the base station receives the label positioning application frame;
3) calculating the error interval between the current actual transmission time and the set system transmission time through the system transmission time set in the system by the time keeping module and the actual transmission time returned by the base station, introducing the error interval into a PID algorithm, and calculating to obtain a difference control parameter T between the current system transmission time and the next system transmission time through the PID algorithm1;
4) Controlling the difference value to be a parameter T1Divided into low-frequency timing parameters a1And a high frequency timing parameter b1Writing the clock signals into the low-frequency clock and the high-frequency clock respectively;
5) waiting for the low frequency clock to pass through a1Time interrupt trigger and the high frequency clock pass b1After the time interruption is triggered, sending a positioning application frame to the base station again, repeating the processes from the step 2 to the step 4 and obtaining a new difference control parameter T2So as to repeatedly and continuously carry out time correction, thereby achieving the effect of keeping time with high precision。
Preferably, the difference control parameter T obtained by PID algorithm is obtained subsequentlynThe last difference control parameter T needs to be addedn-1High frequency timing parameter bn-1。
Preferably, after the low-frequency clock is triggered, a counter of the low-frequency clock needs to be cleared.
Preferably, the crystal oscillator frequency of the high-frequency crystal oscillator is higher than the frequency of the system time unit of the time keeping module.
Preferably, the crystal oscillator frequency of the low-frequency crystal oscillator is lower than the frequency of the system time unit of the time keeping module.
The high-precision low-power consumption time keeping method has the beneficial effects that:
the high-precision low-power consumption time keeping method of the invention is characterized in that the time keeping module comprises an MCU, a UWB module, a low-frequency clock composed of a low-frequency crystal oscillator and a high-frequency clock composed of a high-frequency crystal oscillator, the high-frequency clock and the low-frequency clock are used simultaneously, so that the time keeping module can ensure the precision through the high-frequency clock, and the low power consumption can be ensured because the low-frequency clock works at most of the time, thereby realizing the design purpose of ensuring the high precision and reducing the power consumption. In addition, in practical use, the time keeping module achieves the high-precision time keeping effect by using the PID algorithm.
Drawings
FIG. 1 is a flow chart of a high accuracy low power consumption time keeping method of the present invention;
FIG. 2 is a diagram of the hardware connections of the high-precision low-power consumption time keeping method of the present invention;
FIG. 3 is a control flow diagram of the high-precision low-power consumption time keeping method of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1 to 3, an embodiment of the high-precision low-power consumption time keeping method of the present invention is provided:
a high-precision low-power consumption timekeeping module comprises an MCU, a UWB module, a low-frequency clock composed of a low-frequency crystal oscillator and a high-frequency clock composed of a high-frequency crystal oscillator. The UWB module, the low-frequency clock and the high-frequency clock are respectively and electrically connected with the MCU. The crystal oscillation frequency of the high-frequency crystal oscillator is higher than the frequency of the system time unit of the time keeping module, and the crystal oscillation frequency of the low-frequency crystal oscillator is lower than the frequency of the system time unit of the time keeping module.
The time keeping method used in the time keeping module comprises the following steps:
1) after the time keeping module is started, an initial count value is set for the low-frequency clock, then the low-frequency clock starts to run, after the low-frequency clock is interrupted and triggered, a counter of the low-frequency clock needs to be cleared, then a positioning application frame is sent to a base station, and the system transmitting time is obtained;
2) the base station replies a reply frame after receiving the positioning application frame, wherein the reply frame comprises the actual transmitting time when the base station receives the label positioning application frame;
3) calculating the error interval between the current actual transmission time and the set system transmission time through the system transmission time set in the system by the time keeping module and the actual transmission time returned by the base station, introducing the error interval into a PID algorithm, and calculating to obtain a difference control parameter T between the first system transmission time and the second system transmission time through the PID algorithm1Actual control parameter K at first time1Equal to the difference control parameter T1;
4) Controlling the difference value to be a parameter T1Divided into low-frequency timing parameters a1And a high frequency timing parameter b1Writing the clock signals into a low-frequency clock and a high-frequency clock respectively;
5) constant low frequency clock pass a1Time interrupt trigger and the high frequency clock pass b1After the time interruption is triggered, sending a positioning application frame to the base station again, repeating the processes from the step 2 to the step 4 and obtaining a new difference control parameter T2Because the low frequency clock is cleared, but stillAlways running, so that the first actual control parameter K is excluded1Besides, the subsequent actual control parameter KnThe difference value control parameter T obtained by the PID algorithm is needednThen the last difference control parameter T needs to be addedn-1High frequency timing parameter bn-1To obtain the final actual control parameter KnAnd the time correction is repeatedly and continuously carried out according to the time correction, so that the high-precision time keeping effect is achieved.
By using the high-frequency clock and the low-frequency clock simultaneously, the time keeping module can ensure the precision through the high-frequency clock, and can ensure the low power consumption because the low-frequency clock works most of the time, thereby realizing the design purpose of ensuring the high precision and reducing the power consumption. In addition, in practical use, the time keeping module achieves the high-precision time keeping effect by using the PID algorithm.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structural changes made by the contents of the present specification and the drawings, or any other technical fields directly or indirectly applied thereto, are included in the scope of the present invention.
Claims (5)
1. A high-precision low-power consumption time keeping method is characterized by comprising the following steps:
1) after the time keeping module is started, an initial count value is set for the low-frequency clock; then, starting to operate a low-frequency clock, then sending a positioning application frame to a base station, and obtaining the system transmitting time;
2) the base station replies a reply frame after receiving the positioning application frame, wherein the reply frame comprises the actual transmitting time when the base station receives the label positioning application frame;
3) transmitting in a system through the time keeping modulePositioning the system transmitting time of the application frame and the actual transmitting time returned by the base station, calculating the error interval between the current actual transmitting time and the set system transmitting time, introducing the error interval into a PID algorithm, and calculating to obtain a difference control parameter T between the current system transmitting time and the next system transmitting time through the PID algorithm1;
4) Controlling the difference value to be a parameter T1Divided into low-frequency timing parameters a1And a high frequency timing parameter b1Writing the clock signals into the low-frequency clock and the high-frequency clock respectively;
5) waiting for the low frequency clock to pass through a1Time interrupt triggering and high frequency clock passing b1After the time interruption is triggered, sending a positioning application frame to the base station again, repeating the processes from the step 2 to the step 4 and obtaining a new difference control parameter T2And the time correction is repeatedly and continuously carried out according to the time correction, so that the high-precision time keeping effect is achieved.
2. The method of claim 1, wherein the difference control parameter T obtained by PID algorithm is used for controlling time keepingnThe last difference control parameter T needs to be addedn-1High frequency timing parameter bn-1。
3. The time keeping method according to claim 1, wherein a counter of the low frequency clock needs to be cleared after the low frequency clock is triggered.
4. The time keeping method with high precision and low power consumption according to claim 1, wherein a crystal frequency of a high frequency crystal oscillator in the high frequency clock is higher than a frequency of the time keeping module in a system time unit.
5. The time keeping method according to claim 1, wherein a crystal oscillator frequency of a low frequency crystal oscillator in the low frequency clock is lower than a frequency of the time keeping module in a system time unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110943302.2A CN113395754B (en) | 2021-08-17 | 2021-08-17 | High-precision low-power-consumption time keeping method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110943302.2A CN113395754B (en) | 2021-08-17 | 2021-08-17 | High-precision low-power-consumption time keeping method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113395754A CN113395754A (en) | 2021-09-14 |
CN113395754B true CN113395754B (en) | 2021-11-05 |
Family
ID=77622709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110943302.2A Active CN113395754B (en) | 2021-08-17 | 2021-08-17 | High-precision low-power-consumption time keeping method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113395754B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105703749A (en) * | 2014-11-24 | 2016-06-22 | 中国科学院沈阳自动化研究所 | Low-power consumption and accurate sleep timer circuit and method |
CN108712740A (en) * | 2018-08-14 | 2018-10-26 | 青岛海信电器股份有限公司 | A kind of Bluetooth Low Energy connection method and device |
CN112748758A (en) * | 2020-12-28 | 2021-05-04 | 深兰人工智能(深圳)有限公司 | Clock source selection method and device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102405678B (en) * | 2011-04-26 | 2014-01-01 | 华为技术有限公司 | Method and apparatus for calibrating low frequency clock |
US8867421B2 (en) * | 2012-04-12 | 2014-10-21 | Gainspan Corporation | Correction of clock errors in a wireless station to enable reduction of power consumption |
US9386552B2 (en) * | 2013-09-30 | 2016-07-05 | Honeywell International Inc. | Wireless sensor time synchronization |
CN110750048B (en) * | 2019-12-04 | 2021-10-26 | 电子科技大学 | DLL system based on successive approximation type PID control algorithm |
-
2021
- 2021-08-17 CN CN202110943302.2A patent/CN113395754B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105703749A (en) * | 2014-11-24 | 2016-06-22 | 中国科学院沈阳自动化研究所 | Low-power consumption and accurate sleep timer circuit and method |
CN108712740A (en) * | 2018-08-14 | 2018-10-26 | 青岛海信电器股份有限公司 | A kind of Bluetooth Low Energy connection method and device |
CN112748758A (en) * | 2020-12-28 | 2021-05-04 | 深兰人工智能(深圳)有限公司 | Clock source selection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113395754A (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2800341B1 (en) | A method and technical equipment for short range data transmission | |
US10375640B2 (en) | Method for switching bluetooth working modes, electronic device, and bluetooth chip | |
Chen et al. | Energy-autonomous wireless communication for millimeter-scale Internet-of-Things sensor nodes | |
US10271277B2 (en) | Apparatus, system and method of discovering a wireless communication device | |
CN114080067B (en) | Discontinuous Reception (DRX) configuration method, device and equipment | |
US6028855A (en) | Circuit for synchronizing CDMA mobile phones | |
CN112910501B (en) | Drowsy device operation in asynchronous channel hopping networks | |
US11924761B2 (en) | Communication apparatus and communication method | |
CN112469016A (en) | Bluetooth-ultra wideband synchronization | |
CN108777862B (en) | Bluetooth transmission method, Bluetooth controller and Bluetooth device | |
EP2833680A1 (en) | An energy limited node, an access network node, a communications system, and a communication method | |
US9749961B2 (en) | Method for controlling hibernation of nodes of wireless sensor network | |
CN108650663A (en) | A kind of bluetooth module and its clock work method of low clock request | |
CN108712740B (en) | Bluetooth low-power connection method and device | |
CN114554582B (en) | Scheduling method, device, system and medium for ranging of UWB system | |
WO2008145053A1 (en) | A network clock synchronization method of short range wireless communication network | |
US8179925B2 (en) | Sink device for a wireless local area network | |
US10506537B2 (en) | Transceiver device with real-time clock | |
CN113395754B (en) | High-precision low-power-consumption time keeping method | |
CN116868177A (en) | Method for controlling chip and integrated circuit system | |
US7120190B2 (en) | Low power RC clocking system for wireless communications | |
CN108668239B (en) | Wireless communication system with low power consumption and supporting one-to-many interaction and communication method thereof | |
EP2013979A2 (en) | Method and system to improve transmission and receipt of channel descriptors | |
CN115767743A (en) | Monitoring method, awakening signal transmission method, device, terminal and network side equipment | |
CN1630993B (en) | Method and apparatus for spread spectrum radio signal recovery in wideband spread spectrum communication systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |