Method and terminal for applying for authorization duration, computer equipment, and storage medium

By using a periodic timer mechanism in D2D communication, based on the minimum authorization duration and the advance application timer duration set by the user, the authorization service application process is simplified, the problems of frequent interactions and timer complexity are solved, and the service continuity and terminal availability are improved.

CN116506833BActive Publication Date: 2025-09-26SAMSUNG SEMICON CHINA RES & DEV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310301434.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2025-09-26
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

In D2D communication, frequent authorization service application operations increase the number of interactions between the terminal and the ProSe network server, affecting the service quality. In addition, due to the large differences in the duration of different authorization services, the timer complexity increases, affecting the terminal's software availability.

Method used

By obtaining the minimum or lowest authorization duration of multiple authorized services and the advance authorization timer duration set by the user, a periodic timer duration is determined, the periodic timer is started to apply for the authorization duration of multiple authorized services at one time, and a new authorization duration is applied in advance before the periodic timer expires, simplifying the timer setting to ensure service continuity.

Benefits of technology

It reduces the frequency of authorization service applications, improves the continuous availability and interaction efficiency of services, reduces network data pressure, avoids service interruptions, and simplifies the timer implementation of terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506833B_ABST
    Figure CN116506833B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and terminal, computer device, and storage medium for applying for authorization duration. The method for applying for authorization duration includes: in response to receiving service authorization for multiple authorized services, obtaining multiple authorization durations for the multiple authorized services; based on the minimum or lowest authorization duration among the multiple authorization durations and the timer duration for applying for authorization in advance, determining a periodic timer duration for obtaining multiple authorized services at one time, wherein the timer duration for applying for authorization in advance is set by the user; starting a periodic timer set based on the periodic timer duration, and in response to the periodic timer expiring, applying for multiple new authorization durations for the multiple authorized services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, in particular to the field of device-to-device (D2D) communication authorization technologies, and more specifically to a method for applying for authorization duration, a terminal, a computer device, and a storage medium. Background Art

[0002] Device-to-Device (D2D) communication, a technology that allows direct discovery and communication between devices, has been introduced in LTE and 5G. D2D communication can increase the spectrum efficiency of communication systems, reduce the transmit power of terminals, and, to a certain extent, address the problem of spectrum scarcity in wireless communication systems (for example, by reducing spectrum usage). Summary of the Invention

[0003] Some example embodiments of the present disclosure provide a method for applying for authorization duration, a terminal, a computer device, and a storage medium.

[0004] According to an example embodiment of the present disclosure, a method for applying for an authorization duration is provided, comprising: when receiving service authorizations for multiple authorization services, obtaining multiple authorization durations for the multiple authorization services; determining a periodic timer duration for obtaining the multiple authorization services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance, wherein the timer duration for applying for authorization in advance is set by a user; starting a periodic timer based on the periodic timer duration; and applying for multiple new authorization durations for the multiple authorization services in response to expiration of the periodic timer.

[0005] Optionally, based on the minimum or lowest authorization duration among the multiple authorization durations and the timer duration for applying for authorization in advance, the step of determining the periodic timer duration for obtaining multiple authorization services at one time includes: when the minimum or lowest authorization duration is greater than the timer duration for applying for authorization in advance, setting the periodic timer duration to the timer duration for applying for authorization in advance; and when the minimum or lowest authorization duration is less than or equal to the timer duration for applying for authorization in advance, setting the periodic timer duration to a duration smaller than the minimum or lowest authorization duration determined based on the first time advancement parameter.

[0006] Optionally, the duration that is smaller than the minimum or lowest authorized duration determined based on a first time advancement parameter is a duration obtained by multiplying the first time advancement parameter by the minimum or lowest authorized duration, wherein the first time advancement parameter is a percentage greater than 0 and less than 1.

[0007] Optionally, in response to the periodic timer timing out, the step of applying for multiple new authorization durations for the multiple authorization services includes: setting a count value for the periodic timer based on the minimum or lowest authorization duration and the timer duration for applying for authorization in advance; judging whether the periodic timer has timed out; in response to the periodic timer timing out, determining whether the count value is equal to 1; in response to the count value being equal to 1, applying for multiple new authorization durations for the multiple authorization services; in response to the count value not being equal to 1, reducing the count value by 1, restarting the periodic timer, and executing the judgment.

[0008] Optionally, the step of setting the count value for the periodic timer based on the minimum or lowest authorization duration and the timer duration for applying for authorization in advance includes: in response to the minimum or lowest authorization duration being greater than the timer duration for applying for authorization in advance, determining an intermediate quantity by dividing the minimum or lowest authorization duration by the timer duration for applying for authorization in advance, and if the intermediate quantity is an integer, setting the count value to a value of the intermediate quantity minus 1, otherwise setting the count value to a value of the intermediate quantity rounded down; and when the minimum or lowest authorization duration is less than or equal to the timer duration for applying for authorization in advance, setting the count value to 1.

[0009] Optionally, the method also includes: in response to the terminal receiving service authorization for the multiple authorized services switching from the in-coverage IC state to the out-of-coverage OOC state, suspending the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer; in response to the terminal switching from the OOC state to the IC state, resuming the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer.

