Time domain offset parameter adjustment method and device, equipment, medium and program product

By calculating the alignment deviation parameter and offset of the data packet arrival time and updating the CG configuration, the data packet delay problem of periodic deterministic services is solved, and real-time transmission of PLC data packets and low-latency communication are realized.

CN122069575APending Publication Date: 2026-05-19CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2026-03-25
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, data packets for periodic deterministic services experience increased end-to-end latency in communication networks due to the random configuration of the initial phase of CG scheduling. Furthermore, the lack of cross-layer sensing capabilities and jitter resistance leads to the problem that data packets must wait for the next cycle before they can be sent.

Method used

By obtaining the time when the data packet arrives at the modem buffer, the alignment deviation parameter is calculated, and when the phase misalignment is large, the offset is calculated to update the time domain offset parameter in the CG configuration, so as to achieve microsecond-level precise alignment between the PLC packet sending time and the communication network air interface transmission time.

Benefits of technology

It significantly reduces end-to-end latency of data packets, improves resource utilization, and enables real-time transmission of PLC data packets, meeting the low latency and deterministic requirements of industrial control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122069575A_ABST
    Figure CN122069575A_ABST
Patent Text Reader

Abstract

The invention provides a time domain offset parameter adjustment method and device, equipment, a medium and a program product, relates to the technical field of communication, and is used for reducing end-to-end delay of a data packet. According to the specific technical scheme, the method comprises the following steps: acquiring a first time when a first data packet arrives at a modem buffer area and N second time when N second data packets arrive at the modem buffer area; on the basis of the first time and the N second times, an alignment deviation parameter is calculated and obtained, and the alignment deviation parameter is used for representing the phase dislocation degree between the actual sending time of the first data packet and the actual starting time of the CG resource window; when the alignment deviation parameter is smaller than 0 or larger than a preset threshold value, a first offset is obtained through calculation based on the frame period of the data frame, the first time and the N pieces of second time, the first offset is reported to the base station, and the first offset is used for the base station to update the time domain offset parameter in the CG configuration. The method and device are applied to a data packet sending scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, device, medium, and program product for adjusting time domain offset parameters. Background Technology

[0002] With the deepening development of the Industrial Internet, the deep integration of mobile communication networks and Time-Sensitive Networking (TSN) has become a key technological path to realize wireless industrial control. In typical industrial scenarios, business flows usually exhibit strict periodicity. For example, Programmable Logic Controllers (PLCs) need to continuously send control commands with extremely high time accuracy, which places stringent requirements on the low latency and determinism of the underlying communication network.

[0003] For such periodic deterministic services, the existing main approach is to use the Configured Grant (CG) Type 1 or Type 2 mechanism for transmission. In this architecture, the communication network system acts as a transparent logical bridge within the TSN network, relying on network-side TSN Translators (NW-TT) and device-side TSN Translators (DS-TT) to complete packet conversion and transparent transmission. At the air interface scheduling level, the base station pre-allocates fixed periodic uplink time-frequency resources to the terminal, allowing the terminal to send data directly on the reserved resources without initiating a scheduling request for each packet transmission, thus meeting the real-time requirements of the service to a certain extent.

[0004] However, the starting phase of existing CG scheduling is often randomly configured, which means that when the PLC application layer data packet is generated at time t, the CG resource window of the communication network has just ended at time t-δ. The data packet must wait for the next cycle before it can be sent, which significantly increases the end-to-end delay of the data packet. Summary of the Invention

[0005] This application provides a time-domain offset parameter adjustment method, apparatus, device, medium, and program product for reducing end-to-end latency of data packets.

[0006] In a first aspect, embodiments of this application provide a method for adjusting a time-domain offset parameter. The method includes: obtaining a first time when a first data packet arrives at a modem buffer and N second times when N second data packets arrive at the modem buffer, wherein the N second data packets are data packets that arrive at the modem buffer before the first data packet, and N is an integer greater than 1; calculating an alignment deviation parameter based on the first time and the N second times, wherein the alignment deviation parameter is used to characterize the degree of phase misalignment between the actual time that the first data packet needs to be sent and the actual start time of the CG resource window; and, if the alignment deviation parameter is less than 0 or greater than a preset threshold, calculating a first offset based on the frame period of the data frame, the first time, and the N second times, and reporting the first offset to the base station, wherein the first offset is used by the base station to update the time-domain offset parameter in the CG configuration.

[0007] The technical solution provided in this application brings at least the following beneficial effects: Since the phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the CG resource window can be determined based on the first time the first data packet arrives at the modem buffer and the N second times the N historical second data packets arrive at the modem buffer, and then when the phase misalignment is large, the first offset is calculated based on the frame period of the data frame, the first time, and the N second times, so that the base station can update the time domain offset parameter in the CG configuration in real time based on the first offset. Therefore, the problem that the data packet has to wait for the next period to be sent due to the resource window misalignment is avoided when the time domain offset parameter in the CG configuration is a randomly configured fixed parameter, thus significantly reducing the end-to-end latency of the data packet.

[0008] One possible implementation involves calculating the alignment deviation parameter based on the first time and N second times, including: determining N-1 time intervals based on the N second times, where the N-1 time intervals are the time intervals between the N second times; determining the business cycle based on the N-1 time intervals; and calculating the alignment deviation parameter based on the cycle of the CG resource, the starting offset of the CG resource, and the first time; wherein the cycle of the CG resource is determined based on the business cycle.

[0009] Another possible implementation involves calculating the alignment deviation parameter based on the period of the CG resource, the initial offset of the CG resource, and the first time. This includes: adding the first time to the delay constant to obtain a first value; multiplying the first value by a second value to obtain a third value, where the second value is obtained by taking the modulo of the period of the CG resource; and subtracting the third value from the initial offset of the CG resource to obtain the alignment deviation parameter.

[0010] Another possible implementation involves calculating the first offset based on the frame period of the data frame, the first time, and N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold. This includes: when the alignment deviation parameter is less than 0 or greater than the preset threshold, adding the first time with a fourth value and a delay constant to calculate a fifth value, where the fourth value is a safety margin set based on a first jitter range, and the first jitter range is the jitter range of the time interval between the N second times; and multiplying the fifth value with a sixth value to calculate the first offset, where the sixth value is obtained by performing a modulo operation on the frame period of the data frame.

[0011] Another possible implementation method, before calculating the first offset based on the frame period of the data frame, the first time, and N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold, the method further includes: determining N-1 time intervals based on the N second times; subtracting the maximum time interval from the minimum time interval among the N-1 time intervals to calculate the first jitter range.

