Method and apparatus for controlling timer, communication device, and storage medium
A method for controlling a timer, performed by a terminal, includes: in response to determining that a timer of a first discontinuous reception (DRX) configuration among a plurality of DRX configurations in the terminal is to be started, determining an operation on the timer of the first DRX configuration according to a running state of a timer of a second DRX configuration among the plurality of DRX configurations.
1 . A method for controlling a timer, performed by a terminal, and comprising:
determining that a timer of a first discontinuous reception (DRX) configuration among a plurality of DRX configurations in the terminal is to be started; and
determining an operation on the timer of the first DRX configuration according to a running state of a timer of a second DRX configuration among the plurality of DRX configurations, wherein the plurality of DRX configurations are DRX configurations for a sidelink (SL);
wherein determining the operation on the timer of the first DRX configuration according to the running state of the timer of the second DRX configuration among the plurality of DRX configurations comprises:
determining that the timer of the second DRX configuration among the plurality of DRX configurations is not running; and
starting the timer of the first DRX configuration according to the first DRX configuration;
wherein determining the operation on the timer of the first DRX configuration according to the running state of the timer of the second DRX configuration among the plurality of DRX configurations comprises:
determining that the timer of the second DRX configuration is running; and
determining the operation on the timer of the first DRX configuration according to a running time range of the timer of the second DRX configuration; and
wherein determining the operation on the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration comprises: determining to start the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration; wherein determining to start the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration comprises: determining that a timeout time point of the running timer of the second DRX configuration is earlier than a timeout time point of the first DRX configuration; and determining to restart the timer of the first DRX configuration;
or
wherein determining the operation on the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration comprises: determining to continue running the timer of the second DRX configuration according to the running time range of the timer of the second DRX configuration; wherein determining to continue running the timer of the second DRX configuration according to the running time range of the timer of the second DRX configuration comprises: determining that the timeout time point of the running timer of the second DRX configuration is equal to the timeout time point of the first DRX configuration; and determining to continue running the timer of the second DRX configuration.
2 . The method according to claim 1 , wherein determining to continue running the timer of the second DRX configuration according to the running time range of the timer of the second DRX configuration comprises:
determining that the timeout time point of the running timer of the second DRX configuration is later than the timeout time point of the first DRX configuration; and
determining to continue running the timer of the second DRX configuration.
3 . The method according to claim 1 , wherein the timer of the first DRX configuration and the timer of the second DRX configuration are the same type of timers.
4 . A communication device, comprising a processor and a memory for storing an executable instruction that can run on the processor, wherein the processor is configured to:
determine that a timer of a first discontinuous reception (DRX) configuration among a plurality of DRX configurations in a terminal is to be started; and
determine an operation on the timer of the first DRX configuration according to a running state of a timer of a second DRX configuration among the plurality of DRX configurations, wherein the plurality of DRX configurations are DRX configurations for a sidelink (SL);
wherein the processor is further configured to:
determine that the timer of the second DRX configuration among the plurality of DRX configurations is not running; and
start the timer of the first DRX configuration according to the first DRX configuration;
wherein the processor is further configured to:
determine that the timer of the second DRX configuration is running; and
determine the operation on the timer of the first DRX configuration according to a running time range of the timer of the second DRX configuration; and
wherein the processor is further configured to: determine to start the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration; wherein the processor is further configured to: determine that a timeout time point of the running timer of the second DRX configuration is earlier than a timeout time point of the first DRX configuration; and determine to restart the timer of the first DRX configuration;
or
wherein the processor is further configured to: determine to continue running the timer of the second DRX configuration according to the running time range of the timer of the second DRX configuration; wherein the processor is further configured to: determine that the timeout time point of the running timer of the second DRX configuration is equal to the timeout time point of the first DRX configuration; and determine to continue running the timer of the second DRX configuration.
5 . The communication device according to claim 4 , wherein the processor is further configured to:
determine that the timeout time point of the running timer of the second DRX configuration is later than the timeout time point of the first DRX configuration; and
determine to continue running the timer of the second DRX configuration.
6 . The communication device according to claim 4 , wherein the timer of the first DRX configuration and the timer of the second DRX configuration are the same type of timers.
7 . A non-transitory computer-readable storage medium, storing a computer-executable instruction, wherein the computer-executable instruction when executed by a processor, causes the processor to:
determine that a timer of a first discontinuous reception (DRX) configuration among a plurality of DRX configurations in the terminal is to be started; and
determine an operation on the timer of the first DRX configuration according to a running state of a timer of a second DRX configuration among the plurality of DRX configurations, wherein the plurality of DRX configurations are DRX configurations for a sidelink (SL);
wherein the computer-executable instruction when executed by a processor, further causes the processor to:
determine that the timer of the second DRX configuration among the plurality of DRX configurations is not running; and
start the timer of the first DRX configuration according to the first DRX configuration;
wherein the computer-executable instruction when executed by a processor, further causes the processor to:
determine that the timer of the second DRX configuration is running; and
determine the operation on the timer of the first DRX configuration according to a running time range of the timer of the second DRX configuration; and
wherein the computer-executable instruction when executed by a processor, further causes the processor to: determine to start the timer of the first DRX configuration according to the running time range of the timer of the second DRX configuration; wherein the computer-executable instruction when executed by a processor, further causes the processor to: determine that a timeout time point of the running timer of the second DRX configuration is earlier than a timeout time point of the first DRX configuration; and determine to restart the timer of the first DRX configuration;
or
wherein the computer-executable instruction when executed by a processor, further causes the processor to: determine to continue running the timer of the second DRX configuration according to the running time range of the timer of the second DRX configuration; wherein the computer-executable instruction when executed by a processor, further causes the processor to: determine that the timeout time point of the running timer of the second DRX configuration is equal to the timeout time point of the first DRX configuration; and determine to continue running the timer of the second DRX configuration.