[0010] Optionally, the method also includes: starting multiple timers corresponding to the multiple authorized services while obtaining the multiple authorization durations, wherein the multiple timers are set separately based on the multiple authorization durations; in response to receiving a service request for one or more services, using one or more timers among the multiple timers corresponding to the one or more services to verify whether the one or more services are within the corresponding authorization duration.

[0011] According to another example embodiment of the present disclosure, a terminal for applying for an authorization duration is provided, comprising: at least one processor; and at least one memory storing computer-executable instructions, wherein, in response to running the computer-executable instructions, the processor causes the terminal to perform the following operations: in response to receiving service authorizations for multiple authorized services, obtaining multiple authorization durations for the multiple authorized services; determining a periodic timer duration for obtaining multiple authorized services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance, wherein the timer duration for applying for authorization in advance is set by a user; and starting a periodic timer set based on the periodic timer duration, wherein an authorization application unit is configured to apply for multiple new authorization durations for the multiple authorized services in response to expiration of the periodic timer.

[0012] Optionally, in response to running the computer-executable instructions, the processor causes the terminal to determine the periodic timer duration for obtaining multiple authorized services at one time based on the minimum or lowest authorization duration among the multiple authorization durations and the timer duration for applying for authorization in advance through the following operations: in response to the minimum or lowest authorization duration being greater than the timer duration for applying for authorization in advance, setting the periodic timer duration to the timer duration for applying for authorization in advance; and in response to the minimum or lowest authorization duration being less than or equal to the timer duration for applying for authorization in advance, setting the periodic timer duration to a duration smaller than the minimum or lowest authorization duration determined based on the first time advancement parameter.

[0013] Optionally, the duration that is smaller than the minimum or lowest authorized duration determined based on a first time advancement parameter is a duration obtained by multiplying the first time advancement parameter by the minimum or lowest authorized duration, wherein the first time advancement parameter is a percentage greater than 0 and less than 1.

[0014] Optionally, in response to running the computer-executable instructions, the processor causes the terminal to respond to the expiration of the periodic timer by applying for multiple new authorization durations for the multiple authorization services through the following operations: setting a count value for the periodic timer based on the minimum or lowest authorization duration and the timer duration for applying for authorization in advance; determining whether the periodic timer has timed out; in response to the periodic timer timeout, determining whether the count value is equal to 1; in response to the count value being equal to 1, applying for multiple new authorization durations for the multiple authorization services; in response to the count value not being equal to 1, reducing the count value by 1, restarting the periodic timer, and executing the judgment.

[0015] Optionally, in response to running the computer-executable instructions, the processor causes the terminal to perform the following operations to set the count value for the periodic timer according to the minimum or lowest authorization duration and the timer duration for applying for authorization in advance: in response to the minimum or lowest authorization duration being greater than the timer duration for applying for authorization in advance, determining an intermediate quantity by dividing the minimum or lowest authorization duration by the timer duration for applying for authorization in advance, and if the intermediate quantity is an integer, setting the count value to a value of the intermediate quantity minus 1, otherwise setting the count value to a value of the intermediate quantity rounded down; and in response to the minimum or lowest authorization duration being less than or equal to the timer duration for applying for authorization in advance, setting the count value to 1.

[0016] Optionally, in response to running the computer-executable instructions, the processor causes the terminal to perform the following operations: in response to the terminal switching from the in-coverage IC state to the out-of-coverage OOC state, suspending the timing of multiple authorization durations for the multiple authorized services and the timing of the periodic timer; in response to the terminal switching from the OOC state to the IC state, resuming the timing of multiple authorization durations for the multiple authorized services and the timing of the periodic timer.

[0017] Optionally, in response to running the computer-executable instructions, the processor causes the terminal to perform the following operations: starting multiple timers corresponding to the multiple authorized services while obtaining the multiple authorization durations, wherein the multiple timers are set separately based on the multiple authorization durations, and in response to receiving a service request for one or more services, using one or more timers among the multiple timers corresponding to the one or more services to verify whether the one or more services are within the corresponding authorization durations.

[0018] According to another exemplary embodiment of the present disclosure, a computer device is provided, comprising: at least one processor and at least one memory storing computer-executable instructions. In response to the computer-executable instructions being executed by the at least one processor, the at least one processor is prompted to execute the method for applying for authorization duration as described above.

[0019] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium is provided, wherein in response to instructions in the computer-readable storage medium being executed by at least one processor, the at least one processor is prompted to execute the method for applying for authorization duration as described above.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate some example embodiments consistent with the present disclosure, and together with the description, are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0022] Figure 1 Examples of application scenarios according to some example embodiments of the present disclosure are shown;

[0023] Figure 2 A flowchart illustrating a method for applying for authorization duration according to some example embodiments of the present disclosure;

[0024] Figure 3 A diagram illustrating signaling interactions of a method for applying for authorization duration according to some example embodiments of the present disclosure;

[0025] Figure 4 A flowchart illustrating authorization application processing for a timer according to some example embodiments of the present disclosure; and

[0026] Figure 5 A structural block diagram of a terminal for applying for authorization duration according to some example embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0027] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the exemplary embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0028] The terms used herein are for the purpose of describing specific example embodiments and are not intended to be limiting. As used herein, unless the context clearly indicates otherwise, the singular forms "a", "an", "said", and "the" are also intended to include the plural forms. In addition, when the terms "comprise", "include", and / or their variations are used in this specification, the existence of the stated features, wholes, steps, operations, elements, components, and / or their groups is indicated, but the existence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their groups is not excluded. The example embodiments described in the following description do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with the present disclosure as detailed in the claims.