[0012] Another possible implementation is that, after reporting the first offset to the base station, the method further includes: receiving the updated CG configuration from the base station, wherein the updated CG configuration is obtained by the base station updating the CG configuration based on the first offset; and switching the data packet sending rhythm based on the updated CG configuration.

[0013] Secondly, embodiments of this application provide a time-domain offset parameter adjustment device, which includes a processing module and a sending module. The processing module is configured to acquire a first time when a first data packet arrives at the modem buffer and N second times when N second data packets arrive at the modem buffer, where the N second data packets are data packets that arrive at the modem buffer before the first data packet, and N is an integer greater than 1; and calculate an alignment deviation parameter based on the first time and the N second times, the alignment deviation parameter being used to characterize the degree of phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the configured authorized CG resource window; and, when the alignment deviation parameter is less than 0 or greater than a preset threshold, calculate a first offset based on the frame period of the data frame, the first time, and the N second times. The sending module is configured to report the first offset obtained by the processing module to the base station, the first offset being used by the base station to update the time-domain offset parameter in the CG configuration.

[0014] One possible implementation is that the above processing module is specifically used to determine N-1 time intervals based on N second times, where N-1 time intervals are the time intervals between the N second times; and to determine the business cycle based on the N-1 time intervals; and to calculate the alignment deviation parameter based on the cycle of the CG resource, the starting offset of the CG resource, and the first time; wherein the cycle of the CG resource is determined based on the business cycle.

[0015] Another possible implementation is that the above processing module is specifically used to add the first time to the delay constant to calculate the first value; multiply the first value by the second value to calculate the third value, where the second value is obtained by taking the modulo of the period of the CG resource; and subtract the third value from the starting offset of the CG resource to calculate the alignment deviation parameter.

[0016] Another possible implementation is that the above processing module is specifically used to calculate a fifth value by adding the first time, the fourth value, and the time delay constant when the alignment deviation parameter is less than 0 or greater than a preset threshold. The fourth value is a safety margin set based on the first jitter range, and the first jitter range is the jitter range of the time interval between N second times. The fifth value is then multiplied by the sixth value to calculate the first offset, and the sixth value is obtained by performing a modulo operation on the frame period of the data frame.

[0017] In another possible implementation, the above processing module is further used to determine N-1 time intervals based on the N second times before calculating the first offset based on the frame period of the data frame, the first time, and N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold; and to calculate the first jitter range by subtracting the maximum time interval from the minimum time interval among the N-1 time intervals.

[0018] In another possible implementation, the aforementioned time-domain offset parameter adjustment device further includes: a receiving module; this receiving module is used to receive an updated CG configuration from the base station after the transmitting module reports the first offset to the base station, the updated CG configuration being obtained by the base station updating the CG configuration based on the first offset. The processing module is further used to switch the data packet transmission rhythm based on the updated CG configuration received by the receiving module.

[0019] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory stores a program or instructions executable on the processor, wherein the program or instructions, when executed by the processor, implement the method of the first aspect described above.

[0020] Fourthly, this application provides a readable storage medium on which a program or instructions are stored, which, when executed by a computer, implement the method of the first aspect described above.

[0021] Fifthly, this application provides a computer program product stored in a storage medium, which, when executed by a computer, implements the method described in the first aspect.

[0022] In a sixth aspect, embodiments of this application provide a chip including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0023] The beneficial effects of the second to sixth aspects mentioned above are described in the corresponding description of the first aspect and will not be repeated here. Attached Figure Description

[0024] Figure 1 A schematic diagram illustrating an example of resource phase misalignment provided in this application embodiment;

[0025] Figure 2 A schematic diagram of the network architecture for an application of a time-domain offset parameter adjustment method provided in this application embodiment;

[0026] Figure 3 A flowchart illustrating a time-domain offset parameter adjustment method provided in an embodiment of this application;

[0027] Figure 4 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0028] Figure 5 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0029] Figure 6 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0030] Figure 7 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0031] Figure 8 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0032] Figure 9 A schematic diagram illustrating an example of resource phase alignment provided in this application embodiment;

[0033] Figure 10A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0034] Figure 11 A flowchart illustrating another time-domain offset parameter adjustment method provided in this application embodiment;

[0035] Figure 12 This is a schematic diagram of a time-domain offset parameter adjustment device provided in an embodiment of this application;

[0036] Figure 13 This is a schematic diagram of a time-domain offset parameter adjustment device provided in an embodiment of this application;

[0037] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0038] The following will describe in detail, with reference to the accompanying drawings, the time-domain offset parameter adjustment method, apparatus, equipment, medium, and program products provided in this application.

[0039] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0040] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0041] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0042] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0043] The present application provides a time-domain offset parameter adjustment method, apparatus, device, medium, and program product that can be applied to data packet transmission scenarios.

[0044] In existing technologies, for periodic deterministic services, the current 3GPP R16 / R17 standards mainly use CG Type 1 or CG Type 2 mechanisms for transport. Under this architecture, the communication network system acts as a transparent logical bridge in the TSN network, relying on NW-TT on the network side and DS-TT on the terminal side to complete message conversion and transparent transmission. In terms of air interface scheduling, the base station pre-allocates fixed periodic uplink time-frequency resources to the terminal, so that the terminal does not need to initiate a scheduling request every time it sends a packet, and can directly send data on the reserved resources, thereby meeting the real-time requirements of the service to a certain extent.

[0045] However, the drawbacks of existing technologies are: 1. Inherent waiting delay caused by phase misalignment: Although the existing CG scheduling period can be consistent with the PLC packet sending period, the start offset is often randomly configured. If the PLC application layer data packet is generated at time t, and the CG resource window of the communication network has just ended at time t-δ, the data packet must wait for the entire period (T-δ) before it can be sent in the next resource window. This alignment delay is unacceptable in ultra-low latency scenarios, such as... Figure 1 As shown, the arrival time T of the PLC data packet is displayed. arrival 1. There is a time difference Δgap between the current CG resource block start time and the existing CG resource block start time. 2. Lack of cross-layer awareness: The Media Access Control (MAC) layer scheduler usually does not know the specific "heartbeat" time of the upper-layer PLC application, which is "blind scheduling". 3. Weak anti-jitter capability: There is computational jitter in industrial fields. If the PLC sends a packet slightly later than the start time of the CG resource, it will miss the transmission opportunity. The existing technology lacks a dynamic "protection interval" adjustment mechanism.

