CN118338390A - Timing method and device for sleep wakeup of narrowband Internet of things - Google Patents

Timing method and device for sleep wakeup of narrowband Internet of things Download PDF

Info

Publication number
CN118338390A
CN118338390A CN202410486180.2A CN202410486180A CN118338390A CN 118338390 A CN118338390 A CN 118338390A CN 202410486180 A CN202410486180 A CN 202410486180A CN 118338390 A CN118338390 A CN 118338390A
Authority
CN
China
Prior art keywords
timer
time
power
low
software system
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
CN202410486180.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.)
Guangzhou Particle Microelectronics Co ltd
Original Assignee
Guangzhou Particle Microelectronics 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 Guangzhou Particle Microelectronics Co ltd filed Critical Guangzhou Particle Microelectronics Co ltd
Priority to CN202410486180.2A priority Critical patent/CN118338390A/en
Publication of CN118338390A publication Critical patent/CN118338390A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The disclosure provides a timing method and device for sleep wakeup of a narrowband internet of things, comprising the following steps: in the low power consumption mode, a first timer is used for counting the low time consumption of the low power consumption mode; the first timer wakes up the terminal equipment until a first preset time; after the terminal equipment is awakened, a power-on process is carried out, a second timer is started at the same time, and a CPU software system is loaded when a second preset time is reached; after the CPU software system runs normally, starting a self-contained timer of the CPU system, and combining the values of the first timer and the second timer, and calculating to obtain accurate system time. The method and the device can improve timing precision, reduce operation complexity, realize flexible power-on and avoid time delay.

Description

