Patent Description:
Currently, a new method for positioning a terminal device is proposed. To be specific, the terminal device is positioned based on distances from the terminal device to a plurality of base stations and geographical locations of the plurality of base stations. In this positioning method, the distance between the terminal device and each base station needs to be learned of.

Based on a transmission characteristic of an electromagnetic wave, the distance between the terminal device and the base station is equal to a product of the speed of light and transmission duration of the electromagnetic wave between the terminal device and the base station. There is a timing advance (timing advance, TA) mechanism in an existing technology. TA indicates a period of time, which is approximately equal to round-trip time of the electromagnetic wave between the terminal device and the base station. Therefore, the distance from the terminal device to the base station may be calculated by using the TA from the terminal device to the base station, and is equal to <NUM>/<NUM> * TA * speed of light.

In the foregoing positioning method, a base station participating in positioning of the terminal device may be a base station in a serving cell (serving cell) in which the terminal device is located, namely, a serving base station, may be a base station in a neighbor cell (neighbor cell) of the terminal device, namely, a base station of the neighbor cell, or may include both a serving base station and a base station of the neighbor cell. Therefore, to position the terminal device, both a TA from the terminal device to the serving base station and a TA from the terminal device to the base station of the neighbor cell need to be learned of.

Currently, in the existing technology, there is only a solution for obtaining the TA from the terminal device to the serving base station, but there is no solution for obtaining the TA from the terminal device to the base station of the neighbor cell.

Therefore, to position the terminal device, a solution for obtaining the TA from the terminal device to the base station of the neighbor cell needs to be proposed.

<NPL>, relates to RACH based solution and timing difference based solution.

<CIT> relates to timing advance configuration for multiple uplink component carriers.

This application provides a method for obtaining a timing advance (TA) and an apparatus, to obtain a TA from a terminal device to a neighbor cell.

According to a first aspect of the invention, a method for obtaining a timing advance TA is provided. The method includes:
receiving, by a terminal device, first time information broadcast by a first cell, and receiving second time information broadcast by a neighbor cell; and obtaining a TA from the terminal device to the neighbor cell based on the following information: a time point indicated by the first time information, a TA from the terminal device to the first cell, a time difference between receiving of the first time information and receiving of the second time information, and a time point indicated by the second time information.

The first time information is time information that is broadcast by the first cell and used for timing. The second time information is time information that is broadcast by the neighbor cell and used for timing.

The first cell is a serving cell of the terminal device, or is a neighbor cell whose TA has been learned of by the terminal device in advance. In conclusion, the first cell indicates a cell whose TA can be learned of by the terminal device, or a cell whose TA has been learned of by the terminal device in advance.

A process of obtaining the TA from the terminal device to the neighbor cell includes: (<NUM>) Obtain, based on the TA from the terminal device to the first cell and the time point indicated by the first time information, an absolute time point at which the first time information is received. (<NUM>) Calculate, based on the absolute time point at which the first time information is received and the time difference between receiving of the first time information and receiving of the second time information, an absolute time point at which the second time information is received. (<NUM>) Calculate the TA from the terminal device to the neighbor cell based on the absolute time point at which the second time information is received and the time point indicated by the second time information.

In the solution provided in this application, the time information of the first cell and neighbor cell is received, and the TA from the terminal device to the neighbor cell may be obtained through calculation based on the TA from the terminal device to the first cell and the received time information.

It should be understood that, in a scenario in which the terminal device is positioned based on distances from the terminal device to a plurality of base stations and geographical locations of the plurality of base stations, if the base stations participating in positioning include a base station of the neighbor cell, the solution provided in this application is used to learn of a TA from the terminal device to the base station of the neighbor cell, so that a distance from the terminal device to the base station of the neighbor cell may be learned of, and the terminal device may be positioned.

In addition, according to this application, the TA from the terminal device to the neighbor cell can be easily calculated without introducing a new physical quantity. This is a solution with a relatively wide application range.

With reference to the first aspect, in a possible implementation of the first aspect, the receiving second time information broadcast by a neighbor cell includes: receiving positioning assistance information from the serving cell or a location management device, where the positioning assistance information includes time configuration information of the neighbor cell, and the time configuration information is used to indicate a time-frequency resource used by the neighbor cell to broadcast the time information; and receiving, based on the time configuration information, the second time information broadcast by the neighbor cell.

Optionally, in some of the foregoing implementations, time configuration information of a cell is used to indicate a time-frequency resource used by the cell to broadcast the time information. For example, the time configuration information of the cell includes time domain resource configuration information and frequency domain resource configuration information. For example, the time configuration information of the cell includes any one or more of the following: a broadcast periodicity, a broadcast window position, a frequency domain resource position, or the like.

It should be understood that the terminal device does not establish a communication connection to the neighbor cell. Therefore, the time configuration information of the neighbor cell is delivered to the terminal device, to help the terminal device receive the time information broadcast by the neighbor cell.

With reference to the first aspect, in a possible implementation of the first aspect, the method further includes: sending, to the serving cell, a request message used to request a measurement gap; and receiving measurement gap configuration information from the serving cell, where a measurement gap indicated by the measurement gap configuration information covers a time domain position at which the neighbor cell broadcasts the time information; and the receiving second time information broadcast by a neighbor cell includes: receiving, within the measurement gap indicated by the measurement gap configuration information, the second time information broadcast by the neighbor cell.

Optionally, in some implementations, after the terminal device receives the time configuration information of the neighbor cell, if a measurement gap configured by a current serving cell for the terminal device may cover the time domain position indicated by the time configuration information of the neighbor cell, the terminal device does not need to request a new measurement gap from a serving base station, and may directly receive, based on the current measurement gap, the time information broadcast by the neighbor cell.

It should be understood that if the neighbor cell and the serving cell are on a same frequency, the terminal device does not need to receive, by using the measurement gap, the time information broadcast by the neighbor cell. In this case, the serving base station does not need to be requested to configure the measurement gap configuration information either.

According to a second aspect of the invention, a terminal device is provided as defined in the claims.

According to a third aspect of the invention, a communication apparatus is provided as defined in the claims.

Based on the foregoing descriptions, according to the method for obtaining a timing advance (TA) and the apparatus that are provided in this application, the TAfrom the terminal device to the neighbor cell can be obtained. The solutions provided in this application may be applied to an application scenario in which a terminal device is positioned based on distances from the terminal device to a plurality of base stations, and may also be applied to another application scenario in which a TA from the terminal device to a base station of the neighbor cell needs to be obtained.

Unless otherwise defined, all technical and scientific terms used in this application have the same meanings as those commonly understood by a person skilled in the art of this application. Terms used in this specification are merely intended to describe specific implementations, but are not intended to limit this application.