[0046] To address the aforementioned technical problems, this application provides a method, apparatus, device, medium, and program product for adjusting time-domain offset parameters. In this solution, the phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the CG resource window can be determined based on the first time the first data packet arrives at the modem buffer and N second times the first historical second data packets arrive at the modem buffer. Then, when the phase misalignment is large, a first offset is calculated based on the frame period of the data frame, the first time, and the N second times. This allows the base station to update the time-domain offset parameters in the CG configuration in real time based on the first offset. Therefore, the problem of data packets waiting for the next period to be sent due to resource window misalignment is avoided when the time-domain offset parameters in the CG configuration are randomly configured fixed parameters, thus significantly reducing the end-to-end latency of data packets.

[0047] The core of this application lies in: by sensing application layer traffic characteristics on the terminal device side and dynamically shifting resource phases on the network device side, the microsecond-level precise alignment between the PLC packet sending time and the communication network air interface transmission time is achieved, thereby minimizing end-to-end latency and improving resource utilization.

[0048] The following description, in conjunction with the accompanying drawings, details the time-domain offset parameter adjustment method, apparatus, device, medium, and program products provided in the embodiments of this application.

[0049] Figure 2 The network architecture for applying a time-domain offset parameter adjustment method provided in an embodiment of this application is illustrated. For example... Figure 2 As shown, the network architecture includes a time-domain offset parameter adjustment device 101 and a network-side device 102. The time-domain offset parameter adjustment device 101 and the network-side device 102 are interconnected.

[0050] In some embodiments, the time domain offset parameter adjustment device 101 may be a mobile phone, tablet computer, laptop computer, handheld computer, vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and the embodiments of this application do not specifically limit it. Figure 2 The time-domain offset parameter adjustment device 101 is used as an example of a mobile phone.

[0051] In some embodiments, the network-side device 102 may include: an access point, a Serving Base Station (SBS), a radio base station, a radio transceiver, a Wireless Fidelity (WiFi) node, an NTN device, etc. Figure 2 The example shown is a single base station with network-side equipment 101.

[0052] In some embodiments, the time-domain offset parameter adjustment device 101 acquires the first time when the first data packet arrives at the modem buffer and the N second times when N second data packets arrive at the modem buffer, wherein the N second data packets are data packets that arrive at the modem buffer before the first data packet; the time-domain offset parameter adjustment device 101 calculates an alignment deviation parameter based on the first time and the N second times, the alignment deviation parameter being used to characterize the degree of phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the CG resource window; when the alignment deviation parameter is less than 0 or greater than a preset threshold, the time-domain offset parameter adjustment device 101 calculates a first offset based on the frame period of the data frame, the first time, and the N second times, and reports the first offset to the network-side device 102; the network-side device 102 receives the first offset and updates the time-domain offset parameter in the CG configuration according to the first offset.

[0053] It should be noted that the network architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As network architectures evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0054] See Figure 3 This is a flowchart illustrating a time-domain offset parameter adjustment method provided in an embodiment of this application. Figure 3 As shown, the time-domain offset parameter adjustment method provided in this application embodiment can be implemented by the above-mentioned time-domain offset parameter adjustment device, specifically including the following steps 201 to 203.

[0055] Step 201: The time-domain offset parameter adjustment device obtains the first time when the first data packet arrives at the modem buffer and the N second times when the N second data packets arrive at the modem buffer.

[0056] In some embodiments, the aforementioned N second data packets are data packets that arrive at the modem buffer before the first data packet, where N is an integer greater than 1.

[0057] In some embodiments, the aforementioned N second data packets can be data packets adjacent to the first data packet or data packets not adjacent to the first data packet. This application does not limit this. For example, when the first data packet is the 11th data packet arriving at the modem buffer, the N second data packets can be the 1st to 10th data packets arriving at the modem buffer. As another example, when the first data packet is the 11th data packet arriving at the modem buffer, the N second data packets can be the 1st, 3rd, 5th, 7th, and 9th data packets arriving at the modem buffer.

[0058] It is understandable that the time-domain offset parameter adjustment device can obtain the time when the first data packet and N second data packets arrive at the modem buffer in the time-domain offset parameter adjustment device.

[0059] In some embodiments, the time-domain offset parameter adjustment device may record, based on the TSN global clock, the first time when the first data packet arrives at the modem buffer, and the N second times when N second data packets arrive at the modem buffer.

[0060] Step 202: The time-domain offset parameter adjustment device calculates the alignment deviation parameter based on the first time and N second times.

[0061] In some embodiments, the alignment deviation parameter described above is used to characterize the degree of phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the CG resource window.

[0062] In some embodiments, the aforementioned N second data packets and first data packets are data packets within a sliding time window. It is understood that the time-domain offset parameter adjustment device can calculate the alignment deviation parameter in real time based on the arrival time of a newly arrived data packet in the modem buffer and the arrival times of the previous N data packets of that data packet. As long as the alignment deviation parameter is less than 0 or greater than a preset threshold, the time-domain offset parameter adjustment device instructs the base station to update the time-domain offset parameter in the CG configuration.

[0063] For example, when the 11th data packet arrives at the modem buffer, the time-domain offset parameter adjustment device can obtain the time when the 1st to 10th data packets arrive at the modem buffer within the sliding time window (i.e., the N second times of the N second data packets mentioned above), and the time when the 11th data packet arrives at the modem buffer (i.e., the first time of the first data packet mentioned above). Then, based on the time when the 1st to 10th data packets arrive at the modem buffer and the time when the 11th data packet arrives at the modem buffer, it calculates the alignment deviation parameter. When the alignment deviation parameter is less than 0 or greater than a preset threshold, the time-domain offset parameter adjustment device instructs the base station to update the time-domain offset parameter in the CG configuration.

[0064] Then, when the 12th data packet arrives at the modem buffer, the time-domain offset parameter adjustment device can obtain the arrival times of the 2nd to 11th data packets within the sliding time window (i.e., the N second times of the N second data packets mentioned above), and the arrival time of the 12th data packet (i.e., the first time of the first data packet mentioned above). Based on the arrival times of the 2nd to 11th data packets and the 12th data packet, it calculates the alignment deviation parameter. When the alignment deviation parameter is less than 0 or greater than a preset threshold, the time-domain offset parameter adjustment device instructs the base station to update the time-domain offset parameter in the CG configuration. That is, a judgment process is executed once for each new data packet.

[0065] In some embodiments, the time-domain offset parameter adjustment device may also perform a judgment process once every M data packets, where M is an integer greater than 1. This application embodiment does not limit this.

[0066] In some embodiments, after the time-domain offset parameter adjustment device obtains the first time and N second times, it can send the first time and N second times to the base station, so that the base station can calculate the alignment deviation parameter based on the first time and N second times.

[0067] In some embodiments, after the base station calculates the alignment deviation parameter, it can send the alignment deviation parameter to the time domain offset parameter adjustment device.

[0068] In some embodiments, combined with Figure 3 ,like Figure 4 As shown, step 202 above can be implemented through steps 202a to 202c.

