Timer adjusting method and device, terminal, medium and program product
The virtual cell and resident cell timers implemented through software use system hardware counter value adjustment to solve the problem of timer design complexity and high cost in the 5G RedCap system, achieving flexible expansion and cost reduction of timers.
Patent Information
- Application Number
- CN202410554322.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-07
- Publication Date
- 2024-10-18
AI Technical Summary
The timer design in the existing 5G RedCap system is implemented entirely in hardware, which results in a heavy workload and high cost for hardware design and verification. It is also difficult to support LTE/NR dual-mode, which increases the complexity of design and verification.
The virtual cell timer and resident cell timer implemented by software are used to adjust the timer through the system hardware counter value, which reduces the hardware design and verification work and realizes the software scalability of the timer.
It reduces the cost and workload of timer hardware design and verification, reduces product development time and labor costs, has good scalability, avoids hardware modifications, and simplifies the software and hardware interaction process.
Smart Images

Figure CN118804263A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a timer adjustment method, device, terminal, medium and program product. Background Art
[0002] Currently, the 5G Reduced Capability (RedCap) system and cell timer are implemented based on hardware, which requires hardware to maintain frames, subframes, and basic time units (Tc, which refers to the smallest time division unit in the frame structure). When timing adjustments occur, frequent software and hardware interactions are required to reconfigure the hardware timer, which brings certain instability factors to the system and also increases the difficulty and workload of hardware design and verification.
[0003] Currently, most 5G RedCap products on the market need to support both LTE and NR dual-modes, which means that the hardware must also support both LTE hardware timers and NR hardware timers, increasing the workload of hardware design and verification.
[0004] Currently, timer design is implemented entirely in hardware. Additional hardware design and verification work is required when expanding support for LTE / NR dual-mode on the 5G RedCap platform. The additional hardware design and verification work leads to higher costs. Summary of the invention
[0005] The embodiments of the present application provide a timer adjustment method, device, terminal, medium and program product, which can reduce the additional hardware design and verification work costs of the timer.
[0006] In a first aspect, an embodiment of the present application provides a timer adjustment method, the method comprising:
[0007] Creating a first timer and a second timer, wherein the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, and the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented by software;
[0008] adjusting the first timer according to the value of the system hardware counter;
[0009] Using the offset value between the frame header of the target frame of the virtual cell and the frame header of the target frame of the first cell as the target offset value between the second timer and the adjusted first timer;
[0010] The second timer is adjusted according to the target offset value so that the second timer matches the system hardware counter.
[0011] In a second aspect, an embodiment of the present application provides a timer adjustment device, the device comprising:
[0012] A creation module, used to create a first timer and a second timer, wherein the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, and the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented by software;
[0013] A first adjustment module, configured to adjust the first timer according to the value of the system hardware counter;
[0014] A determination module, configured to use an offset value between a frame header of a target frame of the virtual cell and a frame header of a target frame of the first cell as a target offset value between the second timer and the adjusted first timer;
[0015] The second adjustment module is used to adjust the second timer according to the target offset value so that the second timer matches the system hardware counter.
[0016] In a third aspect, an embodiment of the present application provides a terminal, including: a processor and a memory storing computer program instructions;
[0017] When the processor executes the computer program instructions, the timer adjustment method as described in the first aspect is implemented.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the timer adjustment method described in the first aspect is implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of a terminal, the terminal executes the timer adjustment method as described in the first aspect.
[0020] The timer adjustment method, device, terminal, medium and program product of the embodiments of the present application set a first timer of a virtual cell, synchronize the first timer with a system hardware counter, then calculate a target offset value between a second timer of a current cell where the terminal resides and the first timer, and use the target offset value to adjust the second timer so that the second timer is synchronized with the system hardware counter. The entire process does not add a new hardware structure, and does not require hardware design and verification, thereby reducing product development time and labor costs. At the same time, since the first timer is implemented in software, when the demand for the first timer needs to be increased, it is sufficient to modify the software implementation of the first timer without hardware modification, and has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 is a flow chart of a timer adjustment method provided in an embodiment of the present application;
[0023] Figure 2a is another flowchart of the timer adjustment method provided in an embodiment of the present application;
[0024] Figure 2b is a schematic diagram of the offset between the first timer and the second timer provided in an embodiment of the present application;
[0025] Figure 2c is a schematic diagram of the offset between the first timer and the second timer provided in an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of the structure of a timer adjustment device provided in an embodiment of the present application;
[0027] Figure 4 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION
[0028] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0029] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0030] In order to solve the problems in the prior art, the embodiments of the present application provide a timer adjustment method, device, terminal, medium and program product. The timer adjustment method provided by the embodiments of the present application is first introduced below.
[0031] Figure 1 FIG. 1 is a flow chart of a timer adjustment method provided by an embodiment of the present application. Figure 1 As shown, the timer adjustment method provided in the embodiment of the present application is applied to a terminal, for example, a RedCap terminal, wherein the method includes the following steps 101 to 104, wherein:
[0032] Step 101, create a first timer and a second timer, the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented in software.
[0033] Specifically, this step may include: creating a first timer after the terminal is powered on; creating a second timer after the terminal determines that it resides in the first cell. For example, after the terminal is powered on, the controller of the terminal creates a timer for a virtual cell corresponding to the system hardware counter of the terminal, i.e., the first timer. After waiting for the initial cell search, the controller of the terminal creates a timer corresponding to the current cell (i.e., the first cell) where the terminal resides, i.e., the second timer. Both the first timer and the second timer are implemented in software, which can avoid hardware overhead and save costs.
[0034] Step 102: Adjust the first timer according to the value of the system hardware counter.
[0035] After the first timer is created, the value of the first timer is adjusted according to the value of the system hardware counter, or, in the case of an interruption in each subframe, the first timer is adjusted according to the value of the system hardware counter. The adjusted first timer is synchronized with the system hardware counter.
[0036] Step 103: Use the offset value between the frame header of the target frame of the virtual cell and the frame header of the target frame of the first cell as the target offset value between the second timer and the adjusted first timer.
[0037] The target frame includes a frame, a subframe or a hyperframe.
[0038] Step 104: Adjust the second timer according to the target offset value so that the second timer matches the system hardware counter.
[0039] For example, the database of the second timer is adjusted by adding or subtracting the target offset value from the value of the second timer, so that the adjusted second timer matches the system hardware counter (ie, the timing of the two are synchronized).
[0040] In this embodiment, by setting the first timer of the virtual cell, the first timer is synchronized with the system hardware counter, and then the target offset value between the second timer of the current cell where the terminal resides and the first timer is calculated, and the second timer is adjusted using the target offset value, so that the second timer is synchronized with the system hardware counter. The whole process does not add a new hardware structure, and does not require hardware design and verification, thereby reducing product development time and labor costs. At the same time, since the first timer is implemented in software, when the demand for the first timer needs to be increased, the software implementation of the first timer can be modified without hardware modification, and has good scalability.
[0041] In an embodiment of the present application, adjusting the first timer according to the value of the system hardware counter includes:
[0042] Calculating a conversion rate according to a high-frequency clock of the system hardware counter and a first duration, wherein the first duration is a minimum time division unit in a frame structure;
[0043] Obtaining an adjustment value corresponding to the target frame according to a conversion rate between a high-frequency clock of the system hardware counter and a first duration, and a value of the system hardware counter, wherein the first duration is a minimum time division unit in a frame structure;
[0044] The first timer is adjusted according to the adjustment value.
[0045] Specifically, when the first duration is the smallest time division unit in the frame structure of the NR cell, the adjustment value corresponding to the target frame is obtained according to the following expression:
[0046] Temp_value1=(SHC / R)div 1966079;
[0047] VNCC.Subframe=Temp_value1 mod 10;
[0048] Temp_value2=Temp_value1 div 10;
[0049] VNCC.Frame=Temp_value2 mod 1024;
[0050] VNCC.Hyperframe=Temp_value2 div 1024;
[0051] Among them, SHC is the value of the system hardware counter, R is the conversion rate, VNCC.Subframe is the adjustment value corresponding to the subframe, VNCC.Frame is the adjustment value corresponding to the frame, and VNCC.Hyperframe is the adjustment value corresponding to the hyperframe.
[0052] Through the above manner, the adjustment value corresponding to the target frame can be determined according to actual conditions, so that the first timer is adjusted according to the adjustment value, so that the first timer is synchronized with the system hardware counter.
[0053] In the case where the first duration is the smallest time division unit in the frame structure of the NR cell, if the first cell is an NR cell, the target offset value is the first offset value between the frame header of the target frame of the virtual cell and the frame header of the target frame of the first cell; if the first cell is an LTE cell, the target offset value is the product of the first offset value and a conversion coefficient, and the conversion coefficient is determined according to the smallest time division unit in the frame structure of the NR cell and the smallest time division unit in the frame structure of the LTE cell. For example, the conversion coefficient is 1 / 64.
[0054] The following is an example of the timer adjustment method provided in the embodiment of the present application.
[0055] The hardware timer (a timer implemented in hardware) only needs to provide a counter that keeps counting and does not roll over. This counter has been counting since the system was powered on. In addition, this counter does not need to care about the frame structure of LTE and NR, and will not be reconfigured when timing adjustments occur, which greatly simplifies the hardware design and verification work.
[0056] One or more related software timer data structures are created for LTE and NR respectively to store Hyperframe / Frame / SFN information. A corresponding relationship can be established between this data structure and the system hardware counter (System HW Counter). The conversion between the software timer (timer implemented by software) and the System HW Counter can be performed through the Conversion software module.
[0057] The LTE software timer structure definition is shown in Table 1:
[0058] Table 1
[0059]
[0060]
[0061] The NR software timer structure definition is shown in Table 2:
[0062] Table 2
[0063]
[0064] like Figure 2a As shown in the figure, when timing adjustment occurs, you only need to update the timer database maintained by the software, without adjusting the System HW Counter.
[0065] The timer adjustment method provided in the embodiment of the present application includes the following process:
[0066] Step 1: After the system is powered on, the terminal (Controller) creates a software timer database (timer database) of a virtual cell (Cell) corresponding to the current System HW Counter, and selects the NR with a smaller counting unit Tc as the virtual reference Cell, so that no matter whether the cell is camped on in the LTE cell or the NR cell after the cell search in the subsequent step 2, a simple conversion can be made. The detailed conversion is described in step 2. Assuming that the conversion rate of the high frequency clock (High FrequencyClock) and Tc is R, the conversion relationship between the virtual NR Cell timer counter (VNCC, i.e., the first timer) and the hardware System HW counter (SHC) is as follows:
[0067] VNCC.Tc=(SHC / R)mod 1966079;
[0068] Temp_value1=(SHC / R)div 1966079;
[0069] VNCC.Subframe=Temp_value1 mod 10;
[0070] Temp_value2=Temp_value1 div 10;
[0071] VNCC.Frame=Temp_value2 mod 1024;
[0072] Temp_value3=Temp_value2 div 1024;
[0073] VNCC.Hyperframe=Temp_value3;
[0074] In each subframe interrupt, the controller can call the timer conversion software module to update the value of the first timer according to the above conversion formula;
[0075] Step 2: After waiting for the initial cell search, the controller creates a software timer database corresponding to the current cell, i.e., a second timer. The value of the second timer is offset from the value of the first timer in step 1. The following uses the NR Cell initial search and the LTE Cell initial search to illustrate the determination of the offset value.
[0076] NRCell initial search:
[0077] After the initial search of the NR cell, the RedCap terminal will find the subframe header of the air interface NR cell, such as Figure 2b As shown in the figure, there is an offset offset_Tc between the subframe header of the Real NR Cell found in the initial cell search and the subframe header of the Virtual NR Cell maintained in step 1, and the relationship between the Real NR Cell Timer Counter, Virtual NR Cell Timer Counter and System HW Counter is established.
[0078] LTE Cell initial search:
[0079] After the initial search for LTE cells, the RedCap terminal will find the subframe header of the air interface LTE cell, such as Figure 2cAs shown in the figure, there is an offset offset_Tc between the subframe header of the Real LTE Cell found in the initial cell search and the subframe header of the Virtual NR Cell maintained in step 1. Since the LTE system uses Ts as the minimum time unit, a conversion can be made: offset_Ts = offset_Tc / 64. In this way, the relationship between the Real LTE Cell Timer Counter, the Virtual NR Cell Timer Counter and the System HW Counter is established.
[0080] Step 3: When the terminal recognizes that the cell frame header has changed, the system needs to make timing adjustments, and the controller can adjust the database of the second timer according to the changes.
[0081] In this embodiment, a first timer is created by software, and the first timer is used to replace a timer implemented by hardware, which can reduce hardware design and verification work; it has good scalability, and when there is a need to add a timer, only the software needs to be modified, and no hardware modification is required; the process of software and hardware interaction is reduced.
[0082] Figure 3 FIG. 2 shows a structural diagram of a timer adjustment device provided in an embodiment of the present application. Figure 3 As shown, the timer adjustment device 300, applied to a terminal, includes:
[0083] A creation module 301 is used to create a first timer and a second timer, wherein the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, and the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented by software;
[0084] A first adjustment module 302, configured to adjust the first timer according to the value of the system hardware counter;
[0085] The determination module 303 is configured to use the offset value between the frame header of the target frame of the virtual cell and the frame header of the target frame of the first cell as the target offset value between the second timer and the adjusted first timer;
[0086] The second adjustment module 304 is configured to adjust the second timer according to the target offset value so that the second timer matches the system hardware counter.
[0087] In an embodiment of the present application, the creation module 301 includes:
[0088] After the terminal is powered on, creating a first timer;
[0089] After the terminal determines to camp on the first cell, a second timer is created.
[0090] In an embodiment of the present application, the first adjustment module 302 is specifically used to:
[0091] After the first timer is created, the value of the first timer is adjusted according to the value of the system hardware counter, or, when an interrupt occurs in each subframe, the first timer is adjusted according to the value of the system hardware counter.
[0092] In an embodiment of the present application, the first adjustment module 302 includes:
[0093] A first acquisition submodule, configured to obtain an adjustment value corresponding to the target frame according to a conversion rate between a high-frequency clock of the system hardware counter and a first duration and a value of the system hardware counter, wherein the first duration is a minimum time division unit in a frame structure;
[0094] An adjustment submodule is used to adjust the first timer according to the adjustment value.
[0095] In an embodiment of the present application, the first duration is the smallest time division unit in the frame structure of the NR cell;
[0096] In a case where the first cell is an NR cell, the target offset value is a first offset value between a frame header of a target frame of the virtual cell and a frame header of a target frame of the first cell;
[0097] In the case where the first cell is an LTE cell, the target offset value is the product of the first offset value and a conversion coefficient, and the conversion coefficient is determined based on the minimum time division unit in the frame structure of the NR cell and the minimum time division unit in the frame structure of the LTE cell.
[0098] In an embodiment of the present application, the target frame includes a frame, a subframe or a superframe.
[0099] In an embodiment of the present application, the first duration is the smallest time division unit in the frame structure of the NR cell; the first acquisition submodule includes:
[0100] According to the following expression, the adjustment value corresponding to the target frame is obtained:
[0101] Temp_value1=(SHC / R)div 1966079;
[0102] VNCC.Subframe=Temp_value1 mod 10;
[0103] Temp_value2=Temp_value1 div 10;
[0104] VNCC.Frame=Temp_value2 mod 1024;
[0105] VNCC.Hyperframe=Temp_value2 div 1024;
[0106] Among them, SHC is the value of the system hardware counter, R is the conversion rate between the high-frequency clock of the system hardware counter and the first duration, VNCC.Subframe is the adjustment value corresponding to the subframe, VNCC.Frame is the adjustment value corresponding to the frame, and VNCC.Hyperframe is the adjustment value corresponding to the hyperframe.
[0107] The timer adjustment device 300 provided in the embodiment of the present application can implement the various processes implemented in the aforementioned timer adjustment method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0108] Figure 4 A schematic diagram of the hardware structure of a terminal provided in an embodiment of the present application is shown.
[0109] The terminal may include a processor 401 and a memory 402 storing computer program instructions.
[0110] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0111] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.
[0112] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect or the second aspect of the present disclosure.
[0113] The processor 401 implements any one of the information auditing methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .
[0114] In one example, the terminal may further include a communication interface 403 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0115] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0116] Bus 410 includes hardware, software or both, and the parts of information audit method or verification equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0117] In addition, in combination with the timer adjustment method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the timer adjustment methods in the above embodiment is implemented.
[0118] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0119] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0120] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0121] In addition, the embodiments of the present application may provide a computer program product for implementation. When the instructions in the computer program product are executed by a processor of a terminal, the terminal implements any one of the timer adjustment methods in the above embodiments.
[0122] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0123] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0124] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0125] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A timer adjustment method, characterized in that: Applied to a terminal, the method comprises: Creating a first timer and a second timer, wherein the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, and the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented by software; adjusting the first timer according to the value of the system hardware counter; Using the offset value between the frame header of the target frame of the virtual cell and the frame header of the target frame of the first cell as the target offset value between the second timer and the adjusted first timer; The second timer is adjusted according to the target offset value so that the second timer matches the system hardware counter.
2. The method according to claim 1, characterized in that The creating of the first timer and the second timer comprises: After the terminal is powered on, creating a first timer; After the terminal determines to camp on the first cell, a second timer is created.
3. The method according to claim 1, characterized in that The adjusting the first timer according to the value of the system hardware counter comprises: After the first timer is created, the value of the first timer is adjusted according to the value of the system hardware counter, or, when an interrupt occurs in each subframe, the first timer is adjusted according to the value of the system hardware counter.
4. The method according to any one of claims 1 to 3, characterized in that The adjusting the first timer according to the value of the system hardware counter comprises: Obtaining an adjustment value corresponding to the target frame according to a conversion rate between a high-frequency clock of the system hardware counter and a first duration, and a value of the system hardware counter, wherein the first duration is a minimum time division unit in a frame structure; The first timer is adjusted according to the adjustment value.
5. The method according to claim 4, characterized in that The first duration is the smallest time division unit in the frame structure of the NR cell; In a case where the first cell is an NR cell, the target offset value is a first offset value between a frame header of a target frame of the virtual cell and a frame header of a target frame of the first cell; In the case where the first cell is an LTE cell, the target offset value is the product of the first offset value and a conversion coefficient, and the conversion coefficient is determined based on the minimum time division unit in the frame structure of the NR cell and the minimum time division unit in the frame structure of the LTE cell.
6. The method according to claim 4, characterized in that The target frame includes a frame, a subframe or a hyperframe.
7. The method according to claim 6, characterized in that The first duration is the smallest time division unit in the frame structure of the NR cell; the obtaining, according to the conversion rate between the high-frequency clock of the system hardware counter and the first duration, and the value of the system hardware counter, the adjustment value corresponding to the target frame includes: According to the following expression, the adjustment value corresponding to the target frame is obtained: Temp_value1=(SHC / R)div 1966079; VNCC.Subframe=Temp_value1 mod 10; Temp_value2=Temp_value1 div 10; VNCC.Frame=Temp_value2 mod 1024; VNCC.Hyperframe=Temp_value2 div 1024; Among them, SHC is the value of the system hardware counter, R is the conversion rate between the high-frequency clock of the system hardware counter and the first duration, VNCC.Subframe is the adjustment value corresponding to the subframe, VNCC.Frame is the adjustment value corresponding to the frame, and VNCC.Hyperframe is the adjustment value corresponding to the hyperframe.
8. A timer adjustment device, applied to a terminal, characterized in that: The device comprises: A creation module, used to create a first timer and a second timer, wherein the first timer is a timer of a virtual cell corresponding to a system hardware counter of the terminal, and the second timer is a timer corresponding to a first cell where the terminal resides, and both the first timer and the second timer are implemented by software; A first adjustment module, configured to adjust the first timer according to the value of the system hardware counter; A determination module, configured to use an offset value between a frame header of a target frame of the virtual cell and a frame header of a target frame of the first cell as a target offset value between the second timer and the adjusted first timer; The second adjustment module is used to adjust the second timer according to the target offset value so that the second timer matches the system hardware counter.
9. A terminal, characterized in that: include: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of a terminal, the terminal is caused to perform the method according to any one of claims 1 to 7.