[0029] It should be noted that the phrase "at least one of the several items" in this disclosure includes three types of parallel situations: "any one of the several items", "a combination of any multiple of the several items", and "all of the several items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. For another example, "performing at least one of step 1 and step 2" means the following three parallel situations: (1) performing step 1; (2) performing step 2; and (3) performing both step 1 and step 2.

[0030] According to some example embodiments of the present disclosure, the terminal described below may include at least one of a smart phone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop computer, a netbook computer, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device (such as a smart watch, a smart bracelet, etc.), but is not limited thereto.

[0031] The following will be combined Figures 1 to 5 to describe some example embodiments according to the present disclosure.

[0032] Figure 1 Examples of application scenarios according to some example embodiments of the present disclosure are shown.

[0033] In related technologies, D2D public safety direct connectivity services are primarily categorized into two types: Proximity-based Service (ProSe) discovery and ProSe communication. ProSe discovery includes the following eight types: Restricted Model A Monitoring, Restricted Model A Announcing, Restricted Model B Discoverer, Restricted Model B Discoveree, Model A Monitoring, Model A Announcing, Model B Discoverer, and Model B Discoveree. ProSe communication includes both multicast and unicast communication.

[0034] Some example embodiments of the present disclosure can be applied to service authorization scenarios between a D2D terminal and a D2D server. According to some example embodiments of the present disclosure, in a D2D service authorization scenario, three modules are involved: a ProSe network server (ProSe Function), a User Equipment (UE) PC3 Link Manager (PC3 Link Manager of UE), and a UE ProSe Service Manager (ProSe Service Manager of UE). The ProSe Function is used to send an authorization response message to the terminal. The UE PC3 Link Manager is used to establish an HTTP link and perform signaling exchanges between the terminal and the ProSe network server. The UE ProSe Service Manager is used to control the processing of the terminal's authorization request, for example, maintaining and managing timers related to authorization durations. Specifically, when a terminal activates ProSe discovery and ProSe communication services, it checks service authorization information, all of which is stored in the ProSe network server. When a terminal activates a service, it sends an MO request message to the ProSe network server. After receiving the MO request message, the ProSe network server sends an MO response message to the terminal. The MO response message includes multiple authorization durations for multiple authorized services. For example, based on the different service scenarios supported by D2D, the ProSe network server sends the terminal 10 authorization durations corresponding to authorized services for ProSe discovery and ProSe communication. Therefore, authorized services can be services that require authorization to complete or participate in. For each authorized service, a corresponding T4005 timer is used to set the authorization duration. When the authorization time for a particular authorized service exceeds the corresponding authorization duration (for example, when the corresponding T4005 timer expires), the terminal stops providing that service. At this point, the terminal can apply for a new authorization duration to resume providing the service.

[0035] In related technologies, for multiple authorized services, a terminal needs to make multiple authorization requests based on multiple authorization durations to obtain multiple new authorization durations. For example, for 10 authorized services, the terminal needs to apply for a new authorization duration each time the T4005 timer expires. This frequent authorization request operation increases the number of interactions between the terminal and the ProSe network server, which may affect the corresponding service quality. For example, when the D2D service is busy, it may affect the D2D service quality on the direct communication interface PC5.

[0036] In addition, since the range of values ​​of different authorization durations for different authorization services is large, for example, the authorization duration of the T4005 timer may range from 1 minute to 505600 minutes, it is necessary to set multiple timers with large differences for different authorization durations, which increases the complexity of the timer. It is necessary to use appropriate algorithms to simplify the timer settings to simplify the terminal implementation and improve the availability of the terminal software.

[0037] It should be understood that the above application scenarios are only examples, and the exemplary embodiments according to the present disclosure are not limited to the above application scenarios.

[0038] Figure 2 A flowchart illustrating a method for applying for authorization duration according to some example embodiments of the present disclosure is shown. Figure 3 A diagram showing the signaling interaction of the method for applying for authorization duration according to some example embodiments of the present disclosure. Figure 3 right Figure 2 The steps in the method of applying for authorization time are described in detail.

[0039] Reference Figure 2 In step S201, when service authorizations for multiple authorized services are received, multiple authorization durations for the multiple authorized services are obtained. Optionally, multiple authorization service timers corresponding to the multiple authorized services are started simultaneously with the multiple authorization durations for the multiple authorized services.

[0040] Reference Figure 3 In the aforementioned D2D service authorization scenario, when a terminal needs to enable multiple D2D authorized services, in step S301, the UE PC3 link manager sends an MO request message to the ProSe network server. In step S302, in response to receiving the MO request message, the ProSe network server sends an MO response message to the UE PC3 link manager. The MO response message includes multiple authorization durations corresponding to the multiple authorized services and other information related to the authorized services. In step S303, the UE PC3 link manager notifies the UE ProSe service manager of the authorization duration information. The UE (using a semiconductor chip, processor, transceiver, and / or other hardware components) can perform operations based on, or included in, the authorized services, such as audio calls, video calls, file transfers, or other D2D services. These operations can be performed during and based on the authorized duration.