[0069] Step 202a: The time-domain offset parameter adjustment device determines N-1 time intervals based on N second times.

[0070] In some embodiments, the above-mentioned N-1 time intervals are time intervals between N second times.

[0071] It is understandable that a time interval can be determined between every two adjacent second times.

[0072] Step 202b: The time-domain offset parameter adjustment device determines the service cycle based on N-1 time intervals.

[0073] In some embodiments, the time-domain offset parameter adjustment device can calculate the average value of N-1 time intervals and then use the average value as the aforementioned service cycle.

[0074] In some embodiments, the time-domain offset parameter adjustment device may use the time interval that occurs most frequently among N-1 time intervals as the aforementioned service period.

[0075] In some embodiments, the time-domain offset parameter adjustment device can sort N-1 time intervals and then use the time interval in the middle of the sorted position as the aforementioned service cycle.

[0076] It should be noted that the detailed steps of the time-domain offset parameter adjustment device in determining the service cycle based on N-1 time intervals can be found in the description of determining the service cycle based on N-1 time intervals in related technologies, and will not be repeated here.

[0077] Step 202c: The time-domain offset parameter adjustment device calculates the alignment deviation parameter based on the period of the CG resource, the initial offset of the CG resource, and the first time.

[0078] In some embodiments, the period of the aforementioned CG resources is determined based on the business cycle.

[0079] In some embodiments, after determining the service period, the time-domain offset parameter adjustment device can compare the service period with the period of the CG resource. If the service period and the CG resource period are the same, the time-domain offset parameter adjustment device can determine that the period of the CG resource does not need to be adjusted. Alternatively, if the service period and the CG resource period are different, the time-domain offset parameter adjustment device can request the base station to adjust the period of the CG resource to be the same as the service period.

[0080] In some embodiments, combined with Figure 4 ,like Figure 5 As shown, step 202c can be implemented through steps 202c1 to 202c3.

[0081] Step 202c1: The time-domain offset parameter adjustment device adds the first time to the time delay constant to calculate the first value.

[0082] Step 202c2: The time-domain offset parameter adjustment device multiplies the first value and the second value to calculate the third value.

[0083] In some embodiments, the second value is obtained by performing a modulo operation on the period of the CG resource.

[0084] Step 202c3: The temporal offset parameter adjustment device subtracts the third value from the initial offset of the CG resource to calculate the alignment deviation parameter.

[0085] In some embodiments, the time-domain offset parameter adjustment device can calculate the alignment deviation parameter using Formula 1, as follows:

[0086] Formula 1

[0087] in, This represents the alignment deviation parameter; Indicates "at the first moment"; This represents the inherent hardware processing delay constant within an electronic device; Indicates the lifecycle of CG resources; This indicates the starting offset of the CG resource.

[0088] It is understandable that the alignment deviation parameter calculation is the decision-making step in the entire method. By comparing the arrival time of the extracted first data packet with the current network configuration, it is determined whether an adjustment needs to be triggered. Based on the reference time of the locked first data packet, the "phase difference" between the currently allocated CG resources and the PLC service flow is calculated.

[0089] Step 203: When the alignment deviation parameter is less than 0 or greater than the preset threshold, the time domain offset parameter adjustment device calculates the first offset based on the frame period of the data frame, the first time, and N second times, and reports the first offset to the base station.

[0090] In some embodiments, the first offset is used to update the temporal offset parameter in the base station's CG configuration.

[0091] It is understandable that when the alignment deviation parameter is less than 0 or greater than the preset threshold, it indicates that the resource is too early (causing it to miss the current cycle) or too late (causing high latency), and the time domain offset parameter adjustment device can determine that it is currently out of sync.

[0092] In some embodiments, when the alignment deviation parameter is greater than or equal to 0 and less than or equal to a preset threshold, the time domain offset parameter adjustment device can determine that the resource phase matches and remain silent.

[0093] It is understandable that the time-domain offset parameter adjustment device calculates the first offset and reports it to the base station. This operation is only performed when it is determined that the device is currently out of sync, thereby avoiding signaling storms caused by periodic reporting. After the first offset is reported, control is transferred to the base station, which adjusts the time-domain offset parameter in the CG configuration.

[0094] It is understood that the time-domain offset parameter adjustment device, in response to the aforementioned out-of-synchronization decision, calculates a first offset to convert the timing requirements of the application layer into auxiliary parameters that the communication protocol layer can understand.

[0095] In some embodiments, the time-domain offset parameter adjustment device may send a first request to the base station, the first request including the aforementioned first offset.

[0096] In some embodiments, the time-domain offset parameter adjustment device can construct the first request described above using the UEAssistanceInformation extension field of the Medium Access Control Control Element (MAC CE) or Radio Resource Control (RRC) layer. This allows for standard compatibility and rapid adjustment.

[0097] In some embodiments, combined with Figure 3 ,like Figure 6 As shown, step 203 above can be implemented through steps 203a and 203b.

[0098] Step 203a: When the alignment deviation parameter is less than 0 or greater than the preset threshold, the time domain offset parameter adjustment device adds the first time with the fourth value and the time delay constant to calculate the fifth value.

[0099] In some embodiments, the fourth value is a safety margin set based on the first jitter range, where the first jitter range is the jitter range of the time interval between N second times.

[0100] In some embodiments, the fourth value is proportional to the first jitter range. This ensures that even in the event of maximum jitter, data packets will fall within the resource window.

[0101] Step 203b: The time-domain offset parameter adjustment device multiplies the fifth value and the sixth value to calculate the first offset, and reports the first offset to the base station.

[0102] In some embodiments, the sixth value is obtained by performing a modulo operation on the frame period of the data frame.

[0103] In some embodiments, the time-domain offset parameter adjustment device can calculate the first offset using Formula 2, which is as follows:

[0104] Formula 2

[0105] in, Indicates the first offset. Indicates that immediately, This represents the inherent hardware processing delay constant within the electronic device. Indicates based on Setting safety margin ( ), Indicates the first jitter range. This indicates the frame period of the data frame.

[0106] In some embodiments, combined with Figure 6 ,like Figure 7 As shown, prior to step 203 above, the time-domain offset parameter adjustment method provided in this application embodiment may further include the following steps 301 and 302.

[0107] Step 301: The time-domain offset parameter adjustment device determines N-1 time intervals based on N second times.

[0108] It is understandable that subtracting every two adjacent second times can determine a time interval.

[0109] In some embodiments, each of the above time intervals is the time interval between two adjacent second data packets arriving at the modem buffer out of N second data packets.

[0110] Step 302: The time-domain offset parameter adjustment device subtracts the maximum time interval from the minimum time interval among N-1 time intervals to calculate the first jitter range.