<FIG> is a schematic diagram of an application scenario according to an implementation of this application. As shown in <FIG>, a positioning principle is described. To be specific, a terminal device is positioned based on distances from the terminal device to a plurality of base stations (where <FIG> schematically shows three base stations) and geographical locations of the base stations.

In a positioning solution shown in <FIG>, a plurality of base stations (at least three base stations) participating in positioning of the terminal device may all be serving base stations, or may all be base stations of a neighbor cell, or may include both a serving base station and a base station of a neighbor cell. For example, the base stations participating in positioning of the terminal device include one serving base station and two base stations of the neighbor cell.

As described above, a distance from the terminal device to a base station may be obtained by using a TA from the terminal device to the base station, that is, equal to <NUM>/<NUM> * TA * speed of light. According to this guideline, to implement the positioning solution shown in <FIG>, a TA from the terminal device to the serving base station may need to be obtained, or a TA from the terminal device to a base station of the neighbor cell may need to be obtained.

In an existing technology, there is only a solution for obtaining the TA from the terminal device to the serving base station, but there is no solution for obtaining the TA from the terminal device to the base station of the neighbor cell.

To solve the foregoing problem, this application provides a solution for obtaining the TA from the terminal device to the base station of the neighbor cell. The solution can implement the positioning solution for the terminal device shown in <FIG>, or satisfy a requirement of another application scenario in which the TA from the terminal device to the base station of the neighbor cell needs to be obtained.

The technical solutions provided in the implementations of this application may be applied to various communication systems, for example, a long term evolution (long term evolution, LTE) system, a fifth generation (5th Generation, <NUM>) mobile communication system, a new radio (new radio, NR) system, a machine-to-machine (machine-to-machine, M2M) communication system, another future evolved communication system, or the like.

<FIG> and <FIG> are each a schematic architectural diagram of a communication system according to this application.

As shown in <FIG>, the communication system in this application may include a terminal device (represented as UE in <FIG>), a radio access network (NG-RAN), and a core network.

The core network includes an access and mobility management function (access and mobility management function, AMF), a location management function (location management function, LMF), and the like. The AMF functions as a gateway and the like, and the LMF functions as a positioning center and the like. The AMF and LMF are connected through an NLs interface.

The radio access network (NG-RAN) includes one or more ng-eNBs and gNBs. A ng-eNB indicates an LTE base station that accesses a <NUM> core network, and a gNB indicates a <NUM> base station that accesses the <NUM> core network.

A ng-eNB and a gNB, two ng-eNBs, or two gNBs communicate with each otherthrough an Xn interface. The Xn interface may also be referred to as an XnAP interface.

The radio access network is connected to the core network via the AMF through an NG-C interface.

The terminal device is connected to the radio access network via the ng-eNB through an LTE-Uu interface. The terminal device may be alternatively connected to the radio access network via the gNB through an NR-Uu interface.

The core network may communicate with the terminal device by using an LPP/NPP protocol.

It should be understood that the communication system may include one or more base stations (ng-eNBs and/or gNBs).

It should be further understood that the communication system may include one or more terminal devices, for example, one or more terminal device sets (for example, a UE set shown in <FIG>).

One gNB may send data or control signaling to one or more terminal devices. A plurality of gNBs may send data or control signaling to one terminal device.

Alternatively, the ng-eNB in <FIG> may be replaced with a transmission point (transmission point, TP) (for example, a TP shown in <FIG>).

The core network includes functions such as an AMF and an LMF. The AMF functions as a gateway and the like, and the LMF functions as a positioning center and the like. The AMF and LMF are connected through an NLs interface.

The gNB includes a location management component (location management component, LMC), and the LMC may implement some functions of the LMF. In this case, to implement the LMF functions that can be implemented by the LMC, the radio access network does not need to access the <NUM> core network via the AMF. Therefore, a signaling delay can be reduced.

It should be understood that the communication architecture may include one or more base stations (including the ng-eNB and the gNB).

It should be further understood that the communication architecture may include one or more terminal devices, for example, one or more terminal device sets (for example, a UE set shown in <FIG>).

