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

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

Info

Publication number
WO2019095575A1
WO2019095575A1 PCT/CN2018/076780 CN2018076780W WO2019095575A1 WO 2019095575 A1 WO2019095575 A1 WO 2019095575A1 CN 2018076780 W CN2018076780 W CN 2018076780W WO 2019095575 A1 WO2019095575 A1 WO 2019095575A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
terminal device
message
access network
network device
Prior art date
Application number
PCT/CN2018/076780
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 CN201880070286.7A priority Critical patent/CN111316719B/zh
Priority to ES18879930T priority patent/ES2941495T3/es
Priority to EP18879930.8A priority patent/EP3703437B1/en
Priority to EP22216406.3A priority patent/EP4216620A1/en
Priority to CA3082719A priority patent/CA3082719C/en
Priority to KR1020207016798A priority patent/KR102341070B1/ko
Priority to AU2018368222A priority patent/AU2018368222B2/en
Publication of WO2019095575A1 publication Critical patent/WO2019095575A1/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 access network device obtains first indication information that is sent by the core network device, where the first indication information includes granularity requirement information of the time information and/or QoS information of the terminal device supporting service, where the access network device is configured according to The first indication information determines time information.
  • 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: obtain first indication information sent by the core network device, where the first indication information 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 information.
  • the first indication message further includes at least one of the following:
  • a time type the time type corresponding to at least one of universal time coordinated (UTC), global positioning system (GPS) time, and local time.
  • UTC universal time coordinated
  • GPS global positioning system
  • 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, and includes:
  • 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 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 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 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 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.
  • an embodiment of the present application provides a time synchronization method, where the method includes:
  • the terminal device obtains the first time according to the first value, where the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, n is greater than 0; when the time unit is n In milliseconds, n is less than 10.
  • the terminal device obtains the first time according to the first value, including:
  • first indication information that is sent by the access network device by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate a time unit of the first time;
  • the terminal device obtains the first time according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit
  • the terminal device obtains the first time according to a product of the first value and the preset time unit.
  • the method further includes:
  • the terminal device receives the second time sent by the access network device by means of broadcast or unicast or multicast, and the time unit of the second time is 10 milliseconds;
  • the terminal device adds the first time to the second time to obtain a third time.
  • the method further includes:
  • the terminal device obtains a fifth time according to the sum of the first time and the preset time, and synchronizes the time of the terminal device according to the fifth time.
  • the terminal device receives the first value sent by the access network device, including:
  • the terminal device receives a unicast message sent by the access network device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the terminal device After receiving the unicast message sent by the access network device, the terminal device further includes
  • the terminal device obtains a first system frame corresponding to the fifth time according to the frame number of the first system frame and the frame number of the second system frame; and the second system frame is a system frame of the first value.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the terminal device receives the first value sent by the access network device, including:
  • the terminal device receives a first system message block sent by the network device, where the first system message block includes the first value.
  • the first value includes values of a plurality of parameters, the plurality of parameters corresponding to different time units;
  • the terminal device obtains the first time according to values of a plurality of parameters included in the first value.
  • it also includes:
  • the terminal device sends a first message to the access network device, where the first message is used to request the access network device to send a first value to the terminal device.
  • the embodiment of the present application provides a time synchronization method, where the method includes:
  • the access network device determines a first value, where the first value is used to indicate a first time, the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, n is greater than 0; When the time unit is n milliseconds, n is less than 10;
  • the access network device sends the first value to the terminal device.
  • the method further includes:
  • the access network device sends the first indication information to the terminal device by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate a time unit of the first time;
  • the first time is obtained by the terminal device according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit, and the first time is obtained by the terminal device according to a product of the first value and the preset time unit.
  • the access network device sends a second time to the terminal device by means of broadcast or unicast or multicast, and the time unit of the second time is 10 milliseconds;
  • the third time is obtained by the terminal device adding the first time and the second time.
  • the access network device sends the first value to the terminal device, including:
  • the access network device sends a unicast message to the terminal device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the first system frame corresponding to the fifth time is obtained by the terminal device according to the frame number of the first system frame and the frame number of the second system frame; the second system frame is that the terminal device receives the The system frame of the first value.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the access network device sends the first value to the terminal device, including:
  • the access network device sends a first system message block to the terminal device, where the first system message block includes the first value.
  • the first value includes a value of a plurality of parameters, and the plurality of parameters correspond to different time units; the first time is that the terminal device obtains according to values of the plurality of parameters of.
  • it also includes:
  • the access network device receives a first message sent by the terminal device, where the first message is used to request the access network device to send a first value to the terminal device.
  • the embodiment of the present application provides a terminal device, where the terminal device has the function of implementing the terminal device in the foregoing eleventh aspect, and the terminal device includes one or more modules corresponding to the foregoing functions.
  • the terminal device includes: a processing module, a transceiver module;
  • the transceiver module is configured to: receive a first value sent by the access network device, where the first value is used to indicate the first time;
  • the processing module is configured to: obtain the first time according to the first value, where the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, n is greater than 0; When the unit is n milliseconds, n is less than 10.
  • the transceiver module is further configured to: receive first indication information that is sent by the access network device by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate the The time unit of the first time;
  • the processing module is specifically configured to: obtain the first time according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit
  • the processing module is specifically configured to: obtain, by the terminal device, the first time according to a product of the first value and the preset time unit.
  • the transceiver module is further configured to: receive, by broadcast or unicast or multicast, a second time sent by the access network device, where the time unit of the second time is 10 milliseconds ;
  • the processing module is specifically configured to: add the first time to the second time to obtain a third time.
  • the processing module is further configured to: obtain a fifth time according to the sum of the first time and the preset time, and synchronize the time of the terminal device according to the fifth time.
  • the transceiver module is specifically configured to: receive a unicast message sent by the access network device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the processing module is further configured to: obtain a first system frame corresponding to the fifth time according to the frame number of the first system frame and the frame number of the second system frame; and the second system frame is the first value System frame.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the transceiver module is specifically configured to: receive a first system message block sent by the network device, where the first system message block includes the first value.
  • the first value includes values of a plurality of parameters, the plurality of parameters corresponding to different time units;
  • the processing module is specifically configured to: obtain the first time according to values of the plurality of parameters included in the first value.
  • the transceiver module is further configured to: send a first message to the access network device, where the first message is used to request the access network device to send the first message to the terminal device Value.
  • the embodiment of the present application provides an access network device, where the access network device has the function of implementing the access network device in the foregoing twelfth aspect, where the access network device includes one or more functions Corresponding modules.
  • the access network device includes: a processing module, a transceiver module.
  • the processing module is configured to: determine a first value, where the first value is used to indicate a first time, and the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, where n is greater than 0; when the time unit is n milliseconds, n is less than 10;
  • the transceiver module is configured to: send the first value to the terminal device.
  • the transceiver module is further configured to send the first indication information to the terminal device by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate the first time Time unit
  • the first time is obtained by the terminal device according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit, and the first time is obtained by the terminal device according to a product of the first value and the preset time unit.
  • the transceiver unit is further configured to: send a second time to the terminal device by means of broadcast or unicast or multicast, where the time unit of the second time is 10 milliseconds;
  • the third time is obtained by the terminal device adding the first time and the second time.
  • the transceiver module is specifically configured to: send a unicast message to the terminal device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the first system frame corresponding to the fifth time is obtained by the terminal device according to the frame number of the first system frame and the frame number of the second system frame; the second system frame is that the terminal device receives the The system frame of the first value.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the transceiver module is specifically configured to: send a first system message block to the terminal device, where the first system message block includes the first value.
  • the first value includes a value of a plurality of parameters, and the plurality of parameters correspond to different time units; the first time is that the terminal device obtains according to values of the plurality of parameters of.
  • the transceiver module is further configured to: receive a first message sent by the terminal device, where the first message is used to request the access network device to send a first value to the terminal device .
  • the embodiment of the present application provides a communication device, where the communication device may be a terminal device, and the communication device has a function of implementing the foregoing method of the eleventh aspect;
  • 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 thirteenth 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 method of the foregoing twelfth aspect;
  • the communication apparatus includes: a communication module, and 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 fourteenth 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. 11 is a schematic flowchart of a time synchronization method according to Embodiment 1 of the present application.
  • Figure 11b is a schematic diagram of a process of determining a time information reference point
  • Figure 11c is a schematic diagram of time information without carrying the year, month, and day;
  • FIG. 12 is a schematic flowchart of a time synchronization method according to Embodiment 2 of the present application.
  • Figure 12b is a schematic diagram of the expanded SIB16
  • Figure 12c is a schematic diagram showing the time unit of the first time as a time unit of some inherent length
  • Figure 12d is a first numerical diagram of an explicit mode indication
  • Figure 12e is a first numerical diagram of another explicit mode indication
  • FIG. 13 is a schematic flowchart of a time synchronization method according to Embodiment 4 of the present application.
  • FIG. 14 is a schematic flowchart of a time synchronization method according to Embodiment 4 of the present application.
  • FIG. 15 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of an access network device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of a 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 (eg, 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 eg, 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.
  • the ending boundary corresponds 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 trigger condition for the access network device to send the time information to the terminal device by using the first indication message 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 (QoS) of the terminal device supporting the service. Information, the type of time the terminal device requested. Further, the access network device determines time information according to the request message.
  • the request message may include at least one of: requirement information of time information, granularity requirement information of time information, and quality of service (QoS) of the terminal device supporting the service.
  • QoS quality of service
  • 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 information from the core network device, where the first indication information includes the granularity requirement information of the time information and/or the QoS information of the terminal device supporting service. Further, the access network device determines time information according to the first indication information.
  • 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 information, 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 information, 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
  • 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 information, 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 information, 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 message, or may not respond to the request message sent by the terminal device.
  • 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 information.
  • Step 301b The core network device receives the first request message, and sends the first indication information to the access network device.
  • the first indication information 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 information sent by the core network device, and determines the time information according to the first indication information.
  • 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 be carried by an RRC message or a MAC CE message.
  • 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 numbers are only an exemplary representation of the execution process, and do not constitute a specific limitation on the execution order.
  • 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 further includes a time difference between the UTC and the GPS time, and a time difference between the UTC and the local time, the terminal device may 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.
  • the embodiment of the present application provides a time synchronization method, where the method includes: the terminal device sends a first message to the access network device, where the first message is used to request to acquire the fourth time; and the access network device receives the first message, Obtaining a fourth time, and sending a fourth time to the terminal device; the terminal device receives the fourth time sent by the access network device, and synchronizes 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 the time of a particular frame, subframe, slot, mini slot, or boundary of a 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 instructions include a plurality of 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 all or part of the steps of the methods described in various embodiments of the present application.
  • 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 access network device broadcasts time through the SIB16, such as UTC, etc., and the terminal device synchronizes the time of the terminal device according to the received time.
  • the time unit of the time for the access network device to broadcast is 10 ms, the time synchronization is not accurate enough.
  • the embodiment of the present application further provides a time synchronization method, including: determining, by the access network device, time information, and The terminal device sends the time information; correspondingly, the terminal device receives the time information sent by the access network device, and obtains the first time according to the time information, and the terminal device can synchronize the time of the terminal device according to the first time. .
  • the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, n>0, when the time unit is n milliseconds, n ⁇ 10, so that the first time
  • the high precision can effectively improve the accuracy of time synchronization.
  • the time unit here can also be a time unit or time granularity or time accuracy.
  • the time unit in the first time in the embodiment of the present application may also be a fixed-length time unit, such as n TTIs, n slots, n mini-slots, n subframes, n frames, and n symbols. Etc., n>0, the specific is not limited.
  • the time information indicates the first time
  • the time information may be the first value.
  • the first value may be 2
  • the terminal device may further receive the first indication information from the access network device, where the first indication information is used to indicate a time unit of the first time, such as 3 microseconds;
  • the terminal device may obtain the first time as 6 microseconds, according to the first value and the time unit of the first time (for example, multiplying the first value and the time unit of the first time: 2*3 microseconds), It can be understood that the first time is a high-precision part of a certain time.
  • the first value may be 2, and the time unit of the first time is a preset time unit (which may be determined by the access network device and the terminal device, or specified by the protocol), such as 4 microseconds.
  • the first time can be understood as a certain point in time: for example, January 1, 2017, 1:10, 5, 1 millisecond, 1 microsecond.
  • the first value is a bit string, and the high-order to low-order bits respectively represent year, month, day, hour, minute, second, millisecond, microsecond, etc., year, month, day, hour, minute, second, millisecond, microsecond respectively Represented by different groups of bits, each bit group has a fixed bit, for example, the bit group indicating the year is the upper 16 bits, and sequentially, the bit group indicating the month is the next 4 bits (the 5th bit to the 8th bit of the high bit),
  • the bit group indicating the day is 5 bits (the 9th bit to the 13th bit of the upper bit)
  • the bit group at the time of presentation is 5 bits (the 14th bit to the 18th bit of the upper bit)
  • the bit group indicating the bit is 6 bits (the 14th bit to the 18th bit of the upper bit)
  • the second is 6bit (the
  • the fifth time indicated by the first time is 16:1 minute, 36 seconds, 1 millisecond, and 1 microsecond on August 4, 2048, when the first time is directly equal to the fifth time.
  • the first time is the full time.
  • the terminal device can directly use the time of synchronizing the terminal device at the first time.
  • the first time is 8:1:1, 1 second, 1 microsecond on February 12, 2017, and the terminal device can update the time of the terminal device to the first time.
  • the first time is the time of the high precision part, and further, the first time may be the time less than 10 milliseconds.
  • the terminal device can receive the second time sent by the access network device (in a specific implementation, the access network device can send the second time by using unicast or broadcast or multicast), and the time unit of the second time It is 10 milliseconds, and combined with the first time and the second time (for example, adding the first time and the second time) to obtain the third time.
  • the first time is a time of less than 10 milliseconds in the third time.
  • the first time that the terminal device obtains is 6 microseconds
  • the second time is 8:1 minute, 1 second, and 10 milliseconds.
  • the second time can be obtained from the SIB16, and the third time is 8:1. Divided into 1 second, 10 milliseconds, and 6 microseconds.
  • the terminal device may also acquire a preset time, which may be a time point specified by the protocol (for example, may be a certain time point in the past), such as 0:00:00 on February 12, 2017, thus, The terminal device adds the third time to the preset time to obtain the fifth time, February 12, 2017, 8:1, 1 second, 10 milliseconds, 6 microseconds, and the time of the terminal device can be obtained.
  • the synchronization is 8:1:1, 10, and 10 microseconds on February 12, 2017.
  • the terminal device can also obtain the fifth time in combination with the timing advance.
  • the first time here can be understood as a time period or a time length or a time domain length.
  • the first time is equal to 0, 0, 0, 1 hour, 1 minute, 1 second, 1 millisecond, 1 microsecond (or 366,100, 1000 microseconds), and the terminal device can be based on the first time and a preset time (the preset time is a time) Point or time, for example, January 1, 2017 0:00:00, the sum of the fifth time is January 1, 2017, 1:1, 1 minute, 1 second, 1 microsecond (the same, the terminal equipment also The fifth time can be obtained in conjunction with the timing advance):
  • the preset time may be the time origin of the UTC time, 0:00:00 on January 1, 1900, or the time origin of the GPS time, January 6, 1980, 0:00:00.
  • the value of the high-precision part is 0 (0 microseconds and 0 nanoseconds) in the calculation.
  • a plurality of possible operations may be performed according to the fifth time, for example, the time of the terminal device is synchronized according to the fifth time.
  • the fifth time is the GPS time
  • the preset time is the time origin of the GPS time, January 6, 1980, 0:00:00.
  • the time origin represents the starting point of time.
  • FIG. 11 is a schematic flowchart of a time synchronization method according to Embodiment 1 of the present application. As shown in Figure 11a, it includes:
  • Step 1101 the access network device determines time information, where the time information includes a first value, where the first value is used to indicate a first time, and the time unit of the first time is n microseconds or n nanoseconds or n Femtosecond or n milliseconds.
  • the access network device can determine the time information according to its own capabilities. For example, the time unit supported by the capability of the access network device is 1 microsecond, and the time unit of the first time indicated by the first value is 1 microsecond.
  • step 1100 the terminal device sends the first message.
  • the access network device may determine the first value according to the first message sent by the terminal device.
  • the first message is used to request the access network device to send the first value to the terminal device.
  • the first message may indicate a time unit of the first value required by the terminal; and may also indicate whether the message where the first value is located needs to be encrypted and/or integrity protected; and may also indicate a time standard that the terminal device needs to perform time synchronization. For example, GPS time or UTC time.
  • Step 1102 The access network device sends a unicast message to the terminal device, where the unicast message includes the first value.
  • the unicast message may be an RRC message or a MAC CE or a DCI, which is not limited.
  • Step 1103 The terminal device receives the unicast message sent by the access network device, and obtains the first value.
  • the unicast message may further include a frame number of the first system frame, so that the terminal device may obtain the system frame corresponding to the fifth time according to the frame number of the first system frame and the frame number of the second system frame, where
  • the second system frame is a system frame in which the terminal device receives the first value (that is, a system frame for successfully transmitting a unicast message carrying a first value).
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame, and the time information reference point of the first system frame that can be regarded as a fifth time is used to indicate the fifth time obtained by the terminal device. Corresponding time domain location.
  • the distance between the two system frames may refer to a time domain interval (calculated in frames) of the frame header of two frames or a time interval of the frame ends of two frames.
  • the time information reference point is a frame header or a frame tail boundary of the first frame; the frame number of the first frame is the first system frame number, and the first system frame is A system frame that is closest to the second system frame and has a frame number equal to the first system frame number. Further, when the frame number of the first system frame is the same as the frame number of the second system frame, the first system frame is the second system frame.
  • the terminal device receives the first value in the SFN6, that is, the frame number of the system frame where the first value is located is 6, indicating that the frame number of the second system frame is 6, if the first system frame indicated in the unicast message The frame number is 8, and the first system frame is the nearest SFN8 after SFN6.
  • the distance between two system frames may refer to a time domain interval (calculated by the number of frames) of the frame header of two frames or a time interval of the frame ends of two frames.
  • the (time domain position or position) is the frame header or the end of the system frame of the system frame whose frame number is the first frame number which is closest to the second system frame before the second system frame.
  • the time reference point for the first time For example, the frame number of the first system frame carried in the unicast message is 990, and the frame number of the UE successfully receiving the unicast message is 25, and the UE finds a frame 990 closest to the 25 frames in front of the time domain position of the 25 frames ( The time domain position is 990 frames of the previous 1024 frame period) and it is determined that the first time corresponds to the time corresponding to the frame header or the frame tail boundary of the 990 frame.
  • the time frame or the end of the frame of the system frame whose frame number is the first frame number closest to the second system frame after the second system frame is the time of the first time Reference point.
  • the frame number of the first system frame carried in the unicast message is 990
  • the frame number of the UE successfully receiving the unicast message is 25, and the UE finds a frame 990 closest to the 25 frames after the time domain position of the 25 frames ( The time domain position is 990 frames of the 1024 frame period) and it is determined that the first time corresponds to the time corresponding to the frame header or the end of the frame of the 990 frame.
  • Example 3 (time domain location or location) includes a frame header or a frame tail boundary of a system frame whose frame number is the first frame number before and after the second system frame, and the frame number is the first frame number is the first time Time reference point.
  • the frame number of the first system frame carried in the unicast message is 990
  • the nearest 990 frame is the 990 frame with the time domain position being the previous 1024 frame period. And determining that the first time corresponds to the frame header or the end of the frame of the 990 frame.
  • Step 1104 The terminal device obtains the first time according to the first value. Further, the terminal device may further obtain the fifth time according to the first time, and synchronize the time of the terminal device according to the fifth time.
  • the first value indicates the first time.
  • the time unit of the first time is preset, for example, the access network device and the terminal device pre-negotiate the time unit of the first time, and at this time, the first value sent by the access network device is available for And indicating the value of the first time; correspondingly, after receiving the first value, the terminal device may obtain the first time according to the first value indicated by the indication information and the time unit of the preset first time.
  • the preset time unit is 1 microsecond
  • the time unit of the first time is explicitly indicated by the first value, and at this time, the first value may include two parts of values (for convenience of description, the first part value and the second part value are referred to as And wherein the first partial value is used to indicate the time unit of the first time, and the second partial value is used to indicate the value of the first time.
  • the terminal device may obtain the first time according to the value of the first time indicated by the value of the first part and the time unit of the first time indicated by the value of the second part.
  • the first partial value may include any one of 0, 1, and 2, and 0, 1, and 2 respectively correspond to different time precisions, and the specific correspondence may be preset.
  • the time unit corresponding to 0 is 1 In microseconds
  • the corresponding time unit of 1 is 1 ns
  • the corresponding time unit of 2 is 10 ns.
  • the first partial value includes a total of 4 bits, the first bit indicates whether the time unit of 1 ms is supported, the second bit indicates whether the time unit of 10 microseconds is supported, and so on. Assume that 1 indicates support and 0 indicates no support. When the terminal device determines that the first partial value is 1110, it indicates that the time unit transmitted by the access network device is 1 microsecond. Since the last 1-bit bit is 0, it indicates that the time unit of 1 ns is not supported.
  • the first value is used to indicate the first partial value of the time unit
  • such a manner of indicating the time unit may be referred to as a display mode.
  • the first time value may be indicated by the first value, and the time unit of the first time may be indicated by the separate indication information.
  • the first value and the indication information may be different.
  • the message is sent, specifically not limited.
  • the time unit of the first time is implicitly indicated by the first value, and at this time, the first value may include values of a plurality of parameters, and the plurality of parameters correspond to different time units.
  • the terminal device may obtain the multiple times according to the value of the multiple parameters and the time unit corresponding to the multiple parameters, and then obtain the first time according to the sum of the multiple times.
  • the values of the multiple parameters may be carried by multiple fields respectively.
  • the values carried by the four domains are used to indicate the time unit of the first time, that is, the time unit corresponding to the domain 1 is 10 ms, the time unit corresponding to the domain 2 is 1 ms to 10 ms, and the time unit corresponding to the domain 3 is 1 microsecond - 1 ms, the time unit corresponding to domain 3 is 1 ns - 1 microsecond. If a domain does not carry a value, for example, the domain 3 does not carry a value, the terminal device may determine that the time unit of the first time is the time unit corresponding to the domain 2, and does not continue to parse the domain 4, thereby effectively saving processing overhead. .
  • the access network device may send the complete year, month, day, minute, and second to the first time of the microsecond by the unicast message when the year, month, and day change (in the first time) The unit is in the case of microseconds.
  • the unicast message is sent to the terminal device for the time, minute, and second, and the time unit of the year, month, and day is no longer sent.
  • the terminal device can obtain the complete first time in combination with the previously stored year, month and day.
  • the unicast message may carry an indication information (for example, 1 bit), where the indication information is used to indicate a time unit that does not carry the year, month, and day.
  • the terminal device can obtain the previously stored year, month, and day according to the indication information, as shown in FIG. 11c, which is a time information diagram of not carrying the year, month, and day.
  • the time unit in which the access network device does not transmit the year and month may be used when the year and month have not changed, or It may also be that when the year does not change, the access network device does not send the time unit of the year, and there may be multiple possibilities, which are not enumerated one by one.
  • FIG. 12 is a schematic flowchart of a time synchronization method according to Embodiment 2 of the present application. As shown in Figure 12a, it includes:
  • Step 1201 The access network device determines a first value, where the first value is used to indicate the first time, and the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds.
  • Step 1202 The access network device sends a first system message block to the terminal device, where the first system message block includes the first value.
  • the first system message block may be the SIB 16, or may be another system message block, which is not limited.
  • Step 1203 The terminal device receives the first system message block sent by the access network device, and obtains the first value.
  • Step 1204 The terminal device obtains the first time according to the first value, and further, obtains the fifth time according to the first time, and synchronizes the time of the terminal device according to the fifth time.
  • the first value may be carried in the SIB16, and the domain carrying the first value is all in the domain of r15.
  • the manner in which the first value indicates the first time may be referred to in the first embodiment. description of. That is to say, in this implementation manner, the difference between the second embodiment and the implementation one is that the second embodiment receives the first value through the first system message block, and the first embodiment uses the unicast message. The first value is received, and anything other than this difference can be referred to each other.
  • the time information includes a first value, where the first value includes the first information and the second information, where the first information is used to indicate the second time, and the second information is used to indicate the third time
  • the time unit of the second time may be y milliseconds
  • the time unit of the third time may be n microseconds or n nanoseconds or n femtoseconds or n milliseconds.
  • the first system message block is the SIB16
  • the domain carrying the first information is the domain of the r11 in the original SIB16. Therefore, the time unit obtained according to the first information is the time unit. 10ms, the domain carrying the second information is the domain of the extended r15. That is to say, the access network device can extend a new domain based on the original SIB16, and the new domain carries the second information. For example, if the time unit of the first time is 1 microsecond, the new domain carries The third time indicated by the second information may be between 1 microsecond and 10 ms, as shown in FIG. 12b, which is a schematic diagram of the extended SIB16.
  • the terminal device can obtain the second time with the time unit being 10 ms in combination with the original SIB16, and then obtain the third time in which the time unit in the range of 10 ms is 1 microsecond granularity according to the newly added domain, and combine the two to obtain the first time ( That is timeInfoUTC-r11*10ms+timeInfo-r15*1 microseconds, which is accurate to 1 microsecond time unit.
  • the first time obtained by the terminal device is timeInfoUTC-r11*10ms+timeInfo-r15. *1Ts, where 1 Ts is 1/30.72 ns, which is approximately equal to 32.55 ns.
  • the newly added timeInfo-r15 may also be broadcasted by a new SIB (for example, SIB20), which is the second system message block and the third system described in the third embodiment.
  • SIB20 is the second system message block and the third system described in the third embodiment.
  • a message block is used to send time information.
  • the terminal device needs to combine the first information carried by the original SIB16 and the second information carried by the newly added domain to obtain the first time. Therefore, the solution requires the terminal device of the r15.
  • the characteristics of SIB16 in r11 must be supported, that is, the relevant domain of r11 must be listened to.
  • the manner in which the second information indicates the third time may be multiple.
  • the first time value described in the first embodiment may be used to indicate the first time, for example, as shown in FIG. 12d.
  • FIG. 12e is a first numerical diagram of another explicit mode indication. In FIG. 12e, the time unit is indicated by 4 bits, and details are not described herein.
  • the manner in which the first information indicates the second time may be implemented in the existing implementation manner, or may be referred to the manner described in the first embodiment, and details are not described herein again.
  • the first value is broadcasted by using a system message block, and the first value is obtained by the terminal device by parsing a system message block, and the first time indicated by the first value has high precision, thereby being capable of Ensure the accuracy of time synchronization of the terminal equipment.
  • FIG. 13 is a schematic flowchart of a time synchronization method according to Embodiment 4 of the present application. As shown in Figure 13, it includes:
  • step 1301 the access network device determines time information.
  • the time information includes a first value
  • the first value may include the first information and the second information, wherein the first information is used to indicate the second time, and the second information is used to indicate the third time.
  • the time unit of the second time may be y milliseconds
  • the time unit of the third time may be n microseconds or n nanoseconds or n femtoseconds or n milliseconds.
  • Step 1302 The access network device sends a first system message block and a second system message block to the terminal device, where the first system message block includes first information, and the first system message block includes second information.
  • Step 1303 The terminal device receives the first system message block and the second system message block sent by the access network device, and obtains the second time according to the first information in the first system message block, and according to the second system message block.
  • the second message gets the third time.
  • Step 1304 The terminal device obtains the first time according to the second time and the third time, and synchronizes the time of the terminal device according to the first time.
  • the first system message block may be the SIB16
  • the second system message block may be other system message blocks, such as the SIB20.
  • the domain carrying the first information is the domain of r11 in the original SIB16
  • the domain carrying the second information may be the domain of the new r15 in the SIB20.
  • the manner in which the first information indicates the second time and the manner in which the second information indicates the third time may be various. For details, refer to the description in the second embodiment, and details are not described herein again.
  • the difference between the third embodiment and the second embodiment is that in the second embodiment, the time information is sent through a system message block, and in the second embodiment, the time information is sent through two system message blocks, except for the difference. Other than that, it can be cross-referenced.
  • FIG. 14 is a schematic flowchart of a time synchronization method according to Embodiment 4 of the present application. As shown in Figure 14, it includes:
  • step 1401 the access network device determines time information.
  • the time information includes a first value
  • the first value may include the first information and the second information, wherein the first information is used to indicate the second time, and the second information is used to indicate the third time.
  • Step 1402 The access network device sends a system message and a unicast message to the terminal device, where the system message includes the first information, and the unicast message includes the second information.
  • the unicast message may be an RRC message or a MAC CE, which is not limited.
  • Step 1403 The terminal device receives the system message and the unicast message sent by the access network device, obtains the second time according to the first information in the system message, and obtains the third time according to the second information in the unicast message.
  • Step 1404 The terminal device obtains the first time according to the second time and the third time, and synchronizes the time of the terminal device according to the first time.
  • the access network device may broadcast the first information by using the original SIB16, and send the second information by using the unicast message, which requires the terminal device to listen and carry the first information before receiving the second information of the unicast message.
  • System messages for information, including connected devices, also need to be listened to.
  • the time unit of the first time is 1 microsecond
  • the time unit of the third time indicated by the second information carried by the unicast message is between 1 microsecond and 10 milliseconds
  • the first information indication carried by the system message is The time unit of the second time is 10 milliseconds
  • the time unit of the third time indicated by the second information carried by the unicast message is between 1 microsecond and 20 microseconds
  • the first information carried by the system message indicates the first The time unit of the two time is 20 microseconds.
  • the unicast message may further carry a time information reference point, where the time information reference point is consistent with the time information reference point carried in the system message.
  • the time information reference point carried by the unicast message may be a time information reference point corresponding to the system currently received by the terminal device or currently stored, for example, the terminal device receives the system message in SFN1 (egSIB16 or other)
  • the first information in the SIB is the second information of the unicast message received by the SFN6, and the time information reference point corresponding to the second information of the unicast message is the time information reference point corresponding to the first information in the system message.
  • the manner in which the second information indicates the third time may be multiple.
  • the first time value described in the first embodiment may be used to indicate the first time. Narration.
  • the manner in which the first information indicates the second time may be in the existing implementation manner, or the manner in which the first time is indicated by the time information described in the first embodiment may be used, and details are not described herein again.
  • Embodiments 1 to 4 are different implementation manners of the time synchronization method provided by the present application, which are all based on the same inventive concept, and other contents except the differences between the different embodiments may be mutually referred to. .
  • the embodiment of the present application further provides a terminal device and an access network device.
  • a terminal device and an access network device For the specific implementation of the terminal device and the access network device, refer to the foregoing method flow.
  • FIG. 15 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device is configured to perform the process steps performed by the terminal device in the foregoing Embodiments 1 to 4, as shown in FIG.
  • a processing module 1501 and a transceiver module 1502 are included.
  • the transceiver module 1502 is configured to: receive a first value sent by the access network device, where the first value is used to indicate the first time;
  • the processing module 1501 is configured to: obtain the first time according to the first value, where the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, and n is greater than 0; When the time unit is n milliseconds, n is less than 10.
  • the transceiver module 1502 is further configured to: receive, by the access network device, first indication information that is sent by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate The time unit of the first time;
  • the processing module 1501 is specifically configured to: obtain the first time according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit
  • the processing module 1501 is specifically configured to: obtain, by the terminal device, the first time according to a product of the first value and the preset time unit.
  • the transceiver module 1502 is further configured to: receive, by broadcast or unicast or multicast, a second time sent by the access network device, where the time unit of the second time is 10 millisecond;
  • the processing module 1501 is specifically configured to: add the first time to the second time to obtain a third time.
  • the processing module 1501 is further configured to: obtain a fifth time according to the sum of the first time and the preset time, and synchronize the time of the terminal device according to the fifth time.
  • the transceiver module 1502 is specifically configured to: receive a unicast message sent by the access network device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the processing module 1501 is further configured to: obtain a first system frame corresponding to the fifth time according to the frame number of the first system frame and the frame number of the second system frame; and the second system frame is the first value System frame.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the transceiver module 1502 is specifically configured to: receive a first system message block sent by the network device, where the first system message block includes the first value.
  • the first value includes values of a plurality of parameters, the plurality of parameters corresponding to different time units;
  • the processing module 1501 is specifically configured to: obtain the first time according to values of the plurality of parameters included in the first value.
  • the transceiver module 1502 is further configured to: send a first message to the access network device, where the first message is used to request the access network device to send the first message to the terminal device A value.
  • FIG. 16 is a schematic structural diagram of an access network device according to an embodiment of the present disclosure, where the access network device is configured to perform the process steps performed by the access network device in the foregoing Embodiments 1 to 4, as shown in FIG.
  • the access network device 1600 includes a processing module 1601 and a transceiver module 1602.
  • the processing module 1601 is configured to: determine a first value, where the first value is used to indicate a first time, where the time unit of the first time is n microseconds or n nanoseconds or n femtoseconds or n milliseconds, n Greater than 0; when the time unit is n milliseconds, n is less than 10;
  • the transceiver module 1602 is configured to: send the first value to the terminal device.
  • the transceiver module 1602 is further configured to: send the first indication information to the terminal device by using a system message or a unicast message or a multicast message, where the first indication information is used to indicate the first Time unit of time;
  • the first time is obtained by the terminal device according to a product of the first value and a time unit of the first time.
  • the time unit of the first time is a preset time unit, and the first time is obtained by the terminal device according to a product of the first value and the preset time unit.
  • the transceiver unit is further configured to: send a second time to the terminal device by means of broadcast or unicast or multicast, where the time unit of the second time is 10 milliseconds;
  • the third time is obtained by the terminal device adding the first time and the second time.
  • the transceiver module 1602 is specifically configured to: send a unicast message to the terminal device, where the unicast message includes the first value.
  • the unicast message further includes a first system frame number
  • the first system frame corresponding to the fifth time is obtained by the terminal device according to the frame number of the first system frame and the frame number of the second system frame; the second system frame is that the terminal device receives the The system frame of the first value.
  • the fifth time corresponds to a frame header boundary or a frame tail boundary of the first system frame
  • the first system frame is a system frame that is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is in front of the second system frame and is closest to the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is a system frame that is closest to the second system frame after the second system frame and has a frame number equal to a frame number of the first system frame;
  • the first system frame is the second system frame.
  • the transceiver module 1602 is specifically configured to: send a first system message block to the terminal device, where the first system message block includes the first value.
  • the first value includes a value of a plurality of parameters, and the plurality of parameters correspond to different time units; the first time is that the terminal device obtains according to values of the plurality of parameters of.
  • the transceiver module 1602 is further configured to: receive a first message sent by the terminal device, where the first message is used to request the access network device to send the first message to the terminal device Value.
  • FIG. 17 is a schematic structural diagram of a communication device according to an embodiment of the present disclosure, where the communication device may be a terminal device or an access network device; the communication device includes: a communication module 1701, a processor 1702;
  • the communication module 1701 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 1702 is configured to implement the functions of the processing module 1501 in FIG. 15 or the processing module 1601 in FIG.
  • the communication device may further include: a memory 1704, configured to store a program or the like.
  • the program can include program code, the program code including instructions.
  • the memory 1704 may include a random access memory (RAM), and may also include a 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 1701, the processor 1702, and the memory 1704 can be connected to each other through a bus 1703;
  • the bus 1703 can be a peripheral component interconnect (PCI) bus or an extended industry standard structure (extended industry) Standard architecture, EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard structure
  • the bus can be divided into an address bus, a data bus, a control bus, and the like.
  • 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 Transmission to another website site, computer, server or data center by means of wire (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or system (eg infrared, system, microwave, etc.).
  • 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

一种时间同步方法及装置
本申请要求于2017年11月16日提交中国受理局、申请号为PCT/CN2017/111470、发明名称为“一种时间同步方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及无线通信技术领域,特别涉及一种时间同步方法及装置。
背景技术
随着长期演进(long term evolution,LTE)进入规模商用阶段,面向未来的第五代(the5th 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信息;
所述处理模块具体用于:根据所述第一指示信息确定时间信息。
在一种可能的设计中,所述第一指示消息还包括以下至少一项:
时间信息参考点;
时间类型,所述时间类型至少对应协调世界时(universal time coordinated,UTC),全球定位系统(global positioning system,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总线等。所述总线可以分为地址总线、数据总线、控制总线等。
第十一方面,本申请实施例提供一种时间同步方法,所述方法包括:
终端设备接收接入网设备发送的第一数值,所述第一数值用于指示第一时间;
所述终端设备根据所述第一数值得到所述第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10。
在一种可能的设计中,所述终端设备根据所述第一数值得到所述第一时间,包括:
所述终端设备接收接入网设备通过系统消息或单播消息或组播消息发送的第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积,得到所述第一时 间。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元;
所述终端设备根据所述第一数值得到所述第一时间,包括:
所述终端设备根据所述第一数值和所述预设的时间单元的乘积,得到所述第一时间。
在一种可能的设计中,所述终端设备根据所述第一数值得到所述第一时间之后,还包括:
所述终端设备通过广播或单播或组播的方式接收所述接入网设备发送的第二时间,所述第二时间的时间单元为10毫秒;
所述终端设备将所述第一时间与第二时间相加得到第三时间。
在一种可能的设计中,所述方法还包括:
所述终端设备根据所述第一时间与预设时间之和得到第五时间,根据所述第五时间同步所述终端设备的时间。
在一种可能的设计中,所述终端设备接收接入网设备发送的第一数值,包括:
所述终端设备接收接入网设备发送的单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
所述终端设备接收接入网设备发送的单播消息之后,还包
所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到第五时间对应的第一系统帧;所述第二系统帧为所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述终端设备接收接入网设备发送的第一数值,包括:
所述终端设备接收网络设备发送的第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;
所述终端设备根据所述第一数值得到所述第一时间,包括:
所述终端设备根据所述第一数值包括的多个参数的值得到所述第一时间。
在一种可能的设计中,还包括:
所述终端设备向所述接入网设备发送第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
第十二方面,本申请实施例提供一种时间同步方法,所述方法包括:
接入网设备确定第一数值,所述第一数值用于指示第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10;
所述接入网设备向终端设备发送第一数值。
在一种可能的设计中,所述方法还包括:
所述接入网设备通过系统消息或单播消息或组播消息向终端设备发送第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
所述第一时间是所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积得到的。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元,所述第一时间是所述终端设备根据第一数值和所述预设的时间单元的乘积得到的。
在一种可能的设计中,所述接入网设备通过广播或单播或组播的方式向所述终端设备发送第二时间,所述第二时间的时间单元为10毫秒;
第三时间是所述终端设备将所述第一时间与第二时间相加得到的。
在一种可能的设计中,所述接入网设备向终端设备发送第一数值,包括:
所述接入网设备向所述终端设备发送单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
第五时间对应的第一系统帧是所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到的;所述第二系统帧为所述终端设备接收到所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述接入网设备向终端设备发送第一数值,包括:
所述接入网设备向所述终端设备发送第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;所述第一时间是所述终端设备根据所述多个参数的值得到的。
在一种可能的设计中,还包括:
所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
第十三方面,本申请实施例提供一种终端设备,该终端设备具有实现上述第十一方面中终端设备的功能,该终端设备包括一个或多个与上述功能相对应的模块。在一种可能的设计中,该终端设备包括:处理模块、收发模块;
所述收发模块用于:接收接入网设备发送的第一数值,所述第一数值用于指示第一时间;
所述处理模块用于:根据所述第一数值得到所述第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10。
在一种可能的设计中,所述收发模块还用于:接收接入网设备通过系统消息或单播消息或组播消息发送的第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
所述处理模块具体用于:根据所述第一数值和所述第一时间的时间单元的乘积,得到所述第一时间。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元;
所述处理模块具体用于:所述终端设备根据所述第一数值和所述预设的时间单元的乘积,得到所述第一时间。
在一种可能的设计中,所述收发模块还用于:通过广播或单播或组播的方式接收所述接入网设备发送的第二时间,所述第二时间的时间单元为10毫秒;
所述处理模块具体用于:将所述第一时间与第二时间相加得到第三时间。
在一种可能的设计中,所述处理模块还用于:根据所述第一时间与预设时间之和得到第五时间,根据所述第五时间同步所述终端设备的时间。
在一种可能的设计中,所述收发模块具体用于:接收接入网设备发送的单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
所述处理模块还用于:根据所述第一系统帧的帧号和第二系统帧的帧号得到第五时间对应的第一系统帧;所述第二系统帧为所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述收发模块具体用于:接收网络设备发送的第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;
所述处理模块具体用于:根据所述第一数值包括的多个参数的值得到所述第一时间。
在一种可能的设计中,所述收发模块还用于:向所述接入网设备发送第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
第十四方面,本申请实施例提供一种接入网设备,该接入网设备具有实现上述第十二方面中接入网设备的功能,该接入网设备包括一个或多个与上述功能相对应的模块。在一种可能的设计中,该接入网设备包括:处理模块、收发模块。
所述处理模块用于:确定第一数值,所述第一数值用于指示第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10;
所述收发模块用于:向终端设备发送第一数值。
在一种可能的设计中,所述收发模块还用于:通过系统消息或单播消息或组播消息向终端设备发送第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
所述第一时间是所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积得到的。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元,所述第一时间是所述终端设备根据第一数值和所述预设的时间单元的乘积得到的。
在一种可能的设计中,所述收发单元还用于:通过广播或单播或组播的方式向所述终端设备发送第二时间,所述第二时间的时间单元为10毫秒;
第三时间是所述终端设备将所述第一时间与第二时间相加得到的。
在一种可能的设计中,所述收发模块具体用于:向所述终端设备发送单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
第五时间对应的第一系统帧是所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到的;所述第二系统帧为所述终端设备接收到所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述收发模块具体用于:向所述终端设备发送第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;所述第一时间是所述终端设备根据所述多个参数的值得到的。
在一种可能的设计中,所述收发模块还用于:接收所述终端设备发送的第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
第十五方面,本申请实施例提供一种通信装置,该通信装置可以为终端设备,该通信装置具有实现上述第十一方面方法示例的功能;该通信装置包括:通信模块、处理器;
所述通信模块,用于与其他设备进行通信交互,所述通信模块可以为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为本申请实施例提供的又一种通信装置的结构示意图;
图11a为本申请实施例一提供的时间同步方法所对应的流程示意图;
图11b为确定时间信息参考点的过程示意图;
图11c为不携带年月日的时间信息示意图;
图12a为本申请实施例二提供的时间同步方法所对应的流程示意图;
图12b为扩展后的SIB16示意图;
图12c为第一时间的时间单元为一些固有长度的时间单元示意图;
图12d为一种显式方式指示的第一数值示意图;
图12e为另一种显式方式指示的第一数值示意图;
图13为本申请实施例四提供的时间同步方法所对应的流程示意图;
图14为本申请实施例四提供的时间同步方法所对应的流程示意图;
图15为本申请实施例提供的一种终端设备的结构示意图;
图16为本申请实施例提供的一种接入网设备的结构示意图;
图17为本申请实施例提供的一种通信装置的结构示意图。
具体实施方式
下面结合说明书附图对本申请进行具体说明。
图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 PCTCN2018076780-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调整命令中的上行定时提前调整信息,对前次上行定时提前信息进行更新得到终端设备当前的上行定时提前,参见下述公式:
N TA,new=N TA,old+T……公式1
其中,N TA,new为终端设备当前的上行定时提前,N TA,old为前次上行定时提前,T为根据上行定时提前调整信息得到的,具体可以为关于N TA,old的一个函数式。
在一个示例中,可以通过如下公式得到终端设备当前的上行定时提前信息:
N TA,new=N TA,old+(N TA,old-31)*16……公式2
其中,(N TA,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 PCTCN2018076780-appb-000002
Figure PCTCN2018076780-appb-000003
表2中所示例出的映射关系表明:当终端设备使用PRACH0发送preamble0,或者,使用除PRACH0以外的其它PRACH发送preamble0,或者,使用PRACH0发送除preamble0以外的其它preamble,其目的均为请求时间信息。相应地,接入网设备接收到用于请求时间信息的随机接入请求后,可根据随机接入请求确定时间信息。当终端设备使用除PRACH0以外的其它PRACH发送除preamble0以外的其它preamble,比如终端设备使用PRACH1发送preamble1,则其为正常的随机接入请求,不具有请求时间信息的目的,相应地,接入网设备可以执行正常的随机接入过程的相关流程。
本申请实施例中,还可以进一步设置预设前导码和/或预设PRACH与请求的时间类型的映射关系,参见表3。
表3:映射关系的另一种示例
Figure PCTCN2018076780-appb-000004
表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中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
现有技术中,接入网设备通过SIB16广播时间,比如UTC等,终端设备根据接收到的时间同步终端设备的时间。然而,由于接入网设备广播的时间的时间单元为10ms,从而导致时间同步不够准确,基于此,本申请实施例还提供一种时间同步方法,包括:接入网设备确定时间信息,并向终端设备发送时间信息;相应地,终端设备接收接入网设备发送的时间信息,并根据所述时间信息得到第一时间,进而终端设备可根据所述第一时间,同步所述终端设备的时间。如此,由于第一时间的时间单元(time unit)为n微秒或n纳秒或n飞秒或n毫秒,n>0,当时间单元为n毫秒时,n<10,从而使得第一时间的精度较高,能够有效提高时间同步的准确性。这里的时间单元也可以是时间单位或时间粒度(time granularity)或时间精度(time accuracy)。时间单元用于终端设备进行时间的计数,例如时 长为1秒的时间以1毫秒的时间单元计数,会计数1000次。1秒=1毫秒*1000。
具体来说,本申请实施例中第一时间的时间单元还可以为固定长度的时间单元,比如n个TTI、n个slot,n个mini-slot,n个subframe,n个frame、n个符号等,n>0,具体不做限定。
所述时间信息指示第一时间的方式可以有多种,所述时间信息可以为第一数值。在一个示例中,比如第一数值可以为2,终端设备还可以从接入网设备接收第一指示信息,第一指示信息用于指示第一时间的时间单元,比如3微秒微秒;如此,终端设备可根据第一数值和第一时间的时间单元(例如,第一数值和第一时间的时间单元相乘:2*3微秒),得到第一时间为6微秒微秒,此时可以理解为,第一时间为某一个时间的高精度部分。微秒微秒
在另一个示例中,比如第一数值可以为2,第一时间的时间单元为预设的时间单元(可以是接入网设备和终端设备协商确定的,或者协议规定的),比如4微秒,如此,终端设备可根据第一数值和第一时间的时间单元的乘积(2*4微秒=8微秒),得到第一时间为8微秒。又或者是其它的实现方式,此处不再赘述。
在另一个示例中,第一时间可以理解为一个确定的时间点:例如2017年1月1日1点10分5秒1毫秒1微秒。第一数值是一个比特串,从高位到低位比特分别表示年,月,日,时,分,秒,毫秒,微秒等,年、月、日、时、分、秒、毫秒、微秒分别用不同的比特组表示,每一个比特组有固定的比特位,例如表示年的比特组是高位16bit,依次地,表示月的比特组是接下来的4bit(高位的第5bit到第8bit),表示日的比特组是5bit(高位的第9bit到第13bit),表示时的比特组是5bit(高位的第14bit到第18bit),表示分的比特组是6bit(高位的第14bit到第18bit),秒是6bit(高位的第19bit到第24bit),毫秒是10bit(高位的第25bit到第30bit),微秒是10bit(高位的第31bit到第40bit),当第一数值是0000100000000000 1000 00100 10010 000001 100100 0000000001 0000000001时,表示的是
年份=二进制0000 1000 0000 0000对应的十进制数值=2048,表示是2048年
月份=二进制1000对应的十进制数值=8月
日=00100=4日
时=10010=18时(18点,24小时制)
分=000001=1分钟
秒=100100=36秒
毫秒=0000000001=1毫秒
微秒=0000000001=1微秒
由上可知,第一时间表示的第五时间是2048年8月4日16时1分钟36秒1毫秒1微秒,这时第一时间直接等于第五时间。可选的,第一时间为完整时间。
终端设备可直接使用第一时间同步所述终端设备的时间。比如,第一时间为2017年2月12日8时1分1秒1毫秒1微秒,则终端设备可将终端设备的时间更新为第一时间。
另一种可能的实现方式中,第一时间为高精度部分的时间,进一步地,第一时间可以为小于10毫秒的时间。如此终端设备可接收所述接入网设备发送的所述第二时间(具体实施中,接入网设备可以通过单播或广播或组播的方式发送第二时间),第二时间的时间单元为10毫秒,并结合第一时间和第二时间(例如,将第一时间和第二时间相加)得到第三时间。
此时,第一时间为所述第三时间中小于10毫秒部分的时间。举个例子,终端设备得到的第一时间为6微秒,第二时间为8时1分1秒10毫秒,可选地,第二时间可以从SIB16中获得,则第三时间为8时1分1秒10毫秒6微秒。终端设备还可以获取预设时间,预设时间可以是由协议规定的一个时间点(例如,可以是过去的某个时间点),比如2017年2月12日0时0分0秒,如此,终端设备在预设时间的基础上加上所述第三时间,即可得到第五时间2017年2月12日8时1分1秒10毫秒6微秒,并可以将所述终端设备的时间同步为2017年2月12日8时1分1秒10毫秒6微秒。
可选的,终端设备也可以结合定时提前量获得第五时间。
这里的第一时间可以理解为一个时间段或一个时间长度或一个时域长度。
再例如第一时间等于0年0月0日1小时1分钟1秒1毫秒1微秒(或等于3661001000微秒),终端设备可以根据第一时间和一个预设时间(预设时间是一个时间点或者时刻,例如2017年1月1日0点0分0秒)之和,得到第五时间为2017年1月1日1点1分1秒1毫秒1微秒(同样的,终端设备也可以结合定时提前量获得第五时间):
即0年0月0日1小时1分钟1秒1毫秒1微秒+2017年1月1日0点0分0秒=2017年1月1日1点1分1秒1毫秒1微秒。
特别地,预设时间可以为UTC时间的时间原点1900年1月1日0时0分0秒,或GPS时间的时间原点1980年1月6日0时0分0秒。
当时间原点中不包含高精度的部分(例如不包含微秒,纳秒的精度)时,计算时按照高精度部分的数值为0(0微秒和0纳秒)
2017年1月1日0点0分0秒+1天1小时1分钟1秒1毫秒1微秒=2017年1月2日1点1分1秒1毫秒1微秒
进一步地,终端设备得到第五时间后,可根据第五时间执行多种可能的操作,比如根据第五时间同步所述终端设备的时间。
进一步地,第五时间为GPS时间,预设时间是GPS时间的时间原点1980年1月6日0时0分0秒。其中,时间原点表示时间的起始点。
下面结合具体实施例(实施例一至实施例三)对上述时间同步方法进行描述。
实施例一
图11a为本申请实施例一提供的时间同步方法所对应的流程示意图。如图11a所示,包括:
步骤1101,接入网设备确定时间信息,所述时间信息包括第一数值,所述第一数值用于指示第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒。
此处,接入网设备可以根据自身的能力来确定时间信息,比如,接入网设备的能力所支持的时间单元为1微秒,则第一数值所指示的第一时间的时间单元即为1微秒。
可选地,步骤1100,终端设备发送第一消息。
其中,接入网设备可以根据终端设备发送的第一消息来确定第一数值。第一消息用于请求接入网设备向所述终端设备发送第一数值。
进一步的,第一消息可以指示终端需要的第一数值的时间单元;还可以指示第一数值所在的消息是否需要加密和/或完整性保护;还可以指示终端设备需要进行时间同步的时间标准,例如是GPS时间还是UTC时间。
步骤1102,接入网设备向终端设备发送单播消息,所述单播消息中包括所述第一数值。
此处,单播消息具体可以为RRC消息或MAC CE或DCI,具体不做限定。
步骤1103,终端设备接收接入网设备发送的单播消息,并得到所述第一数值。
此处,单播消息中还可以包括第一系统帧的帧号,如此终端设备可以根据第一系统帧的帧号和第二系统帧的帧号得到第五时间对应的系统帧,其中,所述第二系统帧为所述终端设备接收到所述第一数值的系统帧(即为成功传输携带第一数值的单播消息的系统帧)。所述第五时间对应第一系统帧的帧头边界或帧尾边界;所述第一系统帧的可以认为是第五时间的时间信息参考点,用于指示所述终端设备获得的第五时间对应的时域位置。
所述的2个系统帧的距离可以指两个帧的帧头的时域间隔(以帧数计算)或两个帧的帧尾的时间间隔。
一种可能的实现方式中,所述时间信息参考点为第一帧的帧头或帧尾边界;所述第一帧的帧号为所述第一系统帧号,所述第一系统帧是距离所述第二系统帧最近的、帧号等于所述第一系统帧号的系统帧。进一步,当第一系统帧的帧号与第二系统帧的帧号相同时,第一系统帧就是第二系统帧。
举个例子,终端设备在SFN6接收到第一数值,即第一数值所在的系统帧的帧号为6,表示第二系统帧的帧号为6,若单播消息中指示的第一系统帧的帧号为8,则第一系统帧为SFN6后面最近的SFN8。
下面结合图11b对时间信息参考点做进一步的说明。本申请实施例中,2个系统帧的距离可以指两个帧的帧头的时域间隔(以帧数计算)或两个帧的帧尾的时间间隔。
如图11b所示,示例1中,(时域位置或位置)在第二系统帧之前的、距离第二系统帧最近的、帧号为第一帧号的系统帧的帧头或帧尾边界为第一时间的时间参考点。比如,单播消息中携带的第一系统帧的帧号是990,UE成功接收单播消息的帧号是25,UE在25帧的时域位置前面找到距离25帧最近的一个990号帧(时域位置为前一个1024帧周期的990帧)并确定第一时间对应的是该990帧的帧头或帧尾边界对应的时间。
示例2中,(时域位置或位置)在第二系统帧之后的、距离第二系统帧最近的、帧号为第一帧号的系统帧的帧头或帧尾边界为第一时间的时间参考点。比如:单播消息中携带的第一系统帧的帧号是990,UE成功接收单播消息的帧号是25,UE在25帧的时域位置后面找到距离25帧最近的一个990号帧(时域位置为本1024帧周期的990帧)并确定第一时间对应的是该990帧的帧头或帧尾边界对应的时间。
示例3中,(时域位置或位置)包括在第二系统帧之前和之后、距离第二系统帧最近的、帧号为第一帧号的系统帧的帧头或帧尾边界为第一时间的时间参考点。比如:单播消息中携带的第一系统帧的帧号是990,UE成功接收单播消息的帧号是25,UE在25帧的时域位置后面找到距离25帧最近的一个990号帧(时域位置对应本1024帧周期的990帧),与25号帧的距离是990-25=965帧;UE在25帧的时域位置前面找到距离25帧最近的一个990号帧(时域位置为前一个1024帧周期的990帧),与25号帧的距离是25+1023-990=58帧,经过计算,距离最近的990号帧是时域位置为前一个1024帧周期的990帧,并确定第一时间对应的是将该990帧的帧头或帧尾边界。
步骤1104,终端设备根据所述第一数值得到第一时间,进一步地,终端设备还可以根据所述第一时间得到第五时间,根据第五时间同步所述终端设备的时间。
本实施例中,第一数值指示第一时间的方式可以有多种。
一种可能的实现方式中,第一时间的时间单元为预设的,比如接入网络设备和终端设 备预先协商第一时间的时间单元,此时,接入网络设备发送的第一数值可用于指示第一时间的值;相应地,终端设备接收到第一数值后,可以根据指示信息所指示的第一数值和预设的第一时间的时间单元,得到第一时间。例如预设的时间单元为1微秒,终端设备接收到的第一数值为1,则第一时间为1*1微秒=1微秒。
又一种可能的实现方式中,第一时间的时间单元由第一数值来显式指示,此时,第一数值可以包括两部分数值(为便于描述,称为第一部分数值和第二部分数值),其中,第一部分数值用于指示第一时间的时间单元,第二部分数值用于指示第一时间的值。如此,终端设备接收到第一数值后,可以根据第一部分数值所指示的第一时间的值和第二部分数值所指示的第一时间的时间单元,得到第一时间。
在一个示例中,第一部分数值可以包括0、1、2中的任一个数值,0、1、2分别对应不同的时间精度,具体的对应关系可以预先设置,比如,0对应的时间单元为1微秒,1对应的时间单元为1ns,2对应的时间单元为10ns。如此,终端设备接收到第一数值后,若确定第一部分数值包括的数值为0,则可确定第一时间的时间单元为1微秒,进而可根据第二部分数值所指示的第一时间的值得到第一时间。
在另一个示例中,第一部分数值共包括4bit,第1位bit表示的是1ms的时间单元是否支持,第2位bit表示的是10微秒的时间单元是否支持,以此类推。假设1表示支持,0表示不支持,当终端设备确定第一部分数值是1110时,表明接入网设备发送的时间单元是1微秒,由于最后1bit位是0,表示不支持1ns的时间单元。
在该种实现方式中,由于第一数值中包括用于指示时间单元的第一部分数值,因此,此种指示时间单元的方式可以称为是显示方式。
在其它可能的显式方式中,也可以是由第一数值指示第一时间的值,而由单独的指示信息来指示第一时间的时间单元,此时,第一数值和指示信息可以在不同的消息中发送,具体不做限定。
又一种可能的实现方式中,第一时间的时间单元由第一数值来隐式指示,此时,第一数值可以包括多个参数的值,所述多个参数对应不同的时间单元。如此,终端设备可以根据所述多个参数的值和所述多个参数对应的时间单元,得到所述多个时间,进而根据所述多个时间的和,得到所述第一时间。其中,多个参数的值可以分别通过多个域(field)来携带。
在一个示例中,共有4个域携带的值来指示第一时间的时间单元,分别为域1对应的时间单元为10ms,域2对应的时间单元为1ms-10ms,域3对应的时间单元为1微秒-1ms,域3对应的时间单元为1ns-1微秒。若某个域不携带值,比如,域3未携带值,则终端设备可以确定出第一时间的时间单元为域2对应的时间单元,并不再继续解析域4,从而能够有效节省处理开销。
本申请实施例中,接入网设备可以在年月日发生变化时,通过单播消息向终端设备发送完整的年月日分秒一直精确到微秒的第一时间(以第一时间的时间单元为微秒为例),而在后续年月日未发生变化时,通过单播消息向终端设备发送时分秒一直精确到微秒的时间,不再发送年月日的时间单元的时间,如此终端设备接收到接入网设备发送的时分秒一直精确到微秒的时间后,可结合之前存储的年月日,得到完整的第一时间。在一个示例中,若接入网设备不发送年月日,则单播消息中可以携带一个指示信息(例如可以为1bit),该指示信息用于指示不携带年月日的时间单元,如此,终端设备可根据该指示信息获取之前 存储的年月日,如图11c所示,为不携带年月日的时间信息示意图。
需要说明的是,上述是以是否发送年月日为例进行说明,在其它的实施例中,也可以是在年月未变化时,接入网设备不发送年月的时间单元,又或者,也可以是在年未变化时,接入网设备不发送年的时间单元,具体可以有多种可能,不再一一列举。
实施例二
图12a为本申请实施例二提供的时间同步方法所对应的流程示意图。如图12a所示,包括:
步骤1201,接入网设备确定第一数值,第一数值用于指示第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒。
步骤1202,接入网设备向终端设备发送第一系统消息块,所述第一系统消息块中包括所述第一数值。
此处,第一系统消息块可以是SIB16,或者,也可以是一个其它的系统消息块,具体不做限定。
步骤1203,终端设备接收接入网设备发送的第一系统消息块,并得到所述第一数值。
步骤1204,终端设备根据所述第一数值得到第一时间,进一步地,可根据第一时间获得所述第五时间,根据所述第五时间同步所述终端设备的时间。
本实施例中,一种可能的实现方式,可以在SIB16携带第一数值,携带第一数值的域全为r15的域,此时,第一数值指示第一时间的方式可以参照实施例一中的描述。也就是说,在此种实现方式中,实施例二相比于实施一的区别在于:实施例二是通过第一系统消息块来接收第一数值,而实施例一中是通过单播消息来接收第一数值,除此区别之外的其它内容,均可相互参照。
另一种可能的实现方式,时间信息包括第一数值,第一数值包括第一信息和第二信息,其中,第一信息用于指示第二时间,第二信息用于指示第三时间,所述第二时间的时间单元可以为y毫秒,所述第三时间的时间单元可以为n微秒或n纳秒或n飞秒或n毫秒。
基于该种实现方式,在一个示例中,第一系统消息块为SIB16,携带第一信息的域为原有SIB16中的r11的域,因此根据第一信息得到的第二时间的时间单元即为10ms,携带第二信息的域为扩展的r15的域。也就是说,接入网设备可以在原有SIB16的基础上扩展一个新增域,该新增域中携带第二信息,比如,第一时间的时间单元为1微秒,则新增域携带的第二信息所指示的第三时间可以为1微秒到10ms之间,参见图12b所示,为扩展后的SIB16示意图。如此,终端设备可以结合原有SIB16得到时间单元为10ms的第二时间,然后根据新增域得到10ms范围内时间单元为1微秒粒度的第三时间,将二者结合起来得到第一时间(即为timeInfoUTC-r11*10ms+timeInfo-r15*1微秒),精确到1微秒的时间单元。
在上述示例的其它情形中,若第一时间的时间单元为一些固有长度的时间单元,比如Ts,如图12c所示,则终端设备获得的第一时间为timeInfoUTC-r11*10ms+timeInfo-r15*1Ts,其中,1个Ts长度为1/30.72ns,约等于32.55ns。
在上述示例的其它情形中,上述新增的timeInfo-r15也可以单独通过一个新的SIB(例如SIB20)来进行广播,此时即为实施例三描述的通过第二系统消息块和第三系统消息块来发送时间信息的情形。
需要说明的是,上述示例所描述的方案中,由于终端设备需要结合原有SIB16携带的第一信息和新增域携带的第二信息来获取第一时间,因此,该方案要求r15的终端设备必须支持r11中SIB16的特性,即必须要侦听r11的相关域。
进一步地,在上述示例中,第二信息指示第三时间的方式可以有多种,具体来说,可以参照实施例一中所描述的第一数值指示第一时间的方式,比如,如图12d所示,为一种显式方式指示的第一数值示意图,在图12d中,AccuracyIndicator-r15INTEGER(0..3)表示了4种时间精度,这4种精度分别代表协议预定义的1毫秒、10微秒、1微秒、1纳秒;图12e为另一种显式方式指示的第一数值示意图,在图12e中,通过4个比特位来指示时间单元,具体不再赘述。第一信息指示第二时间的方式可以采用现有的实现方式,或者,也可以参照实施例一中所描述的方式,此处不再赘述。
上述实施例二中,通过一个系统消息块来广播第一数值,由于终端设备通过解析一个系统消息块皆可得到第一数值,且第一数值所指示的第一时间的精度较高,从而能够保证终端设备进行时间同步的准确性。
实施例三
图13为本申请实施例四提供的时间同步方法所对应的流程示意图。如图13所示,包括:
步骤1301,接入网设备确定时间信息。
此处,时间信息包括第一数值,第一数值可以包括第一信息和第二信息,其中第一信息用于指示第二时间,第二信息用于指示第三时间。所述第二时间的时间单元可以为y毫秒,所述第三时间的时间单元可以为n微秒或n纳秒或n飞秒或n毫秒。
步骤1302,接入网设备向终端设备发送第一系统消息块和第二系统消息块,所述第一系统消息块中包括第一信息,所述第一系统消息块中包括第二信息。
步骤1303,终端设备接收接入网设备发送的第一系统消息块和第二系统消息块,并根据第一系统消息块中的第一信息得到第二时间,以及根据第二系统消息块中的第二信息得到第三时间。
步骤1304,终端设备根据第二时间和第三时间得到第一时间,并根据所述第一时间同步所述终端设备的时间。
本实施例中,第一系统消息块可以为SIB16,第二系统消息块可以为其它系统消息块,比如SIB20。进一步地,携带第一信息的域为原有SIB16中的r11的域,携带第二信息的域可以为SIB20中新增的r15的域。第一信息指示第二时间的方式和第二信息指示第三时间的方式均可以有多种,具体可参照实施例二中的描述,此处不再赘述。
也就是说,实施例三与实施例二的区别在于:实施例二中是通过一个系统消息块来发送时间信息,而实施例二中是通过两个系统消息块来发送时间信息,除此区别之外的其它内容,可以相互参照。
实施例四
图14为本申请实施例四提供的时间同步方法所对应的流程示意图。如图14所示,包括:
步骤1401,接入网设备确定时间信息。
此处,时间信息包括第一数值,第一数值可以包括第一信息和第二信息,其中第一信息用于指示第二时间,第二信息用于指示第三时间。
步骤1402,接入网设备向终端设备发送系统消息和单播消息,所述系统消息中包括第一信息,所述单播消息中包括第二信息。
此处,单播消息可以为RRC消息或MAC CE,具体不做限定。
步骤1403,终端设备接收接入网设备发送的系统消息和单播消息,并根据系统消息中的第一信息得到第二时间,以及根据单播消息中的第二信息得到第三时间。
步骤1404,终端设备根据第二时间和第三时间得到第一时间,并根据所述第一时间同步所述终端设备的时间。
在一个示例中,接入网设备可以通过原有SIB16广播第一信息,通过单播消息发送第二信息,这要求终端设备在接收单播消息的第二信息之前,需要先侦听携带第一信息的系统消息,包括连接态的终端设备也需要侦听。
比如,第一时间的时间单元为1微秒为例,则单播消息携带的第二信息指示的第三时间的时间单元为1微秒-10毫秒之间,系统消息携带的第一信息指示的第二时间的时间单元为10毫秒;或者,单播消息携带的第二信息指示的第三时间的时间单元为1微秒-20微秒之间,系统消息携带的第一信息指示的第二时间的时间单元为20微秒。
进一步地,单播消息中还可以携带时间信息参考点,该时间信息参考点与系统消息中携带的时间信息参考点一致。具体来说,单播消息携带的时间信息参考点可以是终端设备上一次收到的或当前存储的系统所对应的时间信息参考点,比如,终端设备在SFN1接收到系统消息(e.g.SIB16或其他SIB)里的第一信息,在SFN6收到单播消息的第二信息,单播消息的第二信息对应的时间信息参考点即为系统消息中的第一信息对应的时间信息参考点。
进一步地,本申请实施例中,第二信息指示第三时间的方式可以有多种,具体来说,可以参照实施例一中所描述的第一数值指示第一时间的方式,此处不再赘述。第一信息指示第二时间的方式可以采用现有的实现方式,或者,也可以参照实施例一中所描述的时间信息指示第一时间的方式,此处不再赘述。
需要说明的是,上述实施例一至实施例四为本申请提供的时间同步方法的不同实现方式,其均是基于同一发明构思,不同实施例之间除区别之外的其它内容,均可以相互参照。
针对于上述方法流程,本申请实施例还提供一种终端设备和接入网设备,所述终端设备和接入网设备的具体实现可参见上述方法流程。
图15为本申请实施例提供的一种终端设备的结构示意图,该终端设备用于执行上述实施例一至实施例四中由终端设备执行的流程步骤,如图15所示,所述终端设备1500包括处理模块1501和收发模块1502。
所述收发模块1502用于:接收接入网设备发送的第一数值,所述第一数值用于指示第一时间;
所述处理模块1501用于:根据所述第一数值得到所述第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10。
在一种可能的设计中,所述收发模块1502还用于:接收接入网设备通过系统消息或单播消息或组播消息发送的第一指示信息,所述第一指示信息用于指示所述第一时间的时 间单元;
所述处理模块1501具体用于:根据所述第一数值和所述第一时间的时间单元的乘积,得到所述第一时间。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元;
所述处理模块1501具体用于:所述终端设备根据所述第一数值和所述预设的时间单元的乘积,得到所述第一时间。
在一种可能的设计中,所述收发模块1502还用于:通过广播或单播或组播的方式接收所述接入网设备发送的第二时间,所述第二时间的时间单元为10毫秒;
所述处理模块1501具体用于:将所述第一时间与第二时间相加得到第三时间。
在一种可能的设计中,所述处理模块1501还用于:根据所述第一时间与预设时间之和得到第五时间,根据所述第五时间同步所述终端设备的时间。
在一种可能的设计中,所述收发模块1502具体用于:接收接入网设备发送的单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
所述处理模块1501还用于:根据所述第一系统帧的帧号和第二系统帧的帧号得到第五时间对应的第一系统帧;所述第二系统帧为所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述收发模块1502具体用于:接收网络设备发送的第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;
所述处理模块1501具体用于:根据所述第一数值包括的多个参数的值得到所述第一时间。
在一种可能的设计中,所述收发模块1502还用于:向所述接入网设备发送第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
图16为本申请实施例提供的一种接入网设备的结构示意图,该接入网设备用于执行上述实施例一至实施例四中由接入网设备执行的流程步骤,如图16所示,所述接入网设备1600包括处理模块1601和收发模块1602。
所述处理模块1601用于:确定第一数值,所述第一数值用于指示第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10;
所述收发模块1602用于:向终端设备发送第一数值。
在一种可能的设计中,所述收发模块1602还用于:通过系统消息或单播消息或组播消息向终端设备发送第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
所述第一时间是所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积得到的。
在一种可能的设计中,所述第一时间的时间单元为预设的时间单元,所述第一时间是所述终端设备根据第一数值和所述预设的时间单元的乘积得到的。
在一种可能的设计中,所述收发单元还用于:通过广播或单播或组播的方式向所述终端设备发送第二时间,所述第二时间的时间单元为10毫秒;
第三时间是所述终端设备将所述第一时间与第二时间相加得到的。
在一种可能的设计中,所述收发模块1602具体用于:向所述终端设备发送单播消息,所述单播消息中包括所述第一数值。
在一种可能的设计中,所述单播消息中还包括第一系统帧号;
第五时间对应的第一系统帧是所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到的;所述第二系统帧为所述终端设备接收到所述第一数值的系统帧。
在一种可能的设计中,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
在一种可能的设计中,所述收发模块1602具体用于:向所述终端设备发送第一系统消息块,所述第一系统消息块中包括所述第一数值。
在一种可能的设计中,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;所述第一时间是所述终端设备根据所述多个参数的值得到的。
在一种可能的设计中,所述收发模块1602还用于:接收所述终端设备发送的第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
图17为本申请实施例提供的一种通信装置的结构示意图,该通信装置可以为终端设备或接入网设备;该通信装置包括:通信模块1701、处理器1702;
所述通信模块1701,用于与其他设备进行通信交互,所述通信模块可以为RF电路、WiFi模块、通信接口、蓝牙模块等。
所述处理器1702,用于实现图15中处理模块1501或图16中处理模块1601的功能。
可选地,通信装置还可以包括:存储器1704,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括指令。存储器1704可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器执行存储器所存放的应用程序,实现上述功能。
一种可能的方式中,通信模块1701、处理器1702和存储器1704可以通过总线1703 相互连接;总线1703可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或系统(例如红外、系统、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (60)

  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. 一种时间同步方法,其特征在于,所述方法包括:
    终端设备接收接入网设备发送的第一数值,所述第一数值用于指示第一时间;
    所述终端设备根据所述第一数值得到所述第一时间,所述第一时间的时间单元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10。
  40. 根据权利要求39所述的方法,其特征在于,所述终端设备根据所述第一数值得到所述第一时间,包括:
    所述终端设备接收接入网设备通过系统消息或单播消息或组播消息发送的第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
    所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积,得到所述第一时间。
  41. 根据权利要求39所述的方法,其特征在于,所述第一时间的时间单元为预设的时间单元;
    所述终端设备根据所述第一数值得到所述第一时间,包括:
    所述终端设备根据所述第一数值和所述预设的时间单元的乘积,得到所述第一时间。
  42. 根据权利要求39至41中任一项所述的方法,其特征在于,所述终端设备根据所述第一数值得到所述第一时间之后,还包括:
    所述终端设备通过广播或单播或组播的方式接收所述接入网设备发送的第二时间,所述第二时间的时间单元为10毫秒;
    所述终端设备将所述第一时间与第二时间相加得到第三时间。
  43. 根据权利要求39至42中任一项所述的方法,其特征在于,所述方法还包括:
    所述终端设备根据所述第一时间与预设时间之和得到第五时间,根据所述第五时间同步所述终端设备的时间。
  44. 根据权利要求39至43中任一项所述的方法,其特征在于,所述终端设备接收接入网设备发送的第一数值,包括:
    所述终端设备接收接入网设备发送的单播消息,所述单播消息中包括所述第一数值。
  45. 根据权利要求44所述的方法,其特征在于,所述单播消息中还包括第一系统帧号;
    所述终端设备接收接入网设备发送的单播消息之后,还包
    所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到第五时间对应的第一系统帧;所述第二系统帧为所述第一数值的系统帧。
  46. 根据权利要求45所述的方法,其特征在于,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
    所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
  47. 根据权利要求39至43中任一项所述的方法,其特征在于,所述终端设备接收接入网设备发送的第一数值,包括:
    所述终端设备接收网络设备发送的第一系统消息块,所述第一系统消息块中包括所述第一数值。
  48. 根据权利要求39所述的方法,其特征在于,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;
    所述终端设备根据所述第一数值得到所述第一时间,包括:
    所述终端设备根据所述第一数值包括的多个参数的值得到所述第一时间。
  49. 根据根据权利要求39所述的方法,其特征在于,还包括:
    所述终端设备向所述接入网设备发送第一消息,所述第一消息用于请求所述接入网设备向所述终端设备发送第一数值。
  50. 一种时间同步方法,其特征在于,所述方法包括:
    接入网设备确定第一数值,所述第一数值用于指示第一时间,所述第一时间的时间单 元为n微秒或n纳秒或n飞秒或n毫秒,n大于0;当时间单元为n毫秒时,n小于10;
    所述接入网设备向终端设备发送第一数值。
  51. 根据权利要求50所述的方法,其特征在于,所述方法还包括:
    所述接入网设备通过系统消息或单播消息或组播消息向终端设备发送第一指示信息,所述第一指示信息用于指示所述第一时间的时间单元;
    所述第一时间是所述终端设备根据所述第一数值和所述第一时间的时间单元的乘积得到的。
  52. 根据权利要求50所述的方法,其特征在于,
    所述第一时间的时间单元为预设的时间单元,所述第一时间是所述终端设备根据第一数值和所述预设的时间单元的乘积得到的。
  53. 根据权利要求50-52中任一项所述的方法,其特征在于,
    所述接入网设备通过广播或单播或组播的方式向所述终端设备发送第二时间,所述第二时间的时间单元为10毫秒;
    第三时间是所述终端设备将所述第一时间与第二时间相加得到的。
  54. 根据权利要求52或53所述的方法,其特征在于,所述接入网设备向终端设备发送第一数值,包括:
    所述接入网设备向所述终端设备发送单播消息,所述单播消息中包括所述第一数值。
  55. 根据权利要求54所述的方法,其特征在于,所述单播消息中还包括第一系统帧号;
    第五时间对应的第一系统帧是所述终端设备根据所述第一系统帧的帧号和第二系统帧的帧号得到的;所述第二系统帧为所述终端设备接收到所述第一数值的系统帧。
  56. 根据权利要求55所述的方法,其特征在于,所述第五时间对应第一系统帧的帧头边界或帧尾边界;
    所述第一系统帧是距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    所述第一系统帧是在所述第二系统帧前面且距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    所述第一系统帧是在第二系统帧后面距离所述第二系统帧最近的且帧号等于所述第一系统帧的帧号的系统帧;或者
    当所述第一系统帧的帧号和所述第二系统帧的帧号相同时,所述第一系统帧是所述第二系统帧。
  57. 根据权利要求50或51所述的方法,其特征在于,所述接入网设备向终端设备发送第一数值,包括:
    所述接入网设备向所述终端设备发送第一系统消息块,所述第一系统消息块中包括所述第一数值。
  58. 根据权利要求50所述的方法,其特征在于,所述第一数值包括多个参数的值,所述多个参数对应不同的时间单元;所述第一时间是所述终端设备根据所述多个参数的值得到的。
  59. 根据权利要求50所述的方法,其特征在于,还包括:
    所述接入网设备接收所述终端设备发送的第一消息,所述第一消息用于请求所述接入 网设备向所述终端设备发送第一数值。
  60. 一种计算机可读存储介质,其特征在于,所述存储介质存储有指令,当所述指令在计算机上运行时,使得计算机实现执行上述1至19任一项或者39至59中任一项所述的时间同步方法。
PCT/CN2018/076780 2017-11-16 2018-02-13 一种时间同步方法及装置 WO2019095575A1 (zh)

Priority Applications (8)

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

Applications Claiming Priority (2)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/874,746 Continuation US11310757B2 (en) 2017-11-16 2020-05-15 Time synchronization method and apparatus

Publications (1)

Publication Number Publication Date
WO2019095575A1 true WO2019095575A1 (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 Before (1)

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

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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111989889A (zh) * 2018-04-04 2020-11-24 华为技术有限公司 通信方法及装置
JPWO2021070388A1 (zh) * 2019-10-11 2021-04-15
WO2022148054A1 (zh) * 2021-01-07 2022-07-14 北京佰才邦技术股份有限公司 空口时间同步方法及通讯设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11412470B2 (en) * 2018-02-16 2022-08-09 Telefonaktiebolaget Lm Ericsson (Publ) Optimized time synchronization for a UE
WO2020217492A1 (ja) * 2019-04-26 2020-10-29 株式会社Nttドコモ 無線基地局
CN113518322A (zh) * 2020-04-10 2021-10-19 华为技术有限公司 无线通信方法和通信装置
CN112261715B (zh) * 2020-10-16 2023-04-07 锐迪科(重庆)微电子科技有限公司 室分通信系统的同步方法、装置及系统
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
CN101146257A (zh) * 2007-10-16 2008-03-19 深圳国人通信有限公司 提高数据传输的同步精度的方法和系统
CN101510801A (zh) * 2009-03-02 2009-08-19 华为技术有限公司 一种时间调整方法、系统以及基站和终端
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 华为技术有限公司 一种微蜂窝网络基站同步的方法、系统和基站
CN101729127A (zh) * 2008-10-17 2010-06-09 中兴通讯股份有限公司 时间同步节点和方法
CN101442799B (zh) * 2008-12-17 2010-12-01 广州市新邮通信设备有限公司 一种实现终端同步网络侧系统时间的方法、系统及装置
CN102056284A (zh) * 2009-10-27 2011-05-11 大唐移动通信设备有限公司 时间同步方法、系统和设备
CN102056283B (zh) * 2009-10-27 2013-10-16 电信科学技术研究院 移动通信系统中时间同步的方法、系统及装置
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 清华大学 一种无线网络中移动传感陌生节点入网的时间同步方法
CN102104978B (zh) * 2011-02-23 2013-09-04 电信科学技术研究院 大时延下具有定位功能终端的随机接入方法和终端及基站
KR101924830B1 (ko) * 2012-06-19 2019-02-27 삼성전자주식회사 무선 통신 네트워크에서 단말의 동기화 방법 및 장치
CN103796296B (zh) * 2012-11-02 2018-05-08 中国移动通信集团公司 长期演进系统中的时间同步方法、用户设备及基站
EP2975792B1 (en) * 2013-03-11 2020-02-26 LG Electronics Inc. Method for receiving synchronization information for direct communication between user equipment and apparatus for same
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
CN101146257A (zh) * 2007-10-16 2008-03-19 深圳国人通信有限公司 提高数据传输的同步精度的方法和系统
CN101510801A (zh) * 2009-03-02 2009-08-19 华为技术有限公司 一种时间调整方法、系统以及基站和终端
CN105554870A (zh) * 2015-12-21 2016-05-04 海能达通信股份有限公司 上行同步方法及移动终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3703437A4

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111989889A (zh) * 2018-04-04 2020-11-24 华为技术有限公司 通信方法及装置
US11601900B2 (en) 2018-04-04 2023-03-07 Huawei Technologies Co., Ltd. Communication method and apparatus for time synchronization of terminal devices
JPWO2021070388A1 (zh) * 2019-10-11 2021-04-15
CN114503699A (zh) * 2019-10-11 2022-05-13 株式会社Ntt都科摩 终端
JP7445673B2 (ja) 2019-10-11 2024-03-07 株式会社Nttドコモ 端末
CN114503699B (zh) * 2019-10-11 2024-06-14 株式会社Ntt都科摩 终端
WO2022148054A1 (zh) * 2021-01-07 2022-07-14 北京佰才邦技术股份有限公司 空口时间同步方法及通讯设备

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2019095575A1 (zh) 一种时间同步方法及装置
US10149339B2 (en) Base station, user equipment and methods for random access
EP3739933B1 (en) Beam failure recovery method, device, and apparatus
WO2019029323A1 (zh) 发送和接收随机接入前导码的方法和装置
WO2019047599A1 (zh) 一种ra-rnti确定方法及装置
JP2021005902A (ja) 基地局、User Equipment、及びこれらの方法
US20160212769A1 (en) Data Transmission Method, Device and System
WO2012163192A1 (zh) 一种数据传输方法和装置
JP2017507574A (ja) 無線通信ネットワークのアクセス方法
WO2010121446A1 (zh) 随机接入方法、终端
WO2009117881A1 (zh) 随机接入响应消息的群标识生成方法及随机接入方法
WO2020062071A1 (zh) 一种上行信号的传输方法和设备
US9992791B2 (en) Method for controlling uplink signal transmission and apparatus thereof
CN110475317B (zh) Pdcch的监控方法、终端设备和网络侧设备
WO2021164686A1 (zh) 随机接入过程的处理方法、终端设备及网络设备
WO2020172777A1 (zh) 随机接入的方法和设备
WO2020259410A1 (zh) 用于获取定时提前量的方法和设备
JP7464760B2 (ja) ランダムアクセス方法、装置及びネットワーク側機器
TW202226875A (zh) 傳播延遲補償方法和相關設備
WO2020221237A1 (zh) 调整时域资源边界的方法和通信装置
US10667299B2 (en) Control plane latency reduction in a wireless communications network
WO2024027739A1 (zh) 一种通信方法及装置
WO2022236504A1 (zh) 通信方法及装置
WO2022205434A1 (zh) 一种信道传输方法、电子设备及存储介质
WO2019085616A1 (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: 18879930

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3082719

Country of ref document: CA

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018879930

Country of ref document: EP

Effective date: 20200526

ENP Entry into the national phase

Ref document number: 2018368222

Country of ref document: AU

Date of ref document: 20180213

Kind code of ref document: A

Ref document number: 20207016798

Country of ref document: KR

Kind code of ref document: A