[0111] In the time-domain offset parameter adjustment method provided in this application, the phase misalignment degree between the actual time the first data packet needs to be sent and the actual start time of the CG resource window can be determined based on the first time the first data packet arrives at the modem buffer and the N second times the N historical second data packets arrive at the modem buffer. Then, when the phase misalignment degree is large, a first offset is calculated based on the frame period of the data frame, the first time, and the N second times, so that the base station can update the time-domain offset parameter in the CG configuration in real time based on the first offset. Therefore, the problem that the data packet has to wait for the next period to be sent due to the resource window misalignment is avoided when the time-domain offset parameter in the CG configuration is a randomly configured fixed parameter, thereby significantly reducing the end-to-end latency of the data packet.

[0112] In some embodiments, the time-domain offset parameter adjustment device can establish a cross-layer monitoring module to capture the data stream of the Ethernet interface connected to the PLC in real time and perform the following operations: First, perform period locking by using a sliding window algorithm to count the arrival times of the most recent N second data packets in the modem buffer, i.e., the aforementioned N second times. Then, further count the time intervals between the arrival times of the N second data packets in the modem buffer, i.e., the aforementioned N-1 time intervals. Then, if the variance of the N-1 time intervals is less than a preset threshold, the time-domain offset parameter adjustment device can determine that the data stream is a periodic PLC control stream and lock its service cycle T. app。 Then, the reference time is extracted, and the absolute timestamp T of the first data packet arriving at the modem buffer is recorded. arrival That is, the aforementioned first time, which will serve as the reference time for subsequent calculations of phase deviation. Finally, jitter estimation continuously calculates the jitter range J of the application layer packet.app This statistic will be used to calculate the protection interval that can cover service jitter. At this point, the timing characteristic parameter (T) has been obtained. app T arrival , The time-domain offset parameter adjustment device can then begin resource matching analysis.

[0113] For example, on the industrial terminal (UE / DS-TT) side, a cross-layer monitoring module can be established to capture the data stream of the Ethernet interface connected to the PLC in real time.

[0114] In some embodiments, combined with Figure 3 ,like Figure 8 As shown, after step 203 above, the time-domain offset parameter adjustment method provided in this application embodiment may further include the following steps 401 and 402.

[0115] Step 401: The time-domain offset parameter adjustment device receives the updated CG configuration from the base station.

[0116] In some embodiments, the updated CG configuration is obtained by the base station updating the CG configuration based on the first offset.

[0117] In some embodiments, after receiving the first offset, the base station can use the first offset as the target location to check whether the corresponding time-frequency resource block has been occupied by other high-priority users (such as other Ultra-Reliable Low-Latency Communications (URLLC) users), and then update the CG configuration based on the first offset if it is not occupied.

[0118] In some embodiments, the base station may update the time domain offset parameter in the CG configuration of the time domain offset parameter adjustment device to a first offset amount by means of RRC reconfiguration or physical downlink control channel (PDCCH) downlink control information (DCI) instructions.

[0119] It is understandable that after receiving the first offset, the base station can execute a resource remapping algorithm: First, collision detection is performed, using the first offset as the target location, to check whether the corresponding time-frequency resource block has been occupied by other high-priority users. If the resource is idle, the base station updates the timeDomainOffset parameter in the CG configuration of the time-domain offset parameter adjustment device to the first offset via RRC reconfiguration or PDCCH DCI instructions.

[0120] In some embodiments, when the base station uses the first offset as the target position and checks whether the corresponding time-frequency resource block has been occupied by other high-priority users, the base station scheduler will initiate a suboptimal shift strategy: provided that sufficient frequency domain resources are ensured, the next nearest idle Orthogonal Frequency Division Multiplexing (OFDM) symbol is searched forward along the time axis (i.e., with a slight increase in delay) as the new starting offset; or, at the same time domain starting point, other idle subcarrier positions are allocated in the frequency domain. If the entire current Transmission Time Interval (TTI) is extremely congested, the status quo is maintained in this adjustment, and a reassessment is triggered in the next cycle.

[0121] Step 402: The time-domain offset parameter adjustment device switches the data packet transmission rhythm based on the updated CG configuration.

[0122] In some embodiments, the time-domain offset parameter adjustment device can switch the data packet transmission rhythm during the Kth interval after receiving the updated CG configuration. At this time, once the PLC data packet is generated, it is transmitted over a very short period of time. After that, it immediately enters air interface transmission, and the waiting delay approaches 0.

[0123] In some embodiments, after the time-domain offset parameter adjustment device switches the data packet transmission rhythm, it continues to monitor the jitter in the new alignment state, forming a closed-loop management.

[0124] For example, such as Figure 9 As shown in (a) of the diagram, on the timeline before adjustment, the PLC sent a data packet. However, the CG resource block was far from the arrival time of the data packet, causing the data packet to queue in the buffer for a long time. This indicates a large latency. Figure 9 As shown in (b), after the base station adjusts the time-domain offset parameter in the CG configuration, the CG resource block shifts to the left. The shifted CG resource block is exactly close to the arrival time of the data packet, with only a small amount of necessary hardware processing time (Tproc+Tguard) in between, so that the data packet can be sent as quickly as possible.

[0125] In some embodiments, combined with Figure 3 ,like Figure 10 As shown, after step 203 above, the time-domain offset parameter adjustment method provided in this application embodiment further includes the following step 501.

[0126] Step 501: The time-domain offset parameter adjustment device reports the first information to the base station.

[0127] In some embodiments, the first information mentioned above includes: the number of data packets that arrive at the modem buffer consecutively during a service cycle and the size of the N data packets.

[0128] In some embodiments, the first information described above is used by the base station to adjust the frequency domain offset parameters in the CG configuration.

[0129] In some embodiments, the method for defining the size of data packets is that the cross-layer monitoring module of the time-domain offset parameter adjustment device can obtain the precise number of bytes of the application layer payload by reading the frame header of the Ethernet data frame (such as the Frame Length field in the MAC header or the Total Length field in the IP header). Due to industrial characteristics, the data packet size of PLC control flow is typically very small and fixed (e.g., standard PROFINET or EtherCAT messages often have payloads of only 64 bytes, 128 bytes, or 256 bytes).

[0130] In some embodiments, the method for defining the number of data packets allows the cross-layer monitoring module of the time-domain offset parameter adjustment device to count the number of continuously arriving control flow data packets within a locked business cycle. In industrial applications, typically only one data packet arrives per cycle (1 packet / cycle). However, in some complex PLC multi-axis synchronous control scenarios, the PLC may instantaneously send a fixed number of burst packets (e.g., 3 concurrent data packets) at the trigger moment of a cycle. This quantity defines the number of concurrent packets within a single cycle.