[0041] Return to reference Figure 2In step S202, based on the minimum authorization duration (optionally, the lowest authorization duration, or the lower authorization duration) among the multiple authorization durations and the timer duration set by the user for applying for authorization in advance, the periodic timer duration for obtaining multiple authorization services at one time is determined.

[0042] That is, when there are multiple authorization durations, in addition to determining the duration of the timer for each authorized service, the periodic timer duration of a newly added periodic timer will also be set based on the minimum authorization duration among the multiple authorization durations and the duration of the timer set by the user for pre-application authorization. The newly added periodic timer is used to time the durations of multiple new authorization durations applied for multiple authorized services at one time. To avoid risks that may arise when a terminal applies for a new authorization duration in response to the expiration of the timer with the minimum authorization duration (for example, when the timer with the minimum authorization duration expires, the terminal may fail to successfully apply for a new authorization duration, resulting in service interruption, or the terminal may be unable to obtain a new authorization duration in a poor network environment), a periodic timer duration that is smaller than the minimum authorization duration may be determined to ensure the continuous availability of services provided by the terminal.

[0043] Here, the timer duration set by the user for applying for authorization in advance can be set arbitrarily by the user, for example, the timer duration for applying for authorization in advance is input by the user, the timer duration for applying for authorization in advance can be pre-set by the user or programmed in other ways, or the timer duration for applying for authorization in advance can be determined according to various other appropriate methods.

[0044] Like this, using the periodic timer set based on the periodic timer duration smaller than the minimum authorization duration, the terminal can be notified in time that a new authorization duration needs to be applied before all authorization duration timers expire or before all authorized services expire.

[0045] Optionally, the step of determining the periodic timer duration for obtaining multiple authorized services at one time based on the minimum authorization duration among the multiple authorization durations and the timer duration set by the user for applying for authorization in advance includes: when the minimum authorization duration is greater than the timer duration set by the user for applying for authorization in advance, setting the periodic timer duration to the timer duration set by the user for applying for authorization in advance; and when the minimum authorization duration is less than or equal to the timer duration set by the user for applying for authorization in advance, setting the periodic timer duration to a duration that is smaller than the minimum authorization duration and is determined based on a preset or expected time advancement parameter. Optionally, the duration that is smaller than the minimum authorization duration and is determined based on a preset or expected time advancement parameter is a duration obtained by multiplying the preset or expected time advancement parameter by the minimum authorization duration, wherein the preset or expected time advancement parameter is a percentage greater than 0 and less than 1.

[0046] The following takes the periodic timer duration F(X) as an example to explain in detail the determination of the periodic timer duration. Assume that the preset value or expected value (i.e., the timer duration set by the user for applying for authorization in advance) is X (in days), the periodic timer duration F(X) of the periodic timer is in milliseconds (ms), the minimum authorization duration is A (in minutes (min)), and the preset or expected time advancement parameter is , where K is an integer from 1 to 99, the timing duration F(X) can be determined by equation (1):

[0047]

[0048] According to the above equation (1), when the minimum authorization duration is greater than the timer duration set by the user for applying for authorization in advance, the timer duration X set by the user for applying for authorization in advance is set as the timer duration, and when the minimum authorization duration is less than or equal to the timer duration set by the user for applying for authorization in advance, the result of multiplying the minimum authorization duration by a percentage greater than 0 and less than 1 is used as the periodic timer duration. In this way, a new authorization duration can be applied in advance before the authorized service with the minimum authorization duration expires, thereby avoiding service interruption.

[0049] In step S203, a periodic timer set based on the periodic timer duration is started. Figure 3In step S304, the UE ProSe service manager starts multiple timers for multiple authorization services based on multiple authorization durations to time the multiple authorization services. In step S305, the UE ProSe service manager starts a periodic timer based on the periodic timer duration determined in the above embodiment to time the authorization request. Here, step S304 and step S305 can be performed simultaneously.

[0050] At the same time, in step S309, when the service is triggered (in other words, when a service request is received), the UE ProSe service manager verifies whether the service is within the authorized duration. Specifically, when verifying whether the service is within the authorized duration in step S309, the timer corresponding to the service started in step S304 is used to determine whether the service is within the authorized duration. In other words, step S304 is primarily used to verify whether the service is authorized in step S309. If the timer corresponding to the service is started in step S304, the service is deemed authorized in step S309, and the terminal can provide the service or the user can use the service.

[0051] Therefore, according to some example embodiments of the present disclosure, the method for applying for authorization duration also includes: while obtaining the multiple authorization durations, starting timers corresponding to the multiple authorization services that are set based on the multiple authorization durations respectively, and when receiving a service request for one or more services, using one or more timers corresponding to the one or more services to verify whether the one or more services are within the corresponding authorization duration.

[0052] Return to reference Figure 2 In step S204, in response to the expiration of the periodic timer, a plurality of new authorization durations for the plurality of authorization services are applied for. Figure 3 In step S306, when the timer for the authorization application times out, the UE ProSe service manager notifies the UE PC3 link manager that the timer has expired.

