CN112492550A - Terminal LWM2M session heartbeat method, system and storage medium - Google Patents

Terminal LWM2M session heartbeat method, system and storage medium Download PDF

Info

Publication number
CN112492550A
CN112492550A CN202011220722.XA CN202011220722A CN112492550A CN 112492550 A CN112492550 A CN 112492550A CN 202011220722 A CN202011220722 A CN 202011220722A CN 112492550 A CN112492550 A CN 112492550A
Authority
CN
China
Prior art keywords
terminal
session
time
message
sending
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.)
Granted
Application number
CN202011220722.XA
Other languages
Chinese (zh)
Other versions
CN112492550B (en
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.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202011220722.XA priority Critical patent/CN112492550B/en
Publication of CN112492550A publication Critical patent/CN112492550A/en
Application granted granted Critical
Publication of CN112492550B publication Critical patent/CN112492550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • 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/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0216Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a terminal LWM2M session heartbeat method, a system and a storage medium, wherein the method comprises the steps of updating the time interval of an active wakeup sending message of the terminal and acquiring the updating time interval of a tracking area of the terminal; calculating a heartbeat scale value; acquiring the remaining time of a session timer; and determining that the residual time of the session timer is less than or equal to the heartbeat scale value, sending a session heartbeat message to the platform, and resetting the session timer. According to the embodiment of the application, the time interval of actively waking up and sending the message and the updating time interval of the tracking area of the terminal can be calculated in the sleep preparation stage of the terminal, the smaller value of the time interval and the updating time interval of the tracking area is used as the heartbeat scale value, and after the fact that the residual time of the session timer is smaller than or equal to the heartbeat scale value is determined, the terminal can be controlled to send the session heartbeat message to the platform and reset the session timer, so that the termination of terminal sleep caused by the expiration of the session timer in the terminal sleep process is reduced, and the energy consumption of the terminal is reduced. But this application wide application in thing networking terminal module SDK field.

Description

Terminal LWM2M session heartbeat method, system and storage medium
Technical Field
The application relates to the technical field of Internet of things terminal modules (SDKs), in particular to a terminal LWM2M session heartbeat method, system and storage medium.
Background
The existing NB terminal and the IOT platform are connected through LWM2M session, each LWM2M session has a lifetime, after the lifetime of the LWM2M session is finished, the NB terminal must send a specific LWM2M session heartbeat message to continue the LWM2M session, otherwise, the LWM2M session is closed. Since LWM2M conversational heartbeat increases the number of wakeups of the NB terminal, the power consumption of the NB terminal increases.
Disclosure of Invention
In view of the above, an object of the present application is to provide a terminal LWM2M session heartbeat method, system and storage medium to reduce energy consumption of NB terminals.
The first technical scheme adopted by the application is as follows:
a terminal LWM2M session heartbeat method comprises the following steps:
setting a session timer, and sending an LWM2M session heartbeat message to the platform by the terminal after the session timer finishes timing;
determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending a message of the terminal and acquiring the updating time interval of a tracking area of the terminal;
taking the smaller one of the time interval of actively waking up and sending the message and the updating time interval of the tracking area as the heartbeat index value of the terminal;
acquiring the remaining time of the session timer;
determining that the residual time of the session timer is less than or equal to the heartbeat scale value, sending an LWM2M session heartbeat message to the platform, and resetting the session timer;
wherein the operation phase comprises an awakening phase, a preparation dormancy phase and a dormancy phase.
Further, the method for updating the time interval for actively waking up to send the message comprises the following steps:
determining that the terminal actively sends an uplink message at a last wakeup stage, and acquiring first uplink message time and second uplink message time, wherein the first uplink message time is the time for sending a first uplink message at the last wakeup stage, and the second uplink message time is the time for sending a first uplink message at the last wakeup stage;
subtracting the second uplink message time from the first uplink message time to obtain a first time length;
acquiring a second time length which is the time interval of actively waking up and sending the message obtained by the last calculation;
and calculating the time interval of actively waking up and sending the message according to the first time length and the second time length.
Further, the step of calculating the time interval for actively waking up to send the message according to the first duration and the second duration includes:
adding the first time length and the second time length to obtain a total time length;
calculating a first weight of the first duration in the total duration, and calculating a second weight of the second duration in the total duration;
multiplying the first time length by the first weight to obtain a first weight time length;
multiplying the second duration by the second weight to obtain a second weight duration;
and adding the first weight duration and the second weight duration to obtain the time interval of actively waking up and sending the message.
Further, the terminal LWM2M session heartbeat method further includes:
and determining that the session timer expires, and calculating the time interval of actively waking up and sending the message according to the first time length, the second time length and a correction factor, wherein the correction factor is used for improving the proportion of the first time length in the calculation of the time interval of actively waking up and sending the message.
Further, the terminal LWM2M session heartbeat method further includes:
acquiring the lifetime of the LWM2M session;
and determining that the remaining time of the session timer is less than or equal to the product of the lifetime of the LWM2M session and a first threshold, sending an LWM2M session heartbeat message to the platform, and resetting the session timer.
The second technical scheme adopted by the application is as follows:
a terminal LWM2M session heartbeat system, comprising:
the timing module is used for setting a session timer, and the session timer is used for controlling the terminal to send an LWM2M session heartbeat message to the platform after timing is finished;
the updating module is used for determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending the message of the terminal and acquiring the updating time interval of the tracking area of the terminal;
a value marking module, configured to use the smaller one of the time interval for actively waking up to send a message and the update time interval of the tracking area as a heartbeat value marking of the terminal;
an obtaining module, configured to obtain a remaining time of the session timer;
and the heartbeat module is used for carrying out heartbeat processing on the LWM2M session according to the residual time of the session timer, the heartbeat mark value and the life cycle of the LWM2M session.
Further, the method for updating the time interval for actively waking up to send the message comprises the following steps:
determining that the terminal actively sends an uplink message at a last wakeup stage, and acquiring first uplink message time and second uplink message time, wherein the first uplink message time is the time for sending a first uplink message at the last wakeup stage, and the second uplink message time is the time for sending a first uplink message at the last wakeup stage;
subtracting the second uplink message time from the first uplink message time to obtain a first time length;
acquiring a second time length which is the time interval of actively waking up and sending the message obtained by the last calculation;
and calculating the time interval of actively waking up and sending the message according to the first time length and the second time length.
Further, the calculating the time interval for actively waking up and sending the message according to the first duration and the second duration includes:
adding the first time length and the second time length to obtain a total time length;
calculating a first weight of the first duration in the total duration, and calculating a second weight of the second duration in the total duration;
multiplying the first time length by the first weight to obtain a first weight time length;
multiplying the second duration by the second weight to obtain a second weight duration;
and adding the first weight duration and the second weight duration to obtain the time interval of actively waking up and sending the message.
The third technical scheme adopted by the application is as follows:
a terminal LWM2M session heartbeat system, comprising:
a memory for storing a program;
and the processor is used for loading the program to execute the terminal LWM2M session heartbeat method.
The fourth technical scheme adopted by the application is as follows:
a computer readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the terminal LWM2M session heartbeat method.
According to the embodiment of the application, the time interval of actively waking up and sending the message and the updating time interval of the tracking area of the terminal can be calculated in the sleep preparation stage of the terminal, the smaller value of the time interval and the updating time interval of the tracking area is used as the heartbeat scale value, and after the fact that the residual time of the session timer is smaller than or equal to the heartbeat scale value is determined, the terminal can be controlled to send the LWM2M session heartbeat message to the platform and reset the session timer, so that the termination of terminal sleep caused by the timing end of the session timer in the terminal sleep process is reduced, and the energy consumption of the terminal is reduced.
Drawings
Fig. 1 is a flowchart of a session heartbeat method for a terminal LWM2M according to an embodiment of the present application.
Detailed Description
The conception, specific structure and technical effects of the present application will be described clearly and completely with reference to the following embodiments and the accompanying drawings, so that the purpose, scheme and effects of the present application can be fully understood.
The present application will now be described in further detail with reference to the accompanying drawings and specific examples. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art. Further, for several described in the following embodiments, it is denoted as at least one.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "etc.), provided herein is intended merely to better illuminate embodiments of the application and does not pose a limitation on the scope of the application unless otherwise claimed.
NB-IOT is an emerging technology in the IOT field, supporting cellular data connectivity for low power devices in a wide area network, also called low power wan. The NB-IOT supports efficient connection of devices with long standby time and high requirements for network connection. In a low-power-consumption wide area network, an NB terminal needs to communicate with an IOT platform, the communication can use LWM2M for session connection, LWM2M is a lightweight M2M, and the protocol is proposed by a development mobile alliance, is a lightweight, standard and general Internet of things equipment management protocol, and can be used for rapidly deploying Internet of things services in a client/server mode. The LWM2M session heartbeat message is a credential that the NB terminal sends to the IOT platform to prove that the NB terminal is online. Each LWM2M session has a lifetime, after the lifetime of the LWM2M session is over, the NB terminal must send a specific LWM2M session heartbeat message to continue the LWM2M session, otherwise the LWM2M session is closed. Therefore, if the NB terminal and the IOT platform need to maintain communication, the NB terminal needs to periodically send an LWM2M session heartbeat message to the IOT platform, and send an LWM2M session heartbeat message needs to keep the NB terminal in an awake state, so that maintaining an LWM2M session prolongs the awake time and the awake times of the NB terminal, and increases the energy consumption of the NB terminal.
The embodiment of the present application provides a terminal LWM2M session heartbeat method, with reference to fig. 1, including:
s100, setting a session timer, and after the session timer finishes timing, the terminal sends an LWM2M session heartbeat message to the platform;
s200, determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending a message of the terminal and acquiring the updating time interval of a tracking area of the terminal;
s300, taking the smaller one of the time interval of actively waking up and sending the message and the updating time interval of the tracking area as the heartbeat scale value of the terminal;
s400, acquiring the remaining time of the session timer;
s500, determining that the residual time of the session timer is less than or equal to the heartbeat scale value, sending an LWM2M session heartbeat message to the platform, and resetting the session timer;
generally, the operation phase of the NB terminal includes a wake-up phase, a sleep preparation phase, and a sleep phase, and the terminal continuously circulates three phases, where the wake-up phase is an active phase of the terminal; the sleep preparation phase is a transition phase from the wake-up phase to the sleep phase of the terminal; the sleep stage is a low energy consumption stage of the terminal, and the energy consumption of the terminal can be greatly reduced by entering the sleep stage. When the NB terminal is in the PSM mode, it is awakened when the tracking area needs to be updated or the terminal needs to uplink a message, and if the LWM2M session heartbeat of the terminal is synchronized with at least one of the tracking area update and the uplink message, the number of times that the terminal wakes up due to the LWM2M session heartbeat can be reduced, and the energy consumption of the terminal is reduced.
Therefore, the time interval of the active wakeup sending message and the updating time interval of the tracking area of the terminal can be obtained in the sleep preparation stage of the terminal, and after the time interval of the active wakeup sending message and the updating time interval of the tracking area of the terminal are obtained, the smaller value of the time interval of the active wakeup sending message and the updating time interval of the tracking area of the terminal can be selected as the heartbeat standard value. The smaller value of the time interval of actively waking up and sending the message and the updating time interval of the tracking area of the terminal is the closest waking time of the next terminal, so the heartbeat standard value is the time interval of waking up the terminal next time. The terminal is provided with a session timer, the session timer is used for timing the lifetime of the LWM2M session, and when the remaining time of the session timer is less than the heartbeat index value, it indicates that the next LWM2M session heartbeat is in the sleep stage of the terminal, the LWM2M session heartbeat time can be advanced, and the session timer of the LWM2M session heartbeat is reset, so as to avoid that the session timer expires before the next terminal wakes up, and synchronize the updated rhythm of the session timer with the rhythm of uplink message sending or the updated rhythm of the tracking area.
Since the active wakeup message transmission time interval is a statistical value used for counting the time interval between two uplink messages, the time interval for updating the active wakeup message transmission needs to be calculated by continuously obtaining the latest active wakeup message transmission time interval.
In some embodiments, the active wakeup message sending time interval is updated according to the time interval of the last uplink message of the terminal and the time interval of the last active wakeup message sending. Based on the calculation method, the time interval of the last uplink message is needed to update the time interval of the active wakeup sending message, so the triggering condition of the uplink message update is that the terminal actively sends the uplink message at the wakeup stage. The formula for updating the uplink message is as follows:
Figure BDA0002761913910000051
wherein wkiavg (now) is an updated active wakeup message sending time interval, wkiavg (last) is a second time duration, that is, the time interval of the active wakeup message sending obtained through previous statistics, sendst (now) is a first uplink message time, that is, the time of the current message sending, sendst (last) is a second uplink message time, that is, the time of the previous message sending, sendst (now) -sendst (last) is a first time duration, that is, the time interval of the active wakeup message sending obtained through the current calculation, and a predicted value of a next message sending time interval, that is, the updated time interval of the active wakeup message sending, can be obtained through the time interval of the active wakeup message sending obtained through previous statistics and the time interval of the active wakeup message sending obtained through the current calculation. The first uplink message time is the time for sending the first uplink message in the wakeup stage, and the time interval for taking the first uplink message sending time for calculating the active wakeup message sending time interval of the terminal is more accurate because the number of the uplink messages is possibly more than one. The second uplink message time is the time of sending the first uplink message in the wake-up stage of actively sending the uplink message for the last time except the wake-up stage.
Since the default of the time interval for actively sending the wakeup message is set to 0 at the beginning, that is, 0 is used as an initial value, if the method is adopted to update the time interval for actively sending the wakeup message, the time interval for actively sending the wakeup message obtained for the first time is nearly half of the time interval for actively sending the wakeup message, and the error of the time interval for actively sending the wakeup message caused by the initial value can be gradually reduced through continuous iteration subsequently.
In some embodiments, in order to reduce the influence of an error of an initial value on the time interval of the active wakeup transmission message, when calculating an average value of the first duration and the second duration, that is, when calculating an average value of the time interval of the active wakeup transmission message obtained by the last statistics and the time interval of the active wakeup transmission message obtained by the current calculation, weights are calculated according to the sizes of the first duration and the second duration, and the first duration and the second duration are weighted and averaged to obtain an updated time interval of the active wakeup transmission message, which is specifically calculated as follows:
WKIAVG(NOW)=α×WKIAVG(LAST)+β×(SendST(NOW)-SendST(LAST))
the total duration can be obtained by adding the first duration to the second duration, α is a first weight, i.e., the weight of the first duration in the total duration, and β is a second weight, i.e., the weight of the second duration in the total duration.
The default of the time interval for sending the message by the active wakeup is set to 0 at the beginning, the time interval for sending the message by the active wakeup can reach the vicinity of an ideal value in the first period by a weight calculation method, and the calculation method using the equal proportion average value can reach the vicinity of the ideal value by using a plurality of periods.
Since the updated time interval for actively waking up and sending the message is calculated based on the first time length and the second time length, the first time length reflects a previous statistical time interval, and the second time length reflects a recently calculated time interval, after the terminal changes the uplink message sending strategy, the calculation method cannot well track a new uplink message sending strategy.
Therefore, in some embodiments, when the terminal is awakened by the session timer, not only the uplink heartbeat message is required, but also the time interval for actively awakening and sending the message needs to be corrected, where the correction formula is as follows:
WKIAVG(NOW)=WKIAVG(LAST)+(SendST(NOW)-SendST(LAST))×(1+10%)
wherein wkiavg (now) is the updated active wakeup message sending time interval, wkiavg (last) is the latest active wakeup message sending time interval, sendst (now) is the current time, that is, the current message sending time, and sendst (last) is the second uplink message time. The correction factor of 10% is added in the correction formula, so that the time interval of actively waking up and sending the message can be updated more quickly to adapt to a new uplink message sending strategy.
Meanwhile, in order to reduce the probability of the LWM2M session heartbeat waking up the terminal, in some embodiments, an LWM2M session heartbeat condition is set, and when the remaining time of the session timer, i.e., the remaining time of the LWM2M session is less than the product of the LWM2M session lifetime multiplied by the first threshold, the LWM2M session heartbeat is sent and the session timer is reset. For example, taking the first threshold to be 10%, when the remaining lifetime of the LWM2M session is determined to be less than 10% of the total lifetime of the LWM2M session, the LWM2M session is heartbeat and the session timer is reset. The probability of waking up the terminal by the session heartbeat of the LWM2M can be reduced by setting a threshold value for the determination.
The embodiment of the present application further provides a terminal LWM2M session heartbeat system, including:
the timing module is used for setting a session timer, and the session timer is used for controlling the terminal to send an LWM2M session heartbeat message to the platform after timing is finished;
the updating module is used for determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending the message of the terminal and acquiring the updating time interval of the tracking area of the terminal;
a value marking module, configured to use the smaller one of the time interval for actively waking up to send a message and the update time interval of the tracking area as a heartbeat value marking of the terminal;
an obtaining module, configured to obtain a remaining time of the session timer;
and the heartbeat module is used for carrying out heartbeat processing on the LWM2M session according to the residual time of the session timer, the heartbeat mark value and the life cycle of the LWM2M session.
The contents in the above method embodiments are all applicable to the present system embodiment, the functions specifically implemented by the present system embodiment are the same as those in the above method embodiment, and the beneficial effects achieved by the present system embodiment are also the same as those achieved by the above method embodiment.
It should be appreciated that the layers, modules, units, platforms, and/or the like included in an embodiment system of the application may be implemented or embodied by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Moreover, the data processing flows performed by the layers, modules, units, and/or platforms included in the system embodiments of the present application may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The data processing flows correspondingly performed by the layers, modules, units and/or platforms included in the system of embodiments of the present application may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions executable by one or more processors.
The embodiment of the present application further provides a terminal LWM2M session heartbeat system, including:
a memory for storing a program;
and the processor is used for loading the program to execute the terminal LWM2M session heartbeat method.
The system may be implemented in any type of computing platform operatively connected to a suitable connection, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. The data processing flows correspondingly executed by the layers, modules, units and/or platforms included in the system of the present application may be implemented in machine readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and/or write storage medium, a RAM, a ROM, etc., so that it may be read by a programmable computer, and when the storage medium or device is read by a computer, may be used to configure and operate the computer to perform the processes described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described herein includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The present application also includes the computer itself when programmed according to the methods and techniques described herein.
The contents in the above method embodiments are all applicable to the present system embodiment, the functions specifically implemented by the present system embodiment are the same as those in the above method embodiment, and the beneficial effects achieved by the present system embodiment are also the same as those achieved by the above method embodiment.
In addition, a storage medium is further provided, where processor-executable instructions are stored, and when executed by a processor, the processor-executable instructions are configured to perform the steps of the method for processing mutual information according to any one of the above-mentioned method embodiments. For the storage medium, it may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. It can be seen that the contents in the foregoing method embodiments are all applicable to this storage medium embodiment, the functions specifically implemented by this storage medium embodiment are the same as those in the foregoing method embodiments, and the advantageous effects achieved by this storage medium embodiment are also the same as those achieved by the foregoing method embodiments.
The above description is only a preferred embodiment of the present application, and the present application is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present application should be included in the protection scope of the present application as long as the technical effects of the present application are achieved by the same means. Various modifications and variations of the technical solution and/or embodiments thereof are possible within the protective scope of the present application.

Claims (10)

1. A terminal LWM2M session heartbeat method is characterized by comprising the following steps:
setting a session timer, and sending an LWM2M session heartbeat message to the platform by the terminal after the session timer finishes timing;
determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending a message of the terminal and acquiring the updating time interval of a tracking area of the terminal;
taking the smaller one of the time interval of actively waking up and sending the message and the updating time interval of the tracking area as the heartbeat index value of the terminal;
acquiring the remaining time of the session timer;
determining that the residual time of the session timer is less than or equal to the heartbeat scale value, sending an LWM2M session heartbeat message to the platform, and resetting the session timer;
wherein the operation phase comprises an awakening phase, a preparation dormancy phase and a dormancy phase.
2. The terminal LWM2M session heartbeat method according to claim 1, wherein the method for updating the time interval for actively waking up and sending the packet is as follows:
determining that the terminal actively sends an uplink message at a last wakeup stage, and acquiring first uplink message time and second uplink message time, wherein the first uplink message time is the time for sending a first uplink message at the last wakeup stage, and the second uplink message time is the time for sending a first uplink message at the last wakeup stage;
subtracting the second uplink message time from the first uplink message time to obtain a first time length;
acquiring a second time length which is the time interval of actively waking up and sending the message obtained by the last calculation;
and calculating the time interval of actively waking up and sending the message according to the first time length and the second time length.
3. The terminal LWM2M session heartbeat method according to claim 2, wherein the step of calculating the active wakeup message sending time interval according to the first duration and the second duration includes:
adding the first time length and the second time length to obtain a total time length;
calculating a first weight of the first duration in the total duration, and calculating a second weight of the second duration in the total duration;
multiplying the first time length by the first weight to obtain a first weight time length;
multiplying the second duration by the second weight to obtain a second weight duration;
and adding the first weight duration and the second weight duration to obtain the time interval of actively waking up and sending the message.
4. The terminal LWM2M session heartbeat method of claim 2, wherein the terminal LWM2M session heartbeat method further comprises:
and determining that the session timer expires, and calculating the time interval of actively waking up and sending the message according to the first time length, the second time length and a correction factor, wherein the correction factor is used for improving the proportion of the first time length in the calculation of the time interval of actively waking up and sending the message.
5. The terminal LWM2M session heartbeat method as claimed in claim 1, wherein the terminal LWM2M session heartbeat method further comprises:
acquiring the lifetime of the LWM2M session;
and determining that the remaining time of the session timer is less than or equal to the product of the lifetime of the LWM2M session and a first threshold, sending an LWM2M session heartbeat message to the platform, and resetting the session timer.
6. A terminal LWM2M session heartbeat system, comprising:
the timing module is used for setting a session timer, and the session timer is used for controlling the terminal to send an LWM2M session heartbeat message to the platform after timing is finished;
the updating module is used for determining that the operation stage of the terminal is a sleep preparation stage, updating the time interval of actively waking up and sending the message of the terminal and acquiring the updating time interval of the tracking area of the terminal;
a value marking module, configured to use the smaller one of the time interval for actively waking up to send a message and the update time interval of the tracking area as a heartbeat value marking of the terminal;
an obtaining module, configured to obtain a remaining time of the session timer;
and the heartbeat module is used for determining that the residual time of the session timer is less than or equal to the heartbeat scale value, sending an LWM2M session heartbeat message to the platform and resetting the session timer.
7. The terminal LWM2M session heartbeat system according to claim 6, wherein the method for updating the time interval for actively waking up and sending the message is as follows:
determining that the terminal actively sends an uplink message at a last wakeup stage, and acquiring first uplink message time and second uplink message time, wherein the first uplink message time is the time for sending a first uplink message at the last wakeup stage, and the second uplink message time is the time for sending a first uplink message at the last wakeup stage;
subtracting the second uplink message time from the first uplink message time to obtain a first time length;
acquiring a second time length which is the time interval of actively waking up and sending the message obtained by the last calculation;
and calculating the time interval of actively waking up and sending the message according to the first time length and the second time length.
8. The terminal LWM2M session heartbeat system according to claim 7, wherein the calculating the active wakeup message sending time interval according to the first duration and the second duration includes:
adding the first time length and the second time length to obtain a total time length;
calculating a first weight of the first duration in the total duration, and calculating a second weight of the second duration in the total duration;
multiplying the first time length by the first weight to obtain a first weight time length;
multiplying the second duration by the second weight to obtain a second weight duration;
and adding the first weight duration and the second weight duration to obtain the time interval of actively waking up and sending the message.
9. A terminal LWM2M session heartbeat system, comprising:
a memory for storing a program;
a processor for loading the program to perform the terminal LWM2M session heartbeat method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the terminal LWM2M session heartbeat method as claimed in any one of claims 1 to 5.
CN202011220722.XA 2020-11-05 2020-11-05 Method, system and storage medium for heartbeat of LWM2M session of terminal Active CN112492550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011220722.XA CN112492550B (en) 2020-11-05 2020-11-05 Method, system and storage medium for heartbeat of LWM2M session of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011220722.XA CN112492550B (en) 2020-11-05 2020-11-05 Method, system and storage medium for heartbeat of LWM2M session of terminal

Publications (2)

Publication Number Publication Date
CN112492550A true CN112492550A (en) 2021-03-12
CN112492550B CN112492550B (en) 2023-08-29

Family

ID=74928390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011220722.XA Active CN112492550B (en) 2020-11-05 2020-11-05 Method, system and storage medium for heartbeat of LWM2M session of terminal

Country Status (1)

Country Link
CN (1) CN112492550B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543293A (en) * 2021-06-21 2021-10-22 天翼物联科技有限公司 Narrow-band Internet of things terminal supporting low-power-consumption operation and control method thereof
CN114364056A (en) * 2021-12-28 2022-04-15 天翼物联科技有限公司 Method, system, device and storage medium for controlling terminal LWM2M session

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200190686Y1 (en) * 1999-12-11 2000-08-01 양재욱 Finger mouse
CN102932757A (en) * 2012-09-25 2013-02-13 百度在线网络技术(北京)有限公司 Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system
WO2017107852A1 (en) * 2015-12-25 2017-06-29 阿里巴巴集团控股有限公司 Method and device for transmitting heartbeat packet
WO2017131564A1 (en) * 2016-01-27 2017-08-03 Telefonaktiebolaget Lm Ericsson (Publ) Method for setting up a secure connection between lwm2m devices
WO2020082228A1 (en) * 2018-10-23 2020-04-30 Nokia Technologies Oy Method and apparatus for attesting physical attacks
CN111226186A (en) * 2018-03-16 2020-06-02 华为技术有限公司 Wake-up management method, timer management method and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200190686Y1 (en) * 1999-12-11 2000-08-01 양재욱 Finger mouse
CN102932757A (en) * 2012-09-25 2013-02-13 百度在线网络技术(北京)有限公司 Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system
WO2017107852A1 (en) * 2015-12-25 2017-06-29 阿里巴巴集团控股有限公司 Method and device for transmitting heartbeat packet
CN106922039A (en) * 2015-12-25 2017-07-04 阿里巴巴集团控股有限公司 The sending method and device of a kind of heartbeat message
WO2017131564A1 (en) * 2016-01-27 2017-08-03 Telefonaktiebolaget Lm Ericsson (Publ) Method for setting up a secure connection between lwm2m devices
CN111226186A (en) * 2018-03-16 2020-06-02 华为技术有限公司 Wake-up management method, timer management method and terminal equipment
WO2020082228A1 (en) * 2018-10-23 2020-04-30 Nokia Technologies Oy Method and apparatus for attesting physical attacks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孔露婷;王桂英;曹蕾;马帅;: "基于蜂窝物联网技术的业务续航研究", 移动通信, no. 05 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113543293A (en) * 2021-06-21 2021-10-22 天翼物联科技有限公司 Narrow-band Internet of things terminal supporting low-power-consumption operation and control method thereof
CN113543293B (en) * 2021-06-21 2023-06-27 天翼物联科技有限公司 Narrowband Internet of things terminal supporting low-power-consumption operation and control method thereof
CN114364056A (en) * 2021-12-28 2022-04-15 天翼物联科技有限公司 Method, system, device and storage medium for controlling terminal LWM2M session
CN114364056B (en) * 2021-12-28 2023-08-29 天翼物联科技有限公司 Control method, system, device and storage medium for LWM2M session of terminal

Also Published As

Publication number Publication date
CN112492550B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US9535747B2 (en) Application heartbeat period adjusting method and apparatus, and terminal
US10057856B2 (en) Wake-up control method and apparatus, and terminal device
JP2022521692A (en) How to use power saving signal patterns, devices and terminals
AU2005229818B2 (en) Networked wireless communications device programmed to identify and eliminate probable multipath errors to enhance accuracy in correcting sleep clock for thermally induced errors
US8060154B1 (en) Conserving power on a mobile device
CN112492550B (en) Method, system and storage medium for heartbeat of LWM2M session of terminal
US11115955B2 (en) Method for transmitting paging message, device, and storage medium
CN104604323A (en) Adaptive fast dormancy controller
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
US20210195520A1 (en) Battery Power Management for a Cellular Device
CN111200661B (en) Internet of things terminal equipment and sleep control method thereof
WO2012099829A1 (en) Adaptive peer discovery based on non peer discovery transmissions and device density for wi-fi
Zhou et al. Online learning-based discontinuous reception (DRX) for machine-type communications
Bedewy et al. Low-power status updates via sleep-wake scheduling
Renzler et al. Improving the efficiency and responsiveness of smart objects using adaptive BLE device discovery
US11115169B2 (en) Parent node device, terminal device for wireless network and data transmission method thereof
KR20160121876A (en) Changing method from sleep mode to awake mode in wifi system
CN107079398A (en) The power management of Wireless Telecom Equipment
JP5798340B2 (en) Base station and control method thereof
Dang et al. A unified stochastic model for energy management in solar-powered embedded systems
JP2010028503A (en) Wireless communication system
RU2440694C2 (en) Methods and apparatus for processing interruption of service conditions in different modes
Guntupalli et al. Event-triggered sleeping for synchronous DC MAC in WSNs: Mechanism and DTMC modeling
Rahmani et al. Energy efficient discontinuous reception strategy in LTE and beyond using an adaptive packet queuing technique
Al‐Sulaifanie et al. Hybrid access and adaptive duty cycle clustering protocol for ultra‐low power wireless sensor networks

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