[0131] It's understandable that the time-domain offset parameter adjustment device can also combine with the first piece of information to achieve precise "time-frequency" dual-dimensional wrapping. Wrapping refers to resource allocation that is just right, neither wasteful nor insufficient. Time-domain wrapping adjusts the starting offset so that the time when the resource window opens corresponds exactly to the time when the data packet arrives. Frequency-domain wrapping: Traditional 5G scheduling might allocate a whole default-sized resource block (RB) to the terminal for convenience, resulting in spectrum waste. Since it's known that PLC data packets are of a fixed small size, the base station scheduler allocates only a very small number of subcarriers (RBs) in the frequency domain that can just hold this small data packet. Not waiting even a millisecond too long in the time domain, and not occupying an extra subcarrier in the frequency domain—this is called precise "time-frequency" dual-dimensional wrapping.

[0132] It should be noted that the execution order of steps 203 and 501 described above is not limited in this embodiment. For example, step 203 can be executed first, followed by step 501; or step 501 can be executed first, followed by step 203; or steps 203 and 501 can be executed simultaneously. Figure 10This example illustrates the process of executing step 203 first, followed by step 501.

[0133] The following specific embodiments illustrate the time-domain offset parameter adjustment method of this application.

[0134] This application proposes a time-domain offset parameter adjustment method based on the "end-side sensing-on-demand feedback-network-side response" strategy. For example... Figure 11 As shown, taking the time-domain offset parameter adjustment device as a UE as an example, the implementation process of the time-domain offset parameter adjustment method provided in this application embodiment includes the following S1 to S4: where S1 is the data foundation, S2 is the decision core, S3 is the signaling bridge, and S4 is the execution endpoint.

[0135] S1, Cross-layer traffic feature perception and statistics (executed on the UE side).

[0136] This step is the perception phase of the entire method, aiming to extract key timing parameters for subsequent calculations from the unstructured Ethernet data stream. On the industrial terminal (UE / DS-TT) side, a cross-layer monitoring module is established to capture the Ethernet interface data stream connected to the PLC in real time and perform the following operations: First, period locking is performed, and a sliding window algorithm is used to calculate the arrival time interval Δt of the most recent N data packets. i If and only if the variance σ 2 When the value is less than ε (preset threshold), the flow is determined to be a periodic PLC control flow, and its business cycle T is locked. app .

[0137] Then, reference time extraction is performed, recording the absolute timestamp Tarrival (based on the TSN global clock) of the PLC data packet arriving at the 5G modem buffer. This parameter will serve as the reference time for calculating the phase deviation in S2. Finally, jitter estimation is performed, continuously calculating the jitter range J of the application layer packets. app This statistical value will be directly transmitted to S3 for calculating the protection interval that can cover service jitter. The aforementioned timing characteristic parameters (T) are obtained. app T arrival, After that, the system automatically enters S2 to perform resource matching degree analysis.

[0138] S2, Resource phase deviation calculation (executed on the UE side or gNB side).

[0139] This step is the decision-making stage of the entire method, utilizing T extracted from S1. arrival Compare with the current network configuration to determine if an adjustment needs to be triggered. Based on the reference time locked by S1, calculate the "phase difference" between the currently allocated CG resources and the PLC service flow. First, determine the input parameter as the period P of the current CG resource.CG Starting offset O current And T from S1 arrival Then, the deviation is calculated to determine the alignment deviation parameter D. align :

[0140]

[0141] Where Tproc is the inherent hardware processing delay constant within the UE.

[0142] Furthermore, the decision logic is performed to determine whether the state is out of sync; if 0 ≤ ≤Threshold wait Determine if resource phase matching is achieved, determine if the system is not out of sync, remain silent, and return to S1 to continue monitoring; if < 0 or Threshold wait This indicates that resources are available too early (causing the current cycle to be missed) or too late (causing high latency), indicating that the system is out of sync and thus triggering S3.

[0143] S3. Construct and send auxiliary alignment information (interaction at the MAC / PHY layer).

[0144] This step is the interactive phase. In response to the S2 out-of-synchronization decision, the UE translates the application layer timing requirements into auxiliary parameters understandable to the communication protocol layer. To ensure standard compatibility and enable rapid adjustments, this application utilizes the UEAssistanceInformation extension field of the MAC CE or RRC layer to construct the request:

[0145] First, the target parameters are calculated based on the jitter statistics provided by S1. and The UE calculates the recommended start offset for the preferred resource. ), that is, the first offset mentioned above:

[0146]

[0147] in, Based on Setting safety margin ( This ensures that even with maximum jitter, data packets will fall within the resource window.

[0148] Then a report is triggered, and the UE will contain... The auxiliary alignment information is sent to the base station. This operation is only performed when S2 determines that the system is "out of sync," thus avoiding signaling storms caused by periodic reporting. After the auxiliary alignment information is sent, control is transferred from the UE side to the network side, and the process proceeds to S4.

[0149] S4. Dynamic translation and reconfiguration of resource grids (executed on the gNB side).

[0150] This step is the execution phase. The base station receives the information reported by S3, completes the final remapping of physical resources, and closes the control loop. After receiving the alignment request, the base station scheduler executes the resource remapping algorithm: first, it performs collision detection, using the information reported by S3... For the target location, check whether the corresponding time-frequency resource block has been occupied by other high-priority users (such as other URLLC users).

[0151] If resources are available, the gNB updates the timeDomainOffset parameter in the UE's CG configuration to the specified value via RRC reconfiguration or PDCCH DCI command. .

[0152] Furthermore, core association is performed. At this stage, adjustments are not only based on the time dimension, but the scheduler can also combine the data packet size and quantity statistics from STEP 1 to achieve precise "time-frequency" dual-dimensional wrapping. Finally, confirmation and loop closure: After receiving the new configuration, the UE confirms the effect and closes the loop. The interval switches to a new sending rhythm. At this time, once the PLC data packet is generated, it is sent to the next device in a very short time. Afterwards, it immediately enters air interface transmission, waiting for the latency to approach 0. The closed-loop regression process involves the system returning to S1 after the new configuration takes effect, continuing to monitor jitter under the new alignment state, thus forming closed-loop management. (Appendix) Figure 2 The comparison before and after the adjustment is shown. Before the adjustment, the data packet was generated after a 3 / 4 cycle delay; after the adjustment, the CG resource block is immediately after the data packet is generated.

[0153] In this way, by sensing application-layer traffic characteristics on the terminal device side and dynamically shifting resource phases on the network device side, microsecond-level precise alignment between the PLC packet sending time and the communication network air interface transmission time can be achieved, thereby minimizing end-to-end latency and improving resource utilization.

[0154] It should be noted that the descriptions of each step S1 to S4 in this embodiment can be found in the descriptions in the above embodiments, and will not be repeated here.

[0155] The key points and protection points of this application embodiment include: 1) Protecting the overall process of terminal and base station working together. The core of this application is to establish a cross-layer closed-loop mechanism. The feature is that: the terminal side identifies the periodic characteristics of the upper layer PLC service flow and the arrival time of the data packet in real time through the cross-layer monitoring module; then compares the arrival time with the start time of the current network pre-allocated resources and calculates the time phase difference between the two; when the phase difference indicates that the resources and services are not synchronized, the resource adjustment process is triggered, and finally the transmission window of the network resources is accurately shifted on the time axis to match the generation rhythm of PLC service data. (2) "Dynamic protection interval" determination strategy based on service flow jitter statistics: protecting the specific logic of how the terminal calculates the "most ideal resource start time". This application does not simply align the resources to the data generation time, but introduces an anti-interference mechanism. The feature is that: the terminal continuously counts the arrival time jitter of historical service flows (i.e., the range of fast and slow changes) and generates a dynamic "safety protection interval" accordingly. (3) On-demand signaling triggering mechanism based on "out-of-synchronization state" decision: After receiving a request, the protection base station performs a "time-frequency" dual adjustment operation on physical resources. The base station scheduler has dual-dimensional adaptation capability when performing resource adjustment. (4) Resource reconfiguration method of joint adaptation of time-domain phase shift and frequency-domain granularity: After receiving a request, the protection base station performs a "time-frequency" dual adjustment operation on physical resources. The base station scheduler has dual-dimensional adaptation capability when performing resource adjustment.