[0053] In order to prevent the periodic timer from being too long, the number of times the periodic timer times out can be counted. When the periodic timer times out and the number of times the periodic timer times out meets a predetermined or expected condition, multiple new authorization durations for the multiple authorization services are applied for. Optionally, in response to the periodic timer timing out, the step of applying for multiple new authorization durations for the multiple authorization services includes: setting a count value for the periodic timer based on the minimum authorization duration and the timer duration set by the user for applying for authorization in advance, determining whether the periodic timer has timed out, determining whether the count value is equal to 1 in response to the periodic timer timing out, and when the count value is equal to 1, applying for multiple new authorization durations for the multiple authorization services; when the count value is not equal to 1, reducing the count value by 1, restarting the periodic timer, and performing the judgment.

[0054] Refer to the following Figure 4 This is described in detail. Figure 4 FIG. 1 is a flowchart illustrating the authorization application processing of a periodic timer according to an embodiment of the present disclosure. Figure 2 After step S203, in step S401, a count value Y of a periodic timer based on the periodic timer duration setting may be set. Here, the count value Y may be an integer greater than or equal to 1.

[0055] In step S402, it is determined whether the periodic timer has timed out.

[0056] When the cycle timer times out, in step S403, it is determined whether the count value Y is equal to 1. When the cycle timer has not timed out, the timing of the cycle timer is continued.

[0057] When the periodic timer times out and the count value Y is equal to 1, in step S404, a plurality of new authorization durations for the plurality of authorized services are applied for.

[0058] When the periodic timer times out and the count value Y is not equal to 1 (i.e., the count value Y is greater than 1), in step S405, the count value Y is decremented by 1, and in step S406, the periodic timer is restarted. Accordingly, the determination of whether the periodic timer has timed out is re-executed, that is, the above steps S402 to S406 are repeated. Here, steps S405 and S406 can be executed simultaneously, or step S406 can be executed before step S405.

[0059] Optionally, the step of setting the count value for the periodic timer based on the minimum authorization duration and the timer duration set by the user for applying for authorization in advance includes: when the minimum authorization duration is greater than the timer duration set by the user for applying for authorization in advance, determining the intermediate quantity by dividing the minimum authorization duration by the timer duration set by the user for applying for authorization in advance; if the intermediate quantity is an integer, setting the count value to the value of the intermediate quantity minus 1; otherwise, setting the count value to the value of the intermediate quantity rounded down; when the minimum authorization duration is less than or equal to the timer duration set by the user for applying for authorization in advance, setting the count value to 1.

[0060] The following uses the example of determining the duration of the above-mentioned periodic timer as an example to explain in detail the determination of the count value. Assuming that the preset value or expected value (i.e., the timer duration set by the user for applying for authorization in advance) is X (in days), the minimum authorization duration is A (in minutes (min)), and the intermediate quantity is Z, the timing duration F(X) can be determined by equations (2) and (3):

[0061]

[0062] According to equations (2) and (3), when the timer duration set by the user for applying for authorization in advance is less than the minimum authorization duration, if the minimum authorization duration is divisible by the timer duration set by the user for applying for authorization in advance, the value of the result minus 1 is set as the count value of the periodic timer. In this way, it is ensured that the periodic timer will time out a period of time X in advance before the authorization service with the minimum authorization duration expires, and a new authorization duration is applied in advance. When the timer duration set by the user for applying for authorization in advance is less than the minimum authorization duration, if the minimum authorization duration is not divisible by the timer duration set by the user for applying for authorization in advance, the value of the result rounded down is set as the count value of the periodic timer. In this way, it is ensured that the periodic timer will time out at least a period of time in advance before the authorization service with the minimum authorization duration expires, and a new authorization duration is applied in advance. When the timer duration set by the user for applying for authorization in advance is greater than or equal to the minimum authorization duration, the periodic timer is only executed once. When the periodic timer set based on the periodic timer duration smaller than the minimum authorization duration times out, a new authorization duration is applied in advance.

[0063] Like this, by setting the periodic timer length to be smaller than the minimum authorization length and by setting the number of periodic timer timings, this design mechanism can ensure that the terminal applies for a new authorization length in advance before any authorized service expires, avoiding service interruption and improving the interaction efficiency between the terminal and the server, thereby ensuring service quality.

[0064] Return to reference Figure 3 In step S307, the UE PC3 link manager sends an MO request message to the ProSe network server to apply for a new authorization duration. In step S308, the ProSe network server sends an MO response message including multiple new authorization durations for multiple authorized services to the UE PC3 link manager.

[0065] In addition, Figure 3 In the example, the UE ProSe service manager also always verifies the authorization service during the period when the terminal provides the authorization service.

[0066] Determining the authorization request timer duration based on the minimum or lowest authorization duration among multiple authorization durations can avoid or reduce frequent interaction interruptions caused by multiple authorization requests, effectively reducing network data pressure. Furthermore, by setting the periodic timer duration and count value of the periodic timer, terminal timer implementation can be simplified and continuous service availability can be ensured.

[0067] Furthermore, in related technologies, if a terminal is in an out-of-coverage (OOC) state when a periodic timer expires, the terminal cannot obtain a new authorization duration from the server, effectively rendering the terminal unable to continue providing services. If this fails, the terminal will return a warning or error message and interrupt the corresponding service. This can cause service failures due to authorization failure, reducing terminal availability.

