WO2019095241A1 - 一种时间同步方法及装置 - Google Patents

一种时间同步方法及装置 Download PDF

Info

Publication number
WO2019095241A1
WO2019095241A1 PCT/CN2017/111470 CN2017111470W WO2019095241A1 WO 2019095241 A1 WO2019095241 A1 WO 2019095241A1 CN 2017111470 W CN2017111470 W CN 2017111470W WO 2019095241 A1 WO2019095241 A1 WO 2019095241A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
terminal device
message
access network
network device
Prior art date
Application number
PCT/CN2017/111470
Other languages
English (en)
French (fr)
Inventor
于峰
于海凤
蔺波
于光炜
高峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/111470 priority Critical patent/WO2019095241A1/zh
Priority to CN201880070286.7A priority patent/CN111316719B/zh
Priority to CA3082719A priority patent/CA3082719C/en
Priority to KR1020207016798A priority patent/KR102341070B1/ko
Priority to EP18879930.8A priority patent/EP3703437B1/en
Priority to ES18879930T priority patent/ES2941495T3/es
Priority to AU2018368222A priority patent/AU2018368222B2/en
Priority to EP22216406.3A priority patent/EP4216620A1/en
Priority to PCT/CN2018/076780 priority patent/WO2019095575A1/zh
Publication of WO2019095241A1 publication Critical patent/WO2019095241A1/zh
Priority to US16/874,746 priority patent/US11310757B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/0055Synchronisation arrangements determining timing error of reception due to propagation delay
    • H04W56/006Synchronisation arrangements determining timing error of reception due to propagation delay using known positions of transmitter and receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/0015Synchronization between nodes one node acting as a reference for the others
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • H04W56/005Synchronisation arrangements compensating for timing error of reception due to propagation delay compensating for timing error by adjustment in the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/27Transitions between radio resource control [RRC] states
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/02Data link layer protocols

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a time synchronization method and apparatus.
  • Time synchronization also known as clock synchronization
  • the embodiment of the present application provides a time synchronization method for solving a technical problem that time synchronization is not accurate enough.
  • an embodiment of the present application provides a time synchronization method, where the method includes:
  • the terminal device acquires a first transmission delay, and acquires a fourth time according to the first transmission delay and the time information;
  • the terminal device synchronizes the clock of the terminal device according to the fourth time.
  • the terminal device before the terminal device receives the first indication message sent by the access network device, the terminal device sends a request message to the access network device, where the request message includes at least the following An item: demand information of the time information, granularity requirement information of the time information, QoS information of the terminal device supporting the service, and a time type requested by the terminal device.
  • the first indication message further includes at least one of the following:
  • the request message is a radio resource control RRC message or a medium access control control element MAC CE message or a random access request message.
  • the acquiring, by the terminal device, the first transmission delay includes:
  • the terminal device acquires uplink timing advance information, and acquires the first transmission delay according to the uplink timing advance information.
  • the acquiring, by the terminal device, the uplink timing advance information includes:
  • the terminal device receives the access network device to send a third indication message, where the third indication message includes uplink timing advance adjustment information, and the terminal device updates the information according to the previous uplink timing advance information and the uplink timing advance adjustment information. Current uplink timing advance information of the terminal device.
  • the second indication message is a random access request response message or an RRC message or a MAC CE
  • the third indication message is a MAC CE message or an RRC message.
  • the receiving, by the terminal device, the first indication message sent by the access network device includes:
  • the terminal device receives the first indication message sent by the access network device by means of broadcast or unicast or multicast.
  • an embodiment of the present application provides a time synchronization method, where the method includes:
  • the access network device determines time information
  • the access network device sends a first indication message to the terminal device, where the first indication message includes time information, and the time information is used to synchronize the clock of the terminal device.
  • the access network device determines time information, including:
  • the access network device receives the request message of the terminal device, where the request message includes at least one of: requirement information of the time information, granularity requirement information of the time information, and QoS information of the terminal device supporting the service, The type of time requested by the terminal device;
  • the access network device determines time information according to the request message.
  • the access network device determines time information, including:
  • the first indication message further includes at least one of the following:
  • the request message is a radio resource control RRC message or a medium access control control element MAC CE message or a random access request message.
  • the sending, by the access network device, the first indication message to the terminal device includes:
  • the access network device sends a first indication message to the terminal device by means of broadcast or unicast or multicast.
  • the method before the sending, by the access network device, the first indication message to the terminal device, the method further includes:
  • the access network device receives the authorization information sent by the core network device, where the authorization information is used to indicate whether the terminal device can obtain the time information;
  • the access network device sends the first indication message to the terminal device;
  • the access network device does not send the first indication message to the terminal device.
  • an embodiment of the present application provides a time synchronization method, where the method includes:
  • the terminal device receives the first indication message sent by the access network device, where the first indication message includes time information of the terminal device, and the granularity of the time information is 1 us or 100 ns or 1 ms;
  • the terminal device synchronizes the clock of the terminal device according to the time information.
  • an embodiment of the present application provides a time synchronization method, where the method includes:
  • the access network device determines time information, and the granularity of the time information is 1 us or 100 ns or 1 ms;
  • the access network device sends a first indication message to the terminal device, where the first indication message includes the time information.
  • the embodiment of the present application provides a terminal device, where the terminal device includes:
  • a transceiver module configured to receive a first indication message sent by the access network device, where the first indication message includes time information
  • a processing module configured to acquire a first transmission delay, and acquire a fourth time according to the first transmission delay and the time information; and synchronize a clock of the terminal device according to the fourth time.
  • the transceiver module before receiving the first indication message sent by the access network device, is further configured to: send a request message to the access network device, where the request message includes at least the following An item: demand information of the time information, granularity requirement information of the time information, QoS information of the terminal device supporting the service, and a time type requested by the terminal device.
  • the first indication message further includes at least one of the following:
  • the request message is a radio resource control RRC message or a medium access control control element MAC CE message or a random access request message.
  • the processing module is specifically configured to:
  • the processing module is specifically configured to:
  • the receiving access network device sends a third indication message, where the third indication message includes uplink timing advance adjustment information, and updates the current uplink timing advance information of the terminal device according to the previous uplink timing advance information and the uplink timing advance adjustment information. .
  • the second indication message is a random access request response message or an RRC message or a MAC CE
  • the third indication message is a MAC CE message or an RRC message.
  • the transceiver module is specifically configured to:
  • the first indication message sent by the access network device is received by means of broadcast or unicast or multicast.
  • an embodiment of the present application provides an access network device, where the access network device includes:
  • a processing module configured to determine time information
  • the transceiver module is configured to send a first indication message to the terminal device, where the first indication message includes time information, where the time information is used to synchronize a clock of the terminal device.
  • the transceiver module is further configured to: receive a request message of the terminal device, where the request message includes at least one of: requirement information of the time information, and a granularity requirement of the time information.
  • the request message includes at least one of: requirement information of the time information, and a granularity requirement of the time information.
  • the processing module is specifically configured to: determine time information according to the request message.
  • the transceiver module is further configured to: acquire a first indication message sent by the core network device, where the first indication message includes granularity requirement information of the time information and/or a terminal device supporting service QoS information;
  • the processing module is specifically configured to: determine time information according to the first indication message.
  • the first indication message further includes at least one of the following:
  • the request message is a radio resource control RRC message or a medium access control control element MAC CE message or a random access request message.
  • the transceiver module is specifically configured to:
  • the first indication message is sent to the terminal device by means of broadcast or unicast or multicast.
  • the transceiver module before the sending and receiving module sends the first indication message to the terminal device, the transceiver module is further configured to:
  • the access network device sends the first indication message to the terminal device;
  • the access network device does not send the first indication message to the terminal device.
  • the embodiment of the present application provides a terminal device, where the terminal device includes:
  • the transceiver module is configured to receive a first indication message sent by the access network device, where the first indication message includes time information of the terminal device, and the granularity of the time information is 1 us or 100 ns or 1 ms;
  • a processing module configured to synchronize a clock of the terminal device according to the time information.
  • an embodiment of the present application provides an access network device, where the access network device includes:
  • a processing module configured to determine time information, the granularity of the time information is 1 us or 100 ns or 1 ms;
  • the transceiver module is configured to send a first indication message to the terminal device, where the first indication message includes the time information.
  • the application also provides a time synchronization method, the method comprising:
  • the terminal device acquires a first transmission delay, and acquires a fourth time according to the first transmission delay and the first time;
  • the terminal device synchronizes the clock of the terminal device according to the fourth time.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time or a nanosecond time.
  • the first time is obtained based on the sum of the second time and the third time.
  • the terminal device receives the first time sent by the access network device, including:
  • the terminal device receives the second time and the third time sent by the access network device by means of broadcast or unicast.
  • the method before the receiving, by the terminal device, the first time sent by the access network device, the method further includes:
  • the terminal device sends a first message to the access network device, where the first message is used to request synchronization of a clock of the terminal device;
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a medium access control control element MAC CE message, a random access request message for time synchronization.
  • the terminal device acquires the fourth time according to the first transmission delay and the first time information, including:
  • the terminal device obtains the fourth time according to the sum of the first time and the first transmission delay.
  • the terminal device acquires the first transmission delay, including:
  • the terminal device acquires uplink timing advance information, and acquires the first transmission delay according to the uplink timing advance information.
  • the acquiring, by the terminal device, the uplink timing advance information includes:
  • the terminal device receives the access network device to send the second message, where the second message includes the uplink timing advance adjustment information, and the terminal device updates the terminal device according to the previous uplink timing advance information and the uplink timing advance adjustment information. Current uplink timing advance information.
  • the first time or the fourth time represents the time of a particular frame, subframe, slot, mini slot, or boundary of a symbol.
  • the embodiment of the present application further provides a time synchronization method, where the method includes:
  • the access network device determines the first time
  • the access network device sends a first time to the terminal device, where the first time is used to synchronize the clock of the terminal device.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is obtained based on the sum of the second time and the third time.
  • the access network device sends the first time to the terminal device, including:
  • the access network device sends the second time and the third time to the terminal device by means of broadcast or unicast.
  • the method before the sending network device sends the first time to the terminal device, the method further includes:
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a medium access control control element MAC CE message, a random access request message for time synchronization.
  • the first time represents the time of a particular frame, subframe, slot, mini slot, or symbol boundary.
  • the embodiment of the present application further provides a terminal device, where the terminal device includes:
  • a transceiver module configured to receive a first time sent by the access network device
  • a processing module configured to acquire a first transmission delay, and acquire a fourth time according to the first transmission delay and the first time; and synchronize a clock of the terminal device according to the fourth time.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is obtained according to the sum of the second time and the third time of.
  • the terminal device receives the first time sent by the access network device, including:
  • the terminal device receives the second time and the third time sent by the access network device by means of broadcast or unicast.
  • the transceiver module before receiving the first time sent by the access network device, is further configured to:
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a medium access control control element MAC CE message, a random access request message for time synchronization.
  • the processing module is specifically configured to:
  • the processing module is specifically configured to:
  • the receiving module is further configured to receive a first message sent by the access network device, where the first message includes the uplink timing advance information;
  • the receiving module is further configured to: receive, by the access network device, a second message, where the second message includes uplink timing advance adjustment information, where the processing module is specifically configured to: according to previous uplink timing advance information and the uplink timing The advance adjustment information is used to update the current uplink timing advance information of the terminal device.
  • the first time or the fourth time represents the time of a particular frame, subframe, slot, mini slot, or boundary of a symbol.
  • the embodiment of the present application further provides an access network device, where the access network device includes:
  • a processing module configured to determine a first time
  • a transceiver module configured to send, to the terminal device, a first time, where the first time is used to synchronize a clock of the terminal device.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is obtained based on the sum of the second time and the third time.
  • the access network device sends the first time to the terminal device, including:
  • the access network device sends the second time and the third time to the terminal device by means of broadcast or unicast.
  • the method before the sending network device sends the first time to the terminal device, the method further includes:
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a media access control control element MAC CE message, random access request message for time synchronization.
  • the first time represents the time of a particular frame, subframe, slot, mini slot, or symbol boundary.
  • the embodiment of the present application provides a communication device, which may be a terminal device, and the communication device has a function of implementing the foregoing first or third aspect of the method;
  • the communication device includes: a communication module, a processor ;
  • the communication module is configured to perform communication interaction with other devices, and the communication module may be an RF circuit, a WiFi module, a communication interface, a Bluetooth module, or the like.
  • the processor is configured to implement the functions of the processing module in the fifth aspect or the seventh aspect.
  • the communication device may further include: a memory for storing a program or the like.
  • the program can include program code, the program code including instructions.
  • the memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.
  • the processor executes the application stored in the memory to implement the above functions.
  • the communication module, the processor, and the memory can be interconnected by a bus;
  • the bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA). Bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the embodiment of the present application provides a communication apparatus, where the communication apparatus may be an access network device, and the communication apparatus has a function of implementing the foregoing second or fourth aspect of the method; the communication apparatus includes: a communication module, processor;
  • the communication module is configured to perform communication interaction with other devices, and the communication module may be an RF circuit, a WiFi module, a communication interface, a Bluetooth module, or the like.
  • the processor is configured to implement the functions of the processing module in the sixth aspect or the eighth aspect.
  • the communication device may further include: a memory for storing a program or the like.
  • the program can include program code, the program code including instructions.
  • the memory may contain RAM and may also include non-volatile memory, such as at least one disk storage.
  • the processor executes the application stored in the memory to implement the above functions.
  • the communication module, the processor and the memory can be connected to each other through a bus;
  • the bus can be a PCI bus or an EISA bus or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the embodiment of the present application further provides a computer readable storage medium storing instructions for causing a computer to implement a time synchronization method provided by any one of the above designs when the instructions are run on a computer.
  • the embodiment of the present application further provides a computer program product comprising instructions, when executed on a computer, causing the computer to execute the time synchronization method provided by any one of the above designs.
  • the embodiment of the present application further provides a computer program that, when run on a computer, causes the computer to execute the time synchronization method provided by any of the above designs.
  • the embodiment of the present application further provides a chip connected to a memory for reading and executing a software program stored in the memory to implement a time synchronization method provided by any of the above designs.
  • FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a time synchronization method provided in Embodiment 1 of the present application;
  • FIG. 3 is a schematic flowchart of a time synchronization method provided in Embodiment 2 of the present application.
  • FIG. 4 is a schematic flowchart of a time synchronization method provided in Embodiment 3 of the present application.
  • FIG. 5 is a schematic flowchart of a time synchronization method provided in Embodiment 4 of the present application.
  • FIG. 6 is a schematic flowchart of a time synchronization method provided in Embodiment 5 of the present application.
  • FIG. 7 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of still another communication apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of still another communication apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of still another communication apparatus according to an embodiment of the present application.
  • FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present application.
  • the system architecture includes an access network device 101, a core network device 103, and one or more terminal devices, such as the terminal device 1021, the terminal device 1022, and the terminal device 1023 shown in FIG. 1.
  • Information transmission between the access network device 101 and the core network device 103 can be performed; the access network device 101 can transmit downlink data to the terminal device 1021, the terminal device 1022, and the terminal device 1023 through the network, the terminal device 1021, the terminal device 1022, and the terminal.
  • the device 1023 can transmit uplink data to the access network device 101 over the network.
  • the access network device may be a base station (BS).
  • BS base station
  • a base station device also referred to as a base station, is a device deployed in a wireless access network to provide wireless communication functionality.
  • a device providing a base station function in a 2G network includes a base transceiver station (BTS) and a base station controller (BSC), and the device providing the base station function in the 3G network includes a Node B (NodeB) and the wireless device.
  • BTS base transceiver station
  • BSC base station controller
  • NodeB Node B
  • a radio network controller which provides a base station function in a 4G network, includes an evolved NodeB (eNB), and a device that provides a base station function in a 5G network, including a new radio Node B (new radio NodeB) , gNB), centralized unit (CU), distributed unit and new wireless controller.
  • eNB evolved NodeB
  • gNB new radio Node B
  • CU centralized unit
  • new wireless controller new wireless controller
  • the core network device 103 may be a mobility management entity (MME) in an LTE system, or an access and mobility management function (AMF) network element and session management function in a 5G communication system.
  • MME mobility management entity
  • AMF access and mobility management function
  • SMF session management function
  • a terminal device is a device with wireless transceiver capability that can be deployed on land, indoors or outdoors, handheld or on-board; it can also be deployed on the water (such as ships); it can also be deployed in the air (such as airplanes, balloons, and Satellite, etc.).
  • the terminal device may be a mobile phone, a tablet, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, and industrial control ( Wireless terminal equipment in industrial control, wireless terminal equipment in self driving, wireless terminal equipment in remote medical, wireless terminal equipment in smart grid, transportation security Wireless terminal equipment in safety), wireless terminal equipment in smart city, wireless terminal equipment in smart home, and the like.
  • FIG. 1 the system architecture illustrated in FIG. 1 is mainly taken as an example, but is not limited thereto.
  • the communication system applicable to the above system architecture includes but is not limited to: time division duplexing-long term evolution (TDD LTE), frequency division duplexing-long term evolution (FDD LTE) Long term evolution-advanced (LTE-A), And various wireless communication systems (for example, 5G NR systems) that are evolving in the future.
  • TDD LTE time division duplexing-long term evolution
  • FDD LTE frequency division duplexing-long term evolution
  • LTE-A Long term evolution-advanced
  • various wireless communication systems for example, 5G NR systems
  • the access network device broadcasts time information through a system information block (SIB), where the time information includes information such as coordinated universal time (UTC), and the terminal device calculates global information according to the acquired time information.
  • SIB system information block
  • the time information includes information such as coordinated universal time (UTC)
  • UTC coordinated universal time
  • GPS Global positioning system
  • time synchronization is not accurate enough.
  • the embodiment of the present application provides a time synchronization method, including: receiving, by a terminal device, a first indication message sent by an access network device, where the first indication message includes time information, and acquiring a first transmission delay, according to the first transmission
  • the time delay and the time information are obtained for the fourth time, and the clock of the terminal device is synchronized according to the fourth time; thus, when the terminal device synchronizes the clock of the terminal device, the first transmission delay is introduced, so that the air interface can be effectively avoided.
  • the time error of transmission improves the accuracy of time synchronization; and the time synchronization method has strong applicability and can be applied to terminal devices in different states, such as idle state, connected state, and deactivated state.
  • time synchronization in the embodiment of the present application may also be referred to as clock synchronization.
  • FIG. 2 is a schematic flowchart of a time synchronization method according to Embodiment 1 of the present application. As shown in Figure 2, it includes:
  • Step 201 The access network device determines time information.
  • the time information may include a time of the first time type, such as XX minutes XX minutes XX milliseconds XX microseconds, or XX minutes XX minutes XX milliseconds XX microseconds XX nanoseconds, wherein the first time type may correspond to UTC.
  • the first time type may correspond to UTC.
  • the time information may further include a time difference of the first time type and other time types (GPS time or local time), such as a time difference of UTC and GPS time, a time difference of UTC and local time.
  • GPS time or local time such as a time difference of UTC and GPS time, a time difference of UTC and local time.
  • the time unit used by the time information may be any time unit with an accuracy higher than or equal to milliseconds (ms), such as microseconds (us), nanoseconds (ns), and higher possible future occurrences.
  • ms milliseconds
  • ns nanoseconds
  • the granularity of the time information can be greater than or equal to 1 Any value, such as the granularity of the time information is 50, the granularity of the time information is 50 ns, and the granularity of the time information is 100, and the granularity of the time information is 100 ns; for another example, the time information is used.
  • the granularity of the time information may be any value greater than or equal to 1, for example, the granularity of the time information is 1, and the granularity of the time information is 1 us, and the granularity of the time information is 10, for example.
  • the time information has a granularity of 10us.
  • the granularity of the time information may be 1 us or 10 us or 50 ns or 100 ns or 1 ms, which is merely an exemplary enumeration based on the above description, and is not limited thereto, and all other values and time units that meet the above description constitute time.
  • the granularity of the information is within the scope of the present application.
  • Step 202 The access network device sends a first indication message to the terminal device, where the first indication message includes time information, where the time information is used to synchronize the clock of the terminal device.
  • the first indication message may further include at least one of the following: a time information reference point, and a time type.
  • the time type corresponds to at least one of UTC, GPS time, and local time, and is used to indicate the time type of the time information.
  • the time information reference point is used to indicate that the time domain location time information reference point corresponding to the first time or the fourth time received by the terminal device may be the start of a scheduling unit such as a frame, a subframe, a time slot, a mini time slot, a symbol, and the like. End border, Corresponding to which frame, which subframe, which time slot, which mini time slot, and which symbol the terminal device needs to synchronize the time of the terminal device.
  • the time information reference point may be a specific frame number or a subframe number or a specific time slot of a certain subframe or a boundary of a specific first symbol in a certain subframe (the boundary includes an initial And the last two cases); or a specific frame number or subframe number closest to the time when the message was received or a specific time slot or a specific number of a certain subframe in a certain subframe
  • the boundary of the symbol (the boundary includes both the start and end).
  • the time information reference point may also correspond to the frame end boundary or the frame start boundary of the frame where the system message window of the system message is located;
  • the time information reference point corresponds to a frame end boundary or a frame start boundary of the frame where the downlink unicast message is successfully received;
  • the time information reference point corresponds to the frame end boundary or the frame start boundary of the frame where the uplink request message corresponding to the downlink unicast message is successfully received;
  • the time information reference point corresponds to a frame end boundary or a frame start boundary of the frame where the downlink unicast message is initially transmitted;
  • the time information reference point corresponds to the frame end boundary or the frame start boundary of the frame where the uplink request message corresponding to the downlink unicast message is originally transmitted;
  • the time information reference point corresponds to the frame end boundary or the frame start boundary of the frame where the downlink unicast message is retransmitted n, and n is a positive integer.
  • the time information reference point corresponds to the frame end boundary or the frame start boundary of the frame where the nth retransmission of the uplink request message corresponding to the downlink unicast message is located, where n is A positive integer.
  • the granularity of the time information reference point may be the same as or different from the granularity of the time information.
  • the granularity of the time information reference point may be greater than the granularity of the time information.
  • the time information reference point granularity is the subframe granularity, and the granularity may be the millisecond level, and the time information granularity may be the microsecond level.
  • the time information reference point may be pre-defined by the protocol. In this case, the time information reference point may no longer be carried in the first indication message. Alternatively, the time information reference point may also be dynamic and may be determined by the access network device. In this case, the first indication message may carry a time information reference point, so as to notify the terminal device at which point in time to synchronize the The clock of the terminal device. In other possible implementation manners, the access network device may also send the time information reference point by using a message other than the first indication message, that is, the first indication message does not carry the time information reference point, but is carried by other messages.
  • the access network device when determining the time information reference point, may use the time when the time information is carried as a reference point or the time of a previous message as a reference point.
  • the triggering conditions for the access network device to send the time information to the terminal device by using the first indication information may be multiple.
  • the access network device may determine the time information according to the request message sent by the terminal device and send the time information to the terminal device, that is, triggered by the request message. In this case, time synchronization may be performed on demand to avoid wasting resources; or, It is triggered by other conditions.
  • the access network device determines the time information according to the set period and sends the time information to the terminal device, that is, periodically triggers, which is not limited.
  • the access network device determines the time information.
  • the time information There are various ways for the access network device to determine the time information. Several possible implementations are specifically described below.
  • the access network device receives the request message sent by the terminal device, where the request message may include at least one of: requirement information of time information, granularity requirement information of time information, and quality of service of the terminal device supporting service (quality of Service, QoS) information, the type of time requested by the terminal device. Further, the access network device determines time information according to the request message.
  • the requirement information of the time information is used to indicate that the terminal device needs to obtain the time information, or is used to indicate that the access network device needs to send time information to the terminal device, which may be specifically
  • the content of the form is not limited in this application.
  • the granularity requirement information of the time information is used to indicate the granularity of the time information required by the terminal device, for example, may be 1 us or 100 ns or 1 ms. After the access network device obtains the granularity requirement information of the time information, Based on this, the granularity of the time information can be determined.
  • the QoS information of the terminal device support service is used to indicate the granularity of the time information required by the terminal device.
  • the QoS information may directly include the granularity requirement information required by the service, for example, may be 1 us or 100 ns. Or 1 ms, after the access network device obtains the QoS information of the terminal device support service, the granularity of the time information can be determined based on the QoS information of the terminal device support service.
  • the QoS information may not directly include the granularity requirement information required by the service.
  • the access network device may infer the granularity requirement information required by the service based on the received QoS information, and according to The inferred granularity requirement information determines the granularity of the time information.
  • the time type requested by the terminal device corresponds to at least one of UTC, GPS time, and local time.
  • the time information can be determined based on the time information.
  • the time type requested by the terminal device corresponds to the UTC and the GPS time, and the access network device can determine the time including the UTC in the time information, and the time difference between the UTC and the GPS time; for example, 2, the time requested by the terminal device.
  • the type corresponds to UTC and local time, and the access network device can determine that the time information includes UTC time, and the time difference between UTC and local time.
  • the above three time types are only UTC, GPS time, and local time. In other embodiments, other time types other than the above three types may exist.
  • the terminal device requests The time type may also correspond to other time types, which is not limited in this application.
  • different information element (IE) combinations correspond to different time types, for example, IE0 corresponds to UTC, IE0 and IE1 correspond to GPS time, and IE0 and IE2 correspond to local time.
  • the time type requested by the terminal device may be specifically an identifier of the IE combination, and the access network device may determine the time type corresponding to the identifier of the IE combination according to the identifier of the IE combination, and further obtain the request of the terminal device. Time type.
  • the request message may be a radio resource control (RRC) message or a media access control element (MAC CE) message or a random access request message.
  • RRC radio resource control
  • MAC CE media access control element
  • the RRC message may include an RRC connection release message or the like, which is not limited.
  • the access network device may obtain the first indication message from the core network device, where the first indication message includes granularity requirement information of the time information and/or QoS information of the terminal device supporting service. Further, the access network device determines time information according to the first indication message.
  • the granularity requirement information of the time information and the QoS information of the terminal device supporting service can be referred to the description in the foregoing mode 1, and details are not described herein again.
  • the content of the time information may also be previously agreed by the protocol, or may be determined in advance by the access network device and the terminal device.
  • the granularity of the pre-agreed time information is 1 us or 100 ns or 1 ms, and /
  • the time type of the pre-agreed time information includes UTC, GPS time, and local time, that is, time in the time information including UTC, time difference of UTC and GPS time, time difference of UTC and local time.
  • the possible ways of determining the time information are: (1) determining time information according to the request message, (2) determining time information according to the first indication message, and (3) determining time information according to a predetermined agreement.
  • the three methods may be used independently or in combination with each other.
  • the access network device may determine the time type of the time information according to the time type requested by the terminal device, and determine the granularity of the time information according to the first indication message, or may determine the granularity of the time information according to the pre-agreed granularity.
  • the request message includes only the requirement information of the time information, and the access network device may determine the time type of the time information according to the pre-agreed time type, and determine the granularity of the time information according to the first indication message, or The granularity of the time information can be determined according to a pre-agreed granularity.
  • the access network device may determine the granularity and time type of the time information based only on the related content of the pre-agreed time information, or The granularity of the time information may also be determined according to the first indication message, and the time type of the time information is determined according to the related content of the pre-agreed time information.
  • Table 1 An example of the content included in the first indication message
  • the access network device may send the first indication message to the terminal device in a broadcast or unicast or multicast manner, which is not limited.
  • the terminal device can receive the first indication message sent by the access network device by means of broadcast or unicast or multicast.
  • the first indication message may be a system message, an RRC message, or a MAC CE message.
  • the access network device may further receive the authorization information sent by the core network device, where the authorization information is used to indicate whether the terminal device can obtain the time information. If the authorization information indicates that the terminal device can obtain the time information, the access network device sends the first indication message to the terminal device; if the authorization information indicates that the terminal device cannot obtain the time information, The time information may be that the access network device may not send the first indication message to the terminal device.
  • the core network device may authorize the terminal device to use the precise timing service, and send the authorization information to the access network device, so that the access network device may send the first to the terminal device.
  • An indication message If the terminal device is not authorized, the access network device may not send the first indication information, or may not respond to the request message sent by the terminal device.
  • the time information can be sent only to the terminal that authorizes the precise timing service, and the differentiated treatment of the authorized terminal and the unauthorized terminal can be realized, so that the operator can obtain commercial profit by authorizing the precise timing service.
  • Step 203 The terminal device receives the first indication message sent by the access network device.
  • Step 204 The terminal device acquires a first transmission delay, and acquires a fourth time according to the first transmission delay and the time information.
  • the first transmission delay may be a downlink one-way transmission delay; or the first transmission delay may be a comprehensive consideration of the downlink one-way transmission delay and processing of the terminal device and/or the access network device. Obtained by time delay.
  • the processing delay of the terminal device and the access network device may be pre-agreed by the protocol, or may be determined by the access network device and sent to the terminal device, which is not limited.
  • the manner in which the terminal device obtains the downlink one-way transmission delay may be multiple.
  • the terminal device acquires the uplink timing advance (TA) information, and acquires the downlink one-way transmission delay according to the uplink timing advance information.
  • TA uplink timing advance
  • a possible implementation manner is that the terminal device receives the second indication message sent by the access network device, where the second indication message includes the uplink timing advance information.
  • the terminal device receives a random access response (RAR) sent by the access network device (that is, a second indication message), and the random access response includes uplink timing advance information;
  • RAR random access response
  • the terminal device triggers the random access, the physical resource (the physical random access channel (PRACH)) and the preamble (preamble) for transmitting the preamble are selected, and then the preamble is sent on the PRACH.
  • PRACH physical random access channel
  • the access network device After receiving the random access request, the access network device allocates the corresponding RAR and carries the uplink timing advance information in the RAR.
  • the terminal device may periodically trigger the random access to obtain the uplink timing advance information, or may maintain the validity of the downlink one-way transmission delay by using a timer. If the timer expires, the terminal device re-initiates the randomization.
  • the access is used to obtain the uplink timing advance information, or the uplink timing advance information is obtained by triggering the random access by using other specific events or commands, which is not limited.
  • the physical resource used for transmitting the preamble may be the PRACH involved in the foregoing description, or may be other names, such as NR-PRACH in the 5G communication system.
  • the terminal device may carry an indication information in the random access request, and is used to indicate that the terminal device has completed the process of the random access after the RAR is sent. That is to say, the random access request is a random access request for the timing purpose, or the terminal device does not continue to initiate the subsequent RRC procedure.
  • the access network device can distinguish the random access request from the traditional random access request, and perform corresponding operations, such as releasing resources allocated for the random access procedure, such as temporary wireless.
  • a radio network temporary identifier (RNTI), or an access network device does not need to wait for subsequent messages.
  • RNTI radio network temporary identifier
  • the terminal device receives the third indication message sent by the access network device, where the third indication message includes uplink timing advance adjustment information, and the terminal device according to the previous uplink timing advance information and the The uplink timing advance adjustment information obtains the uplink timing advance information.
  • the terminal device may obtain the uplink timing advance information of the terminal device according to the received TA adjustment command (that is, the third indication message) sent by the access network device, that is, the terminal device adjusts according to the TA.
  • the uplink timing advance adjustment information in the command is used to update the previous uplink timing advance information to obtain the current uplink timing advance of the terminal device, as shown in the following formula:
  • N TA new is the current uplink timing advance of the terminal device
  • N TA old is the previous uplink timing advance
  • T is obtained according to the uplink timing advance adjustment information, which may be a functional formula about N TA, old .
  • the current uplink timing advance information of the terminal device can be obtained by using the following formula:
  • N TA,new N TA,old +(N TA,old -31)*16...Form 2
  • (N TA, old -31) * 16 is obtained based on the uplink timing advance adjustment information in the TA adjustment command.
  • the terminal device may obtain uplink timing advance information according to the last TA of the saved connection state, or may be connected according to the release of the RRC connection.
  • the access device allocates one TA to the terminal device to obtain uplink timing advance information.
  • the deactivated state may be referred to as an inactive state, between the idle state and the connected state.
  • the access network device maintains a connection with the core network, that is, saves the context of the terminal device, but releases The connection between the access network device and the terminal device eliminates the delay in which the terminal device needs to reacquire the context of the terminal device when it enters the connected state.
  • a possible implementation manner is that the terminal device uses half of the TA in the uplink timing advance information as the downlink one-way transmission delay, or may also It is based on the TA in the uplink timing advance information, and uses other functions to obtain the downlink one-way transmission delay, which is not limited.
  • Step 205 The terminal device synchronizes the clock of the terminal device according to the fourth time.
  • step numbers are only an exemplary representation of the execution process, and do not constitute a specific limitation on the execution order.
  • the fourth time is obtained according to the first transmission delay and the time information, and the specific manner may be multiple.
  • the time information includes the UTC time
  • the terminal The device can sum the first transmission delay and the UTC time to obtain a fourth time (T1), and then update the UTC time of the terminal device to the fourth time, thereby implementing time synchronization.
  • the terminal device may further calculate the GPS time and the local time.
  • One possible implementation manner is: obtaining the GPS by the following formula: Time, local time:
  • T3 is the local time of the day
  • T4 is the UTC time UTC time
  • t2 is the local time offset localTimeOffset
  • t3 is the first transmission delay, such as TA value/2 or (TA value+TA adjustment) /2; It can be understood that a case of the above formula is Local time of the day is calculated as UTC time+localTimeOffset(Field value*15min)+TA value/2
  • T5 is GPS time GPS Time
  • T4 is UTC time timeInfoUTC
  • t4 is a time adjustment amount, such as value -2,524,953,600 (seconds), can also be other values, this case is not limited
  • t5 is the time difference between UTC and GPS time leapSeconds
  • the terminal device synchronizes the clock of the terminal device according to the first transmission delay and the time information.
  • the terminal device may directly And synchronizing the clock of the terminal device according to the time information in the first indication message.
  • the terminal device performs time synchronization according to the first transmission delay and time information; and mode 2, the terminal device performs time synchronization according to the time information.
  • the terminal device may be configured to perform time synchronization by using a protocol in advance, or the access network device may send the synchronization indication information to the terminal device to indicate that the terminal device uses mode 1 or mode 2 to perform time. Synchronization, further, the synchronization indication information may be sent by using a system message or an RRC message or a MAC CE, which is not limited.
  • FIG. 3 is a schematic flowchart of a time synchronization method according to Embodiment 2 of the present application. As shown in FIG. 3, the method includes:
  • Step 301a The access network device sends a first request message to the core network device, where the core network device is requested to send the first indication message.
  • Step 301b The core network device receives the first request message, and sends a first indication message to the access network device.
  • the first indication message includes granularity requirement information of the time information and/or QoS information of the terminal device supporting service.
  • Step 302 The access network device receives the first indication message sent by the core network device, and determines time information according to the first indication message.
  • the granularity of the time information determined by the access network device may be 1 us or 100 ns or 1 ms.
  • Step 303 The access network device sends a system message (that is, a first indication message) to the terminal device, where the system message includes time information.
  • a system message that is, a first indication message
  • the access network device may extend the SIB for broadcast time in the SIB16 or 5G communication system in the LTE system (the specific number is not limited); or the access network device may also add a new SIB to carry the time information. That is, an SIB message based on SIB16-based enhanced time information is separately transmitted, such as SIB16a. In this case, in the subsequent step, when the terminal device performs time synchronization, it needs to perform calculation according to the contents of SIB16 and SIB16a.
  • Step 304 The terminal device receives the system message and obtains time information.
  • Step 305 The access network device sends a third indication message to the terminal device, where the third indication message includes uplink timing advance adjustment information.
  • Step 306 The terminal device receives the third indication message, and the third indication message obtains a downlink one-way transmission delay.
  • the terminal device may obtain the current uplink timing advance of the terminal device according to the previous uplink timing advance information and the uplink timing advance adjustment information, and further use the half of the current uplink timing advance of the terminal device as the downlink one-way. Transmission delay.
  • Step 307 The terminal device synchronizes the clock of the terminal device according to the downlink one-way transmission delay and time information.
  • step numbers are only an exemplary representation of the execution process, and do not constitute a specific limitation on the execution order.
  • time synchronization between the terminal device and the access network device can be implemented without changing the chip of the terminal device.
  • the granularity of the time information is 1 us or 100 ns or 1 ms, that is, a high-precision time unit, which can effectively improve the accuracy of time synchronization.
  • FIG. 4 is a schematic flowchart of a time synchronization method according to Embodiment 3 of the present application. As shown in FIG. 4, the method includes:
  • Step 401 The terminal device sends a request message to the access network device, where the request message may be an RRC message or a MAC CE message.
  • the request message may include at least one of the following: the demand information of the time information, the granularity requirement information of the time information, the QoS information of the terminal device supporting the service, and the time type requested by the terminal device.
  • Step 402 The access network device receives the request message, and determines time information according to the request message.
  • Step 403 The access network device sends time information to the terminal device, where the time information may specifically pass the RRC message. Or a MAC CE message to carry.
  • Step 404 The terminal device receives time information.
  • Step 405 The access network device sends synchronization indication information to the terminal device.
  • the synchronization indication information is used to indicate the manner in which the terminal device performs time synchronization. Specifically, the terminal device may be instructed to perform time synchronization directly according to the time information, or may also instruct the terminal device to perform one-way transmission according to the downlink.
  • the delay time information is time synchronized.
  • the synchronization indication information may include 1 bit, when the value is “0”, it is used to indicate that the terminal device directly performs time synchronization according to the time information, and when the value is “1”, it is used to indicate the terminal.
  • the device performs time synchronization according to the downlink one-way transmission delay and time information.
  • the synchronization indication information is used to indicate that the terminal device directly performs time synchronization according to the time information.
  • Step 406 The terminal device synchronizes the clock of the terminal device according to the time information.
  • step numbers are only an exemplary representation of the execution process, and do not constitute a specific limitation on the execution order.
  • time synchronization between the terminal device and the access network device can be implemented without changing the chip of the terminal device. Moreover, since the access network device sends the time information to the terminal device in the case that the request message sent by the terminal device is received, time synchronization can be performed on demand to avoid wasting resources.
  • step 401 is an optional step.
  • the access network device may directly determine the time information, and send the time information to the terminal device through an RRC message or a MAC CE message.
  • FIG. 5 is a schematic flowchart of a time synchronization method according to Embodiment 4 of the present application. As shown in FIG. 5, the method includes:
  • Step 501 The terminal device sends a random access request to the access network device.
  • the preamble of the random access request is a preset preamble and/or the PRACH used by the random access request is a preset PRACH, where the preset preamble or the preset PRACH is a preamble for requesting time information. Code or PRACH.
  • Step 502 The access network device receives the random access request sent by the terminal device, and determines time information according to the random access request.
  • the preset preamble for requesting the time information and/or the preset PRACH may be pre-agreed by the protocol; or the preset manner may be determined by the access network device and the terminal device through multiple manners. Preamble and / or preset PRACH.
  • a possible implementation manner is that the access network device selects a preset preamble and/or a preset PRACH from multiple preambles and/or multiple PRACHs, and determines a preset preamble and/or a preset PRACH and time. And the mapping relationship is sent to the terminal device, and the terminal device receives and saves the mapping relationship.
  • the preset preamble to be used for initiating the random access request may be determined according to the mapping relationship.
  • the code and/or the preset PRACH, thereby implicitly informing the access network device that the purpose of the random access request is request time information.
  • the preset preamble selected by the access network device is preamble0
  • the preset PRACH is PRACH0.
  • Table 2 it is a mapping between the preset preamble and/or the preset PRACH and the time request. Example.
  • Table 2 An example of a mapping relationship
  • the mapping relationship illustrated in Table 2 indicates that when the terminal device uses the PRACH0 to transmit the preamble0, or the PRACH other than the PRACH0 to send the preamble0, or the PRACH0 to send the preamble other than the preamble0, the purpose is to request the time information. .
  • the access network device may determine time information according to the random access request.
  • the terminal device When the terminal device sends a preamble other than the preamble0 using the PRACH other than the PRACH0, for example, the terminal device uses the PRACH1 to send the preamble1, which is a normal random access request, does not have the purpose of requesting time information, and accordingly, the access network
  • the device can perform related processes of a normal random access procedure.
  • mapping relationship between the preset preamble and/or the preset PRACH and the requested time type may be further set, as shown in Table 3.
  • the mapping relationship illustrated in Table 3 indicates that when the terminal device sends the preamble0 using PRACH0, the time type of the request corresponds to UTC; when the terminal device sends the preamble0 using the PRACH other than PRACH0, the time type of the request corresponds to UTC and GPS. Time; when the terminal device uses PRACH0 to send other preambles other than preamble0, the time type of the request corresponds to UTC, GPS time and local time.
  • the access network device can determine the time information according to the type of time requested by the terminal device.
  • the time type for the request is further refined, so that the terminal device can select and use the corresponding preamble according to the requirement.
  • the code and PRACH, without the need for additional information to inform the access network device of the type of time it requests, are not only easy to implement but also save resources.
  • Table 2 and Table 3 are only an exemplary representation. In a specific implementation, the deformation may be performed on the basis of Table 2 and Table 3.
  • the specific mapping relationship may be set according to actual needs, for example, The mapping relationship between the preset preamble and/or the granularity of the preset PRACH and the time information is not limited in this application.
  • Step 503 The access network device sends time information to the terminal device, where the time information may be carried by an RRC message or a MAC CE message.
  • Step 504 The terminal device receives time information.
  • Step 505 The access network device sends an RAR to the terminal device, where the RAR includes uplink timing advance information.
  • Step 506 The terminal device receives the RAR, and obtains a downlink one-way transmission delay according to the uplink timing advance information.
  • Step 507 The terminal device synchronizes the clock of the terminal device according to the downlink one-way transmission delay and time information.
  • step number is only an exemplary representation of the execution process, and does not constitute an implementation.
  • the time synchronization between the terminal device and the access network device can be implemented without changing the chip of the terminal device, and is applicable to terminal devices in different states, such as an idle state, a connected state, and a deactivated state, that is, Strong applicability; and the terminal device informs the access network device of the purpose of requesting time information in an implicit manner, thereby enabling time synchronization on demand.
  • FIG. 6 is a schematic flowchart of a time synchronization method according to Embodiment 5 of the present application. As shown in Figure 6, it includes:
  • Step 601 The access network device determines time information.
  • the time information may include the time of the first time type, such as XX minutes XX minutes XX microseconds, or XX minutes XX minutes XX microseconds XX nanoseconds, wherein the first time type may correspond to UTC.
  • the time information may further include a time difference of the first time type and other time types (GPS time or local time), such as a time difference of UTC and GPS time, a time difference of UTC and local time.
  • GPS time or local time such as a time difference of UTC and GPS time, a time difference of UTC and local time.
  • the time unit used by the time information may be any time unit with an accuracy higher than or equal to milliseconds (ms), such as microseconds (us), nanoseconds (ns), and higher possible future occurrences.
  • ms milliseconds
  • ns nanoseconds
  • the granularity of the time information can be greater than or equal to 1 Any value less than or equal to **, such as the granularity of the time information is 50, the granularity of the time information is 50 ns, and the granularity of the time information is 100, and the granularity of the time information is 100 ns; another example When the time unit used by the time information is in microseconds, the granularity of the time information may be any value greater than or equal to 1 and less than or equal to **. For example, the granularity of the time information is 1, and the granularity of the time information is 1 us. For example, the granularity of the time information is 10, and the granularity of the time information is 10us.
  • the granularity of the time information may be 1 us or 10 us or 50 ns or 100 ns or 1 ms, which is merely an exemplary enumeration based on the above description, and is not limited thereto, and all other values and time units that meet the above description constitute time.
  • the granularity of the information is within the scope of the present application.
  • the manner in which the access network device determines the time information may be various. For details, refer to the related description in the first embodiment.
  • Step 602 The access network device sends a first indication message to the terminal device, where the first indication message includes time information of the terminal device.
  • the access network device may send the first indication message to the terminal device by means of broadcast or unicast or multicast, which is not limited.
  • the first indication message may be a system message, an RRC message, or a MAC CE message.
  • the first indication message may further include at least one of the following: a time information reference point, and a time type.
  • a time information reference point For details, refer to the description in the first embodiment.
  • Step 603 The terminal device receives a first indication message sent by the access network device.
  • the terminal device can receive the first indication message from the access network device by means of broadcast or unicast or multicast, and obtain time information.
  • Step 604 The terminal device synchronizes the clock of the terminal device according to the time information.
  • the terminal device may update the UTC of the terminal device to a time corresponding to the first time type included in the time information. Further, if the time information also includes the time difference between UTC and GPS time, UTC and this The time difference of the ground time, the terminal device can further calculate the GPS time and the local time.
  • the terminal device may update any one of the UTC, the GPS time, and the local time according to the time information, or any combination thereof, which is not limited in this application.
  • the granularity of the time information determined by the access network device is 1 us or 100 ns or 1 ms, that is, a high-precision time unit, the accuracy of time synchronization of the terminal device can be effectively improved.
  • the present application provides a time synchronization method, the method includes: receiving, by a terminal device, a first time sent by an access network device; the terminal device acquiring a first transmission delay, and according to the first transmission delay and the Obtaining a fourth time at a time; the terminal device synchronizes the clock of the terminal device according to the fourth time.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is based on a sum of the second time and the third time.
  • the second time is 12:00:00:00, which is 12:00:00, 0 milliseconds
  • the third time is 3 microseconds.
  • the first time is 12:00:00:00:03, that is, 12 o'clock 0 minutes 0 seconds 0 milliseconds 3 microseconds.
  • the second time is 12:00:00:00, which is 12:00:00, 0 milliseconds
  • the third time is 3 microseconds and 5 nanoseconds.
  • the first time is 12:00:00:00. :03:05, ie 12:00:0, 0 milliseconds, 3 microseconds, 5 nanoseconds.
  • the access network device may send the second time to the terminal device by means of broadcast or unicast or multicast; and the access network device may send the terminal to the terminal by means of broadcast or unicast or multicast.
  • the device sends the third time.
  • the terminal device may receive the second time sent by the access network device by means of broadcast or unicast or multicast; and the terminal device may receive the connection by means of broadcast or unicast or multicast.
  • the third time sent by the network access device may be
  • the access network device may send the second time and the third time by using a message, for example, sending the second time and the third time by using a system message (such as the extended SIB16); or, the access network device may also be different.
  • the second time and the third time are sent by the message, for example, the second time is sent by the system message (such as the SIB16), and the third time is sent by other messages (such as the RRC message), which is not limited.
  • the method before the terminal device receives the first time sent by the access network device, the method further includes: the terminal device sends a first message to the access network device, where the first message includes a request for synchronizing the terminal device An indication of the clock;
  • the first message includes at least one of the following: requesting a message at a first time, and requesting a message at a third time.
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a media access control control element MAC CE message, and a random access request message for time synchronization.
  • the first time and the fourth time represent times of a specific frame, a subframe, a slot, a mini slot, or a boundary of a symbol.
  • An embodiment of the present application provides a time synchronization method, where the method includes: the terminal device sends the first to the access network device. a message, the first message is used to request to obtain a fourth time; the access network device receives the first message, acquires a fourth time, and sends a fourth time to the terminal device; the terminal device receives the information sent by the access network device And a fourth time, and synchronizing the clock of the terminal device according to the fourth time.
  • the access network device may obtain the fourth time based on the first time and the first transmission delay, so that the terminal can directly perform clock synchronization based on the received fourth time, thereby effectively The processing load of the terminal device is reduced, and the accuracy of clock synchronization is improved.
  • the embodiment of the present application provides a communication device, and the specific implementation of the communication device can refer to the foregoing method flow.
  • FIG. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • the communication device may be a terminal device, and is used to implement a corresponding process performed by the terminal device in the method embodiment shown in FIG. 2 to FIG. Steps, the communication device 700 includes:
  • the transceiver module 701 is configured to receive a first time sent by the access network device.
  • the processing module 702 is configured to acquire a first transmission delay, acquire a fourth time according to the first transmission delay and the first time, and synchronize a clock of the terminal device according to the fourth time.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is obtained based on the sum of the second time and the third time.
  • the terminal device receives the first time sent by the access network device, including:
  • the terminal device receives the second time and the third time sent by the access network device by means of broadcast or unicast.
  • the transceiver module 701 before receiving the first time sent by the access network device, is further configured to:
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a medium access control control element MAC CE message, a random access request message for time synchronization.
  • processing module 702 is specifically configured to:
  • processing module 702 is specifically configured to:
  • the receiving module is further configured to receive a first message sent by the access network device, where the first message includes the uplink timing advance information;
  • the receiving module is further configured to: receive, by the access network device, a second message, where the second message includes uplink timing advance adjustment information, where the processing module 702 is specifically configured to: according to the previous uplink timing advance information and the uplink The timing advance adjustment information updates the current uplink timing advance information of the terminal device.
  • the first time or the fourth time represents a specific frame, a subframe, The time of the slot, mini slot, or the boundary of the symbol.
  • the communication device 700 includes:
  • the transceiver module 701 is configured to receive a first indication message sent by the access network device, where the first indication message includes time information of the terminal device, and the granularity of the time information is 1 us or 100 ns or 1 ms;
  • the processing module 702 is configured to synchronize the clock of the terminal device according to the time information.
  • FIG. 8 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • the communication device may be an access network device, and is used to implement the method shown in FIG. 2 to FIG.
  • the corresponding process or step, the communication device 800 includes:
  • the processing module 802 is configured to determine the first time
  • the transceiver module 801 is configured to send a first time to the terminal device, where the first time is used to synchronize the clock of the terminal device.
  • the first time includes a second time and a third time
  • the second time is a millisecond time
  • the third time is a microsecond time and/or a nanosecond time.
  • the first time is obtained based on the sum of the second time and the third time.
  • the access network device sends the first time to the terminal device, including:
  • the access network device sends the second time and the third time to the terminal device by means of broadcast or unicast.
  • the method before the sending network device sends the first time to the terminal device, the method further includes:
  • the first message includes at least one of: requesting a message at a first time, requesting a message at a third time;
  • the first message includes at least one of the following: accuracy information of a time that the terminal device needs to acquire, and a time type requested by the terminal device.
  • the first message is one of the following: an RRC message, a medium access control control element MAC CE message, a random access request message for time synchronization.
  • the first time represents the time of a particular frame, subframe, slot, mini slot, or symbol boundary.
  • the communication device 800 includes:
  • the processing module 801 is configured to determine time information, where the granularity of the time information is 1 us or 100 ns or 1 ms;
  • the transceiver module 802 is configured to send a first indication message to the terminal device, where the first indication message includes the time information.
  • the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • the functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present application may be in essence or part of the contribution to the prior art or all or part of the technical solution may be in the form of a software product.
  • the computer software product is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network access device, etc.) or a processor to perform various implementations of the present application. All or part of the steps of the method described.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
  • FIG. 9 is a schematic structural diagram of still another communication device according to an embodiment of the present application.
  • the communication device may be a terminal device, and is used to implement corresponding operations performed by the terminal device in the method embodiment shown in FIG. 2 to FIG.
  • the communication device includes: a communication module 901, a processor 902;
  • the communication module 901 is configured to perform communication interaction with other devices, and the communication module 901 may be an RF circuit, a WiFi module, a communication interface, a Bluetooth module, or the like.
  • the processor 902 is configured to implement the function of the processing module 702 in FIG.
  • the communication device 900 may further include: a memory 904, configured to store a program or the like.
  • the program can include program code, the program code including instructions.
  • Memory 904 may include RAM and may also include non-volatile memory, such as at least one disk storage.
  • the processor 902 executes the application stored in the memory 904 to implement the above functions.
  • the communication module 901, the processor 902, and the memory 904 can be connected to each other through the bus 903; the bus 903 can be a PCI bus or an EISA bus or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • FIG. 10 is a schematic structural diagram of another communication device provided by the embodiment of the present application.
  • the communication device may be a terminal device, and is used to implement the method performed by the terminal device in the method embodiment shown in FIG. 2 to FIG.
  • the communication device includes: a communication module 1001, a processor 1002;
  • the communication module 1001 is configured to perform communication interaction with other devices.
  • the communication module 1001 may be an RF circuit, a WiFi module, a communication interface, a Bluetooth module, or the like.
  • the processor 1002 is configured to implement the functions of the processing module 802 in FIG.
  • the communication device 1000 may further include: a memory 1004, configured to store a program or the like.
  • the program can include program code, the program code including instructions.
  • the memory 1004 may include RAM and may also include non-volatile memory, such as at least one disk storage.
  • the processor 1002 executes the application stored in the memory 1004 to implement the above functions.
  • the communication module 1001, the processor 1002, and the memory 1004 may be connected to each other through the bus 1003; the bus 1003 may be a PCI bus or an EISA bus or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center By wire (for example, coaxial cable, fiber optics, Digital Subscriber Line (DSL) or wireless (eg, infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

一种时间同步方法及装置,其中方法包括:终端设备接收接入网设备发送的第一时间,获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间,以及根据所述第四时间同步所述终端设备的时间。如此,终端设备在同步所述终端设备的时间时,引入了第一传输时延,从而能够有效避免空口传输的时间误差,提高时间同步的准确性;且该时间同步方法具有较强的适用性,可以适用于不同状态的终端设备,比如空闲态、连接态以及去激活状态等。

Description

一种时间同步方法及装置 技术领域
本发明涉及无线通信技术领域,特别涉及一种时间同步方法及装置。
背景技术
随着长期演进(long term evolution,LTE)进入规模商用阶段,面向未来的第五代(the 5th generation,5G)移动通信***已成为全球研发的热点。移动互联网和物联网作为未来通信发展的主要驱动力,将在人们的居住、工作、休闲和交通等领域产生巨大影响,业务需求将呈现多样化,从而导致在多种场景下,都需要建立终端和接入网设备之间的时间同步(也可称为时钟同步)。
然而,终端设备和接入网设备之间进行时间同步的时间精度不高,从而导致时间同步不够准确,不能满足日益增长的业务需求。
发明内容
本申请实施例提供一种时间同步方法,用于解决时间同步不够准确的技术问题。
第一方面,本申请实施例提供一种时间同步方法,该方法包括:
终端设备接收接入网设备发送的第一指示消息,所述第一指示消息包括时间信息;
所述终端设备获取第一传输时延,并根据所述第一传输时延和所述时间信息获取第四时间;
所述终端设备根据所述第四时间同步所述终端设备的时钟(synchronize the clock)。
在一种可能的设计中,在所述终端设备接收所述接入网设备发送的第一指示消息之前,所述终端设备向所述接入网设备发送请求消息,所述请求消息包括以下至少一项:所述时间信息的需求信息,所述时间信息的粒度(granularity)需求信息,所述终端设备支持业务的QoS信息,所述终端设备请求的时间类型。
在一种可能的设计中,所述第一指示消息还包括以下至少一项:
时间信息参考点;
时间类型,所述时间类型至少对应UTC,GPS时间,本地时间中的任一项。
在一种可能的设计中,所述请求消息为无线资源控制RRC消息或媒体接入控制控制元素MAC CE消息或随机接入请求消息。
在一种可能的设计中,所述终端设备获取第一传输时延包括:
所述终端设备获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
在一种可能的设计中,所述终端设备获取上行定时提前信息包括:
所述终端设备接收接入网设备发送的第二指示消息,所述第二指示消息中包括所述上行定时提前信息;或者;
所述终端设备接收接入网设备发送第三指示消息,所述第三指示消息包括上行定时提前调整信息;所述终端设备根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
在一种可能的设计中,所述第二指示消息为随机接入请求响应消息或RRC消息或MAC CE;所述第三指示消息为MAC CE消息或RRC消息。
在一种可能的设计中,终端设备接收接入网设备发送的第一指示消息包括:
所述终端设备通过广播或单播或组播的方式接收接入网设备发送的第一指示消息。
第二方面,本申请实施例提供一种时间同步方法,所述方法包括:
接入网设备确定时间信息;
所述接入网设备向终端设备发送第一指示消息,所述第一指示消息包括时间信息,所述时间信息用于同步所述终端设备的时钟。
在一种可能的设计中,所述接入网设备确定时间信息,包括:
所述接入网设备接收所述终端设备的请求消息,所述请求消息包括以下至少一项:所述时间信息的需求信息,所述时间信息的粒度需求信息,终端设备支持业务的QoS信息,所述终端设备请求的时间类型;
所述接入网设备根据所述请求消息确定时间信息。
在一种可能的设计中,所述接入网设备确定时间信息,包括:
所述接入网设备获取核心网设备发送的第一指示消息,所述第一指示消息包括所述时间信息的粒度需求信息和/或终端设备支持业务的QoS信息,所述接入网设备根据所述第一指示消息确定时间信息。
在一种可能的设计中,所述第一指示消息还包括以下至少一项:
时间信息参考点;
时间类型,所述时间类型至少对应UTC,GPS,本地时间中的任一项。
在一种可能的设计中,所述请求消息为无线资源控制RRC消息或媒体接入控制控制元素MAC CE消息或随机接入请求消息。
在一种可能的设计中,所述接入网设备向终端设备发送第一指示消息包括:
所述接入网设备通过广播或单播或组播的方式向终端设备发送第一指示消息。
在一种可能的设计中,所述接入网设备向终端设备发送所述第一指示消息之前,还包括:
所述接入网设备接收核心网设备发送的授权信息,所述授权信息用于指示所述终端设备是否能够获取所述时间信息;
若所述授权信息指示所述终端设备能够获取所述时间信息,所述接入网设备向所述终端设备发送所述第一指示消息;
若所述授权信息指示所述终端设备不能够获取所述时间信息,所述接入网设备不向所述终端设备发送所述第一指示消息。
第三方面,本申请实施例提供一种时间同步方法,所述方法包括:
终端设备接收接入网设备发送的第一指示消息,所述第一指示消息包括所述终端设备的时间信息,所述时间信息的粒度为1us或100ns或1ms;
所述终端设备根据所述时间信息同步所述终端设备的时钟。
第四方面,本申请实施例提供一种时间同步方法,所述方法包括:
接入网设备确定时间信息,所述时间信息的粒度为1us或100ns或1ms;
所述接入网设备向终端设备发送第一指示消息,所述第一指示消息包括所述时间信息。
第五方面,本申请实施例提供一种终端设备,所述终端设备包括:
收发模块,用于接收接入网设备发送的第一指示消息,所述第一指示消息包括时间信息;
处理模块,用于获取第一传输时延,并根据所述第一传输时延和所述时间信息获取第四时间;以及根据所述第四时间同步所述终端设备的时钟。
在一种可能的设计中,在接收所述接入网设备发送的第一指示消息之前,所述收发模块还用于:向所述接入网设备发送请求消息,所述请求消息包括以下至少一项:所述时间信息的需求信息,所述时间信息的粒度需求信息,所述终端设备支持业务的QoS信息,所述终端设备请求的时间类型。
在一种可能的设计中,所述第一指示消息还包括以下至少一项:
时间信息参考点;
时间类型,所述时间类型至少对应UTC,GPS时间,本地时间中的任一项。
在一种可能的设计中,所述请求消息为无线资源控制RRC消息或媒体接入控制控制元素MAC CE消息或随机接入请求消息。
在一种可能的设计中,所述处理模块具体用于:
获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
在一种可能的设计中,所述处理模块具体用于:
接收接入网设备发送的第二指示消息,所述第二指示消息中包括所述上行定时提前信息;或者;
接收接入网设备发送第三指示消息,所述第三指示消息包括上行定时提前调整信息;根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
在一种可能的设计中,所述第二指示消息为随机接入请求响应消息或RRC消息或MAC CE;所述第三指示消息为MAC CE消息或RRC消息。
在一种可能的设计中,所述收发模块具体用于:
通过广播或单播或组播的方式接收接入网设备发送的第一指示消息。
第五方面,本申请实施例提供一种接入网设备,所述接入网设备包括:
处理模块,用于确定时间信息;
收发模块,用于向终端设备发送第一指示消息,所述第一指示消息包括时间信息,所述时间信息用于同步所述终端设备的时钟。
在一种可能的设计中,所述收发模块还用于:接收所述终端设备的请求消息,所述请求消息包括以下至少一项:所述时间信息的需求信息,所述时间信息的粒度需求信息,终端设备支持业务的QoS信息,所述终端设备请求的时间类型;
所述处理模块具体用于:根据所述请求消息确定时间信息。
在一种可能的设计中,所述收发模块还用于:获取核心网设备发送的第一指示消息,所述第一指示消息包括所述时间信息的粒度需求信息和/或终端设备支持业务的QoS信息;
所述处理模块具体用于:根据所述第一指示消息确定时间信息。
在一种可能的设计中,所述第一指示消息还包括以下至少一项:
时间信息参考点;
时间类型,所述时间类型至少对应UTC,GPS,本地时间中的任一项。
在一种可能的设计中,所述请求消息为无线资源控制RRC消息或媒体接入控制控制元素MAC CE消息或随机接入请求消息。
在一种可能的设计中,所述收发模块具体用于:
通过广播或单播或组播的方式向终端设备发送第一指示消息。
在一种可能的设计中,所述收发模块向终端设备发送所述第一指示消息之前,还用于:
接收核心网设备发送的授权信息,所述授权信息用于指示所述终端设备是否能够获取所述时间信息;
若所述授权信息指示所述终端设备能够获取所述时间信息,所述接入网设备向所述终端设备发送所述第一指示消息;
若所述授权信息指示所述终端设备不能够获取所述时间信息,所述接入网设备不向所述终端设备发送所述第一指示消息。
第七方面,本申请实施例提供一种终端设备,所述终端设备包括:
收发模块,用于接收接入网设备发送的第一指示消息,所述第一指示消息包括所述终端设备的时间信息,所述时间信息的粒度为1us或100ns或1ms;
处理模块,用于根据所述时间信息同步所述终端设备的时钟。
第八方面,本申请实施例提供一种接入网设备,所述接入网设备包括:
处理模块,用于确定时间信息,所述时间信息的粒度为1us或100ns或1ms;
收发模块,用于向终端设备发送第一指示消息,所述第一指示消息包括所述时间信息。
本申请还提供一种时间同步方法,所述方法包括:
终端设备接收接入网设备发送的第一时间;
所述终端设备获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;
所述终端设备根据所述第四时间同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
在一种可能的设计中,所述终端设备接收接入网设备发送的第一时间,包括:
所述终端设备通过广播或单播的方式接收所述接入网设备发送的所述第二时间和第三时间。
在一种可能的设计中,在所述终端设备接收接入网设备发送的第一时间之前,还包括:
所述终端设备向所述接入网设备发送第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述终端设备根据所述第一传输时延和所述第一时间信息获取第四时间,包括:
所述终端设备根据所述第一时间与所述第一传输时延的和,得到所述第四时间。
在一种可能的设计中,所述终端设备获取第一传输时延,包括:
所述终端设备获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
在一种可能的设计中,所述终端设备获取上行定时提前信息包括:
所述终端设备接收接入网设备发送的第一消息,所述第一消息中包括所述上行定时提前信息;或者,
所述终端设备接收接入网设备发送第二消息,所述第二消息包括上行定时提前调整信息,所述终端设备根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
在一种可能的设计中,所述第一时间或者所述第四时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
本申请实施例还提供一种时间同步方法,所述方法包括:
接入网设备确定第一时间;
所述接入网设备向终端设备发送第一时间,所述第一时间用于同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
在一种可能的设计中,所述接入网设备向终端设备发送第一时间,包括:
所述接入网设备通过广播或单播的方式向所述终端设备发送所述第二时间和所述第三时间。
在一种可能的设计中,在所述接入网设备向终端设备发送第一时间之前,还包括:
所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述第一时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
本申请实施例还提供一种终端设备,所述终端设备包括:
收发模块,用于接收接入网设备发送的第一时间;
处理模块,用于获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;以及根据所述第四时间同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到 的。
在一种可能的设计中,所述终端设备接收接入网设备发送的第一时间,包括:
所述终端设备通过广播或单播的方式接收所述接入网设备发送的所述第二时间和第三时间。
在一种可能的设计中,在接收接入网设备发送的第一时间之前,所述收发模块还用于:
向所述接入网设备发送第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述处理模块具体用于:
根据所述第一时间与所述第一传输时延的和,得到所述第四时间。
在一种可能的设计中,所述处理模块具体用于:
获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
在一种可能的设计中,所述接收模块还用于,接收接入网设备发送的第一消息,所述第一消息中包括所述上行定时提前信息;或者,
所述接收模块还用于,接收接入网设备发送第二消息,所述第二消息包括上行定时提前调整信息,所述处理模块具体用于,根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
在一种可能的设计中,所述第一时间或者所述第四时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
本申请实施例还提供一种接入网设备,所述接入网设备包括:
处理模块,用于确定第一时间;
收发模块,用于向终端设备发送第一时间,所述第一时间用于同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
在一种可能的设计中,所述接入网设备向终端设备发送第一时间,包括:
所述接入网设备通过广播或单播的方式向所述终端设备发送所述第二时间和所述第三时间。
在一种可能的设计中,在所述接入网设备向终端设备发送第一时间之前,还包括:
所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素 MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述第一时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
第九方面,本申请实施例提供一种通信装置,该通信装置可以为终端设备,该通信装置具有实现上述第一方面或第三方面方法示例的功能;该通信装置包括:通信模块、处理器;
所述通信模块,用于与其他设备进行通信交互,所述通信模块可以为RF电路、WiFi模块、通信接口、蓝牙模块等。
所述处理器,用于实现第五方面或第七方面中处理模块的功能。
可选地,通信装置还可以包括:存储器,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括指令。存储器可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器执行存储器所存放的应用程序,实现上述功能。
一种可能的方式中,通信模块、处理器和存储器可以通过总线相互连接;总线可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。
第十方面,本申请实施例提供一种通信装置,该通信装置可以为接入网设备,该通信装置具有实现上述第二方面或第四方面方法示例的功能;该通信装置包括:通信模块、处理器;
所述通信模块,用于与其他设备进行通信交互,所述通信模块可以为RF电路、WiFi模块、通信接口、蓝牙模块等。
所述处理器,用于实现第六方面或第八方面中处理模块的功能。
可选地,通信装置还可以包括:存储器,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括指令。存储器可能包含RAM,也可能还包括非易失性存储器,例如至少一个磁盘存储器。处理器执行存储器所存放的应用程序,实现上述功能。
一种可能的方式中,通信模块、处理器和存储器可以通过总线相互连接;总线可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。
本申请实施例还提供一种计算机可读存储介质,所述存储介质存储有指令,当所述指令在计算机上运行时,使得计算机实现执行上述任意一种设计提供的时间同步方法。
本申请实施例还提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任意一种设计提供的时间同步方法。
本申请实施例还提供一种计算机程序,当其在计算机上运行时,使得计算机执行上述任意一种设计提供的时间同步方法。
本申请实施例还提供一种芯片,所述芯片与存储器相连,用于读取并执行所述存储器中存储的软件程序,以实现上述任意一种设计提供的时间同步方法。
附图说明
图1为本申请实施例适用的一种***架构示意图;
图2本申请实施例一提供的时间同步方法对应的流程示意图;
图3本申请实施例二提供的时间同步方法对应的流程示意图;
图4本申请实施例三提供的时间同步方法对应的流程示意图;
图5本申请实施例四提供的时间同步方法对应的流程示意图;
图6本申请实施例五提供的时间同步方法对应的流程示意图;
图7为本申请实施例提供的一种通信装置的结构示意图;
图8为本申请实施例提供的又一种通信装置的结构示意图;
图9为本申请实施例提供的又一种通信装置的结构示意图;
图10为本申请实施例提供的又一种通信装置的结构示意图。
具体实施方式
下面结合说明书附图对本申请进行具体说明。
图1为本申请实施例适用的一种***架构示意图。如图1所示,该***架构中包括接入网设备101、核心网设备103、一个或多个终端设备,比如图1所示的终端设备1021、终端设备1022、终端设备1023。接入网设备101和核心网设备103之间可以进行信息传输;接入网设备101可通过网络向终端设备1021、终端设备1022、终端设备1023传输下行数据,终端设备1021、终端设备1022、终端设备1023可通过网络向接入网设备101传输上行数据。
本申请实施例中,接入网设备可以为基站设备(base station,BS)。基站设备也可称为基站,是一种部署在无线接入网用以提供无线通信功能的装置。例如在2G网络中提供基站功能的设备包括基地无线收发站(base transceiver station,BTS)和基站控制器(base station controller,BSC),3G网络中提供基站功能的设备包括节点B(NodeB)和无线网络控制器(radio network controller,RNC),在4G网络中提供基站功能的设备包括演进的节点B(evolved NodeB,eNB),在5G网络中提供基站功能的设备包括新无线节点B(new radio NodeB,gNB),集中单元(centralized unit,CU),分布式单元(distributed unit)和新无线控制器。
核心网设备103可以为LTE***中的移动性管理实体(mobility management entity,MME),或者5G通信***中的移动性管理功能(access and mobility management function,AMF)网元和会话管理功能(session management function,SMF)网元,具体不做限定。
终端设备是一种具有无线收发功能的设备,可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上(如轮船等);还可以部署在空中(例如飞机、气球和卫星上等)。所述终端设备可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端设备、无人驾驶(self driving)中的无线终端设备、远程医疗(remote medical)中的无线终端设备、智能电网(smart grid)中的无线终端设备、运输安全(transportation safety)中的无线终端设备、智慧城市(smart city)中的无线终端设备、智慧家庭(smart home)中的无线终端设备等。
本申请实施例中主要以图1所示意的***架构为例进行介绍,但并不限于此。
上述***架构适用的通信***包括但不限于:时分双工-长期演进(time division duplexing-long term evolution,TDD LTE)、频分双工-长期演进(frequency division duplexing-long term evolution,FDD LTE)、长期演进-增强(long term evolution-advanced,LTE-A), 以及未来演进的各种无线通信***(例如,5G NR***)。
现有技术中,接入网设备通过***消息块(system information block,SIB)广播时间信息,该时间信息包括协调世界时(coordinated universal time,UTC)等信息,终端设备根据获取的时间信息计算全球定位***(global positioning system,GPS)时间和本地时间(local time)。然而,由于接入网设备和终端设备之间存在空口传输的时间误差,从而导致时间同步不够准确。
基于此,本申请实施例提供一种时间同步方法,包括:终端设备接收接入网设备发送的第一指示消息,第一指示消息包括时间信息,以及获取第一传输时延,根据第一传输时延和时间信息获取第四时间,进而根据第四时间同步所述终端设备的时钟;如此,终端设备在同步所述终端设备的时钟时,引入了第一传输时延,从而能够有效避免空口传输的时间误差,提高时间同步的准确性;且该时间同步方法具有较强的适用性,可以适用于不同状态的终端设备,比如空闲态、连接态以及去激活状态等。
需要说明的是,本申请实施例中的时间同步也可以称为时钟同步。
实施例一
图2为本申请实施例一提供的一种时间同步方法所对应的流程示意图。如图2所示,包括:
步骤201,接入网设备确定时间信息。
此处,时间信息可以包括第一时间类型的时间,比如XX时XX分XX毫秒XX微秒,或者XX时XX分XX毫秒XX微秒XX纳秒,其中,第一时间类型可以对应UTC。
进一步地,时间信息还可以包括第一时间类型和其它时间类型(GPS时间或者本地时间)的时间差,比如,UTC和GPS时间的时间差、UTC和本地时间的时间差。
本申请实施例中,时间信息所使用的时间单位可以为精度高于或等于毫秒(ms)的任一时间单位,如微秒(us)、纳秒(ns)、以及未来可能出现的更高精度的时间单位;当时间信息使用任一时间单位时,其粒度值的大小可以自由设定,举个例子,时间信息使用的时间单位为纳秒时,时间信息的粒度值可以为大于等于1的任意数值,比如时间信息的粒度值为50,此时时间信息的粒度为50ns,又比如时间信息的粒度值为100,此时时间信息的粒度为100ns;再举个例子,时间信息使用的时间单位为微秒时,时间信息的粒度值可以为大于等于1的任意数值,比如时间信息的粒度值为1,此时时间信息的粒度为1us,又比如时间信息的粒度值为10,此时时间信息的粒度为10us。
由此可知,时间信息的粒度可以为1us或10us或50ns或100ns或1ms,此处仅为基于上述描述的示例性列举,具体不做限定,凡是符合上述描述的其它数值和时间单位构成的时间信息的粒度均在本申请的保护范围之内。
步骤202,接入网设备向终端设备发送第一指示消息,所述第一指示消息包括时间信息,所述时间信息用于同步所述终端设备的时钟。
此处,第一指示消息中还可以包括以下至少一项:时间信息参考点、时间类型。
其中,时间类型至少对应UTC、GPS时间、本地时间中的任一项,用于指示时间信息的时间类型。
时间信息参考点用于指示所述终端设备接收到的第一时间或第四时间对应的时域位置时间信息参考点可以为帧、子帧、时隙、mini时隙、符号等调度单位的开始、结尾边界, 对应的是终端设备需要在哪个帧、哪个子帧、哪个时隙、哪个mini时隙、哪个符号同步所述终端设备的时间。
具体地,时间信息参考点可以是某个具体的帧号或子帧号或某个子帧其中的某个具体的时隙或某个子帧中的具体的第几个符号的边界(边界包括起始和结尾两种情况);或者是距离收到消息的时刻最近的某个具体的帧号或子帧号或某个子帧其中的某个具体的时隙或某个子帧中的具体的第几个符号的边界(边界包括起始和结尾两种情况)。
另外,当利用***消息指示时间信息时,时间信息参考点还可以对应的是***消息所在***消息窗口的所在帧的帧尾边界或者帧起始边界;
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息被成功接收时所在帧的帧尾边界或者帧起始边界;
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息对应的上行请求消息被成功接收时所在帧的帧尾边界或者帧起始边界;
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息初传时所在帧的帧尾边界或者帧起始边界;
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息对应的上行请求消息的初传时所在帧的帧尾边界或者帧起始边界;
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息第n次重传时所在帧的帧尾边界或者帧起始边界,n为正整数。
当利用下行单播消息指示时间信息时,时间信息参考点对应的是所述下行单播消息对应的上行请求消息的第n次重传时所在帧的帧尾边界或者帧起始边界,n为正整数。时间信息参考点的粒度与时间信息的粒度可以相同或者也可以不相同。比如,时间信息参考点的粒度可以大于时间信息的粒度,如时间信息参考点粒度为子帧粒度,可理解为粒度为ms级别,而时间信息粒度可以为微秒级别。
需要说明的是,时间信息参考点可以为协议预先规定的,此种情形下,第一指示消息中可以不再携带时间信息参考点。或者,时间信息参考点也可以是动态的,并可由接入网设备来确定,此种情形下,第一指示消息中可以携带时间信息参考点,以便于通知终端设备在哪个时间点同步所述终端设备的时钟。在其它可能的实施方式中,接入网设备也可以通过第一指示消息以外的其它消息来发送时间信息参考点,即第一指示消息中不携带时间信息参考点,而通过其它消息来携带。
本申请实施例中,接入网设备在确定时间信息参考点时,可以将携带该条时间信息所在的时间作为基准点,或者是前面某条消息的时间作为基准点。
本申请实施例中,接入网设备通过第一指示信息将时间信息发送给终端设备的触发条件可以有多种。比如,接入网设备可以根据终端设备发送的请求消息确定时间信息并发送给终端设备,即由请求消息触发,此种情形下,可以实现按需进行时间同步,避免浪费资源;或者,也可以由其它条件触发,一个示例为接入网设备按照设定周期确定时间信息并发送给终端设备,即周期性触发,具体不做限定。
接入网设备确定时间信息的方式可以有多种,下面具体描述几种可能的实现方式。
方式一:
接入网设备接收终端设备发送的请求消息,所述请求消息可以包括以下至少一项:时间信息的需求信息,时间信息的粒度需求信息,终端设备支持业务的服务质量(quality of  service,QoS)信息,终端设备请求的时间类型。进而,接入网设备根据所述请求消息确定时间信息。
其中,所述时间信息的需求信息用于指示所述终端设备需要获取所述时间信息,或者说,用于指示所述接入网设备需要向所述终端设备发送时间信息,其具体可以为多种形式的内容,本申请对此不做限定。
所述时间信息的粒度需求信息用于指示所述终端设备需要的时间信息的粒度,比如,可以为1us或100ns或1ms,如此,接入网设备获取到所述时间信息的粒度需求信息后,可基于此确定出时间信息的粒度。
所述终端设备支持业务的QoS信息用于指示所述终端设备需要的时间信息的粒度,在一个示例中,所述QoS信息中可以直接包括业务需要的粒度需求信息,比如,可以为1us或100ns或1ms,如此,接入网设备获取到所述终端设备支持业务的QoS信息后,可基于此确定出时间信息的粒度。在其它可能的实现方式中,QoS信息中也可以不直接包括业务需要的粒度需求信息,此种情形下,接入网设备可基于接收到的QoS信息推断出业务需要的粒度需求信息,并根据推断出的粒度需求信息确定时间信息的粒度。
所述终端设备请求的时间类型至少对应UTC、GPS时间、本地时间中的任一项,如此,接入网设备获取到所述终端设备请求的时间类型后,可基于此确定出时间信息的时间类型。例如1,所述终端设备请求的时间类型对应UTC和GPS时间,则接入网设备可确定时间信息中包括UTC的时间、以及UTC和GPS时间的时间差;例如2,所述终端设备请求的时间类型对应UTC和本地时间,则接入网设备可确定时间信息中包括UTC时间、以及UTC和本地时间的时间差。
需要说明的是,上述仅以UTC、GPS时间、本地时间三种时间类型为例,在其它实施例中,也可能存在除上述三种以外的其它时间类型,此种情形下,终端设备请求的时间类型还可以对应其它时间类型,本申请对此不做限定。本申请中,由于不同的信息单元(information element,IE)组合对应不同的时间类型,比如,IE0对应UTC、IE0和IE1对应GPS时间、IE0和IE2对应本地时间。在一个示例中,所述终端设备请求的时间类型具体可以为IE组合的标识,如此,接入网设备根据IE组合的标识可以确定出IE组合的标识对应的时间类型,进而获知终端设备请求的时间类型。
进一步地,所述请求消息可以为无线资源控制(radio resource control,RRC)消息或媒体接入控制控制元素(media access control element,MAC CE)消息或随机接入请求消息。其中,RRC消息可以包括RRC连接释放消息或其它,具体不做限定。
方式二:
接入网设备可以从核心网设备获取第一指示消息,第一指示消息包括所述时间信息的粒度需求信息和/或终端设备支持业务的QoS信息。进而,所述接入网设备根据第一指示消息确定时间信息。其中,所述时间信息的粒度需求信息以及终端设备支持业务的QoS信息可参见上述方式一中的描述,此处不再赘述。
方式三:
时间信息的相关内容(如粒度、时间类型等)也可以预先由协议约定,或者预先由接入网设备和终端设备协商确定,比如,预先约定时间信息的粒度为1us或100ns或1ms,和/或,预先约定时间信息的时间类型包括UTC、GPS时间和本地时间,即时间信息中需要包括UTC的时间、UTC和GPS时间的时间差、UTC和本地时间的时间差。
根据以上内容可知,确定时间信息的可能方式为:(1)根据请求消息确定时间信息,(2)根据第一指示消息确定时间信息,(3)根据预先约定确定时间信息。本申请实施例中,这三种方式可以分别独立使用,或者相互结合使用。
具体来说,若接入网设备接收到终端设备发送的请求消息,由于请求消息中包括以上至少一项,示例1,请求消息中仅包括所述时间信息的需求信息和终端设备请求的时间类型,则接入网设备可以根据终端设备请求的时间类型确定时间信息的时间类型,以及根据第一指示消息确定时间信息的粒度,或者,也可以根据预先约定的粒度确定时间信息的粒度。示例2,请求消息中仅包括所述时间信息的需求信息,则接入网设备可以根据预先约定的时间类型确定时间信息的时间类型,以及根据第一指示消息确定时间信息的粒度,或者,也可以根据预先约定的粒度确定时间信息的粒度。
若接入网设备未接收终端设备发送的请求消息(比如上述所描述的周期性触发),则接入网设备可以仅根据预先约定的时间信息的相关内容确定时间信息的粒度和时间类型,或者,也可以根据第一指示消息确定时间信息的粒度,以及根据预先约定的时间信息的相关内容确定时间信息的时间类型。
根据上述内容描述,第一指示消息包括的内容的一种示例,可参见表1所示。
表1:第一指示消息包括的内容的一种示例
Figure PCTCN2017111470-appb-000001
表1中的内容仅为一种可能的示例,在具体实施中,可以在表1的基础上进行增删。本申请实施例中,接入网设备可以通过广播或单播或组播的方式向终端设备发送第一指示消息,具体不做限定。相应地,终端设备可以通过广播或单播或组播的方式接收接入网设备发送的第一指示消息。
第一指示消息可以为***消息、RRC消息或MAC CE消息。
进一步地,接入网设备还可以接收核心网设备发送的授权信息,所述授权信息用于指示所述终端设备是否能够获取所述时间信息。若所述授权信息指示所述终端设备能够获取所述时间信息,则所述接入网设备向所述终端设备发送所述第一指示消息;若所述授权信息指示所述终端设备不能够获取所述时间信息,则所述接入网设备可以不向所述终端设备发送所述第一指示消息。
具体来说,在终端设备和网络建立连接的过程中,核心网设备可以授权终端设备使用精确定时服务,并将授权信息发送给接入网设备,如此,接入网设备可以向终端设备发送第一指示消息。若终端设备未被授权,则接入网设备可以不发送第一指示信息,或者也可以不响应终端设备发送的请求消息。采用这种方案,可以仅向授权精准定时服务的终端发送时间信息,实现对授权终端和非授权终端的差别性对待,便于运营商通过对精确定时服务的授权来获得商业盈利。
步骤203,终端设备接收接入网设备发送的第一指示消息。
步骤204,终端设备获取第一传输时延,并根据所述第一传输时延和所述时间信息获取第四时间。
本申请实施例中,第一传输时延可以为下行单向传输时延;或者,第一传输时延也可以是综合考虑下行单向传输时延以及终端设备和/或接入网设备的处理时延而得到的。
其中,终端设备和接入网设备的处理时延可以由协议预先约定,或者,也可以是由接入网设备确定并发送给终端设备的,具体不做限定。
终端设备获取下行单向传输时延的方式可以有多种,比如,终端设备获取上行定时提前(timing advance,TA)信息,并根据所述上行定时提前信息获取所述下行单向传输时延。
具体来说,针对于终端设备获取上行定时提前信息,一种可能的实现方式为,终端设备接收接入网设备发送的第二指示消息,所述第二指示消息中包括所述上行定时提前信息。比如,在随机接入过程中,终端设备接收接入网设备发送的随机接入响应(random access response,RAR)(即为第二指示消息),随机接入响应中包括上行定时提前信息;具体地,终端设备触发随机接入后,选择用于发送前导码的物理资源(即为物理随机接入资源(physical random access channel,PRACH))和前导码(preamble),然后在PRACH上发送前导码(随机接入请求),接入网设备接收到随机接入请求后,会分配对应的RAR,并在RAR中携带上行定时提前信息。其中,终端设备可以是周期性触发随机接入获取上行定时提前信息,或者,也可以是通过一个定时器来维护下行单向传输时延的有效性,若定时器超时,则终端设备重新发起随机接入来获取上行定时提前信息,又或者,也可以是通过其它特定事件或命令触发随机接入获取上行定时提前信息,具体不做限定。
需要说明的是,用于发送前导码的物理资源可以为上述描述中所涉及的PRACH,或者也可以为其它名称,比如在5G通信***中称为NR-PRACH。
本申请实施例中,终端设备可以在随机接入请求中携带一个指示信息,用于指示在发送RAR之后,终端设备已经完成本次随机接入的流程。也就是说,该随机接入请求为定时目的的随机接入请求,或者终端设备不会再继续发起后续的RRC过程。通过携带这一指示信息,接入网设备可以将该随机接入请求和传统的随机接入请求进行区分,并执行相应的操作,比如可以释放为该随机接入过程分配的资源,如临时无线网络临时标识(radio network temporary identifier,RNTI),或者接入网设备无需等待后续的消息。
另一种可能的实现方式为,终端设备接收接入网设备发送的第三指示消息,所述第三指示消息包括上行定时提前调整信息;所述终端设备根据前次上行定时提前信息和所述上行定时提前调整信息得到所述上行定时提前信息。比如,在非随机接入过程中,终端设备可以根据接收到的接入网设备发送的TA调整命令(即为第三指示消息),得到终端设备的上行定时提前信息,即终端设备根据TA调整命令中的上行定时提前调整信息,对前次上行定时提前信息进行更新得到终端设备当前的上行定时提前,参见下述公式:
NTA,new=NTA,old+T……公式1
其中,NTA,new为终端设备当前的上行定时提前,NTA,old为前次上行定时提前,T为根据上行定时提前调整信息得到的,具体可以为关于NTA,old的一个函数式。
在一个示例中,可以通过如下公式得到终端设备当前的上行定时提前信息:
NTA,new=NTA,old+(NTA,old-31)*16……公式2
其中,(NTA,old-31)*16是根据TA调整命令中的上行定时提前调整信息得到的。
又一种可能的实现方式中,若终端设备处于空闲态或者去激活状态(inactive),则终端设备可以根据保存的连接态最后一个TA,得到上行定时提前信息,或者,根据释放RRC连接时接入网设备为所述终端设备分配的一个TA,得到上行定时提前信息。
其中,去激活状态又可以称为不活跃状态,介于空闲态和连接态之间,在此状态下,接入网设备保持与核心网之间的连接,即保存终端设备的上下文,但释放接入网设备和终端设备之间的连接,从而免去了终端设备要进入连接态时需要重新获取终端设备的上下文的时延。
针对于终端设备根据上行定时提前信息获取所述下行单向传输时延,一种可能的实现方式为,终端设备将上行定时提前信息中的TA的一半作为下行单向传输时延,或者也可以是基于上行定时提前信息中的TA,利用其它的函数来得到下行单向传输时延,具体不做限定。
步骤205,终端设备根据所述第四时间同步所述终端设备的时钟。
本申请实施例中,上述步骤编号仅为执行过程的一种示例性表示,并不构成对执行顺序的具体限定。
具体来说,终端设备通过上述方式得到第一传输时延后,根据第一传输时延和时间信息获取第四时间,具体方式可以有多种,比如,时间信息中包括UTC的时间,则终端设备可以对第一传输时延和UTC的时间进行求和,得到第四时间(T1),进而将终端设备的UTC时间更新为第四时间,从而实现时间同步。
进一步地,若时间信息中还包括UTC和GPS时间的时间差、UTC和本地时间的时间差,则终端设备还可以进一步计算出GPS时间、本地时间,一种可能的实现方式为,通过如下公式得到GPS时间、本地时间:
T3=T4+t2+t3
其中,T3是本地时间Local time of the day,T4是UTC时间UTC time,t2是本地时间偏移量localTimeOffset,t3为第一传输时延,如TA value/2或(TA value+TA调整量)/2;可以理解,上式的一种情况为Local time of the day is calculated as UTC time+localTimeOffset(Field value*15min)+TA value/2
T5=T4+t4+t5+t3
其中,T5为GPS时间GPS Time,T4为UTC时间timeInfoUTC,t4为一个时间调整量,如取值-2,524,953,600(seconds),也可以为其他数值,本案不做限制;t5为UTC和GPS时间的时间差leapSeconds,t3为第一传输时延,如TA value/2或(TA value+TA调整量)/2;可以理解,上式的一种情况为GPS Time(in seconds)=timeInfoUTC(in seconds)-2,524,953,600(seconds)+leapSeconds+TA value/2。
需要说明的是,上述描述中,终端设备是根据第一传输时延和时间信息同步所述终端设备的时钟,在其它可能的实施例中,终端设备接收到第一指示消息后,也可以直接根据第一指示消息中的时间信息同步所述终端设备的时钟。
如此可知,存在两种可能的时间同步方式:方式1,终端设备根据第一传输时延和时间信息进行时间同步;方式2,终端设备根据时间信息进行时间同步。本申请实施例中,可以预先通过协议约定终端设备进行时间同步的方式,或者,也可以是由接入网设备向终端设备发送同步指示信息,用于指示终端设备采用方式1或方式2进行时间同步,进一步地,同步指示信息可以通过***消息或者RRC消息或者MAC CE来发送,具体不做限定。
下面结合几种可能的具体实施例,对本申请实施例中的时间同步方法进行说明。
实施例二
图3为本申请实施例二提供的一种时间同步方法对应的流程示意图,如图3所示,包括:
步骤301a,接入网设备向核心网设备发送第一请求消息,用于请求核心网设备发送第一指示消息;
步骤301b,核心网设备接收到第一请求消息,向接入网设备发送第一指示消息,
此处,第一指示消息中包括所述时间信息的粒度需求信息和/或终端设备支持业务的QoS信息。
步骤302,接入网设备接收核心网设备发送的第一指示消息,并根据第一指示消息确定时间信息。
此处,接入网设备确定的时间信息的粒度可以为1us或100ns或1ms。
步骤303,接入网设备向终端设备发送***消息(即第一指示消息),所述***消息中包括时间信息。
此处,接入网设备可以通过扩展LTE***中的SIB16或者5G通信***中用于广播时间的SIB(具体编号不做限定);或者,接入网设备也可以新增加一个SIB来携带时间信息,即单独发送一个基于SIB16的增强时间信息的SIB消息,比如SIB16a,此种情形下,后续步骤中终端设备在进行时间同步时,需要根据SIB16和SIB16a的内容联合起来进行计算。
步骤304,终端设备接收***消息,得到时间信息。
步骤305,接入网设备向终端设备发送第三指示消息,第三指示消息包括上行定时提前调整信息。
步骤306,终端设备接收第三指示消息,并第三指示消息得到下行单向传输时延。
具体来说,终端设备可以根据前次上行定时提前信息和所述上行定时提前调整信息得到所述终端设备当前的上行定时提前,进而将所述终端设备当前的上行定时提前的一半作为下行单向传输时延。
步骤307,终端设备根据下行单向传输时延和时间信息同步所述终端设备的时钟。
本申请实施例中,上述步骤编号仅为执行过程的一种示例性表示,并不构成对执行顺序的具体限定。
上述各个步骤的具体实现过程均可参见实施例一中的相关描述,此处不再赘述。
通过上述方式,可以在不更改终端设备的芯片的基础上,实现终端设备与接入网设备的时间同步。进一步地,时间信息的粒度为1us或100ns或1ms,即高精度时间单位,能够有效提高时间同步的准确度。
实施例三
图4为本申请实施例三提供的一种时间同步方法对应的流程示意图,如图4所示,包括:
步骤401,终端设备向接入网设备发送请求消息,该请求消息具体可以为RRC消息或MAC CE消息。
此处,请求消息中可以包括以下至少一项:时间信息的需求信息,时间信息的粒度需求信息,终端设备支持业务的QoS信息,终端设备请求的时间类型。
步骤402,接入网设备接收请求消息,并根据请求消息确定时间信息。
步骤403,接入网设备向终端设备发送时间信息,该时间信息具体可以通过RRC消息 或MAC CE消息来携带。
步骤404,终端设备接收时间信息。
步骤405,接入网设备向终端设备发送同步指示信息。
此处,同步指示信息用于指示所述终端设备进行时间同步的方式,具体来说,可以指示终端设备直接根据时间信息进行时间同步,或者,也可以指示所述终端设备根据下行单向传输时延和时间信息进行时间同步。
在一个示例中,同步指示信息可以包括1比特,当其值为“0”时,用于指示终端设备直接根据时间信息进行时间同步,当其值为“1”时,用于指示所述终端设备根据下行单向传输时延和时间信息进行时间同步。
本申请实施例中,以同步指示信息指示终端设备直接根据时间信息进行时间同步为例。
步骤406,终端设备根据时间信息同步所述终端设备的时钟。
本申请实施例中,上述步骤编号仅为执行过程的一种示例性表示,并不构成对执行顺序的具体限定。
上述各个步骤的具体实现过程均可参见实施例一中的相关描述,此处不再赘述。
通过上述方式,可以在不更改终端设备的芯片的基础上,实现终端设备与接入网设备的时间同步。且,由于接入网设备是在接收到终端设备发送的请求消息的情况下,向所述终端设备发送时间信息,从而可以实现按需进行时间同步,避免浪费资源。
需要说明的是,上述步骤401为可选步骤。在其它的实施例中,也可以没有步骤401,即接入网设备直接确定时间信息,并通过RRC消息或MAC CE消息将时间信息发送给终端设备。
实施例四
图5为本申请实施例四提供的一种时间同步方法对应的流程示意图,如图5所示,包括:
步骤501,终端设备向接入网设备发送随机接入请求。
此处,随机接入请求的前导码为预设前导码和/或所述随机接入请求使用的PRACH为预设PRACH,其中,预设前导码或预设PRACH为用于请求时间信息的前导码或PRACH。
步骤502,接入网设备接收终端设备发送的随机接入请求,并根据随机接入请求确定时间信息。
本申请实施例中,可以由协议预先约定用于请求时间信息的预设前导码和/或预设PRACH;或者,也可以是由接入网设备和终端设备通过多种方式协商确定出预设前导码和/或预设PRACH。
一种可能的实现方式为,接入网设备从多个前导码和/或多个PRACH中选择出预设前导码和/或预设PRACH,确定预设前导码和/或预设PRACH与时间请求的映射关系,并将映射关系发送给终端设备,相应地,终端设备接收并保存映射关系,当终端设备需要请求时间信息时,可根据映射关系确定发起随机接入请求需要使用的预设前导码和/或预设PRACH,从而隐式告知接入网设备该随机接入请求的目的为请求时间信息。
举个例子,接入网设备选择出的预设前导码为preamble0,预设PRACH为PRACH0,如表2所示,为预设前导码和/或预设PRACH与时间请求的映射关系的一种示例。
表2:映射关系的一种示例
Figure PCTCN2017111470-appb-000002
表2中所示例出的映射关系表明:当终端设备使用PRACH0发送preamble0,或者,使用除PRACH0以外的其它PRACH发送preamble0,或者,使用PRACH0发送除preamble0以外的其它preamble,其目的均为请求时间信息。相应地,接入网设备接收到用于请求时间信息的随机接入请求后,可根据随机接入请求确定时间信息。当终端设备使用除PRACH0以外的其它PRACH发送除preamble0以外的其它preamble,比如终端设备使用PRACH1发送preamble1,则其为正常的随机接入请求,不具有请求时间信息的目的,相应地,接入网设备可以执行正常的随机接入过程的相关流程。
本申请实施例中,还可以进一步设置预设前导码和/或预设PRACH与请求的时间类型的映射关系,参见表3。
表3:映射关系的另一种示例
Figure PCTCN2017111470-appb-000003
表3中所示例出的映射关系表明:当终端设备使用PRACH0发送preamble0,其请求的时间类型对应UTC;当终端设备使用除PRACH0以外的其它PRACH发送preamble0时,其请求的时间类型对应UTC和GPS时间;当终端设备使用PRACH0发送除preamble0以外的其它preamble时,其请求的时间类型对应UTC、GPS时间和本地时间。相应地,接入网设备可根据终端设备请求的时间类型确定出时间信息。
采用这种方式,在预设前导码和/或预设PRACH用于请求时间信息的基础上,进一步细化了其用于请求的时间类型,从而使得终端设备可以根据需求来选择使用相应的前导码和PRACH,而无需再通过额外信息来告知接入网设备其请求的时间类型,不仅便于实现而且能够有效节约资源。
需要说明的是,表2和表3仅为一种示例性表示,在具体实施中,可以在表2和表3的基础上进行变形,根据实际需要来设置具体的映射关系,比如还可以设置预设前导码和/或预设PRACH与时间信息的粒度的映射关系,本申请对此不做限定。
步骤503,接入网设备向终端设备发送时间信息,该时间信息具体可以通过RRC消息或MAC CE消息来携带。
步骤504,终端设备接收时间信息。
步骤505,接入网设备向终端设备发送RAR,RAR中包括上行定时提前信息。
步骤506,终端设备接收RAR,并根据上行定时提前信息,得到下行单向传输时延。
步骤507,终端设备根据下行单向传输时延和时间信息同步所述终端设备的时钟
本申请实施例中,上述步骤编号仅为执行过程的一种示例性表示,并不构成对执行顺 序的具体限定。
上述各个步骤的具体实现过程均可参见实施例一中的相关描述,此处不再赘述。
通过上述方式,可以在不更改终端设备的芯片的基础上,实现终端设备与接入网设备的时间同步,并且适用于不同状态的终端设备,比如空闲态、连接态以及去激活状态,即具有较强的应用性;且终端设备通过隐式方式来告知接入网设备其请求时间信息的目的,从而可以实现按需进行时间同步。
实施例五
图6为本申请实施例五提供的一种时间同步方法所对应的流程示意图。如图6所示,包括:
步骤601,接入网设备确定时间信息。
此处,时间信息中可以包括第一时间类型的时间,比如XX时XX分XX毫秒XX微秒,或者XX时XX分XX毫秒XX微秒XX纳秒,其中,第一时间类型可以对应UTC。
进一步地,时间信息还可以包括第一时间类型和其它时间类型(GPS时间或者本地时间)的时间差,比如,UTC和GPS时间的时间差、UTC和本地时间的时间差。
本申请实施例中,时间信息所使用的时间单位可以为精度高于或等于毫秒(ms)的任一时间单位,如微秒(us)、纳秒(ns)、以及未来可能出现的更高精度的时间单位;当时间信息使用任一时间单位时,其粒度值的大小可以自由设定,举个例子,时间信息使用的时间单位为纳秒时,时间信息的粒度值可以为大于等于1且小于等于**的任意数值,比如时间信息的粒度值为50,此时时间信息的粒度为50ns,又比如时间信息的粒度值为100,此时时间信息的粒度为100ns;再举个例子,时间信息使用的时间单位为微秒时,时间信息的粒度值可以为大于等于1且小于等于**的任意数值,比如时间信息的粒度值为1,此时时间信息的粒度为1us,又比如时间信息的粒度值为10,此时时间信息的粒度为10us。
由此可知,时间信息的粒度可以为1us或10us或50ns或100ns或1ms,此处仅为基于上述描述的示例性列举,具体不做限定,凡是符合上述描述的其它数值和时间单位构成的时间信息的粒度均在本申请的保护范围之内。
接入网设备确定时间信息的方式可以有多种,具体可参见实施例一中的相关描述。
步骤602,接入网设备向终端设备发送第一指示消息,所述第一指示消息包括所述终端设备的时间信息。
此处,接入网设备可以通过广播或单播或组播的方式向终端设备发送第一指示消息,具体不做限定。
具体来说,第一指示消息可以为***消息、RRC消息或MAC CE消息。
进一步地,第一指示消息中还可以包括以下至少一项:时间信息参考点、时间类型。具体可参见实施例一中的描述。
步骤603,终端设备接收接入网设备发送的第一指示消息。
相应地,终端设备可以通过广播或单播或组播的方式从接入网设备接收第一指示消息,并获得时间信息。
步骤604,终端设备根据时间信息同步所述终端设备的时钟。
此处,终端设备可将所述终端设备的UTC更新为所述时间信息中所包括的第一时间类型对应的时间。进一步地,若时间信息中还包括UTC和GPS时间的时间差、UTC和本 地时间的时间差,则终端设备还可以进一步计算出GPS时间、本地时间。
需要说明的是,终端设备可以根据时间信息更新UTC、GPS时间、本地时间中的任一项或任意组合,本申请对此不做限定。
本申请实施例中,由于接入网设备确定的时间信息的粒度为1us或100ns或1ms,即高精度时间单位,从而能够有效提高终端设备进行时间同步的准确度。
实施例六
本申请提供一种时间同步方法,该方法包括:终端设备接收接入网设备发送的第一时间;所述终端设备获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;所述终端设备根据所述第四时间同步所述终端设备的时钟。
进一步地,第一时间包括第二时间和第三时间,所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。在一个示例中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
举个例子,第二时间为12:00:00:00,即12时0分0秒0毫秒,第三时间为3微秒,则第一时间为12:00:00:00:03,即12时0分0秒0毫秒3微秒。再举个例子,第二时间为12:00:00:00,即12时0分0秒0毫秒,第三时间为3微秒5纳秒,则第一时间为12:00:00:00:03:05,即12时0分0秒0毫秒3微秒5纳秒。
本申请实施例中,接入网设备可以通过广播或单播或组播的方式向终端设备发送所述第二时间;以及,接入网设备可以通过广播或单播或组播的方式向终端设备发送所述第三时间。相应地,终端设备可以通过广播或单播或组播的方式接收所述接入网设备发送的所述第二时间;以及,终端设备可以通过广播或单播或组播的方式接收所述接入网设备发送的第三时间。
具体来说,接入网设备可以通过一条消息发送第二时间和第三时间,比如,通过***消息(如扩展SIB16)发送第二时间和第三时间;或者,接入网设备也可以通过不同的消息发送第二时间和第三时间,比如,通过***消息(如SIB16)发送第二时间,而通过其它消息(如RRC消息)发送第三时间,具体不做限定。
本申请中,终端设备接收接入网设备发送的第一时间之前,还包括:终端设备向所述接入网设备发送第一消息,所述第一消息中包括用于请求同步所述终端设备的时钟的指示;
一个可能的实现方式中,所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息。
另一个可能的实现方式中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
本申请实施例中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
本申请实施例中,所述第一时间和第四时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
实施例七
本申请实施例提供一种时间同步方法,该方法包括:终端设备向接入网设备发送第一 消息,所述第一消息用于请求获取第四时间;接入网设备接收到第一消息,获取第四时间,并向所述终端设备发送第四时间;终端设备接收接入网设备发送的第四时间,并根据所述第四时间同步所述终端设备的时钟。
本实施例中,接入网设备接收到第一消息后,可基于第一时间和第一传输时延得到第四时间,如此,终端可直接基于接收到的第四时间进行时钟同步,从而有效降低了终端设备的处理负担,提高时钟同步的准确性。
针对于上述方法流程,本申请实施例提供一种通信装置,该通信装置的具体实现可参照上述方法流程。
基于相同构思,图7为本申请实施例提供一种通信装置的结构示意图,该通信装置可以为终端设备,用于实现图2至图6所示方法实施例中由终端设备执行的相应流程或者步骤,所述通信装置700包括:
收发模块701,用于接收接入网设备发送的第一时间;
处理模块702,用于获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;以及根据所述第四时间同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
在一种可能的设计中,所述终端设备接收接入网设备发送的第一时间,包括:
所述终端设备通过广播或单播的方式接收所述接入网设备发送的所述第二时间和第三时间。
在一种可能的设计中,在接收接入网设备发送的第一时间之前,所述收发模块701还用于:
向所述接入网设备发送第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述处理模块702具体用于:
根据所述第一时间与所述第一传输时延的和,得到所述第四时间。
在一种可能的设计中,所述处理模块702具体用于:
获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
在一种可能的设计中,所述接收模块还用于,接收接入网设备发送的第一消息,所述第一消息中包括所述上行定时提前信息;或者,
所述接收模块还用于,接收接入网设备发送第二消息,所述第二消息包括上行定时提前调整信息,所述处理模块702具体用于,根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
在一种可能的设计中,所述第一时间或者所述第四时间表示的是一个特定的帧、子帧、 slot、mini slot、或者符号的边界的时间。
基于图7,在另一实施例中,所述通信装置700包括:
收发模块701,用于接收接入网设备发送的第一指示消息,所述第一指示消息包括所述终端设备的时间信息,所述时间信息的粒度为1us或100ns或1ms;
处理模块702,用于根据所述时间信息同步所述终端设备的时钟。
基于相同构思,图8为本申请实施例提供一种通信装置的结构示意图,该通信装置可以为接入网设备,用于实现图2至图6所示方法实施例中由接入网设备执行的相应流程或者步骤,所述通信装置800包括:
处理模块802,用于确定第一时间;
收发模块801,用于向终端设备发送第一时间,所述第一时间用于同步所述终端设备的时钟。
在一种可能的设计中,所述第一时间包括第二时间和第三时间;
所述第二时间为毫秒级时间,所述第三时间为微秒级时间和/或纳秒级时间。
在一种可能的设计中,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
在一种可能的设计中,所述接入网设备向终端设备发送第一时间,包括:
所述接入网设备通过广播或单播的方式向所述终端设备发送所述第二时间和所述第三时间。
在一种可能的设计中,在所述接入网设备向终端设备发送第一时间之前,还包括:
所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求同步所述终端设备的时钟;
所述第一消息包括以下至少一项:请求第一时间的消息、请求第三时间的消息;
在一种可能的设计中,所述第一消息包括以下至少一项:所述终端设备需要获取的时间的精度信息、所述终端设备请求的时间类型。
在一种可能的设计中,所述第一消息是以下一项:RRC消息、媒体接入控制控制元素MAC CE消息、用于时间同步的随机接入请求消息。
在一种可能的设计中,所述第一时间表示的是一个特定的帧、子帧、slot、mini slot、或者符号的边界的时间。
基于图8,在另一实施例中,所述通信装置800包括:
处理模块801,用于确定时间信息,所述时间信息的粒度为1us或100ns或1ms;
收发模块802,用于向终端设备发送第一指示消息,所述第一指示消息包括所述时间信息。
需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。在本申请的实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式 体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络接入设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
基于相同构思,图9为本申请实施例提供的又一种通信装置的结构示意图,该通信装置可以为终端设备,用于实现图2至图6所示方法实施例中由终端设备执行的相应流程或者步骤,该通信装置包括:通信模块901、处理器902;
所述通信模块901,用于与其他设备进行通信交互,所述通信模块901可以为RF电路、WiFi模块、通信接口、蓝牙模块等。
所述处理器902,用于实现如图7中处理模块702的功能。
可选的,通信装置900还可以包括:存储器904,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括指令。存储器904可能包含RAM,也可能还包括非易失性存储器,例如至少一个磁盘存储器。处理器902执行存储器904所存放的应用程序,实现上述功能。
一种可能的方式中,通信模块901、处理器902和存储器904可以通过所述总线903相互连接;总线903可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
基于相同构思,图、10为本申请实施例提供的又一种通信装置的结构示意图,该通信装置可以为终端设备,用于实现图2至图6所示方法实施例中由终端设备执行的相应流程或者步骤,该通信装置包括:通信模块1001、处理器1002;
所述通信模块1001,用于与其他设备进行通信交互,所述通信模块1001可以为RF电路、WiFi模块、通信接口、蓝牙模块等。
所述处理器1002,用于实现如图8中处理模块802的功能。
可选的,通信装置1000还可以包括:存储器1004,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括指令。存储器1004可能包含RAM,也可能还包括非易失性存储器,例如至少一个磁盘存储器。处理器1002执行存储器1004所存放的应用程序,实现上述功能。
一种可能的方式中,通信模块1001、处理器1002和存储器1004可以通过所述总线1003相互连接;总线1003可以是PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、 数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本申请是参照根据本申请的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (39)

  1. 一种时间同步方法,其特征在于,所述方法包括:
    终端设备接收接入网设备发送的第一时间;
    所述终端设备获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;
    所述终端设备根据所述第四时间同步所述终端设备的时间。
  2. 根据权利要求1所述的方法,其特征在于,所述第一时间包括第二时间和第三时间;
    所述第二时间为毫秒级时间,所述第三时间为微秒级时间或纳秒级时间。
  3. 根据权利要求2所述的方法,其特征在于,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
  4. 根据权利要求2所述的方法,其特征在于,所述终端设备接收接入网设备发送的第一时间,包括:
    所述终端设备通过广播或单播或组播的方式接收所述接入网设备发送的所述第二时间和第三时间。
  5. 根据权利要求2所述的方法,其特征在于,在所述终端设备接收接入网设备发送的第一时间之前,还包括:
    所述终端设备向所述接入网设备发送第一消息,所述第一消息用于请求同步所述终端设备的时间;
    所述第一消息包括以下至少一项:
    请求第一时间的消息;
    请求第三时间的消息。
  6. 根据权利要求5所述的方法,其特征在于,所述第一消息包括以下至少一项:
    所述终端设备需要获取的时间的精度信息;
    所述终端设备请求的时间类型。
  7. 根据权利要求5所述的方法,其特征在于,所述第一消息是以下一项:
    无线资源控制RRC消息;
    媒体接入控制控制元素MAC CE消息;
    用于时间同步的随机接入请求消息。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述终端设备根据所述第一传输时延和所述第一时间信息获取第四时间,包括:
    所述终端设备根据所述第一时间与所述第一传输时延的和获取所述第四时间。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述终端设备获取第一传输时延,包括:
    所述终端设备获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
  10. 根据权利要求9所述的方法,其特征在于,所述终端设备获取上行定时提前信息包括:
    所述终端设备接收接入网设备发送的第一消息,所述第一消息中包括所述上行定时提 前信息;或者,
    所述终端设备接收接入网设备发送第二消息,所述第二消息包括上行定时提前调整信息,所述终端设备根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
  11. 根据权利要求1至10中任一项所述的方法,其特征在于,所述第一时间或者所述第四时间表示的是一个特定的帧,子帧,时隙slot,微时隙mini slot或者符号的边界的时间。
  12. 一种时间同步方法,其特征在于,所述方法包括:
    接入网设备确定第一时间;
    所述接入网设备向终端设备发送第一时间,所述第一时间用于同步所述终端设备的时间。
  13. 根据权利要求12所述的方法,其特征在于,所述第一时间包括第二时间和第三时间;
    所述第二时间为毫秒级时间,所述第三时间为微秒级时间或纳秒级时间。
  14. 根据权利要求13所述的方法,其特征在于,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
  15. 根据权利要求13所述的方法,其特征在于,所述接入网设备向终端设备发送第一时间,包括:
    所述接入网设备通过广播或单播或组播的方式向所述终端设备发送所述第二时间和所述第三时间。
  16. 根据权利要求13所述的方法,其特征在于,在所述接入网设备向终端设备发送第一时间之前,还包括:
    所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求同步所述终端设备的时间;
    所述第一消息包括以下至少一项:
    请求第一时间的消息;
    请求第三时间的消息。
  17. 根据权利要求16所述的方法,其特征在于,所述第一消息包括以下至少一项:
    所述终端设备需要获取的时间的精度信息;
    所述终端设备请求的时间类型。
  18. 根据权利要求16所述的方法,其特征在于,所述第一消息是以下一项:
    RRC消息;
    媒体接入控制控制元素MAC CE消息;
    用于时间同步的随机接入请求消息。
  19. 根据权利要求12至18中任一项所述的方法,其特征在于,所述第一时间表示的是一个特定的帧,子帧,时隙slot,微时隙mini slot或者符号的边界的时间。
  20. 一种终端设备,其特征在于,所述终端设备包括:
    收发模块,用于接收接入网设备发送的第一时间;
    处理模块,用于获取第一传输时延,并根据所述第一传输时延和所述第一时间获取第四时间;以及根据所述第四时间同步所述终端设备的时间。
  21. 根据权利要求20所述的终端设备,其特征在于,所述第一时间包括第二时间和第三时间;
    所述第二时间为毫秒级时间,所述第三时间为微秒级时间或纳秒级时间。
  22. 根据权利要求21所述的终端设备,其特征在于,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
  23. 根据权利要求21所述的终端设备,其特征在于,所述终端设备接收接入网设备发送的第一时间,包括:
    所述终端设备通过广播或单播或组播的方式接收所述接入网设备发送的所述第二时间和第三时间。
  24. 根据权利要求21所述的终端设备,其特征在于,在接收接入网设备发送的第一时间之前,所述收发模块还用于:
    向所述接入网设备发送第一消息,所述第一消息用于请求同步所述终端设备的时间;
    所述第一消息包括以下至少一项:
    请求第一时间的消息;
    请求第三时间的消息。
  25. 根据权利要求24所述的终端设备,其特征在于,所述第一消息包括以下至少一项:
    所述终端设备需要获取的时间的精度信息;
    所述终端设备请求的时间类型。
  26. 根据权利要求24所述的终端设备,其特征在于,所述第一消息是以下一项:
    RRC消息;
    媒体接入控制控制元素MAC CE消息;
    用于时间同步的随机接入请求消息。
  27. 根据权利要求20至26中任一项所述的终端设备,其特征在于,所述处理模块具体用于:
    根据所述第一时间与所述第一传输时延的和获得所述第四时间。
  28. 根据权利要求20至27中任一项所述的终端设备,其特征在于,所述处理模块具体用于:
    获取上行定时提前信息,并根据所述上行定时提前信息获取所述第一传输时延。
  29. 根据权利要求28所述的终端设备,其特征在于,所述接收模块还用于,接收接入网设备发送的第一消息,所述第一消息中包括所述上行定时提前信息;或者,
    所述接收模块还用于,接收接入网设备发送第二消息,所述第二消息包括上行定时提前调整信息,所述处理模块具体用于,根据前次上行定时提前信息和所述上行定时提前调整信息更新所述终端设备当前的上行定时提前信息。
  30. 根据权利要求20至29中任一项所述的终端设备,其特征在于,所述第一时间或者所述第四时间表示的是一个特定的帧、子帧、时隙slot、微时隙mini slot或者符号的边界的时间。
  31. 一种接入网设备,其特征在于,所述接入网设备包括:
    处理模块,用于确定第一时间;
    收发模块,用于向终端设备发送第一时间,所述第一时间用于同步所述终端设备的时 间。
  32. 根据权利要求31所述的接入网设备,其特征在于,所述第一时间包括第二时间和第三时间;
    所述第二时间为毫秒级时间,所述第三时间为微秒级时间或纳秒级时间。
  33. 根据权利要求32所述的接入网设备,其特征在于,所述第一时间是根据所述第二时间与所述第三时间的和得到的。
  34. 根据权利要求32所述的接入网设备,其特征在于,所述接入网设备向终端设备发送第一时间,包括:
    所述接入网设备通过广播或单播或组播的方式向所述终端设备发送所述第二时间和所述第三时间。
  35. 根据权利要求32所述的接入网设备,其特征在于,在所述接入网设备向终端设备发送第一时间之前,还包括:
    所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求同步所述终端设备的时钟;
    所述第一消息包括以下至少一项:
    请求第一时间的消息;
    请求第三时间的消息。
  36. 根据权利要求35所述的接入网设备,其特征在于,所述第一消息包括以下至少一项:
    所述终端设备需要获取的时间的精度信息;
    所述终端设备请求的时间类型。
  37. 根据权利要求35所述的接入网设备,其特征在于,所述第一消息是以下一项:
    RRC消息;
    媒体接入控制控制元素MAC CE消息;
    用于时间同步的随机接入请求消息。
  38. 根据权利要求31至37中任一项所述的接入网设备,其特征在于,所述第一时间表示的是一个特定的帧、子帧、时隙slot、微时隙mini slot或者符号的边界的时间。
  39. 一种计算机可读存储介质,其特征在于,所述存储介质存储有指令,当所述指令在计算机上运行时,使得计算机实现执行上述1至19任一项所述的时间同步方法。
PCT/CN2017/111470 2017-11-16 2017-11-16 一种时间同步方法及装置 WO2019095241A1 (zh)

Priority Applications (10)

Application Number Priority Date Filing Date Title
PCT/CN2017/111470 WO2019095241A1 (zh) 2017-11-16 2017-11-16 一种时间同步方法及装置
CN201880070286.7A CN111316719B (zh) 2017-11-16 2018-02-13 一种时间同步方法及装置
CA3082719A CA3082719C (en) 2017-11-16 2018-02-13 Time synchronization method and apparatus
KR1020207016798A KR102341070B1 (ko) 2017-11-16 2018-02-13 시간 동기화 방법 및 디바이스
EP18879930.8A EP3703437B1 (en) 2017-11-16 2018-02-13 Time synchronization method and device
ES18879930T ES2941495T3 (es) 2017-11-16 2018-02-13 Método y dispositivo de sincronización horaria
AU2018368222A AU2018368222B2 (en) 2017-11-16 2018-02-13 Time synchronization method and device
EP22216406.3A EP4216620A1 (en) 2017-11-16 2018-02-13 Time synchronization method and apparatus
PCT/CN2018/076780 WO2019095575A1 (zh) 2017-11-16 2018-02-13 一种时间同步方法及装置
US16/874,746 US11310757B2 (en) 2017-11-16 2020-05-15 Time synchronization method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/111470 WO2019095241A1 (zh) 2017-11-16 2017-11-16 一种时间同步方法及装置

Publications (1)

Publication Number Publication Date
WO2019095241A1 true WO2019095241A1 (zh) 2019-05-23

Family

ID=66538445

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2017/111470 WO2019095241A1 (zh) 2017-11-16 2017-11-16 一种时间同步方法及装置
PCT/CN2018/076780 WO2019095575A1 (zh) 2017-11-16 2018-02-13 一种时间同步方法及装置

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076780 WO2019095575A1 (zh) 2017-11-16 2018-02-13 一种时间同步方法及装置

Country Status (8)

Country Link
US (1) US11310757B2 (zh)
EP (2) EP4216620A1 (zh)
KR (1) KR102341070B1 (zh)
CN (1) CN111316719B (zh)
AU (1) AU2018368222B2 (zh)
CA (1) CA3082719C (zh)
ES (1) ES2941495T3 (zh)
WO (2) WO2019095241A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518322A (zh) * 2020-04-10 2021-10-19 华为技术有限公司 无线通信方法和通信装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019159134A1 (en) * 2018-02-16 2019-08-22 Telefonaktiebolaget Lm Ericsson (Publ) Optimized time synchronization for a ue
WO2019191969A1 (zh) 2018-04-04 2019-10-10 华为技术有限公司 通信方法及装置
WO2021070388A1 (ja) * 2019-10-11 2021-04-15 株式会社Nttドコモ 端末
CN112261715B (zh) * 2020-10-16 2023-04-07 锐迪科(重庆)微电子科技有限公司 室分通信***的同步方法、装置及***
CN114745773A (zh) * 2021-01-07 2022-07-12 北京佰才邦技术股份有限公司 一种空口时间同步方法及通讯设备
CN113595667B (zh) * 2021-06-28 2024-05-07 北京中电飞华通信有限公司 一种用于电力终端的时间同步***及其方法、基站
CN117202336A (zh) * 2022-05-31 2023-12-08 华为技术有限公司 一种时间同步方法、通信装置及通信***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050095982A1 (en) * 2003-11-05 2005-05-05 Blanchard Scott D. MSS user equipment and methods for synchronizing MSS user equipment
CN101510801A (zh) * 2009-03-02 2009-08-19 华为技术有限公司 一种时间调整方法、***以及基站和终端
CN102104978A (zh) * 2011-02-23 2011-06-22 电信科学技术研究院 大时延下具有定位功能终端的随机接入方法和终端及基站
CN105554870A (zh) * 2015-12-21 2016-05-04 海能达通信股份有限公司 上行同步方法及移动终端

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9020756B2 (en) * 1999-04-23 2015-04-28 Global Locate, Inc. Method and apparatus for processing satellite positioning system signals
KR100504835B1 (ko) * 2003-05-15 2005-07-29 엘지전자 주식회사 이동 통신 단말기의 지역시간 보정 방법
CN101075848B (zh) * 2007-07-05 2011-07-20 华为技术有限公司 一种微蜂窝网络基站同步的方法、***和基站
CN101146257B (zh) * 2007-10-16 2011-08-31 深圳国人通信有限公司 提高数据传输的同步精度的方法和***
CN101729127A (zh) * 2008-10-17 2010-06-09 中兴通讯股份有限公司 时间同步节点和方法
CN101442799B (zh) * 2008-12-17 2010-12-01 广州市新邮通信设备有限公司 一种实现终端同步网络侧***时间的方法、***及装置
CN102056283B (zh) * 2009-10-27 2013-10-16 电信科学技术研究院 移动通信***中时间同步的方法、***及装置
CN102056284A (zh) * 2009-10-27 2011-05-11 大唐移动通信设备有限公司 时间同步方法、***和设备
CN102083194B (zh) * 2009-11-30 2014-12-03 电信科学技术研究院 时间信息发送与时间同步方法、***和设备
US9392565B2 (en) 2010-03-05 2016-07-12 Samsung Electronics Co., Ltd. Method and system for accurate clock synchronization through interaction between communication layers and sub-layers for communication systems
CN101917761B (zh) * 2010-08-13 2012-11-14 清华大学 一种无线网络中移动传感陌生节点入网的时间同步方法
KR101924830B1 (ko) * 2012-06-19 2019-02-27 삼성전자주식회사 무선 통신 네트워크에서 단말의 동기화 방법 및 장치
CN103796296B (zh) * 2012-11-02 2018-05-08 ***通信集团公司 长期演进***中的时间同步方法、用户设备及基站
RU2612408C1 (ru) * 2013-03-11 2017-03-09 ЭлДжи ЭЛЕКТРОНИКС ИНК. Способ приема информации о синхронизации для прямой связи между пользовательским оборудованием и соответствующее устройство
US9513388B2 (en) * 2014-03-12 2016-12-06 Sercel Method for providing synchronization in a data acquisition system
US10952043B2 (en) * 2015-08-21 2021-03-16 Nec Corporation Vehicle to everything (V2X) communication method and system
CN106656385B (zh) * 2015-10-29 2019-03-05 华为技术有限公司 中继***的空口时间同步方法、设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050095982A1 (en) * 2003-11-05 2005-05-05 Blanchard Scott D. MSS user equipment and methods for synchronizing MSS user equipment
CN101510801A (zh) * 2009-03-02 2009-08-19 华为技术有限公司 一种时间调整方法、***以及基站和终端
CN102104978A (zh) * 2011-02-23 2011-06-22 电信科学技术研究院 大时延下具有定位功能终端的随机接入方法和终端及基站
CN105554870A (zh) * 2015-12-21 2016-05-04 海能达通信股份有限公司 上行同步方法及移动终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518322A (zh) * 2020-04-10 2021-10-19 华为技术有限公司 无线通信方法和通信装置

Also Published As

Publication number Publication date
WO2019095575A1 (zh) 2019-05-23
CA3082719C (en) 2023-02-28
KR102341070B1 (ko) 2021-12-20
CA3082719A1 (en) 2019-05-23
ES2941495T3 (es) 2023-05-23
AU2018368222A1 (en) 2020-06-11
CN111316719A (zh) 2020-06-19
EP3703437A1 (en) 2020-09-02
KR20200083591A (ko) 2020-07-08
EP3703437B1 (en) 2023-01-11
AU2018368222B2 (en) 2021-06-24
US11310757B2 (en) 2022-04-19
EP3703437A4 (en) 2020-12-23
EP4216620A1 (en) 2023-07-26
US20200280943A1 (en) 2020-09-03
CN111316719B (zh) 2022-03-29

Similar Documents

Publication Publication Date Title
WO2019095241A1 (zh) 一种时间同步方法及装置
US11109247B2 (en) Beam failure recovery method, device, and apparatus
WO2018054099A1 (zh) 一种随机接入资源分配和随机接入方法、设备
WO2017028644A1 (zh) 一种mtc ue随机接入的方法及装置
JP2021180506A (ja) ユーザ機器、無線アクセスネットワークの装置、方法
EP3606266A1 (en) Method and device for random access and instruction after random access rollback
EP3557938A1 (en) Method and device for random access
WO2020062071A1 (zh) 一种上行信号的传输方法和设备
WO2014047878A1 (zh) 资源重配方法、基站及用户设备
WO2013104296A1 (zh) 数据的传输方法及装置
WO2021164686A1 (zh) 随机接入过程的处理方法、终端设备及网络设备
US11690033B2 (en) Method and apparatus for time synchronized handover
WO2014032281A1 (zh) 增加辅小区的方法及基站、终端
JP2024510619A (ja) チャネル送信方法、装置、端末、基地局及び記憶媒体
GB2591499A (en) Informing changes in coverage enhancement usage
TW202021312A (zh) 控制功率攀升計數器的方法和終端設備
JP2020505837A (ja) 無線通信ネットワークにおける制御プレーンレイテンシ低減
WO2024098212A1 (zh) 无线通信的方法、终端设备和网络设备
WO2023040957A1 (zh) 由用户设备在处于非激活态时执行的方法以及用户设备
WO2022233257A1 (zh) 通信方法以及相关联的装置、***、介质、产品和芯片
WO2023169362A1 (zh) 一种寻呼方法及其装置
WO2023217025A1 (zh) 旁链路定位方法、信息发送方法、终端、服务器和设备
CN115316025A (zh) 无线通信的方法及装置
JP2024518669A (ja) Sdtを用いるオンデマンドsibの配信
CN117377118A (zh) 由用户设备执行的方法及用户设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17932477

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17932477

Country of ref document: EP

Kind code of ref document: A1