[0156] This application addresses the core needs of the Industrial Internet for wireless production lines and flexible manufacturing. It solves the timing matching problem when the network carries the periodic control flow of a PLC through an innovative cross-layer resource phase alignment algorithm. This solution fills the gap in microsecond-level deterministic scheduling, upgrading the mobile communication network to a deterministic network with bus-level stability, reshaping the industrial communication architecture, and achieving low-cost "braid trimming" in a standardized manner. It meets the stringent requirements of ultra-low latency and extremely low jitter in scenarios such as industrial automation and cloud-based PLCs. In terms of performance and deployment feasibility, this solution eliminates waiting latency through precise phase alignment, achieving end-to-end latency of less than 1ms and zero scheduling wait. Simultaneously, it improves spectrum utilization by more than 30% through "time-frequency dual-dimensional wrapping" and can tolerate terminal jitter at the ±50μs level. As a purely software-defined algorithm optimization solution, this application does not require changes to the existing network RF hardware architecture, is fully compatible with the 3GPP standard framework, and can be quickly deployed in existing network base stations and modules through firmware upgrades, greatly reducing the threshold for implementation. This solution boasts broad industrialization prospects, focusing on high-value areas such as flexible manufacturing (Automated Guided Vehicle (AGV) / robotic arm collaboration), cloud-based PLC centralized control, remote control in smart ports and mines, and differential protection for smart grids. Due to its adoption of standard signaling extensions, this solution is easily integrated by chip and module manufacturers and can be deeply integrated with industrial gateways and private network systems as a "low-latency enhancement package," rapidly establishing a commercial closed loop from technology development to industrial field applications.

[0157] It should be noted that the above-described method embodiments, or the various possible implementations of the method embodiments, can be executed individually, or, provided there is no conflict, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.

[0158] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0159] This application embodiment can divide the time-domain offset parameter adjustment device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0160] In some embodiments, this application also provides a time-domain offset parameter adjustment device. This time-domain offset parameter adjustment device may include one or more functional modules for implementing the time-domain offset parameter adjustment method of the above method embodiments.

[0161] For example, Figure 12 This is a schematic diagram of a time-domain offset parameter adjustment device provided in an embodiment of this application. Figure 12 As shown, the time-domain offset parameter adjustment device 900 includes a processing module 902 and a transmission module 903.

[0162] The aforementioned processing module 902 is used to obtain the first time when the first data packet arrives at the modem buffer and the N second times when N second data packets arrive at the modem buffer, where the N second data packets are data packets that arrive at the modem buffer before the first data packet, and N is an integer greater than 1; and to calculate an alignment deviation parameter based on the first time and the N second times, where the alignment deviation parameter is used to characterize the degree of phase misalignment between the actual time that the first data packet needs to be sent and the actual start time of the configuration authorized CG resource window; and to calculate a first offset based on the frame period of the data frame, the first time, and the N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold.

[0163] The sending module 903 is used to report the first offset obtained by the processing module 902 to the base station. The first offset is used by the base station to update the time domain offset parameter in the CG configuration.

[0164] The time-domain offset parameter adjustment device provided in this application can determine the phase misalignment between the actual time the first data packet needs to be sent and the actual start time of the CG resource window based on the first time the first data packet arrives at the modem buffer and the N second times the N historical second data packets arrive at the modem buffer. Then, when the phase misalignment is large, a first offset is calculated based on the frame period of the data frame, the first time, and the N second times, so that the base station can update the time-domain offset parameter in the CG configuration in real time based on the first offset. Therefore, it avoids the problem that when the time-domain offset parameter in the CG configuration is a randomly configured fixed parameter, the data packet has to wait for the next period to be sent due to the resource window misalignment, thereby significantly reducing the end-to-end latency of the data packet.

[0165] In some embodiments, the processing module 902 is specifically used to determine N-1 time intervals based on N second times, where N-1 time intervals are the time intervals between the N second times; and to determine the business cycle based on the N-1 time intervals; and to calculate the alignment deviation parameter based on the cycle of the CG resource, the starting offset of the CG resource, and the first time; wherein the cycle of the CG resource is determined based on the business cycle.

[0166] In other embodiments, the processing module 902 is specifically used to add the first time to the delay constant to calculate a first value; multiply the first value to a second value to calculate a third value, where the second value is obtained by performing a modulo operation on the period of the CG resource; and subtract the third value from the starting offset of the CG resource to calculate an alignment deviation parameter.

[0167] In some other embodiments, the processing module 902 is specifically used to calculate a fifth value by adding the first time, the fourth value, and the time delay constant when the alignment deviation parameter is less than 0 or greater than a preset threshold. The fourth value is a safety margin set based on the first jitter range, and the first jitter range is the jitter range of the time interval between N second times. The fifth value is multiplied by the sixth value to calculate the first offset, and the sixth value is obtained by performing a modulo operation on the frame period of the data frame.