[0068] In some example embodiments of the present disclosure, optionally, when a terminal that has received service authorization for the multiple authorized services switches from the in-coverage IC state to the out-of-coverage OOC state, the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer are suspended; when the terminal switches from the OOC state to the IC state, the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer are resumed. That is, when the terminal is in the OOC state where it cannot apply for or receive a new authorization duration, all timers related to the authorized service are turned off to suspend timing, and when the terminal re-enters the IC state, all timers related to the authorized service are turned on to resume timing. In this way, when authorization cannot be obtained due to reasons such as network instability of the terminal, the timing of the timer is stopped, thereby avoiding or reducing the problem that the terminal is still unable to apply for or receive a new authorization duration when the authorized service expires and the service is interrupted by the harsh network environment.

[0069] Figure 5 A structural block diagram of a terminal for applying for authorization duration according to some example embodiments of the present disclosure is shown.

[0070] Reference Figure 5 According to some example embodiments of the present disclosure, a terminal 500 for applying for an authorization duration includes: an authorization acquisition unit 501, a duration determination unit 502, a timer unit 503, and an authorization application unit 504. Specifically, the authorization acquisition unit 501 is configured to, upon receiving service authorization for multiple authorized services, acquire multiple authorization durations for the multiple authorized services. The duration determination unit 502 is configured to determine a periodic timer duration for obtaining multiple authorized services at one time based on the minimum authorization duration among the multiple authorization durations and a timer duration set by the user for applying for authorization in advance. The timer unit 503 is configured to start a periodic timer set based on the periodic timer duration. The authorization application unit 504 is configured to apply for multiple new authorization durations for the multiple authorized services in response to the periodic timer set based on the periodic timer duration expiring. According to some example embodiments of the present disclosure, the terminal 500 for applying for an authorization duration may be the D2D terminal described above.

[0071] In other words, the authorization acquisition unit 501 may execute the above step S201, the duration determination unit 502 may execute the above step S202, the timer unit 503 may execute the above step S203, and the authorization application unit 504 may execute the above step S204. The details of the operations involved in the above method of applying for authorization duration are not described in detail in the following description, and can be found in Figures 2 to 5 Description.

[0072] Optionally, the terminal 500 for applying for authorization duration according to some exemplary embodiments of the present disclosure may further include an authorization verification unit ( Figure 5 (not shown in the figure). Optionally, the timer unit 503 is further configured to: simultaneously with obtaining the multiple authorization durations, start timers corresponding to the multiple authorized services, which are respectively set based on the multiple authorization durations; and the authorization verification unit is configured to: upon receiving a service request for one or more services, use one or more timers corresponding to the one or more services to verify whether the one or more services are within the corresponding authorization durations.

[0073] Optionally, the authorization acquisition unit 501, the authorization application unit 504 and the authorization verification unit may be included in the above-mentioned UEPC3 link manager, and the duration determination unit 502 and the timer unit 503 may be included in the above-mentioned UE ProSe service manager.

[0074] Optionally, the duration determination unit 502 is configured to determine the periodic timer duration for obtaining multiple authorized services at one time based on the minimum authorization duration among the multiple authorization durations and the timer duration set by the user for applying for authorization in advance through the following operations: when the minimum authorization duration is greater than the timer duration set by the user for applying for authorization in advance, the periodic timer duration is set to the timer duration set by the user for applying for authorization in advance, and when the minimum authorization duration is less than or equal to the timer duration set by the user for applying for authorization in advance, the periodic timer duration is set to a duration smaller than the minimum authorization duration determined based on a preset or expected time advancement parameter.

[0075] Optionally, the duration that is smaller than the minimum authorized duration determined based on a preset or expected time advancement parameter is a duration obtained by multiplying the preset or expected time advancement parameter by the minimum authorized duration, wherein the preset or expected time advancement parameter is a percentage greater than 0 and less than 1.

[0076] Optionally, the authorization application unit 504 is configured to apply for multiple new authorization durations for the multiple authorization services in response to the expiration of the periodic timer set based on the periodic timer duration by performing the following operations: setting a count value for the periodic timer based on the minimum authorization duration and the timer duration set by the user for applying for authorization in advance, judging whether the periodic timer has timed out, and in response to the expiration of the periodic timer set based on the periodic timer duration, determining whether the count value is equal to 1, and when the count value is equal to 1, applying for multiple new authorization durations for the multiple authorization services; when the count value is not equal to 1, reducing the count value by 1, restarting the periodic timer, and performing the judgment.

[0077] Optionally, the authorization application unit 504 is configured to set the count value for the periodic timer according to the minimum authorization duration and the timer duration set by the user for applying for authorization in advance through the following operations: when the minimum authorization duration is greater than the timer duration set by the user for applying for authorization in advance, the intermediate quantity is determined by dividing the minimum authorization duration by the timer duration set by the user for applying for authorization in advance; if the intermediate quantity is an integer, the count value is set to the value of the intermediate quantity minus 1; otherwise, the count value is set to the value of the intermediate quantity rounded down; and when the minimum authorization duration is less than or equal to the timer duration set by the user for applying for authorization in advance, the count value is set to 1.

[0078] Optionally, the timer unit 503 is also configured to: when the terminal 500 switches from the in-coverage IC state to the out-of-coverage OOC state, suspend the timing of multiple authorization durations for the multiple authorization services and the timing of the periodic timer; when the terminal 500 switches from the OOC state to the IC state, resume the timing of multiple authorization durations for the multiple authorization services and the timing of the periodic timer.

[0079] Regarding the authorization application terminal 500 in the above embodiment, the specific manner in which each unit performs operations has been described in detail in some example embodiments of the relevant method and will not be elaborated here.

[0080] In addition, it should be understood that the various units in the terminal 500 of the authorized application according to some example embodiments of the present disclosure can be implemented as hardware components and / or software components. Those skilled in the art can implement each unit using, for example, a field programmable gate array (FPGA) or an application-specific integrated circuit (ASIC) based on the processing performed by each defined unit.

[0081] According to some example embodiments of the present disclosure, a computer device is also provided. The computer device includes: at least one processor and at least one memory storing computer-executable instructions. When executed by the at least one processor, the computer-executable instructions cause the at least one processor to execute the method for applying for authorization duration as described in the above embodiment.

[0082] By way of example, the computer device may be a PC, tablet, personal digital assistant, smartphone, or other device capable of executing the aforementioned set of instructions. Here, the computer device is not necessarily a single computer device, but may also be any collection of devices or circuits capable of executing the aforementioned instructions (or instruction sets) individually or in combination. The computer device may also be part of an integrated control system or system manager, or may be configured as a portable computer device that is interconnected locally or remotely (e.g., via wireless transmission) via an interface.

[0083] In a computer device, a processor may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, a processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0084] The processor may execute instructions or code stored in the memory, which may also store data.