Timing method and device for sleep wakeup of narrowband Internet of things
Technical Field
The disclosure relates to the technical field of the internet of things, in particular to a timing method and a timing device for sleep wakeup of a narrowband internet of things.
Background
NB-IoT (Narrow Band Internet ofThings) is a cellular-based narrowband Internet of things technology, supporting cellular data connection of low-power-consumption devices in a wide area network. It has 4 key nodes with low cost, strong coverage, low power consumption and large connection. It is widely applied to a plurality of aspects such as intelligent meters, intelligent parking, intelligent street lamps, intelligent agriculture, white household appliances, remote control, health detection, industrial application and the like, is one of the basic connection technologies in the 5G age.
The NB-IoT supports low power transmission modes such as a power saving mode (Power Saving Mode, PSM), a discontinuous reception mode (Discontinuous Reception, DRX), and an Extended discontinuous reception mode (eDRX), which can reduce power consumption of the terminal. Returning to the normal operation mode from the DRX or eDRX mode, the terminal equipment needs to be awakened and communicated with the base station, the network needs to be searched again to synchronize with the base station, and at the moment, information interaction between the network and the base station at a specific time slot position needs to be performed at relatively accurate time. Therefore, the terminal equipment is powered on again after being awakened, and accurate sleep time and the time consumed by power-on are required to be calculated.
Disclosure of Invention
In order to solve the problems, the present disclosure provides a method and an apparatus for timing sleep wakeup of a narrowband internet of things, which can improve timing precision, reduce operation complexity, realize flexible power-up and avoid time delay.
The disclosure provides a timing method for sleep wakeup of a narrowband internet of things, comprising the following steps: in the low power consumption mode, a first timer is used for counting the low time consumption of the low power consumption mode; the first timer wakes up the terminal equipment until a first preset time; after the terminal equipment is awakened, a power-on process is carried out, a second timer is started at the same time, and a CPU software system is loaded when a second preset time is reached; after the CPU software system runs normally, starting a self-contained timer of the CPU system, and combining the values of the first timer and the second timer, and calculating to obtain accurate system time.
Further, the low-consumption time duration is calculated by counting a low-consumption start time and a low-consumption end time of the low-consumption mode by the first timer.
Further, the power-on time length of the terminal equipment and the loading time length for loading the CPU software system are obtained through the counting of the second timer.
Further, the power-on duration refers to the duration from the start of power-on to the end of power-on after the terminal equipment wakes up to the start of loading the CPU software system; the loading time of the CPU software system is the time when the CPU software system starts to be loaded normally.
Further, after loading of the CPU software system is completed, a self-timer of the CPU software system is started.
Further, starting a self-contained timer of the CPU system, combining the values of the first counter and the second timer, and calculating to obtain accurate system time, wherein the method comprises the following steps: adding the low-consumption time length, the power-on time length and the loading time length to obtain total time length, and obtaining actual system time; and adding the timing of the self-timer of the CPU software system, and calculating to obtain the accurate system time.
Further, the first timer adopts an RTC timer; the second timer is a timer in a normally open power domain environment.
According to the technical scheme, the wake-up timing is performed in the low power consumption mode, and the effect of improving the timing precision and reducing the operation complexity is achieved through the combined realization idea of the RTC timing and the preset wake-up to the timing of powering up to loading the software system.
It should be understood that what is described in this summary is not intended to limit the critical or essential features of the embodiments of the disclosure nor to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. For a better understanding of the present disclosure, and without limiting the disclosure thereto, the same or similar reference numerals denote the same or similar elements, wherein:
Fig. 1 shows a flow chart of a timing method according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments in this disclosure without inventive faculty, are intended to be within the scope of this disclosure.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Aiming at the problem that the terminal equipment of the narrowband Internet of things is electrified again after being awakened, and accurate sleep time and the time consumed by the electrification are required to be calculated, the method comprises the following steps:
1. and the RTC timer is adopted for timing in the low power consumption mode and the power-on process, and the value of the RTC timer is read in the power-on process, so that the sleeping time and the power-on expense time can be obtained. However, the accuracy of the RTC timer alone is generally not high, and may cause deviation. In addition, the RTC (real_time Clock) timer generally has a unit counter for counting Time such as year, month, day, hour, minute, second, etc., and when all the units are read, a lot of Time is consumed, and the power-up Time is increased.
2. The method comprises the steps of timing by an RTC timer in a low power consumption mode, reading the value of the RTC timer in a power-on process, starting a high-precision timer in a normal working mode, compensating the timing value of the RTC timer, and switching to the high-precision timer to obtain sleeping time and power-on consumption time. However, when the RTC timer is used for timing the time in the low power consumption mode, the time is switched to the high-precision timer for timing after power-on, compensation conversion is needed for the RTC timer and the high-precision timer, and the calculation complexity is increased.
The utility model provides a timing method of sleep awakening of a narrowband Internet of things, which achieves the effects of improving timing precision and reducing operation complexity by carrying out awakening timing in a low power consumption mode and combining the RTC timing with the preset timing of awakening to power-on to a loaded software system. The specific steps are shown in fig. 1, including:
S101: in the low power consumption mode, a first timer is used for counting the low time consumption of the low power consumption mode;
S102: the first timer wakes up the terminal equipment until a first preset time;
S103: after the terminal equipment is awakened, a power-on process is carried out, a second timer is started at the same time, and a CPU software system is loaded when a second preset time is reached;
S104: after the CPU software system runs normally, starting a self-contained timer of the CPU system, and combining the values of the first timer and the second timer, and calculating to obtain accurate system time.
In the above embodiment, the terminal device includes a CPU software system or the like. The scheme is a wake-up timing method for the terminal equipment from a low power consumption mode to a normal power domain environment. And presetting the wake-up time length of the terminal equipment according to the system requirement, and realizing flexible power-up.
In the above embodiment, the low time consumption is calculated by counting the low-consumption start time and the low-consumption end time of the low-power consumption mode by the first timer. The time length is obtained by calculation by recording the time point.
In the above embodiment, the terminal device is awakened when the first preset time point is reached by counting of the first timer. The wake-up point of the terminal device may be a time value for ending the low-consumption mode, or a preset time value required by the system.
In the above embodiment, the power-on time length of the terminal device and the loading time length of the loading CPU software system are obtained by counting the second timer. And respectively recording the time value of each node through a second timer, and obtaining each duration through calculation. Specifically, the power-on duration refers to the duration from the start of power-on to the start of loading the CPU software system after the terminal equipment wakes up; the loading time of the CPU software system refers to the time from the start of loading the CPU software system to the normal loading.
In the above embodiment, when the loading of the CPU software system is completed, the self-timer of the CPU software system is started. After the system is loaded, the running is started, a timer of the software system is started, and the timing task of the system is timed. And the time of the second timer is matched, so that the preset wake-up time length is flexibly realized.
In the above embodiment, starting the self-timer of the CPU system, and calculating the accurate system time by combining the values of the first counter and the second timer includes: adding the low-consumption time, the power-on time, the loading time and the running time to obtain the total time, and obtaining the actual system time; and adding the timing time length of the self-contained timer of the CPU software system to obtain accurate system time. By means of simple time point recording and calculation, accurate system running time is obtained, and therefore the problems in the prior art are overcome. And the second timer is matched with the self timer of the CPU system, so that the time is adjusted within the preset total wake-up time length, and the system completes the wake-up process within the specified time.
In the above embodiment, the first timer employs an RTC timer; the second timer is a timer in a normally open power domain environment. Different environments adopt different timers to realize different functions. The RTC timer can provide accurate time and date information and can continue to run when the system is shut down or at low time consumption.
The specific embodiment mode is as follows:
in the low power mode, counting a low power start time and a low power end time of the low power mode using a first timer; the low-consumption time length is calculated through the low-consumption starting time and the low-consumption ending time, wherein the low-consumption time length can be the time length of a low-consumption mode, and the first preset time can also be set through a preset time point of awakening of the terminal equipment.
The first timer wakes up the terminal device by a first preset time, i.e. a low time consumption of 90 ms, and by 90 ms. .
The terminal equipment immediately enters a power-on process after being awakened, a second timer in a normally-open power domain is started at the same time, the power-on time is counted, a CPU software system is loaded when the second preset time is reached, the self-timer of the CPU system is started after the CPU software system is loaded, the loading time for loading the CPU software system is obtained through the counting of the second timer at the moment, the power-on time from being awakened to the power-on time is 5 milliseconds, and the loading time is 5 milliseconds; the second preset time is the time for loading the CPU software system, which is preset according to the requirement, after the power-on is completed, the CPU software system can be started after the preset time point arrives, so that the second preset time is the sum of the power-on duration and the loading time.
Starting a self-contained timer of the CPU system, and flexibly adjusting the time length in cooperation with the time length of the second timer to realize the preset total wake-up time length so that the system can run on time. The use of the self-contained timer of the CPU system reduces the time delay for reading the second timer. Through timing respectively, reach the effect of accurate timing.
By the combined use of the second timer and the self-contained timer of the CPU system, flexible time allocation is realized. Because the power-on and loading time of the CPU system of the terminal equipment is uncontrollable, the accuracy of the time point cannot be realized, errors and time delay phenomena can occur, but a time range exists generally, the power-on and loading process can be completed within the range, and the process cannot be the same for the next time and cannot be changed, so that the cooperation of the self-contained timer of the CPU software system is set. For example, the total duration of the scheduled sleep wakeup is 100ms, the duration of low power consumption is 80ms, the wakeup is powered on to start loading CPU system for 5ms, the CPU system is loaded for 5ms, and then the CPU system timer counts 10ms; if the CPU system is loaded for 7ms, the CPU system timer counts 8ms. The preset wake-up time of the system is realized, and the effect of accurate timing is achieved.
After the CPU software system runs normally, adding the first preset time (90 milliseconds) and the second preset time (10 milliseconds, including the power-on time length of 5 milliseconds and the loading time length of 5 milliseconds) to obtain the total time length from the low power consumption mode to the normal running of the CPU system (the total time length is 90+10=100), and obtaining the accurate system time after adding the timing of the self timer of the CPU system.
By the real-time counting and simple addition calculation, accurate timing of sleep awakening of the terminal equipment of the narrowband Internet of things is realized, timing precision is improved, and operation complexity is reduced.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (7)