A terminal device in the implementations of this application may be user equipment (user equipment, UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user apparatus. Alternatively, the terminal device may be a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device having a wireless communication function, a computing device or another processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a <NUM> network, a terminal device in a future evolved public land mobile network (public land mobile network, PLMN), or the like.

A network device in the implementations of this application may be configured to communicate with one or more terminal devices, or may be configured to communicate with one or more base stations having some terminal functions (for example, communication between a macro base station and a micro base station, such as an access point). The base station may be an evolved NodeB (evolved NodeB, eNB) in an LTE system, or a gNB (gNB) in a <NUM> system or an NR system. In addition, the base station may alternatively be an access point (access point, AP), a transmission point (transport point, TRP), a central unit (central unit, CU), or another network entity, and may include some or all of functions of the foregoing network entities. For example, the network device in the implementations of this application may be corresponding to an access network device in the communication architectures shown in <FIG> and <FIG>.

A location management device in the implementations of this application indicates a core network device, for example, the LMF shown in <FIG>, that has a location management function. Alternatively, a location management device indicates an apparatus, for example, the LMC shown in <FIG>, that has a location management function and that can be disposed in an access network device.

It should be further noted that in this application, two descriptions of "cell" and "base station in the cell" are equivalent. That is, a cell mentioned in this application indicates a base station in the cell, and a base station mentioned in this application also indicates a cell in which the base station is located. For example, a serving cell (serving cell) mentioned in this application may also indicate a base station in the serving cell, namely, a serving base station. A neighbor cell (neighbor cell) mentioned in this application may also indicate a base station in the neighbor cell, namely, a base station of the neighbor cell.

To better understand the solutions provided in this application, the terms in the implementations of this application are first described.

To ensure orthogonality of uplink transmission and avoid intra-cell (intra-cell) interference, a base station (for example, an eNodeB) requires that signals from different terminal devices in a same subframe but on different frequency domain resources arrive at the base station at substantially the same time, that is, the base station requires uplink time synchronization. As long as the base station receives, within a cyclic prefix (cyclic prefix, CP) range, uplink data sent by a terminal device, the base station can correctly decode the uplink data. Therefore, the uplink time synchronization requires that time points at which the signals from the different terminal devices in the same subframe arrive at the base station fall within a CP. To ensure uplink time synchronization on a base station side, an uplink timing advance (timing advance, TA) mechanism is proposed in LTE. TA represents a period of time, and is approximately round-trip time of transmission of an electromagnetic wave between a terminal device and a base station. A plurality of terminal devices send uplink data to a same base station based on TAs from the plurality of terminal devices to the base station, so that signals from the plurality of terminal devices arrive at the base station at substantially the same time.

In an existing technology, the TA mechanism is applicable to a terminal device and a base station serving the terminal device.

A serving cell may calculate a TA from the terminal device to the serving cell based on a preamble sent by the terminal device to the serving cell. The serving cell configures the TA from the terminal device to the serving cell on the terminal device, so that the terminal device performs uplink sending based on the TA.

Broadcast timing is a timing manner in which a terminal device reads time information in system information broadcast by a serving cell and determines a current time point in combination with the TA from the terminal device to the serving cell. A basic principle is shown in <FIG>.

The serving cell periodically broadcasts time-related system information in a specific frame (for example, an SFN <NUM> in <FIG>). The system information includes a time value (for example, a time point <NUM>:<NUM>:<NUM>:<NUM> shown in <FIG>), and the time value may be associated with a boundary of the specific frame. After receiving the system information, the terminal device obtains the time value through parsing, and adds <NUM>/<NUM> * TA to a time point represented by the time value to obtain an absolute time point of the frame boundary associated with the time value. TA is a timing advance from the terminal device to the serving cell.

<FIG> is a schematic flowchart of a method <NUM> for obtaining a timing advance TA according to an implementation of this application. The method <NUM> may be performed by a terminal device, or may be performed by a component, such as a chip or a circuit, disposed in the terminal device. The method <NUM> includes the following steps.

S510: Receive first time information broadcast by a first cell, and receive second time information broadcast by a neighbor cell.

For example, the first time information or the second time information indicates a time value, for example, a time point <NUM>:<NUM>:<NUM>:<NUM> shown in <FIG>.

For example, a manner in which a terminal device receives the first time information may include: The terminal device receives system information broadcast by the first cell, and parses the system information to obtain the first time information. A manner in which the terminal device receives the second time information may include: The terminal device receives system information broadcast by the neighbor cell, and parses the system information to obtain the second time information.

A sequence of receiving of the first time information and receiving of the second time information is not limited in this application.

The first cell in this implementation of this application may be a serving cell of the terminal device, or may be a neighbor cell whose TA has been learned of by the terminal device in advance. In conclusion, the first cell indicates a cell whose TA can be learned of by the terminal device, or a cell whose TA has been learned of by the terminal device in advance.

The neighbor cell in this implementation of this application indicates a neighbor cell, where a TA between the neighbor cell and the terminal device is to be determined.

S520: Obtain a TA from the terminal device to the neighbor cell based on the following information: a time point indicated by the first time information, a TA from the terminal device to the first cell, a time difference between receiving of the first time information and receiving of the second time information, and a time point indicated by the second time information.

A process of obtaining the TA from the terminal device to the neighbor cell specifically includes: (<NUM>) Obtain, based on the TA from the terminal device to the first cell and the time point indicated by the first time information, an absolute time point at which the first time information is received. (<NUM>) Calculate, based on the absolute time point at which the first time information is received and the time difference between receiving of the first time information and receiving of the second time information, an absolute time point at which the second time information is received. (<NUM>) Calculate the TA from the terminal device to the neighbor cell based on the absolute time point at which the second time information is received and the time point indicated by the second time information.

<FIG> is an example of the foregoing process of obtaining the TA from the terminal device to the neighbor cell. In <FIG>, it is assumed that the first cell is the serving cell. The terminal device receives the first time information broadcast by the serving cell, and reads a first time point (for example, a time point <NUM> shown in <FIG>, <NUM>:<NUM>:<NUM>:<NUM>); and receives the second time information broadcast by the neighbor cell, and reads a second time point (for example, a time point <NUM> shown in <FIG>, <NUM>:<NUM>:<NUM>:<NUM>). The terminal device obtains an absolute time point <NUM> (for example, absolute time point <NUM> = time point <NUM> + TA <NUM>/<NUM> shown in <FIG>) by using the first time point and a timing advance from the terminal device to the serving cell (for example, a TA <NUM> shown in <FIG>). Theoretically, an absolute time point (denoted as an absolute time point <NUM>) (for example, absolute time point <NUM> = time point <NUM> + TA <NUM>/<NUM> shown in <FIG>) may also be obtained by using a second time point and a timing advance (for example, a TA <NUM> shown in <FIG>) from the terminal device to the neighbor cell.

Because the absolute time point is constant, the timing advance TA <NUM> from the terminal device to the neighbor cell may be calculated based on the following formula: <MAT> where T1' indicates the absolute time point <NUM>, Δt indicates the time difference between receiving of the first time information by the terminal device and receiving of the second time information by the terminal device, T2' indicates the absolute time <NUM>, and T2 indicates the second time.

According to this application, the time information of the first cell and neighbor cell is received, and the TA from the terminal device to the neighbor cell may be obtained through calculation based on the TA from the terminal device to the first cell and the received time information.

In the positioning scenario shown in <FIG>, if the base stations participating in positioning include a base station of the neighbor cell, the solution provided in this application is used to learn of a TA from the terminal device to the base station of the neighbor cell, so that a distance from the terminal device to the base station of the neighbor cell may be learned of, and the terminal device may be positioned.

In step S510, the terminal device receives, based on time configuration information of the first cell, the first time information broadcast by the first cell, and receives, based on time configuration information of the neighbor cell, the second time information broadcast by the neighbor cell. time configuration information of a cell is used to indicate a time-frequency resource used by the cell to broadcast time information. That is, the terminal device receives, on the time-frequency resource indicated by the time configuration information, the time information broadcast by the cell.

The terminal device should know time configuration information of the serving cell. For example, in a process of accessing the serving cell, the terminal device receives the time configuration information configured by the serving cell.

A serving base station or a location management device delivers the time configuration information of the neighbor cell to the terminal device.

When the serving base station does not include a component implementing a location management function (where for example, the serving base station is the gNB shown in <FIG>), a location management device (for example, the LMF shown in <FIG>) in a core network may collect the time configuration information of the neighbor cell, and send the time configuration information of the neighbor cell to the terminal device.

When the serving base station includes a component implementing a location management function (where for example, the serving base station is the gNB shown in <FIG>), the serving base station may collect the time configuration information of the neighbor cell, and send the time configuration information of the neighbor cell to the terminal device.

It should be understood that, when the serving base station includes the component implementing the location management function, a location management device in a core network may alternatively collect the time configuration information of the neighbor cell, and send the time configuration information of the neighbor cell to the terminal device.

It should be noted that, when sending time configuration information of a plurality of neighbor cells to the terminal device, a network side (the serving base station or the location management device) should send cell identifiers (cell IDs) of the corresponding cells while sending the time configuration information of the neighbor cells.

Optionally, in some implementations, the method <NUM> further includes: receiving positioning assistance information from the serving cell or the location management device, where the positioning assistance information includes the time configuration information of the neighbor cell.

For example, the positioning assistance information includes time configuration information of a plurality of neighbor cells and cell IDs of the corresponding neighbor cells.

In the foregoing implementation related to the time configuration information, time configuration information of a cell is used to indicate a time-frequency resource used by the cell to broadcast time information.

For example, the time configuration information of the cell includes time domain resource configuration information and frequency domain resource configuration information.

For example, the time configuration information of the cell includes any one or more of the following information: a broadcast periodicity, a broadcast window position, a frequency domain resource position, or the like.

It should be understood that, after receiving the time configuration information of the neighbor cell from the network side, the terminal device may locally cache the time configuration information, and may repeatedly use the time configuration information in a subsequent process of receiving the time information broadcast by the neighbor cell. That is, the terminal device does not need to receive the time configuration information of the neighbor cell from the network side each time before receiving the time information broadcast by the neighbor cell.

Optionally, in some implementations, after the terminal device receives the time configuration information of the neighbor cell, if a measurement gap (measurement GAP) configured by a current serving cell for the terminal device cannot cover a time domain position indicated by the time configuration information of the neighbor cell, the method <NUM> further includes: The terminal device sends a measurement gap request message to the serving cell, where the measurement gap request message is used to request a measurement gap of the time domain position at which the neighbor cell broadcasts the time information; and receives measurement gap configuration information from the serving cell, where a measurement gap indicated by the measurement gap configuration information covers the time domain position at which the neighbor cell broadcasts the time information. Step S510 includes: The terminal device receives, within the measurement gap indicated by the measurement gap configuration information, the second time information broadcast by the neighbor cell.

For example, the measurement gap request message carries information indicating a time domain position of the time information of the neighbor cell.

The measurement gap request message may further carry the cell ID of the neighbor cell.

For another example, the measurement gap request message may carry information about time domain positions of the time information of the plurality of neighbor cells and the cell IDs of the neighbor cells.

It should be further understood that, after the terminal device receives the time configuration information of the neighbor cell, if the measurement gap configured by the current serving cell for the terminal device may cover the time domain position indicated by the time configuration information of the neighbor cell, the terminal device may directly receive, based on the current measurement gap, the time information broadcast by the neighbor cell.

It should be further understood that if the neighbor cell and the serving cell are on a same frequency, the terminal device does not need to receive, by using the measurement gap, the time information broadcast by the neighbor cell. In this case, the serving base station does not need to be requested to configure the measurement gap either.

For example, <FIG> is a schematic interaction diagram of a method <NUM> for obtaining a timing advance TA according to an implementation of this application. The method <NUM> includes the following steps.

S710: A location management device collects time configuration information of one or more neighbor cells (one neighbor cell shown in <FIG>).

For example, the location management device may collect time configuration information from a neighbor cell (namely, a base station of the neighbor cell) participating in positioning of a terminal device.

S720: The location management device sends positioning assistance information to the terminal device, where the positioning assistance information includes the time configuration information of the neighbor cells obtained in step S710 and corresponding cell IDs.

After receiving the positioning assistance information, the terminal device may learn a time domain position and a frequency domain position at which the one or more neighbor cells broadcast the time information.

S730: If a current measurement gap of the terminal device cannot cover the time domain positions of the time information of the one or more neighbor cells, that is, the current measurement gap cannot satisfy reading of the time information of the one or more neighbor cells, the terminal device sends a measurement gap request message to a serving cell, where the measurement gap request message includes the time configuration information of the one or more neighbor cells and the corresponding cell IDs.

For example, the measurement gap request message may further include cell frequency information of the neighbor cells.

S740: The serving base station sends measurement gap configuration information to the terminal device based on the measurement gap request message, where a measurement gap indicated by the measurement gap configuration information can cover the time domain positions of the time information of the one or more neighbor cells carried in the measurement gap request message.

S750: The terminal device calculates TAs from the terminal device to the neighbor cells.

Step S750 may be implemented by performing step S510 and step S520 described above, where the first cell is the serving cell. For details, refer to the foregoing descriptions, and details are not described herein again.

S760: The terminal device reports the TAs from the terminal device to the neighbor cells obtained in step S750 to the location management device.

It should be understood that the location management device may calculate distances from the terminal device to the neighbor cells based on the TAs from the terminal device to the neighbor cells, and then may position the terminal device based on geographical locations of the neighbor base stations.

Optionally, in some implementations, step S730 and step S740 may not be performed.

Optionally, in some implementations, the serving base station (namely, the serving cell) includes a component having a location management function, where for example, the component is the gNB shown in <FIG>. In this case, both step S710 and step S720 are performed by the serving cell.

Based on the foregoing descriptions, in the solutions provided in this application, the time information of the first cell and neighbor cell is received, and the TA from the terminal device to the neighbor cell may be obtained through calculation based on the TA from the terminal device to the first cell and the received time information.

In the positioning scenario shown in <FIG>, if the base stations participating in positioning include the base station of the neighbor cell, the solution provided in this application is used to learn of the TA from the terminal device to the base station of the neighbor cell, so that a distance from the terminal device to the base station of the neighbor cell may be learned of, and the terminal device may be positioned.

The foregoing describes the solution for obtaining the TA from the terminal device to the neighbor cell based on broadcast timing. In addition, this application further provides another solution to obtain the TA from the terminal device to the neighbor cell.

<FIG> is a schematic interaction diagram of a method <NUM> for obtaining a timing advance TA according to another implementation of this application. This implementation has not been claimed as such. As shown in <FIG>, the method <NUM> includes the following steps.

S810: A serving cell configures preamble (preamble) configuration information for a terminal device, where the preamble configuration information indicates a time-frequency resource used by the terminal device to send a preamble.

For example, the preamble configuration information may include time domain resource configuration information and frequency domain resource configuration information that are used to send the preamble.

For another example, the time-frequency resource that is indicated by the preamble configuration information and that is used by the terminal device to send the preamble may be a random access resource.

Optionally, the preamble configuration information may further include sequence information of the preamble.

It should be understood that if a network side and the terminal device agree on the sequence information of the preamble, the preamble configuration information may not carry the sequence information of the preamble.

For example, the serving cell may send the preamble configuration information to the terminal device by using radio resource control (radio resource control, RRC) signaling.

Optionally, the preamble indicated by the preamble configuration information may be a dedicated preamble.

Optionally, before step S810, the method may further include: indicating, by the location management device, the serving cell that the TA from the terminal device to the neighbor cell needs to be calculated.

S820: The serving cell sends, to the location management device, the preamble configuration information allocated to the terminal device in step S810, and the location management device sends the preamble configuration information to a neighbor cell.

The location management device may send the preamble configuration information to one or more neighbor cells.

For example, the location management device may send the preamble configuration information to a neighbor cell participating in positioning of the terminal device.

S830: The terminal device sends the preamble based on the preamble configuration information, and the neighbor cell receives, based on the preamble configuration information, the preamble sent by the terminal device.

It should be noted that the neighbor cell receives, on the time-frequency resource indicated by the preamble configuration information, only the preamble sent by the terminal device. In other words, on the time-frequency resource indicated by the preamble configuration information, the neighbor cell does not perform signal transmission for another terminal device.

S840: The neighbor cell measures the received preamble, and obtains a TA from the terminal device to the neighbor cell based on a measurement result and a frame boundary time difference between the neighbor cell and the serving cell.

The frame boundary time difference between the neighbor cell and the serving cell indicates a frame boundary timing difference between the neighbor cell and the serving cell, for example, t1 shown in <FIG>.

The neighbor cell may independently obtain the frame boundary time difference between the neighbor cell and the serving cell.

Alternatively, the serving cell or the location management device sends the frame boundary time difference between the neighbor cell and the serving cell to the neighbor cell.

For example, a method for calculating a frame boundary time difference between two cells is as follows: First, a global positioning system (global positioning system, GPS) is configured on a base station in each of the two cells, and the frame boundary time difference between the two cells can be calculated by using GPS measurement results of the base stations in the two cells. A method for determining a frame boundary time difference between cells is not limited in this application.

Optionally, the method may further include: The neighbor cell sends, to the location management device, the TA from the terminal device to the neighbor cell that is obtained in step S840.

It should be understood that the location management device may calculate a distance from the terminal device to the neighbor cell based on the TA from the terminal device to the neighbor cell, and then may position the terminal device based on a geographical location of a neighbor base station.

According to the solution in the implementation shown in <FIG> of this application, the serving cell sends the preamble configuration information to the terminal device and the neighbor cell, so that the neighbor cell may obtain the TA from the terminal device to the neighbor cell by receiving and measuring the preamble sent by the terminal device.

It should be understood that step S810 and step S820 may be performed only once.

For example, after receiving the preamble configuration information for the first time, the terminal device and the neighbor cell may locally cache the preamble configuration information. In a subsequent signal transmission process based on the preamble configuration information, the preamble configuration information may be directly used to send the preamble (on the terminal device side) and receive the preamble (on the neighbor cell side). That is, the serving cell does not need to send the preamble configuration information to the terminal device and the neighbor cell each time before the preamble is transmitted.

Optionally, in some implementations, the serving base station (namely, the serving cell) includes a component having a location management function, for example, the gNB shown in <FIG>. In this case, step S820 may be performed by the serving cell.

Optionally, in the implementation shown in <FIG>, the method further includes: The serving cell receives, based on the preamble configuration information, the preamble sent by the terminal device, and determines, based on measurement of the preamble, a TA from the terminal device to the serving cell.

In this implementation, the serving cell allocates the preamble configuration information to the terminal device, and sends the preamble configuration information to the terminal device and the neighbor cell. The terminal device sends the preamble based on the preamble configuration information, and the serving cell and the neighbor cell receive the preamble based on the preamble configuration information.

In this implementation, both the serving cell and the neighbor cell may send their respective TAs to the location management device. The location management device may obtain a distance from the terminal device to the serving cell based on the TA of the serving cell, obtain a distance from the terminal device to the neighbor cell based on the TA of the neighbor cell, and then position the terminal device with reference to geographical locations of the serving cell and the neighbor cell.

For example, as shown in <FIG>, a serving cell, a neighbor cell <NUM>, and a neighbor cell <NUM> participate in positioning of a terminal device. The serving cell allocates preamble configuration information to the terminal device, and sends the preamble configuration information to the terminal device, the neighbor cell <NUM>, and the neighbor cell <NUM>. The terminal device sends a preamble based on the preamble configuration information, and the serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM> receive the preamble based on the preamble configuration information. The three cells may obtain their respective TAs by measuring the preamble. The serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM> send their respective TAs to a location management device. The location management device calculates distances from the terminal device to the serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM> separately based on the TAs of the serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM>. The terminal device may be positioned based on the distances from the terminal device to the serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM>, and geographical locations of the serving cell, the neighbor cell <NUM>, and the neighbor cell <NUM>.

Optionally, the preamble in the implementation described with reference to <FIG> may be replaced with an uplink reference signal. For example, the uplink reference signal may be any one of the following:
a sounding reference signal (sounding reference signal, SRS), a demodulation reference signal (demodulation reference signal, DMRS), a channel quality indicator (Channel Quality Indicator, CQI), a physical uplink shared channel (Physical Uplink Shared Channel, PUSCH), or the like.

It should be further understood that, in addition to being used in the positioning solution of the terminal device shown in <FIG>, the solution for obtaining the TA from the terminal device to the neighbor cell provided in this application may be used in another scenario in which a TA from the terminal device to a base station of the neighbor cell needs to be obtained.

It should be further understood that, the first, second, and various numbers included in this application are merely distinguished for convenient description, and are not intended to limit the scope of the implementations of this application.

The implementations described in this application may be independent solutions, or may be combined based on internal logic. All these solutions fall within the protection scope of this application.

It may be understood that, in the foregoing method implementations, the methods and the operations implemented by the terminal device may also be implemented by a component (for example, a chip or a circuit) that may be used in the terminal device, and the methods and the operations implemented by the location management device may also be implemented by a component (for example, a chip or a circuit) that may be used in the location management device.

The foregoing describes the method implementations provided in the implementations of this application, and the following describes apparatus implementations provided in the implementations of this application. It should be understood that descriptions of the apparatus implementations are corresponding to the descriptions of the method implementations. Therefore, for content that is not described in detail, refer to the foregoing method implementations. For brevity, details are not described herein again.

The foregoing mainly describes, in terms of interaction between various devices, the solutions provided in the implementations of this application. It may be understood that, to implement the foregoing functions, each device, such as a transmit end device or a receive end device, includes a corresponding hardware structure and/or software module for performing each function. A person skilled in the art may be aware that with reference to units and algorithm steps in the examples described in the implementations disclosed in this application, this application can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraint conditions of the technical solutions.

In the implementations of this application, a transmit end device or a receive end device may be divided into function modules based on the foregoing method examples. For example, each function module may be obtained through division based on a corresponding function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software function module. It should be noted that module division in the implementations of this application is an example, and is merely a logical function division. During actual implementation, another division manner may be used. An example in which each function module is obtained through division based on a corresponding function is used below for description.

The implementation described with reference to <FIG> and <FIG> has not been claimed as such and the following description with reference to <FIG> should be construed accordingly.

<FIG> is a schematic block diagram of a communication device <NUM> according to an implementation of this application. The communication device <NUM> includes a transceiver unit <NUM> and a processing unit <NUM>. The transceiver unit <NUM> may communicate with the outside, and the processing unit <NUM> is configured to process data. The transceiver unit <NUM> may also be referred to as a communication interface or a communication unit.

The communication device <NUM> may be configured to perform an action performed by the terminal device in the foregoing method implementations, or an action performed by the neighbor cell in the foregoing method implementations, or an action performed by the serving cell in the foregoing method implementations, or an action performed by the location management device in the foregoing method implementations.

In an implementation, the communication device <NUM> may be configured to perform the action performed by the terminal device in the foregoing method implementations. In this implementation, the communication device <NUM> may be referred to as a terminal device. The transceiver unit <NUM> is configured to perform operations related to receiving and sending on the terminal device side in the foregoing method implementations, and the processing unit <NUM> is configured to perform operations related to processing on the terminal device in the foregoing method implementations.

In a design of this implementation, the transceiver unit <NUM> is configured to: receive first time information broadcast by a first cell, and receive second time information broadcast by a neighbor cell. The processing unit <NUM> is configured to obtain a timing advance TA from the terminal device to the neighbor cell based on the following information: a time point indicated by the first time information, a TA from the terminal device to the first cell, a time difference between receiving of the first time information and receiving of the second time information, and a time point indicated by the second time information.

Optionally, the first cell is a serving cell.

Optionally, the transceiver unit <NUM> is configured to: receive positioning assistance information from the serving cell or a location management device, where the positioning assistance information includes time configuration information of the neighbor cell, and the time configuration information is used to indicate a time-frequency resource used by the neighbor cell to broadcast the time information; and receive, based on the time configuration information, the second time information broadcast by the neighbor cell.

Optionally, the transceiver unit <NUM> is further configured to: send a measurement gap request message to the serving cell, where the measurement gap request message is used to request a measurement gap covering a time domain position at which the neighbor cell broadcasts the time information; and receive measurement gap configuration information from the serving cell, where a measurement gap indicated by the measurement gap configuration information covers the time domain position at which the neighbor cell broadcasts the time information. The transceiver unit <NUM> is configured to receive, within the measurement gap indicated by the measurement gap configuration information, the second time information broadcast by the neighbor cell.

In another implementation, the communication device <NUM> may be configured to perform the action performed by the neighbor cell in the foregoing method implementations. In this implementation, the communication device <NUM> may be referred to as a neighbor cell or a network device in the neighbor cell. The transceiver unit <NUM> is configured to perform operations related to receiving and sending on the neighbor cell in the foregoing method implementations, and the processing unit <NUM> is configured to perform operations related to processing on the neighbor cell in the foregoing method implementations.

In a design of this implementation, the transceiver unit <NUM> is configured to: receive preamble configuration information, where the preamble configuration information indicates a time-frequency resource used by a terminal device to send a preamble; and receive, based on the preamble configuration information, the preamble sent by the terminal device. The processing unit <NUM> is configured to: measure the received preamble, and obtain a timing advance TA from the terminal device to the neighbor cell based on a measurement result and a frame boundary time difference between the neighbor cell and a serving cell.

Optionally, the transceiver unit <NUM> is configured to receive the preamble configuration information from the serving cell or a location management device.

Optionally, the transceiver unit <NUM> is further configured to receive a frame boundary time difference between the neighbor cell and the serving cell from the serving cell or the location management device.

It should be understood that the processing unit <NUM> in the foregoing implementation may be implemented by a processor or a processor-related circuit, and the transceiver unit <NUM> may be implemented by a transceiver or a transceiver-related circuit.

As shown in <FIG>, an implementation of this application further provides a communication device <NUM>. The communication device <NUM> includes a processor <NUM>, a memory <NUM>, and a transceiver <NUM>. The memory <NUM> stores a program. The processor <NUM> is configured to execute the program stored in the memory <NUM>. Execution of the program stored in the memory <NUM> enables the processor <NUM> to perform related processing steps in the foregoing method implementations, and enables the processor <NUM> to control the transceiver <NUM> to perform steps related to receiving and sending in the foregoing method implementations.

In an implementation, the communication device <NUM> is configured to perform an action performed by the terminal device in the foregoing method implementations. In this case, the execution of the program stored in the memory <NUM> enables the processor <NUM> to perform the processing steps on the terminal device side in the foregoing method implementations. The transceiver <NUM> is configured to perform the receiving and sending steps on the terminal device side in the foregoing method implementations. Optionally, the execution of the program stored in the memory <NUM> enables the processor <NUM> to control the transceiver <NUM> to perform the receiving and sending steps on the terminal device side in the foregoing method implementations.

In another implementation, the communication device <NUM> is configured to perform an action performed by the neighbor cell in the foregoing method implementations. In this case, the execution of the program stored in the memory <NUM> enables the processor <NUM> to perform the processing steps on the neighbor cell side in the foregoing method implementations. The transceiver <NUM> is configured to perform the receiving and sending steps on the neighbor cell side in the foregoing method implementations. Optionally, the execution of the program stored in the memory <NUM> enables the processor <NUM> to control the transceiver <NUM> to perform the receiving and sending steps on the neighbor cell side in the foregoing method implementations.

In still another implementation, the communication device <NUM> is configured to perform an action performed by the serving cell in the foregoing method implementations. In this case, the execution of the program stored in the memory <NUM> enables the processor <NUM> to perform the processing steps on the serving cell side in the foregoing method implementations. The transceiver <NUM> is configured to perform the receiving and sending steps on the serving cell side in the foregoing method implementations. Optionally, the execution of the program stored in the memory <NUM> enables the processor <NUM> to control the transceiver <NUM> to perform the receiving and sending steps on the serving cell side in the foregoing method implementations.

In yet another implementation, the communication device <NUM> is configured to perform an action performed by the location management device in the foregoing method implementations. In this case, the execution of the program stored in the memory <NUM> enables the processor <NUM> to perform the processing steps on the location management device side in the foregoing method implementations. The transceiver <NUM> is configured to perform the receiving and sending steps on the location management device side in the foregoing method implementations. Optionally, the execution of the program stored in the memory <NUM> enables the processor <NUM> to control the transceiver <NUM> to perform the receiving and sending steps on the location management device side in the foregoing method implementations.

An implementation of this application further provides a communication apparatus <NUM>. The communication apparatus <NUM> may be a terminal device or a chip. The communication device <NUM> may be configured to perform an action performed by the terminal device in the foregoing method implementations.

When the communication device <NUM> is a terminal device, <FIG> is a simplified schematic diagram of a structure of the terminal device. For ease of understanding and illustration, in <FIG>, user equipment, such as a mobile phone, is used as an example of the terminal device. As shown in <FIG>, the terminal device includes a processor, a memory, a radio frequency circuit, an antenna, and an input/output apparatus. The processor is mainly configured to: process a communication protocol and communication data, control the terminal device, execute a software program, process data of the software program, and the like. The memory is mainly configured to store the software program and the data. The radio frequency circuit is mainly configured to: perform conversion between a baseband signal and a radio frequency signal, and process the radio frequency signal. The antenna is mainly configured to receive and send a radio frequency signal in a form of an electromagnetic wave. The input/output apparatus, such as a touchscreen, a display, or a keyboard, is mainly configured to: receive data entered by a user and output data to the user. It should be noted that terminal devices of some types may have no input/output apparatus.

When needing to send data, after performing baseband processing on the to-be-sent data, the processor outputs a baseband signal to the radio frequency circuit; and the radio frequency circuit performs radio frequency processing on the baseband signal and then sends the radio frequency signal to the outside in a form of an electromagnetic wave by using the antenna. When data is sent to the terminal device, the radio frequency circuit receives a radio frequency signal by using the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor. The processor converts the baseband signal into data, and processes the data. For ease of description, <FIG> shows only one memory and one processor. In an actual terminal device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium, a storage device, or the like. The memory may be disposed independent of the processor, or may be integrated with the processor. This is not limited in the implementations of this application.

In this implementation of this application, the antenna and the radio frequency circuit that have receiving and sending functions may be considered as a transceiver unit of the terminal device, and the processor that has a processing function may be considered as a processing unit of the terminal device.

For example, as shown in <FIG>, the antenna and the radio frequency circuit that have receiving and sending functions are denoted as a transceiver unit <NUM>, and the processor that has a processing function is denoted as a processing unit <NUM>. That is, the terminal device includes the transceiver unit <NUM> and the processing unit <NUM>. The transceiver unit <NUM> may also be referred to as a transceiver, a transceiver machine, a transceiver apparatus, or the like. The processing unit <NUM> may also be referred to as a processor, a processing board, a processing module, a processing apparatus, or the like. Optionally, a component for implementing the receiving function in the transceiver unit <NUM> may be considered as a receiving unit, and a component for implementing the sending function in the transceiver unit <NUM> may be considered as a sending unit. That is, the transceiver unit <NUM> includes the receiving unit and the sending unit. The transceiver unit sometimes may also be referred to as a transceiver machine, a transceiver, a transceiver circuit, or the like. The receiving unit sometimes may also be referred to as a receiver machine, a receiver, a receiving circuit, or the like. The sending unit sometimes may also be referred to as a transmitter machine, a transmitter, a transmitter circuit, or the like.

For example, in an implementation, the transceiver unit <NUM> is further configured to perform the receiving operation on the terminal device side in step S510 shown in <FIG>, and/or the transceiver unit <NUM> is further configured to perform other receiving and sending steps on the terminal device side. The processing unit <NUM> is configured to perform step S520 shown in <FIG>, and/or the processing unit <NUM> is further configured to perform other processing steps on the terminal device side.

For another example, in an implementation, the transceiver unit <NUM> is further configured to perform the receiving operations on the terminal device side in steps S720, S740, and S750 shown in <FIG>. The transceiver unit <NUM> is further configured to perform the sending operations on the terminal device side in steps S730 and S760 shown in <FIG>, and/or the transceiver unit <NUM> is further configured to perform other receiving and sending steps on the terminal device side. The processing unit <NUM> is configured to perform step S750 shown in <FIG>, and/or the processing unit <NUM> is further configured to perform other processing steps on the terminal device side.

For still another example, in an implementation, the transceiver unit <NUM> is further configured to perform the receiving operation on the terminal device side in step S810 shown in <FIG>. The transceiver unit <NUM> is further configured to perform the sending operation on the terminal device side in step S830 shown in <FIG>, and/or the transceiver unit <NUM> is further configured to perform other receiving and sending steps on the terminal device side. The processing unit <NUM> is configured to perform the processing operation on the terminal device side in step S830 shown in <FIG>, for example, determine, based on preamble configuration information, a time-frequency resource used to send a preamble, and/or the processing unit <NUM> is further configured to perform other processing steps on the terminal device side.

It should be understood that <FIG> is merely an example instead of a limitation. The terminal device including the transceiver unit and the processing unit may not depend on the structure shown in <FIG>.

When the communication device <NUM> is a chip, the chip includes a transceiver unit and a processing unit. The transceiver unit may be an input/output circuit or a communication interface. The processing unit may be a processor, a microprocessor, or an integrated circuit, integrated on the chip.

An implementation of this application further provides a communication device <NUM>. The communication device <NUM> may be a network device or a chip. The communication device <NUM> may be configured to perform an action performed by the neighbor cell in the foregoing method implementations, or an action performed by the serving cell in the foregoing method implementations, or an action performed by the location management device in the foregoing method implementations.

When the communication device <NUM> is a network device, for example, a base station, <FIG> is a simplified schematic diagram of a structure of the base station. The base station includes a part <NUM> and a part <NUM>. The part <NUM> is mainly configured to: send and receive a radio frequency signal, and perform conversion between the radio frequency signal and a baseband signal. The part <NUM> is mainly configured to: perform baseband processing, control the base station, and so on. The part <NUM> may be usually referred to as a transceiver unit, a transceiver machine, a transceiver circuit, a transceiver, or the like. The part <NUM> is usually a control center of the base station, and may be usually referred to as a processing unit, and is configured to control the base station to perform a processing operation on the network device side in the foregoing method implementations.

The transceiver unit in the part <NUM> may also be referred to as a transceiver machine, a transceiver, or the like. The transceiver unit includes an antenna and a radio frequency unit. The radio frequency unit is mainly configured to perform radio frequency processing. Optionally, a component for implementing a receiving function in the part <NUM> may be considered as a receiving unit, and a component for implementing a sending function may be considered as a sending unit. That is, the part <NUM> includes the receiving unit and the sending unit. The receiving unit may also be referred to as a receiver machine, a receiver, a receiver circuit, or the like. The sending unit may be referred to as a transmitter machine, a transmitter, a transmitter circuit, or the like.

The part <NUM> may include one or more boards, and each board may include one or more processors and one or more memories. The processor is configured to read and execute a program in the memory to implement a baseband processing function and control the base station. If there are a plurality of boards, the boards may be interconnected to enhance a processing capability. In an optional implementation, the plurality of boards may share one or more processors, or the plurality of boards may share one or more memories, or the plurality of boards may simultaneously share one or more processors.

For example, in an implementation, the transceiver unit in the part <NUM> is configured to perform the sending operations on the neighbor cell side in step S710 and S750 in <FIG>, and/or the transceiver unit in the part <NUM> is further configured to perform other receiving and sending steps on the neighbor cell side in the implementations of this application. The processing unit in the part <NUM> is configured to perform a processing step on the neighbor cell side in the implementations of this application.

For another example, in another implementation, the transceiver unit in the part <NUM> is configured to perform the receiving operations on the neighbor cell side in step S820 and S830 in <FIG>, and/or the transceiver unit in the part <NUM> is further configured to perform other receiving and sending steps on the neighbor cell side in the implementations of this application. The processing unit in the part <NUM> is configured to perform step S840 in <FIG>.

For still another example, in another implementation, the transceiver unit in the part <NUM> is configured to perform the sending operations on the serving cell side in steps S740 and S750 in <FIG>, the transceiver unit in the part <NUM> is configured to perform the receiving operation on the serving cell side in step S730 in <FIG>, and/or the transceiver unit in the part <NUM> is further configured to perform other receiving and sending steps on the serving cell side in the implementations of this application. The processing unit in the part <NUM> is configured to perform a processing step on the serving cell side in the implementations of this application.

For yet another example, in another implementation, the transceiver unit in the part <NUM> is configured to perform the sending operations on the serving cell side in step S810 and S820 in <FIG>, and/or the transceiver unit in the part <NUM> is further configured to perform other receiving and sending steps on the serving cell side in the implementations of this application. The processing unit in the part <NUM> is configured to perform a processing step on the serving cell side in the implementations of this application.

It should be understood that <FIG> is merely an example instead of a limitation. The network device including the transceiver unit and the processing unit may not depend on the structure shown in <FIG>.

An implementation of this application further provides a communication system. The communication system includes the location management device, the serving cell, the neighbor cell, and the terminal device in the foregoing implementations.

An implementation of this application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is enabled to implement the method on the terminal device side, the method on the neighbor cell side, the method on the serving cell side, or the method on the location management device side, in the foregoing method implementations.

An implementation of this application further provides a computer program product including instructions. When the instructions are executed by a computer, the computer is enabled to implement the method on the terminal device side, the method on the neighbor cell side, the method on the serving cell side, or the method on the location management device side, in the foregoing method implementations.

For explanations and beneficial effects of related content of any of the communication apparatuses provided above, refer to the corresponding method implementation provided above, and details are not described herein again.

In the implementations of this application, the terminal device or the network device includes a hardware layer, an operating system layer running above the hardware layer, and an application layer running above the operating system layer. The hardware layer includes hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and a memory (which is also referred to as a main memory). The operating system may be any one or more computer operating systems that implement service processing through a process (process), for example, a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as a browser, an address book, word processing software, and instant messaging software. In addition, a specific structure of an execution body of the methods provided in the implementations of this application is not specifically limited in the implementations of this application, provided that a program that records code of the methods provided in the implementations of this application can be run to perform communication based on the methods provided in the implementations of this application. For example, the methods in the implementations of this application may be performed by the terminal device or the network device, or a function module that can invoke and execute the program in the terminal device or network device.

In addition, aspects or features of this application may be implemented as a method, an apparatus, or a product that uses standard programming and/or engineering technologies. The term "product" used in this application covers a computer program that can be accessed from any computer-readable component, carrier, or medium. For example, a computer-readable medium may include but is not limited to a magnetic storage component (for example, a hard disk, a floppy disk, or a magnetic tape), an optical disc (for example, a compact disc (compact disc, CD) or a digital versatile disc (digital versatile disc, DVD)), a smart card, and a flash memory component (for example, an erasable programmable read-only memory (erasable programmable read-only memory, EPROM), a card, a stick, or a key drive). In addition, various storage media described in this application may represent one or more devices and/or other machine-readable media that are configured to store information. The term "machine-readable media" may include but is not limited to a radio channel and various other media that can store, include, and/or carry instructions and/or data.

It should be understood that, the processor mentioned in the implementations of this application may be a central processing unit (central processing unit, CPU), or may be another general-purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.

It should be further understood that the memory mentioned in the implementations of this application may be a volatile memory or a nonvolatile memory, or may include a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (read-only memory, ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an electrically erasable programmable read-only memory (electrically EPROM, EEPROM), or a flash memory. The volatile memory may be a random access memory (random access memory, RAM), and is used as an external cache. Through examples rather than limitative descriptions, RAMs in many forms may be used, for example, a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), a synchronous dynamic random access memory (synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), an enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), a synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and a direct rambus random access memory (direct rambus RAM, DR RAM).