[0085] According to some example embodiments of the present disclosure, a computer-readable storage medium is further provided. When instructions in the computer-readable storage medium are executed by at least one processor, the at least one processor is prompted to execute the method for applying for authorization duration as described in the above embodiment.

[0086] Examples of computer-readable storage media include read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as a multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device configured to store a computer program and any associated data, data files and data structures in a non-transitory manner and provide the computer program and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be executed in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0087] According to some example embodiments of the present disclosure, a computer software may be provided. Instructions in the computer software may be executed by at least one processor to implement the method for applying for authorization duration as described in the above example embodiments.

[0088] Other exemplary embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow from the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and exemplary embodiments described above are to be considered as examples only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0089] Any of the elements and / or functional blocks disclosed above may include or be implemented as: processing circuitry, such as hardware including logic circuitry; a hardware / software combination, such as a processor executing software; or a combination thereof. For example, the authorization acquisition unit 501, duration determination unit 502, timer unit 503, and authorization application unit 504 may be implemented as processing circuitry. Processing circuitry may specifically include, but is not limited to, a central processing unit (CPU), an arithmetic logic unit (ALU), a digital signal processor (DSP), a microcomputer, a field programmable gate array (FPGA), a system on a chip (SoC), a programmable logic unit (PLU), a microprocessor, an application-specific integrated circuit (ASIC), and the like. The processing circuitry may include electronic components such as at least one of transistors, resistors, and capacitors. The processing circuitry may also include electronic components such as logic gates, including at least one of an AND gate, an OR gate, a NAND gate, and a NOT gate.

[0090] The one or more processors, one or more controllers, and / or processing circuits may be configured to perform the actions or steps by being specifically programmed to perform the actions or steps (e.g., using an FPGA or ASIC), or may be configured to perform the actions and steps by executing instructions received from a memory, or a combination thereof.

[0091] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the claims.

Claims

1. A method for applying for authorization duration, comprising: In response to receiving service authorizations for a plurality of authorized services, obtaining a plurality of authorized durations for the plurality of authorized services; Determining a periodic timer duration for obtaining the multiple authorized services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance, wherein the timer duration for applying for authorization in advance is set by a user; Starting a periodic timer based on the periodic timer duration; In response to the periodic timer expiring, applying for a plurality of new authorization durations for the plurality of authorized services.

2. The method according to claim 1, wherein The step of determining a periodic timer duration for obtaining multiple authorized services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance includes: When the minimum or lowest authorization duration is greater than the duration of the timer for applying for authorization in advance, setting the periodic timer duration to the duration of the timer for applying for authorization in advance; and When the minimum or lowest authorization duration is less than or equal to the timer duration for applying for authorization in advance, the periodic timer duration is set to a duration that is less than the minimum or lowest authorization duration and is determined based on the first time advancement parameter.

3. The method according to claim 2, wherein: The duration that is less than the minimum or lowest authorized duration determined based on a first time advancement parameter is a duration obtained by multiplying the first time advancement parameter by the minimum or lowest authorized duration, wherein the first time advancement parameter is a percentage greater than 0 and less than 1.

4. The method according to claim 1, wherein In response to the periodic timer expiring, the step of applying for multiple new authorization durations for the multiple authorized services includes: Setting a count value for the periodic timer according to the minimum or lowest authorization duration and the duration of the timer for applying for authorization in advance; Determine whether the periodic timer has timed out; In response to a periodic timer expiring, determining whether the count value is equal to 1; In response to the count value being equal to 1, applying for multiple new authorization durations for the multiple authorized services; In response to the count value not being equal to 1, the count value is reduced by 1, the period timer is restarted, and the determination is performed.