1. The timing method for sleep wakeup of the narrowband Internet of things is characterized by comprising the following steps of:
in the low power consumption mode, a first timer is used for counting the low time consumption of the low power consumption mode;
the first timer wakes up the terminal equipment until a first preset time;
After the terminal equipment wakes up, a power-on process is carried out, a second timer is started at the same time, and a CPU software system is loaded when a second preset time is reached;
After the CPU software system runs normally, starting a self-contained timer of the CPU system, and combining the values of the first timer and the second timer, and calculating to obtain accurate system time.
2. The method of timing according to claim 1, wherein,
The low-consumption time duration is calculated by counting the low-consumption starting time and the low-consumption ending time of the low-consumption mode through a first timer.
3. The method of timing according to claim 1, wherein,
And acquiring the power-on time length of the terminal equipment and the loading time length for loading the CPU software system through the count of the second timer.
4. A timing method according to claim 3, wherein,
The power-on duration refers to the duration from the start of power-on to the end of power-on after the terminal equipment is awakened to the start of loading the CPU software system;
The loading time of the CPU software system is the time when the CPU software system starts to be loaded normally.
5. The method of timing according to claim 4, wherein,
And after the loading of the CPU software system is completed, starting a self-timer of the CPU software system.
6. The method of timing according to claim 5, wherein,
Starting a self-contained timer of the CPU system, combining values of the first counter and the second timer, and calculating to obtain accurate system time, wherein the method comprises the following steps:
adding the low-consumption time length, the power-on time length and the loading time length to obtain total time length, and obtaining actual system time;
and adding the timing time length of the self-contained timer of the CPU software system to obtain accurate system time.
7. The method of timing according to claim 1, wherein,
The first timer adopts an RTC timer;
The second timer is a timer in a normally open power domain environment.
CN202410486180.2A 2024-04-22 2024-04-22 Timing method and device for sleep wakeup of narrowband Internet of things Pending CN118338390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410486180.2A CN118338390A (en) 2024-04-22 2024-04-22 Timing method and device for sleep wakeup of narrowband Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410486180.2A CN118338390A (en) 2024-04-22 2024-04-22 Timing method and device for sleep wakeup of narrowband Internet of things