It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA, or another programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (a storage module) is integrated into the processor.

It should be noted that the memory described in this application includes but is not limited to the foregoing memory, and further includes any memory of another proper type.

A person of ordinary skill in the art may be aware that, in combination with the examples described in the implementations disclosed in this application, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware.

It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method implementations.

In the several implementations provided in this application, it should be understood that the provided system, apparatus, and method may be implemented in other manners. For example, the apparatus implementations described above are merely examples. For example, the unit division described above is merely logical function division and may be other division in actual implementation. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces.

The foregoing units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve technical effects of the solutions in the implementations.

In addition, function units in the implementations of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit.

When the foregoing functions are implemented in the form of a software function unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to an existing technology, or some of the technical solutions may be implemented in a form of a software product. The computer software product is stored in a storage medium, and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the implementations of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disc.

Claim 1:
A method for obtaining a timing advance TA, comprising:
receiving (<NUM>), by a terminal device, first time information broadcast by a first cell, and receiving second time information broadcast by a neighbor cell; and
obtaining (<NUM>) a TA from the terminal device to the neighbor cell based on the following information: a time point indicated by the first time information, a TA from the terminal device to the first cell, a time difference between receiving of the first time information and receiving of the second time information, and a time point indicated by the second time information; characterised in that
obtaining a TA from the terminal device to the neighbor cell specifically comprises
obtaining, based on the TA from the terminal device to the first cell and the time point indicated by the first time information, an absolute time point at which the first time information is received;
calculating, based on the absolute time point at which the first time information is received and the time difference between receiving of the first time information and receiving of the second time information, an absolute time point at which the second time information is received; and
calculating the TA from the terminal device to the neighbor cell based on the absolute time point at which the second time information is received and the time point indicated by the second time information.