[0168] In some other embodiments, the processing module 902 is further configured to determine N-1 time intervals based on the N second times before calculating the first offset based on the frame period of the data frame, the first time, and N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold; and to calculate the first jitter range by subtracting the maximum time interval from the minimum time interval among the N-1 time intervals.

[0169] Another possible implementation method, combined with Figure 12 ,like Figure 13As shown, the aforementioned time-domain offset parameter adjustment device 900 further includes a receiving module 904; the receiving module 904 is used to receive the updated CG configuration from the base station after the sending module 903 reports the first offset to the base station, the updated CG configuration being obtained by the base station updating the CG configuration based on the first offset.

[0170] The processing module 902 is also used to switch the data packet sending rhythm based on the updated CG configuration received by the receiving module 904.

[0171] It should be noted that the time-domain offset parameter adjustment device can implement all the processes implemented in the above method embodiments and achieve the same beneficial effects. To avoid repetition, it will not be described again here.

[0172] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 14 As shown, the electronic device 90 includes: a processor 92, a communication interface 93, and a bus 94. Optionally, the electronic device 90 may also include a memory 91.

[0173] Processor 92 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0174] Communication interface 93 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0175] The memory 91 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0176] As one possible implementation, the memory 91 can exist independently of the processor 92. The memory 91 can be connected to the processor 92 via a bus 94 and is used to store instructions or program code. When the processor 92 calls and executes the instructions or program code stored in the memory 91, it can implement the time-domain offset parameter adjustment method provided in the embodiments of this application.

[0177] In another possible implementation, memory 91 can also be integrated with processor 92.

[0178] Bus 94 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 94 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0179] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.

[0180] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described time-domain offset parameter adjustment method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0181] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0182] This application also provides a readable storage medium storing a program or instructions that, when executed by a computer, implement the time-domain offset parameter adjustment method provided in the above embodiments. It is understood that all or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware; the readable storage medium can be any of the foregoing embodiments or memory; the readable storage medium can also be an external storage device of the service invocation device, such as a pluggable hard drive, SmartMedia Card (SMC), Secure Digital (SD) card, flash card, etc., equipped on the service invocation device. Further, the readable storage medium can include both internal storage units of the service invocation device and external storage devices. The readable storage medium is used to store the computer program and other programs and data required by the service invocation device. The readable storage medium can also be used to temporarily store data that has been output or will be output.

[0183] This application also provides a computer program product, which is stored in a storage medium and, when executed by a computer, implements the time-domain offset parameter adjustment method provided in the above embodiments.

[0184] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0185] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0186] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for adjusting a time-domain offset parameter, characterized in that, The method includes: The system obtains the first time when a first data packet arrives at the modem buffer and the N second times when N second data packets arrive at the modem buffer, wherein the N second data packets are data packets that arrive at the modem buffer before the first data packet, and N is an integer greater than 1; Based on the first time and the N second times, an alignment deviation parameter is calculated. The alignment deviation parameter is used to characterize the degree of phase misalignment between the actual time that the first data packet needs to be sent and the actual start time of the configured authorized CG resource window. When the alignment deviation parameter is less than 0 or greater than a preset threshold, a first offset is calculated based on the frame period of the data frame, the first time, and the N second times, and the first offset is reported to the base station. The first offset is used by the base station to update the temporal offset parameter in the CG configuration.

2. The method according to claim 1, characterized in that, The alignment deviation parameter is calculated based on the first time and the N second times, including: Based on the N second times, N-1 time intervals are determined, where the N-1 time intervals are the time intervals between the N second times; The business cycle is determined based on the N-1 time intervals; The alignment deviation parameter is calculated based on the period of the CG resource, the initial offset of the CG resource, and the first time. The period of the CG resources is determined based on the business cycle.

3. The method according to claim 2, characterized in that, The alignment deviation parameter is calculated based on the period of the CG resource, the initial offset of the CG resource, and the first time, including: Add the first time to the time delay constant to calculate the first value; Multiply the first value by the second value to obtain the third value, where the second value is obtained by performing a modulo operation on the period of the CG resource; The alignment deviation parameter is calculated by subtracting the third value from the starting offset of the CG resource.

4. The method according to claim 1, characterized in that, When the alignment deviation parameter is less than 0 or greater than a preset threshold, the first offset is calculated based on the frame period of the data frame, the first time, and the N second times, including: When the alignment deviation parameter is less than 0 or greater than a preset threshold, the first time is added to the fourth value and the time delay constant to calculate the fifth value. The fourth value is a safety margin set based on the first jitter range. The first jitter range is the jitter range of the time interval between the N second times. The first offset is calculated by multiplying the fifth value by the sixth value, where the sixth value is obtained by modulo operation on the frame period of the data frame.

5. The method according to claim 4, characterized in that, Before calculating the first offset based on the frame period of the data frame, the first time, and the N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold, the method further includes: Based on the N second times, N-1 time intervals are determined; The first jitter range is calculated by subtracting the maximum time interval from the minimum time interval among the N-1 time intervals.

6. The method according to claim 1, characterized in that, After reporting the first offset to the base station, the method further includes: The system receives an updated CG configuration from the base station, wherein the updated CG configuration is obtained by the base station updating the CG configuration based on the first offset. Based on the updated CG configuration, the data packet sending rhythm is switched.

7. The method according to claim 1, characterized in that, The method further includes: The base station reports first information, which includes the number of data packets that arrive at the modem buffer consecutively within a service period and the size of the N data packets. The first information is used by the base station to adjust the frequency domain offset parameter in the CG configuration.

8. A time-domain offset parameter adjustment device, characterized in that, The device includes: a processing module and a transmitting module; The processing module is configured to acquire the first time when a first data packet arrives at the modem buffer and the N second times when N second data packets arrive at the modem buffer, wherein the N second data packets are data packets that arrive at the modem buffer before the first data packet, and N is an integer greater than 1; and calculate an alignment deviation parameter based on the first time and the N second times, wherein the alignment deviation parameter is used to characterize the degree of phase misalignment between the actual time that the first data packet needs to be sent and the actual start time of the configured authorized CG resource window; and calculate a first offset based on the frame period of the data frame, the first time, and the N second times when the alignment deviation parameter is less than 0 or greater than a preset threshold. The sending module is used to report the first offset obtained by the processing module to the base station, and the first offset is used by the base station to update the time domain offset parameter in the CG configuration.

9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the time-domain offset parameter adjustment method as described in any one of claims 1-7.

10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a computer, implement the time-domain offset parameter adjustment method as described in any one of claims 1-7.

11. A computer program product, characterized in that, The computer program product is stored in a storage medium, and when executed by a computer, the computer program product implements the time-domain offset parameter adjustment method as described in any one of claims 1-7.