Publications (1)

Publication Number Publication Date
CN118338390A true CN118338390A (en) 2024-07-12

Family

ID=91774064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410486180.2A Pending CN118338390A (en) 2024-04-22 2024-04-22 Timing method and device for sleep wakeup of narrowband Internet of things

Country Status (1)

Country Link
CN (1) CN118338390A (en)

Similar Documents

Publication Publication Date Title
CN102540868B (en) A kind of slow clock crystal frequency compensation method of mobile communication terminal and device
CN1130096C (en) Synchronisation of a low power clock in a wireless communication device
CN105142210B (en) A kind of real-time clock synchronous calibration method and sensor for wireless sense network
US20060240798A1 (en) Apparatus and methods for control of sleep modes in a transceiver
CN102117114B (en) Electricity-saving method for embedded equipment
CN107071869B (en) Multimode terminal compatible with LoRaWAN Class A, class B and handsheet mode and multimode compatibility method
CN109803224B (en) Low-power-consumption positioning method and system, positioning terminal, service platform and control terminal
CN102395183B (en) ZigBee wireless sensor electricity saving method
CN106937369B (en) Low power consumption node synchronized wake-up method, node and system
CN201607626U (en) High stability real-time clock circuit
CN108401281B (en) Wireless low-power meter reading method based on channel detection
CN101494900A (en) Method of synchronization of wireless sensing network node
CN102412957A (en) High-precision synchronous clock adjusting method
CN105636183A (en) Energy-saving dormancy awakening method based on ZigBee technology
CN102821446B (en) Synchronous awaking mechanism of long-term and deep dormant wireless sensor network
CN111669812B (en) Low-power-consumption Bluetooth chip, equipment, dormancy awakening control method of equipment and communication system
JP2019115036A (en) Transceiver device with real-time clock
CN102495576B (en) Ultra-low power circuit control system and method thereof
CN104916102A (en) Intelligent gas meter wireless communication and control method
CN103096458B (en) Energy conservation time synchronization method of wireless temperature detecting net
CN104680100A (en) Active RFID (Radio Frequency Identification Device) low power consumption period awakening method
CN102368825B (en) Energy-saving control method of 3D glasses
CN118338390A (en) Timing method and device for sleep wakeup of narrowband Internet of things
CN106125890A (en) A kind of night dormancy method and system thereof of embedded device
CN104916104A (en) Intelligent water meter wireless communication and control method

Legal Events

Date Code Title Description
PB01 Publication