5. The method according to claim 4, wherein The step of setting a count value for the periodic timer according to the minimum or lowest authorization duration and the duration of the timer for applying for authorization in advance includes: In response to the minimum or lowest authorization duration being greater than the duration of the timer for applying for authorization in advance, determining an intermediate amount by dividing the minimum or lowest authorization duration by the duration of the timer for applying for authorization in advance, and if the intermediate amount is an integer, setting a count value to a value of the intermediate amount minus 1, otherwise setting the count value to a value obtained by rounding down the intermediate amount; and When the minimum or lowest authorization duration is less than or equal to the timer duration for applying for authorization in advance, the count value is set to 1.

6. The method according to claim 1, further comprising: In response to the terminal receiving the service authorization for the plurality of authorized services switching from the in-coverage (IC) state to the out-of-coverage (OOC) state, suspending the timing of the plurality of authorization durations for the plurality of authorized services and the timing of the periodic timer; In response to the terminal switching from the OOC state to the IC state, the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer are resumed.

7. The method according to claim 1, further comprising: while obtaining the plurality of authorization durations, starting a plurality of timers corresponding to the plurality of authorization services, wherein the plurality of timers are respectively set based on the plurality of authorization durations; In response to receiving a service request for one or more services, one or more timers corresponding to the one or more services among the plurality of timers are used to verify whether the one or more services are within corresponding authorized durations.

8. A terminal for applying for authorization duration, comprising: at least one processor; as well as at least one memory storing computer-executable instructions, wherein, in response to executing the computer-executable instructions, the processor causes the terminal to perform the following operations: In response to receiving service authorizations for a plurality of authorized services, obtaining a plurality of authorized durations for the plurality of authorized services; Determining a periodic timer duration for obtaining the multiple authorized services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance, wherein the timer duration for applying for authorization in advance is set by a user; Starting a periodic timer set based on the periodic timer duration; In response to the periodic timer expiring, applying for a plurality of new authorization durations for the plurality of authorized services.

9. The terminal according to claim 8, wherein: In response to executing the computer-executable instructions, the processor causes the terminal to determine a periodic timer duration for obtaining multiple authorized services at one time based on a minimum or lowest authorization duration among the multiple authorization durations and a timer duration for applying for authorization in advance by performing the following operations: In response to the minimum or lowest authorization duration being greater than the timer duration for applying for authorization in advance, setting the periodic timer duration to the timer duration for applying for authorization in advance; as well as In response to the minimum or lowest authorization duration being less than or equal to the timer duration for applying for authorization in advance, the periodic timer duration is set to a duration less than the minimum or lowest authorization duration determined based on the first time advancement parameter.

10. The terminal according to claim 9, wherein: The duration that is less than the minimum or lowest authorized duration determined based on a first time advancement parameter is a duration obtained by multiplying the first time advancement parameter by the minimum or lowest authorized duration, wherein the first time advancement parameter is a percentage greater than 0 and less than 1. The terminal according to claim 8 , wherein: In response to executing the computer-executable instructions, the processor causes the terminal to apply for multiple new authorization durations for the multiple authorized services in response to the expiration of the periodic timer by performing the following operations: Setting a count value for the periodic timer according to the minimum or lowest authorization duration and the duration of the timer for applying for authorization in advance; Determine whether the periodic timer has timed out; In response to a periodic timer expiring, determining whether the count value is equal to 1; In response to the count value being equal to 1, applying for multiple new authorization durations for the multiple authorized services; In response to the count value not being equal to 1, the count value is reduced by 1, the period timer is restarted, and the determination is performed.

12. The terminal according to claim 11, wherein: In response to executing the computer-executable instructions, the processor causes the terminal to perform the following operations to set a count value for the periodic timer according to the minimum or lowest authorization duration and the duration of the timer for applying for authorization in advance: In response to the minimum or lowest authorization duration being greater than the duration of the timer for applying for authorization in advance, determining an intermediate amount by dividing the minimum or lowest authorization duration by the duration of the timer for applying for authorization in advance, and if the intermediate amount is an integer, setting a count value to a value of the intermediate amount minus 1, otherwise setting the count value to a value obtained by rounding down the intermediate amount; as well as In response to the minimum or lowest authorization duration being less than or equal to the timer duration for applying for authorization in advance, the count value is set to 1.

13. The terminal according to claim 8, wherein: In response to executing the computer-executable instructions, the processor causes the terminal to perform the following operations: In response to the terminal switching from the in-coverage IC state to the out-of-coverage OOC state, suspending the timing of multiple authorization durations for the multiple authorized services and the timing of the periodic timer; In response to the terminal switching from the OOC state to the IC state, the timing of the multiple authorization durations for the multiple authorized services and the timing of the periodic timer are resumed. The terminal according to claim 8 , wherein: In response to executing the computer-executable instructions, the processor causes the terminal to perform the following operations: while obtaining the plurality of authorization durations, starting a plurality of timers corresponding to the plurality of authorization services, wherein the plurality of timers are respectively set based on the plurality of authorization durations, and In response to receiving a service request for one or more services, one or more timers corresponding to the one or more services among the plurality of timers are used to verify whether the one or more services are within corresponding authorized durations.

15. A computer-readable storage medium, wherein: In response to the instructions in the computer-readable storage medium being executed by at least one processor, the at least one processor is prompted to execute the method for applying for authorization time as claimed in claim 1.

Citation Information

Patent Citations

  • D2D service authorization method and prose function

    CN106034279A

  • Authorization of applications for direct discovery

    WO2019095128A1