Embodiments of the present application relate to communication technologies, and in particular, to a time adjustment method and a system, a device, and a storage medium.
In a communication network, it is generally required that a clock between a terminal and a network device are strictly synchronized. During clock synchronization, one side can acquire a clock of the other side based on unicast signaling or broadcast signaling between the two sides, and then adjust the clock per se to realize synchronization. In a strict clock synchronization process, it is also necessary to consider a clock synchronization error caused by a transmission delay generated by the signaling on a transmission path. In this case, the transmission delay can be compensated by a timing advance (TA).
The network device can receive a random access preamble (RA Preamble) from the terminal, and determine the TA accordingly, so that a random access response (RAR) sent by the network device to the terminal carries the TA. In this way, after receiving the TA, the terminal uses the TA by default to adjust clock information per se.
In prior art, the RAR received by the terminal carries the TA, but whether the terminal needs to compensate the transmission delay is not indicated, and the terminal uses the TA for time adjustment by default. In other possible implementation scenarios, the network device may pre-compensate the transmission by other means, or, in some possible implementation scenarios, due to small transmission delay of the air interface, the terminal does not need to use TA for adjustment. If the terminal uses the TA by default to adjust the time according to the existing time synchronization method, it may lead to serious loss of synchronization of clocks (referred to as “non-synchronised”).
Embodiments of the present application provide a time adjustment method and a system, a device, and a storage medium, which are used to reduce negative effects of a transmission delay on a clock synchronization process, and are beneficial to realize clock synchronization between a terminal and a network device.
In a first aspect, an embodiment of the present application may provide a time adjustment method, which is applied to a terminal, and the method includes:
receiving indication information from a network device, wherein the indication information is used to indicate whether a terminal adjusts time information of the terminal; and
when the indication information indicates that the terminal needs to adjust the time information, adjusting the time information.
In a second aspect, an embodiment of the present application may provide a time adjustment method, which is applied to a network device, and the method includes:
acquiring indication information, wherein the indication information is used to indicate a terminal whether the terminal needs to adjust time information of the terminal;
sending the indication information to the terminal, to enable the terminal to adjust the time information when the indication information indicates that the terminal needs to adjust the time information.
In a third aspect, an embodiment of the present application may provide a terminal, including:
a transceiving module, configured to receive indication information from a network device, wherein the indication information is used to indicate whether the terminal adjusts time information of the terminal; and
a processing module, configured to adjust the time information when the indication information indicates that the terminal needs to adjust the time information.
In a fourth aspect, an embodiment of the present application may provide a network device, including:
a processing module, configured to acquire indication information, wherein the indication information is used to indicate a terminal whether the terminal needs to adjust time information of the terminal
a transceiving module, configured to send the indication information to the terminal, to enable the terminal to adjust the time information when the indication information indicates that the terminal needs to adjust the time information.
In a fifth aspect, an embodiment of the present application may provide a terminal, including:
a processor, a memory, a communication interface;
the memory stores a computer-executable instruction;
the processor executes the computer-executable instruction stored in the memory, so that the processor executes the method according to the first aspect.
In a sixth aspect, an embodiment of the present application may provide a network device, including:
a processor, a memory, a communication interface;
the memory stores a computer-executable instruction;
the processor executes the computer-executable instruction stored in the memory, so that the processor executes the method according to the second aspect.
In a seventh aspect, an embodiment of the present application provides a communication system, including:
a terminal, configured to execute the method according to the first aspect; and
a network device, configured to execute the method according to the second aspect.
In an eighth aspect, an embodiment of the present application provide a computer-readable storage medium, where the computer-readable storage medium has a computer-executable instruction stored thereon, and when the computer-executable instruction is executed by a processor, the computer-readable storage medium is configured to execute the method according to the first aspect or the second aspect.
In a ninth aspect, an embodiment of the present application provides a chip, including: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the method according to the first aspect or the second aspect.
In a tenth aspect, an embodiment of the present application provides a computer program product, including computer program instructions that cause a computer to execute the method according to the first aspect or the second aspect.
In an eleventh aspect, an embodiment of the present application further provides a computer program, where the computer program causes a computer to execute the foregoing method according to the first aspect or the second aspect.
In the time adjustment method and system, device, and storage medium provided by the embodiments of the present application, a network device may send indication information to a terminal, to indicate whether the terminal needs to adjust time information of the terminal; thus, after the terminal receives the indication information, only when the indication information indicates that the terminal adjusts its time, the terminal will adjust the time information per se. In this way, the terminal can adjust the time information per se based on the indication information, so that when a clock non-synchronised situation between the terminal and the network device is slight, there is no need to adjust the time information of the terminal, thereby saving resources of the terminal; and, if the clock non-synchronised situation has been pre-compensated by other means, there is no need for the terminal to perform secondary compensation on the transmission delay, so as to avoid the possibility of aggravating the clock non-synchronised situation caused by performing compensation on the transmission delay repeatedly. Therefore, the technical solutions provided by the embodiments of the present application can reduce negative effects of the transmission delay on a clock synchronization process to some extent, and are beneficial to realize clock synchronization between the terminal and the network device.
In order to describe the technical solutions in the embodiments of the present application or prior art more clearly, in the following, drawings that need to be used in the description of the embodiments or prior art will be introduced briefly. Obviously, the drawings described below are some embodiments of the present application, and for those of skilled in the art, other drawings can be obtained based on these drawings without paying creative efforts.
In order to make the purpose, technical solutions and advantages of embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described as follows clearly and completely in conjunction with accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are a part rather than all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without paying creative work shall fall within the protection scope of the present application.
The terms “first”, “second” and the like in the description, claims and the above-mentioned drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data so used may be interchanged under appropriate circumstances, such that the embodiments of the present application described herein can, for example, be implemented in sequences other than those shown in the drawings or described herein. Furthermore, the terms “comprising” and “having” and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units which have been clearly listed, but may include other steps or units which have not been clearly listed or are inherent to the process, method, product or device.
The technical solutions in the embodiments of the present application will be described as follows in conjunction with accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are a part rather than all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without paying creative work shall fall within the protection scope of the present application.
The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) system, General Packet Radio Service (GPRS) system, a long term evolution (LTE) system, an LTE frequency division duplex (FDD) system, an LTE time division duplex (TDD), an advanced long term evolution (LTE-A) system, a New Radio (NR) system, an evolution system of an NR system, an NR-based access to unlicensed spectrum (NR-U) system, a universal mobile telecommunication system (UMTS), a worldwide interoperability for microwave access (WiMAX) communication system, wireless fidelity (WiFi) system, or a next-generation communication system or the like.
Generally speaking, traditional communication systems support a limited number of connections and are easy to be implemented. However, with the development of communication technology, mobile communication systems will not only support traditional communication, but will also support, for example, device-to-device (D2D) communication, machine-to-machine (M2M) communication, machine type communication (MTC), and vehicle-to-vehicle (V2V) communication, etc., and the embodiments of the present application can also be applied to these communication systems.
Exemplarily, a communication system 100 to which an embodiment of the present application is applied is shown in
The communication system 100 further includes at least one terminal 120 located within a coverage area of the network device 110. As used herein, a “terminal” includes but is not limited to devices connected via wired lines, such as devices connected via public switched telephone networks (PSTN), digital subscriber line (DSL), digital cable and direct cable; and/or devices connected via another data connection/network; and/or devices connected via a wireless interface, such as a cellular network, a WLAN, a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter; and/or devices connected via an apparatus of another terminal device arranged to receive/send communication signals; and/or internet of things (IoT). A terminal device arranged to communicate through a wireless interface may be referred to as a “wireless communication terminal”, a “wireless terminal” or a “mobile terminal”. Examples of mobile terminals include but are not limited to satellites or cellular phones; personal communications system (PCS) terminal which can combine a cellular radio telephone with data processing, fax and data communication capabilities, a personal digital assistant (PDA) device that may include radio telephones, beepers, internet/intranet access, Web browsers, notebooks, calendars, and/or global positioning system (GPS) receivers; and conventional laptop and/or palmtop receivers or other electronic devices including radio telephone transceivers. Terminal devices may refer to access terminals, user equipments (UE), user units, user stations, mobile stations, mobile terminations, remote stations, remote terminals, mobile devices, user terminals, terminals, wireless communication devices, user agents or user apparatuses. Access terminals may be cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, PDA devices, handheld devices with a wireless communication function, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G network or terminal devices in future evolved PLMN, etc.
In an implementation, a D2D communication may be performed between the terminals 120.
In an implementation, a 5G system or 5G network may also be referred as a new radio (NR) system or a NR network.
In
The terminal may refer to a mobile terminal, a UE, an access terminal, a user unit, a user station, a mobile station, a mobile platform, a user terminal, a terminal, a wireless communication equipment, a user agent or a user device. Specifically, it may be can be a smart phone, a cellular phone, a cordless phone, a PDA device, a handheld device with wireless communication functions or other processing devices connected to wireless modems, a on-board device, or a wearable device. In the embodiments of the present application, the terminal has an interface for communicating with a network (for example, a cellular network).
In an implementation, the communication system 100 may further include other network entities such as, a network controller and a mobile management entity, which are not limited in the embodiments of the present application.
It should be understood that, in the embodiments of the present application, a device having a communication function in the network/system may be referred to as a communication device. Taking the communication system 100 shown in
It should be understood that the terms “system” and “network” herein are often used interchangeably herein. The term “and/or” herein is merely an association relationship describing associated objects, and represents that there may be three relationships. For example, A and/or B may represent three situations: presence of A only, of both A and B, and of B only. In addition, the character “i” herein generally represents an “or” relationship between contextual objects.
In the embodiments of the present application, clock synchronization may be implemented between the terminal and the network device based on unicast signaling or broadcast signaling transceived therebetween.
Exemplarily,
Step 1: a time sensitive network (TSN) node (node) 1 at the right end sends clock synchronization signaling to a 5GS (5G System) edge adapter 1.
It should be understood that the clock synchronization signaling carries a sending moment indicating when the TSN node 1 sends the clock synchronization signaling, which may be denoted as Tright. Besides, for the convenience of description, a transmission duration of the clock synchronization signaling in the transmission step is denoted as D1.
A time synchronization instruction may be specifically: a gPTP sync message.
Step 2, the 5GS edge adapter 1 sends clock synchronization signaling to a 5GS edge adapter 2, where the clock synchronization signaling carries a first timestamp TSi, and the TSi is a receiving moment indicating when the 5GS edge adapter 1 receives the clock synchronization signaling.
The 5GS edge adapter 1 and the 5GS edge adapter 2 both use 5G internal clocks, and the clocks of the two are synchronized.
Step 3: the 5GS edge adapter 1 sends clock synchronization signaling to a time sensitive network node (TSN node) 2 at the left end. In this case, the clock synchronization signaling includes the first timestamp TSi and a second timestamp TSe, where the TSe is a receiving moment indicating when the 5GS edge adapter 2 receives the clock synchronization signaling.
Therefore, the transmission duration of the clock synchronization signaling in the 5G network is TSe-TSi. Besides, for the convenience of description, a transmission duration of the clock synchronization signaling in the transmission step is denoted as D2.
In a possible embodiment shown in
After the process in
T
left
=T
right
+TSe−TSi+D1+D2
In the time synchronization scenario based on the 5G network shown in
When realizing the clock synchronization between the terminal and the network device, the terminal can receive unicast signaling, broadcast signaling or downlink data from the network device, and acquire time information of the network device based on these signaling or data. However, considering a transmission delay of the signaling (or data), in order to obtain better synchronization performance, time information of the terminal can be adjusted by TA to realize time synchronization.
The TA may be determined by the network device. In this case, the time synchronization process can be implemented based on a random access process. Further, it can be implemented based on a contention-free random access process.
Exemplarily,
Step 1, a network device sends a random access preamble assignment message (Random Access Preamble Assignment) to a terminal;
Step 2, the terminal sends a random access preamble (RA Preamble) to the network device; and
Step 3, the network device sends a random access response (RAR) to the terminal.
Exemplarily,
Information carried in the TAC may include a TA value. The UL grant can be used to indicate a time-frequency resource, a modulation and coding scheme (MCS) format and a power control instruction for sending subsequent uplink signaling. The temporary C-RNTI is suitable for a contention-based random access process. In the scenario, the temporary C-RNTI is specifically used to provide a scrambling ID for the terminal to send Msg3 (a third message during the random access process), for resolving contention conflicts, which will not be described in detail herein.
In the RAR shown in
However, the RAR shown in
In an exemplary implementation scenario, a distance between the terminal and the network device is relatively short, and the transmission delay of signaling (or data) between the two is very small. In this case, the time non-synchronised status between the two is slight, so that the terminal does not need to adjust the clock per se in this case. When the terminal acquires the TA in the received RAR, the terminal uses the TA by default to adjust the local clock. In the implementation scenario, the adjustment of the terminal may not be necessary, and the time synchronization method occupies processing resources of the terminal to a certain extent.
In another exemplary implementation scenario, the network device acquires the TA value after receiving the random access preamble. In this case, if the time non-synchronised status between the terminal and the network device is relatively serious, the network device can also pre-compensate the transmission delay. After pre-compensation, the time non-synchronised status between the terminal and the network device is under control, and in this case, the terminal does not need to compensate the transmission delay. However, in the prior art, in response to the random access preamble, the network device sends the RAR to the terminal, and the RAR carries the TA value, so that the terminal still uses the TA value by default to compensate the transmission delay. In the scenario, the transmission delay is compensated twice (or more) during the time synchronization process, and it is likely to lead to excessive compensation, which may aggravate the time non-synchronised status.
In order to solve this problem, the present application provides a time adjustment method, which is described below in conjunction with specific embodiments.
S502, a network device acquires indication information, where the indication information is used to indicate a terminal whether the terminal needs to adjust time information of the terminal;
S504, the network device sends the indication information to the terminal;
S506, the terminal receives the indication information from the network device; and
S508, when the indication information indicates that the terminal needs to adjust the time information, the terminal adjusts the time information.
In an embodiment of the present application, the network device and the terminal may be communication devices in the communication system as shown in
In the embodiment shown in
In an embodiment of the present application, the random access process may be used to implement the time synchronization process between the network device and the terminal.
In an implementation, the indication information acquired by the network device may be a random access response (RAR).
S5012, the terminal sends a random access request to the network device, where the random access request carries the random access preamble; and
S5014, the network device receives the random access request from the terminal.
After receiving the random access request, the network device executes S502, and after confirming the random access request, the network device sends an RAR (that is, indication information) to the terminal.
In the embodiment shown in
In an embodiment of the present application, the random access preamble is a contention-free random access preamble. The random access preamble can be used to request a TA from the network device.
During specific implementation, the random access preamble (denoted as a random access preamble 1) and the random access preamble (denoted as a random access preamble 2) in the embodiment shown in
When the two are the same, the terminal can directly use the existing random access preamble 2 to initiate the random access process, thereby realizing the time synchronization with the network device.
When the two are different, the terminal can use the random access preamble 2 to initiate the random access process to realize the connection with the network device. In addition, the terminal can use the random access preamble 1 to initiate the random access process to realize the time synchronization with the network device. In the implementation scenario, the random access preamble carried in S5012 is the random access preamble 1.
For any of the foregoing implementation, the random access preamble used in S5012 may be configured by the network device for the terminal. In this case, before S5012, steps S5010 and S5011 may also be included:
S5010, the network device sends a random access preamble to the terminal: and
S5011, the terminal receives the random access preamble from the network device.
It should be understood that the embodiment shown in
In an implementation, the indication information acquired by the network device may be a piece of indication signaling different from the RAR.
S5052, the network device sends an RAR to the terminal.
In this case, a TAC is carried in the RAR. That is, a TA value is carried in the RAR.
S5054, the terminal receives the RAR from the network device.
Compared with the embodiment shown in
For the implementation of the steps shown in S5010 to S5014 in the embodiment shown in
In addition to using the random access process to realize the time synchronization, the terminal can also realize the time synchronization by sending uplink data to the network device. That is to say, the indication information may be sent by the network device based on received uplink data. Exemplarily,
S502, the terminal sends uplink data to the network device.
In the embodiment shown in
Besides, the uplink data in S5002 may also be specified uplink data, or the uplink data carries a specified identifier. Exemplarily, the uplink data sent in S5002 carries a random access preamble. In an implementation, when there are multiple random access preambles, the random access preamble may be the random access preamble 2 mentioned in the foregoing embodiment, and the random access preamble 2 is used to request a TA from the network device. In the scenario, when the time synchronization is required, the terminal can add a specified identifier to the uplink data and send it to the network device.
Regarding the scenario where the indication information is an RAR, the method, in which the indication information indicates the terminal, is described in conjunction with a format of the RAR.
In an exemplary embodiment, when the indication information is an RAR, the indication function can be implemented by using an indication field included in the RAR. Specifically, when the indication field is a first identifier, the RAR indicates the terminal to adjust the time information; when the indication field is a second identifier, the RAR indicates that the terminal does not need to adjust the time information.
It should be understood that the first identifier is different from the second identifier. The forms of the first identifier and the second identifier can also be customized and preset according to an actual scenario, which can be one or a combination of numbers, letters, characters, and formulas. For example, the first identifier may be 1, and the second identifier may be 0; vice versa. For another example, the first identifier may be +, and the second identifier may be −; vice versa. For another example, the first identifier may be a0, and the second identifier may be a1; or vice versa. For another example, the first identifier may indicate that the indication field is not null, and the second identifier may indicate that the field is null; or vice versa. This is not exhaustive.
In the embodiment of the present application, the location of the indication field may be specified according to actual needs.
In a possible embodiment, a reserved bit R in the RAR can be used as the indication field. In this case,
In an exemplary implementation, when the indication field I is 1, the RAR indicates that the terminal needs to adjust the clock per se; when the indication field I is 0, the RAR indicates that the terminal does not need to adjust the clock per se.
In another exemplary embodiment, when the indication information is an RAR, the indication function may be implemented by using whether the RAR includes a time adjustment parameter.
The time adjustment parameter involved in the embodiment of the present application may include, but is not limited to, one or more of: a TAC, location information of the terminal, and a distance between the terminal and the network device. During specific implementation, the network device may determine, based on the time adjustment parameter, whether the terminal needs to adjust the time information per se. Then, when indicating the terminal, the time adjustment parameter can also be used to implement the instruction function.
Exemplarily, the indication function may be implemented based on whether the time adjustment reference information is carried in the RAR. In other words, when the time adjustment reference information is carried in the RAR, the RAR indicates that the terminal needs to adjust the time information. Conversely, when the RAR does not carry the time adjustment reference information, the RAR indicates that the terminal does not need to adjust the time information.
Exemplarily,
Exemplarily,
In actual scenarios, the time adjustment parameter can be indicated by a newly added field. The RAR shown in
Alternatively, the time adjustment parameter may also be carried in one or more existing fields for indication. For example, the time adjustment parameter can be carried in the TAC. In this case, the TAC carries a location of the terminal (or a TA, or a distance), and the RAR is used to indicate that the terminal needs to adjust the time information per se; if the TAC does not carry the location of the terminal (or the TA, or the distance), the RAR is used to indicate that the terminal does not need to adjust the time information per se. For another example, if the reserved bit R carries the location of the terminal (or the TA, or the distance), the RAR is used to indicate that the terminal needs to adjust the time information per se; if the reserved bit R does not carry the location of the terminal (or the TA, or the distance), the RAR is used to indicate that the terminal does not need to adjust the time information per se.
When the indication function is implemented by using the time adjustment reference information, when the time adjustment reference information is numerical information, the indication function can be implemented by a numerical value of the time adjustment reference information.
In an exemplary situation, if the distance between the terminal and the network device is used as the time adjustment reference information, then the distance between the terminal and the network device can be carried in the reserved bit R, so that when the distance is greater than or equal to a preset distance threshold, the RAR is used to indicate that the terminal needs to adjust the time information per se; or, when the distance is less than the preset distance threshold, the RAR is used to indicate that the terminal does not need to adjust the time information per se.
In another exemplary situation, if the TAC (or the TA carried in the TAC) is used as the time adjustment reference information, then when the TA is greater than or equal to a preset advance threshold, the RAR is used to indicate that the terminal needs to adjust the time information per se; or, when the TA is less than the preset advance threshold, the RAR is used to indicate that the terminal does not need to adjust the time information per se.
In another exemplary situation, if the location of the terminal is used as the time to adjustment reference information, the content indicated by the RAR can be determined in the foregoing manner after the distance is calculated based on the location of the network device.
When the indication function is implemented by using the time adjustment reference information, the indication function may also be implemented based on a preset or preconfigured corresponding relationship.
In another exemplary case, an example is taken where the location of the terminal is the time adjustment reference information. For a certain network device, indication information of different geographical scopes can also be preset for the network device. For example, for an area A that is far away from the network device, the indication information can indicate that the terminal located in the area A needs to adjust the time information per se; and for an area B that is closer to the network device, the indication information can indicate that the terminal located in the B area does not need to adjust the time information per se. In this way, the indication function can be implemented based on the location information carried in the RAR.
In conclusion, in the embodiments of the present application, the time adjustment reference information may include, but is not limited to: a TA, a TAC, a distance between the terminal and the network device, and location where the terminal is located.
The embodiments of the present application are used to solve the time synchronization problem between the terminal and the network device, and the UL Grant and the temporary C-RNTI have nothing to do with the realization of this function. Moreover, the UL Grant carried in the RAR occupies up to 27 bits, which also causes waste of downlink air interface resources and uplink time frequency resources to a certain extent. The temporary C-RNTI in the RAR occupies up to 16 bits, which will also cause waste of downlink air interface resources.
In an implementation, in an embodiment of the present application, the RAR may include one or more of a UL Grant and a temporary C-RNTI. In other words, the RAR may include both the UL Grant and the temporary C-RNTI, as shown in
Exemplarily,
Exemplarily,
In an implementation, when the RAR is used in a time synchronization scenario, the UL Grant and the temporary C-RNTI may not be included. Exemplarily, as shown in
The aforementioned RARs shown in
Exemplarily,
Exemplarily,
It should be understood that, in the foregoing embodiments, there may be different numbers of reserved bits R in the RAR, and the reserved bits R may be used to carry other information in the subsequent use process.
In an implementation, when the network determines the indication information, based on different application scenarios, the network may adopt RARs in different formats to respond to the random access request.
For example, when the network device receives the random access request from the terminal, if the random access request carries the random access preamble 1, the network device can send the random access request in any one of the formats shown in
In the embodiment of the present application, the network device needs to acquire the indication information and send the indication information to the terminal. During specific implementation, the network device can acquire time non-synchronised status between the terminal and the network device, so that when the time non-synchronised status exceeds a preset non-synchronised condition, the indication information indicates that the terminal needs to adjust the time information. Conversely, when the time non-synchronised status does not exceed the preset non-synchronised condition, the indication information indicates that the terminal does not need to adjust the time information.
The network device may determine whether the time non-synchronised status exceeds the preset non-synchronised condition based on a difference between a sending moment and a receiving moment of uplink data or a random access request (or a random request preamble).
In an exemplary embodiment, when executing S502, the network device may acquire a sending moment of target information from the terminal. Therefore, when an absolute value of a difference between the sending moment and a receiving moment is greater than or equal to a preset time difference threshold, determine that the time non-synchronised status exceeds the preset non-synchronised condition. The receiving moment is a moment when the network device receives the target information.
In the embodiment, if the time synchronization method is implemented in the manner shown in
In addition, in another exemplary embodiment, the network device may also acquire a distance between the network device and the terminal. Then, when the distance is greater than or equal to a preset distance threshold, it can be determined that the time non-synchronised status exceeds the preset non-synchronised condition. Conversely, when the distance is less than the preset distance threshold, it is determined that the time non-synchronised status does not exceed the preset non-synchronised condition.
In addition, in another possible embodiment, the network device may also acquire location of the terminal. Then, when the preset indication manner of the area where the terminal is located is that adjustment is required, it is determined that the time non-synchronised status exceeds the preset non-synchronised condition. Conversely, if the preset indication manner of the area where the terminal is located is that no adjustment is required, it is determined that the time non-synchronised status does not exceed the preset non-synchronised condition.
In the foregoing embodiment, if the difference between the sending moment and the receiving moment of the target information is relatively large, or if the distance between the terminal and the network device is relatively long, the time non-synchronised status between the terminal and the network device is relatively large (or relatively serious), and exceeds the preset non-synchronised condition, the terminal can be indicated to adjust the time information per se.
Alternatively, when it is determined based on any of the foregoing embodiments that the time non-synchronised status between the terminal and the network device exceeds the preset non-synchronised condition, it is also possible to pre-compensate the time information of the terminal. When the pre-compensation is completed, the indication information indicates that the terminal does not need to adjust the time information.
Based on the foregoing processing, the network device acquires the indication information and sends the indication information to the terminal. After the terminal receives the indication information, if the indication information indicates that the terminal needs to adjust the time information per se, the terminal can use the time adjustment information to adjust the time information. The time adjustment information involved in the embodiment of the present application may include, but is not limited to, a timing advance (TA).
Exemplarily, refer to
In the embodiment of the present application, the first moment may be a moment corresponding to a frame boundary of a reference frame specified by the network device. In the embodiment, the reference frame is specified by the network device, and the network device may specify any frame after the current moment as the reference frame. In this case, the network device may carry identification information of the reference frame in the foregoing indication information, or may also send the identification information of the reference frame separately, or may also carry the identification information of the reference frame in the RAR. The identification information of the reference frame is used to identify the reference frame, and the identification information may include, but is not limited to, a frame number or any moment in the frame (for example, a start moment of the frame or an end moment of the frame).
In another embodiment, the first moment is a moment corresponding to a frame boundary of a frame to which the indication information belongs, or a frame to which a information block, which the indication information belongs to, belongs. In this case, the specific indication manner of the first moment may be preconfigured in the terminal in advance, and there is no need for the network device to indicate this manner additionally.
For example, if the terminal receives the RAR, it can acquire the adjustment duration delta_t corresponding to the TA carried in the RAR, and the adjustment duration delta_t is assumed to be 10 nanoseconds. The terminal can acquire the moment corresponding to the frame boundary of the reference frame indicated by the network device to be: 0 minute, 0 second, 0 millisecond, 0 microsecond, and 10 nanoseconds past nine. When the indication information indicates that the terminal needs to adjust the time information per se, the terminal can adjust, when the local clock reaches 0 minute, 0 second, 0 millisecond, 0 microsecond, and 10 nanoseconds past nine, the local clock to 0 minute, 0 second, 0 millisecond, 0 microsecond, and nanoseconds past nine+delta_t, that is, adjust the local clock to 0 minute, 0 second, 0 millisecond, 0 microsecond, and 20 nanoseconds past nine.
In this embodiment of the present application, the terminal may use a time alignment timer (TAT) to time an effective period of the TA. In this way, the TAT can be started or stopped during the time synchronization process, and the time synchronization process can also be triggered based on the activation and deactivation of the TAT.
Exemplarily,
After that, when timing of the TAT expires, the TA value expires, so that the network device can be requested for the latest TA in the manner shown in
In addition, in the embodiment of the present application, the TAT may be suspended before the timing duration of the TAT is reached. Exemplarily, when uplink data transmission, tracking area update, or beam failure recovery is performed by the terminal, the TAT may be suspended. When these actions for triggering the suspension occurs, if the terminal can obtain the latest TA, the terminal can directly restart the TAT according to the latest TA. For example, if the terminal sends the uplink data to the network device to cause the TAT to be suspended, after receiving the latest TA from the network device, the terminal can determine when to restart the TAT according to the indication information.
The terminal provided in the embodiment is configured to execute the technical solutions on the terminal side according to any of the foregoing method embodiments, and the implementation principle and technical effect thereof are similar, which will not be repeated here.
On the basis of the above-mentioned embodiment shown in
In an implementation, the indication information is an RAR; when the RAR carries the time adjustment reference information, the RAR indicates that the terminal needs to adjust the time information; when the RAR does not carry the time adjustment reference information, the RAR indicates that the terminal does not need to adjust the time information.
In an implementation, the time adjustment reference information comprises one or more of timing advance command (TAC), location information of the terminal, and a distance between the terminal and the network device.
In an implementation, the RAR further includes: one or more of uplink grant information and a temporary cell-radio network temporary identifier.
In an implementation, the indication information is sent by the network device based on a random access request received from the terminal; and the transceiving module 191 is further configured to: send the random access request to the network device.
In an implementation, the random access request carries a contention-free random access preamble, and the random access preamble is used to request a TA from the network device; and the transceiving module 191 is further configured to: receive the random access preamble from the network device.
In an implementation, the transceiving module 191 is specifically configured to: when timing of a time alignment timer (TAT) expires, send the random access request to the network device; where the time alignment timer is configured to time an effective period of a TA.
In an implementation, the indication information is sent by the network device based on received uplink data; the transceiving module 191 is further configured to: send the uplink data to the network device.
In an implementation, the processing module 192 is specifically configured to: adjust the time information by using time adjustment information; where the time adjustment information includes: a timing advance (TA).
In an implementation, the processing module 192 is specifically configured to: acquire an adjustment duration, where the adjustment duration is associated with the time adjustment information; and when a local clock reaches a first moment, adjust the local clock to a second moment, where a time interval between the second moment and the first moment is the adjustment duration.
In an implementation, the first moment is a moment corresponding to a frame boundary of a reference frame specified by the network device; or, the first moment is a moment corresponding to a frame boundary of a frame to which the indication information belongs, or a frame to which a information block, which the indication information belongs to, belongs.
In an implementation, the TA is carried in the indication information.
In an implementation, the processing module 192 is further configured to: when adjustment for time information is completed, restart a time alignment timer.
In an implementation, the processing module 192 is further configured to: when the indication information is used to indicate that the terminal does not need to adjust a TA, restart a time alignment timer.
The network device provided in the embodiment is configured to execute the technical solutions on the network device side according to any of the foregoing method embodiments, and the implementation principle and technical effect thereof are similar, which will not be repeated here.
In an implementation, the indication information is a random access response (RAR), and the RAR includes an indication field; when the indication field is a first identifier, the RAR indicates that the terminal needs to adjust the time information; when the indication field is a second identifier, the RAR indicates that the terminal does not need to adjust the time information.
In an implementation, the indication information is an RAR; when the RAR carries the time adjustment reference information, the RAR indicates that the terminal needs to adjust the time information; when the RAR does not carry the time adjustment reference information, the RAR indicates that the terminal does not need to adjust the time information.
In an implementation, the time adjustment reference information comprises one or more of timing advance command (TAC), location information of the terminal, and a distance between the terminal and the network device.
In an implementation, the RAR further includes: one or more of uplink grant information and a temporary cell-radio network temporary identifier.
In an implementation, the indication information is sent by the network device based on a random access request received from the terminal; and the transceiving module 202 is further configured to: receive the random access request from the terminal.
In an implementation, the random access request carries a contention-free random access preamble, and the random access preamble is used to request a TA from the network device; and the transceiving module 202 is further configured to: send the contention-free random access preamble to the terminal.
In an implementation, the random access request is sent by the terminal to the network device when timing of a time alignment timer (TAT) expires, where the time alignment timer is configured to time an effective period of a TA.
In an implementation, the indication information is sent by the network device based on received uplink data; the transceiving module 202 is further configured to: receive the uplink data from the terminal.
In an implementation, the processing module 201 is specifically configured to: acquire time non-synchronised status between the terminal and the network device; where when the time non-synchronised status exceeds a preset non-synchronised condition, the indication information indicates that the terminal needs to adjust the time information.
In an implementation, the processing module 201 is specifically configured to: acquire a sending moment of target information from the terminal, where the target information is uplink data or a random access request preamble; when an absolute value of a difference between the sending moment and a receiving moment is greater than or equal to a preset time difference threshold, determine that the time non-synchronised status exceeds the preset non-synchronised condition; where the receiving moment is a moment when the network device receives the target information.
In an implementation, the processing module 201 is specifically configured to: acquire a distance between the network device and the terminal; and when the distance is greater than or equal to a preset distance threshold, determine that the time non-synchronised status exceeds the preset non-synchronised condition.
In an implementation, the processing module 201 is further specifically configured to: when time non-synchronization occurs between the terminal and the network device, pre-compensate the time information of the terminal; where when the pre-compensation is completed, the indication information indicates that the terminal does not need to adjust the time information.
a processor 211, a memory 212, a communication interface 213;
the memory 212 stores a computer-executable instruction:
the processor 211 executes the computer-executed instruction stored in the memory 212, so that the processor 211 executes the technical solutions on the terminal side in any of the foregoing method embodiments.
a processor 221, a memory 222, a communication interface 223;
the memory 222 stores a computer-executable instruction;
the processor 221 executes the computer-executed instruction stored in the memory 222, so that the processor 221 executes the technical solutions on the network device side in any of the foregoing method embodiments.
In a specific implementation of the terminal shown in
An embodiment of the present application further provides a communication system. As shown in
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium has a computer-executable instruction stored thereon, and when the computer-executable instruction is executed by a processor, the computer-readable storage medium is configured to implement the time adjustment method in any of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: a processor, configured to call and run a computer program from a memory, so that a device installed with the chip executes the time adjustment method in any of the foregoing method embodiments.
An embodiment of the present application further provides a computer program product, including computer program instructions that cause a computer to execute the time adjustment method in any of the foregoing method embodiments.
An embodiment of the present application further provides a computer program, the computer program causes a computer to execute the time adjustment method in any of the foregoing method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In an actual implementation, there may be another division manners. For example, multiple modules may be combined or may be integrated into another system, or some features may be ignored or not executed. In addition, a coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, apparatuses or units, and may be in electrical, mechanical or other forms.
In the specific implementation of the above-mentioned terminal and network device, it should be understood that the processor may be a central processing unit (CPU for short), or other general processors, a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short) and so on. The general processor may be a microprocessor, or the processor may be any conventional processors or the like. The steps of the method disclosed in the embodiments of the present application may be directly executed by a hardware processor, or by a combination of hardware and software modules in the processor.
All or part of the steps for implementing the above method embodiments may be completed via the hardware related to program instructions. The aforementioned programs can be stored in a readable memory. When the programs are executed, the steps including the above method embodiments are executed; and the aforementioned memory (storage medium) includes: a read-only memory (ROM for short), an RAM (Random Access Memory), a flash memory, a hard disk, a solid state disk, a magnetic tape, a floppy disk, an optical disk and any combination thereof.
This application is a continuation of International Application No. PCT/CN20201073318, filed on Jan. 20, 2020, the content of which is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2020/073318 | Jan 2020 | US |
Child | 17866014 | US |