RANGING METHOD AND APPARATUS
20240111017 ยท 2024-04-04
Assignee
Inventors
- Baojian ZHOU (Shenzhen, CN)
- Jiajin Luo (Shenzhen, CN)
- Xiaohui Peng (Shenzhen, CN)
- Xiaoyue HOU (Shenzhen, CN)
- Chenchen Liu (Shenzhen, CN)
Cpc classification
G01S5/08
PHYSICS
International classification
Abstract
A transmit end receives a first ranging parameter from a receive end, where the first ranging parameter is received in an N.sup.th time of ranging, and the first ranging parameter includes first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal (S310). The transmit end determines a first ranging waveform based on the first ranging parameter (S320). The transmit end sends the first ranging waveform to the receive end (S330). The transmit end receives a second ranging parameter from the receive end, where the second ranging parameter is determined based on the first ranging waveform, the second ranging parameter includes second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal, and the second ranging precision is less than the first ranging precision (S340).
Claims
1. A ranging method, comprising: receiving, by a transmit end, a first ranging parameter from a receive end, wherein the first ranging parameter is received in an N.sup.th time of ranging, and the first ranging parameter comprises first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal; determining, by the transmit end, a first ranging waveform based on the first ranging parameter; sending, by the transmit end, the first ranging waveform to the receive end; receiving, by the transmit end, a second ranging parameter from the receive end, wherein the second ranging parameter is determined based on the first ranging waveform, and the second ranging parameter comprises second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal, wherein the second ranging precision is less than the first ranging precision; and when a value of the second ranging parameter does not meet a threshold of a system, performing, by the transmit end, an (N+1).sup.th time of ranging, or when a value of the second ranging parameter meets a threshold of a system, ending, by the transmit end, ranging, wherein N is an integer greater than 0.
2. The ranging method according to claim 1, wherein the determining, by the transmit end, a first ranging waveform based on the first ranging parameter comprises: determining, by the transmit end, a first distance of the ranging signal based on the first ranging parameter; and generating, by the transmit end, the first ranging waveform based on a type of the ranging signal and the first distance.
3. The ranging method according to claim 2, wherein when the first ranging parameter is the first signal-to-noise ratio, the determining, by the transmit end, a first distance of the ranging signal based on the first ranging parameter comprises: determining, by the transmit end, the first ranging precision based on the first signal-to-noise ratio; and determining, by the transmit end, the first distance of the ranging signal based on the first ranging precision.
4. The ranging method according to claim 1, wherein when the second ranging parameter is the second signal-to-noise ratio, the method further comprises: determining, by the transmit end, the second ranging precision based on the second signal-to-noise ratio; and when a value of the second ranging precision is greater than a first threshold, performing, by the transmit end, the (N+1).sup.th time of ranging, or when a value of the second ranging precision is less than or equal to a first threshold, ending, by the transmit end, the ranging.
5. The ranging method according to claim 1, wherein the method further comprises: determining, by the transmit end, a second distance of the ranging signal, wherein no distance ambiguity point exists in the second distance within a ranging range supported by the system; generating, by the transmit end, a second ranging waveform based on the type of the ranging signal and the second distance; and sending, by the transmit end, the second ranging waveform to the receive end, wherein the first ranging parameter is determined based on the second ranging waveform, wherein the second distance is greater than the first distance.
6. The method according to claim 1, wherein a quantity of subcarriers of the ranging signal is M , M is 2 to the power of K, K?3, a quantity of zero power subcarriers of the ranging signal is P,
7. A ranging method, comprising: sending, by a receive end, a first ranging parameter to a transmit end, wherein the first ranging parameter is sent in an N.sup.th time of ranging, and the first ranging parameter comprises first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal; receiving, by the receive end, a first ranging waveform from the transmit end, wherein the first ranging waveform is generated based on the first ranging parameter; determining, by the receive end, a second ranging parameter based on the first ranging waveform, wherein the second ranging parameter comprises second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal, and the second ranging precision is less than the first ranging precision; and when a value of the second ranging parameter does not meet a threshold of a system, performing, by the receive end, an (N+1).sup.th time of ranging, or when a value of the second ranging parameter meets a threshold of a system, ending, by the receive end, ranging, wherein N is an integer greater than 0.
8. The ranging method according to claim 7, wherein that the first ranging waveform is generated based on the first ranging parameter comprises: the first ranging waveform is generated based on a type of the ranging signal and a first distance, and the first distance is generated based on the first ranging parameter.
9. The ranging method according to claim 8, wherein when the first ranging parameter is the first signal-to-noise ratio, that the first distance is generated based on the first ranging parameter comprises: the first distance is generated based on the first ranging precision, and the first ranging precision is generated based on the first signal-to-noise ratio.
10. The method according to claim 7, wherein when the second ranging parameter is the second signal-to-noise ratio, the method further comprises: determining, by the receive end, the second ranging precision based on the second signal-to-noise ratio; and when a value of the second ranging precision is greater than a first threshold, performing, by the receive end, the (N+1).sup.th time of ranging, or when a value of the second ranging precision is less than or equal to a first threshold, ending, by the receive end, the ranging.
11. The ranging method according to claim 7, wherein the method further comprises: receiving, by the receive end, a second ranging waveform from the transmit end, wherein the second ranging waveform is generated based on the type of the ranging signal and a second distance, wherein no distance ambiguity point exists in the second distance within a ranging range supported by the system, and the second distance is greater than the first distance; determining, by the receive end, the first ranging parameter based on the second ranging waveform; and when a value of the first ranging parameter does not meet the threshold of the system, performing, by the receive end, the (N+1).sup.th time of ranging, or when a value of the first ranging parameter meets the threshold of the system, ending, by the receive end, the ranging.
12. The method according to any one of claim 7, wherein a quantity of subcarriers of the ranging signal is M , M is 2 to the power of K, K?3, a quantity of zero power subcarriers of the ranging signal is P,
13. A ranging apparatus, comprising at least one processor, wherein the at least one processor is configured to execute a computer program stored in a memory, to enable the ranging apparatus to implement: receiving, by a transmit end, a first ranging parameter from a receive end, wherein the first ranging parameter is received in an Nth time of ranging, and the first ranging parameter comprises first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal; determining, by the transmit end, a first ranging waveform based on the first ranging parameter; sending, by the transmit end, the first ranging waveform to the receive end; receiving, by the transmit end, a second ranging parameter from the receive end, wherein the second ranging parameter is determined based on the first ranging waveform, and the second ranging parameter comprises second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal, wherein the second ranging precision is less than the first ranging precision; and when a value of the second ranging parameter does not meet a threshold of a system, performing, by the transmit end, an (N+1).sup.th time of ranging, or when a value of the second ranging parameter meets a threshold of a system, ending, by the transmit end, ranging, wherein N is an integer greater than 0.
14. The ranging apparatus according to claim 13, wherein the determining, by the transmit end, a first ranging waveform based on the first ranging parameter comprises: determining, by the transmit end, a first distance of the ranging signal based on the first ranging parameter; and generating, by the transmit end, the first ranging waveform based on a type of the ranging signal and the first distance.
15. The ranging apparatus according to claim 14, wherein when the first ranging parameter is the first signal-to-noise ratio, the determining, by the transmit end, a first distance of the ranging signal based on the first ranging parameter comprises: determining, by the transmit end, the first ranging precision based on the first signal-to-noise ratio; and determining, by the transmit end, the first distance of the ranging signal based on the first ranging precision.
16. The ranging apparatus according to claim 13, wherein when the second ranging parameter is the second signal-to-noise ratio, the method further comprises: determining, by the transmit end, the second ranging precision based on the second signal-to-noise ratio; and when a value of the second ranging precision is greater than a first threshold, performing, by the transmit end, the (N+1).sup.th time of ranging, or when a value of the second ranging precision is less than or equal to a first threshold, ending, by the transmit end, the ranging.
17. The ranging apparatus according to claim 13, wherein the ranging apparatus further implements: determining, by the transmit end, a second distance of the ranging signal, wherein no distance ambiguity point exists in the second distance within a ranging range supported by the system; generating, by the transmit end, a second ranging waveform based on the type of the ranging signal and the second distance; and sending, by the transmit end, the second ranging waveform to the receive end, wherein the first ranging parameter is determined based on the second ranging waveform, wherein the second distance is greater than the first distance.
18. The ranging apparatus according to claim 13, wherein a quantity of subcarriers of the ranging signal is M , M is 2 to the power of K, K?3, a quantity of zero power subcarriers of the ranging signal is P,
Description
BRIEF DESCRIPTION OF DRAWINGS
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
DESCRIPTION OF EMBODIMENTS
[0066] A wireless communication system to which embodiments of this application may be applied includes but is not limited to a global system for mobile communications (GSM) system, a long term evolution (LTE) frequency division duplex (FDD) system, an LTE time division duplex (TDD) system, an LTE system, a long term evolution-advanced (LTE-Advanced, LTE-A) system, a next generation communication system (for example, a 5G communication system or a 6G communication system), a converged system of a plurality of access systems, or an evolved system.
[0067] The technical solutions provided in this application may be further applied to machine type communication (MTC), a long term evolution-machine (LTE-M) technology, a device-to-device (D2D) network, a machine-to-machine (M2M) network, an internet of things (IoT) network, or another network. The IoT network may include, for example, internet of vehicles. Communication manners in an internet of vehicles system are collectively referred to as vehicle-to-X (V2X, where X can represent everything). For example, the V2X may include vehicle-to-vehicle (V2V) communication, vehicle-to-infrastructure (V2I) communication, vehicle-to-pedestrian (V2P) communication, or vehicle-to-network (V2N) communication.
[0068] A terminal device in embodiments of this application is an entry for interaction between a mobile user and a network, and can provide a basic computing capability and a basic storage capability, display a service window to the user, and accept an operation input of the user. A terminal device in 5G may establish a signal connection and a data connection to a radio access network device by using a new radio technology, to transmit a control signal and service data to a mobile network. The terminal device in embodiments of this application may include various access terminals, mobile devices, user terminals, or user apparatuses that have a wireless communication function. For example, the terminal device may be user equipment (user equipment, UE), for example, a mobile phone, a tablet computer (pad), a desktop computer, a computer having a wireless transceiver function, or a virtual reality (VR) terminal device, a television, or an augmented reality (AR) terminal device. The terminal device may alternatively be a wireless terminal in industrial control, a machine type communication (MTC) terminal, customer premise equipment (CPE), a wireless terminal in self-driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a smart home, a smart speaker, an electronic door lock, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device having a wireless communication function, a computing device or another processing device connected to a wireless modem, an automated guided vehicle (AGV), an uncrewed aerial vehicle, a car, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, a terminal device in a future evolved public land mobile network (PLMN) or a non-public network (NPN), or the like.
[0069] The radio access network device in embodiments of this application is similar to a base station in a conventional network. The radio access network device is deployed near the terminal device, provides a network access function for an authorized user in a specific region, and can determine transmission tunnels of different quality based on a user level, a service requirement, and the like to transmit user data. The radio access network device can manage and appropriately utilize a resource of the radio access network device, provide an access service for the terminal device based on a requirement, and is responsible for forwarding the control signal and the user data between the terminal device and a core network. The radio access network device in embodiments of this application may be an access device used by the terminal device to access a mobile communication system in a wireless manner. The radio access network device may be a base station, an evolved NodeB (eNB), a home base station, an access point (AP) in a wireless fidelity (Wi-Fi) system, a station (STA), a wireless relay node, a wireless backhaul node, a transmission point (TP) or a transmission reception point (TRP), a macro base station or a micro base station, a high frequency base station, or the like. Alternatively, the radio access network device may be a next generation NodeB (gNB) in an NR system, or may be a component or a part of a device forming the base station, such as a central unit (CU), a distributed unit (DU), or a baseband unit (BBU). It should be understood that a specific technology and a specific device form used by the radio access network device are not limited in embodiments of this application. In this application, the radio access network device is referred to as a network device for short. Unless otherwise specified, in this application, all network devices refer to radio access network devices. In this application, the network device may be a network device, or may be a chip used in the network device to complete a wireless communication processing function.
[0070] The following describes in detail scenarios to which embodiments of this application are applicable with reference to
[0071] In this application, a ranging method may be applied to various devices that support a ranging function, including the various terminal devices and the various radio access network devices mentioned above. As shown in
[0072] For ease of understanding, the following briefly describes terms in this application.
[0073] Root-mean-square bandwidth: Root-mean-square bandwidth for a time domain signal S(t) is defined as:
[0074] f is a frequency, S(f) is Fourier transform (namely, a spectrum) of the signal, and |S(f)|.sup.2 is a power spectral density of the signal. It should be understood that signals with same power or a same maximum frequency may not have equal root-mean-square bandwidth.
[0075] Angular frequency: A unit of the angular frequency is rad/s (radian per second). A relationship between the angular frequency and the frequency f is as follows:
?=2?f.
[0076] Cramer-Rao lower bound (CRLB): The Cramer-Rao lower bound is a lower bound of a variance of an unbiased estimator and describes best performance that the unbiased estimator can achieve. Based on the CRLB, a lower bound of precision 6 of performing ranging by using the signal S(t) under a condition of Gaussian white noise is inversely proportional to the root-mean-square bandwidth of the S(t) and is also inversely proportional to a square root of a signal-to-noise ratio (SNR), that is,
[0077] ? is a constant, and C is a signal propagation speed.
[0078] Ranging may be performed based on a phase of a received signal. A ranging signal may be a single-carrier signal, a dual-carrier signal, or a signal including a plurality of subcarriers (for example, orthogonal frequency division multiplexing (OFDM) signal). The single-carrier signal is used as an example. It is assumed that a transmitted signal is:
x(t)=e.sup.j?t.
[0079] ? is a carrier angular frequency and t is time. Assuming that a signal transmission delay is ?, a received signal is:
y(t)=x(t??)=e.sup.j?(t??)=e.sup.?j??x(t)=e.sup.j?(?)x(t).
[0080] ?(?)=??t is a phase delay of the received signal relative to the transmitted signal.
[0081] Assuming that the propagation speed is C, a distance can be estimated as:
d=c?.
[0082] Phase-based ranging has a problem of ambiguity. For one observation value, there are a plurality of phase ambiguity points, and a spacing between the phase ambiguity points is 2 ?. Correspondingly, phase ambiguity results in distance ambiguity, to be specific, one distance observation value corresponds to a plurality of potential true distances.
[0083] In dual-carrier phase difference based ranging, a ranging range conflicts with ranging precision. A larger ranging range requires a larger unambiguous distance supported by a system, that is, requires a smaller dual-carrier frequency difference. A smaller frequency difference means smaller bandwidth. Based on the CRLB, the ranging precision decreases when the bandwidth becomes smaller. Although the decision can be improved by increasing signal power, power consumption of the system is also increased.
[0084] In the dual-carrier phase difference based ranging method, two carrier signals whose frequency spacing is ?f=f.sub.1?f.sub.2 are sent. A receive end knows initial phases of the two carrier signals at a transmit end, detects change amounts {?.sub.i} (i=1, 2) of phases of the two carrier signals relative to the initial phases, calculates a difference ??=?.sub.1??.sub.2 between the change amounts, and estimates a signal transmission delay ? by using the following formula:
[0085] A distance is estimated as d=c?, where a propagation speed is C.
[0086] In an OFDM multi-carrier phase based ranging method, a transmitted signal is an OFDM signal, a subcarrier frequency {f.sub.i} of the OFDM signal is evenly distributed, and a spacing is ?f. The receive end knows an initial phase of each subcarrier of the transmit end, detects a change amount {?.sub.i} of a phase of each subcarrier relative to the initial phase, performs linear fitting on the phase change amount {?.sub.i} and the frequency {f.sub.i}, and estimates a delay by fitting a slope of a straight line, to estimate a distance. A linear relationship between the phase change amount and the frequency is as follows:
?.sub.i=?2?f.sub.i?.
[0087] In this way, a signal transmission delay ? is estimated, and a distance is estimated as d=c?, where a propagation speed is C. Currently, in phase-based ranging, to support unambiguous ranging of a large-distance range, a frequency spacing of a carrier is required to be small, resulting in reduction of ranging precision. For example, in phase-based ranging using dual-carrier and multi-carrier signals, to support the unambiguous ranging of the large-distance range, a frequency spacing of a carrier is required to be small, resulting in the reduction of the ranging precision. In phase-based ranging using a single-carrier signal, to support the unambiguous ranging of the large-distance range, a frequency of a carrier is required to be small, resulting in the reduction of the ranging precision. It can be learned that currently a ranging range conflicts with the ranging precision.
[0088] This application provides a ranging method. Based on a relationship between a maximum unambiguous distance and a wavelength of a single-carrier signal, a frequency difference of a dual-carrier signal, and a frequency spacing of frequency components of a multi-carrier signal, a maximum unambiguous distance of a ranging signal can be gradually reduced, to implement high-precision ranging while avoiding distance ambiguity.
[0089]
[0090] Step S310: A transmit end receives a first ranging parameter from a receive end. The first ranging parameter is received in an N.sup.th (where N is an integer greater than 0) time of ranging. The first ranging parameter includes first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal.
[0091] It should be noted that, in this application, the transmit end may be a network device (for example, a base station) or may be a terminal device (for example, user equipment).
[0092] It should be noted that, in this application, a ranging parameter may be used to determine ranging precision. In other words, the ranging parameter mentioned in this application includes but is not limited to the ranging precision and a signal-to-noise ratio, and may also include another ranging parameter. Any ranging precision that can be determined (or may be understood as obtained) by using these parameters falls within the protection scope of this application.
[0093] In a possible implementation, the first ranging parameter may be the first ranging precision, or the first ranging parameter may be the first signal-to-noise ratio. The first ranging parameter may alternatively include both the first ranging precision and the first signal-to-noise ratio.
[0094] Step S320: The transmit end determines a first ranging waveform based on the first ranging parameter.
[0095] It should be noted that, in this application, the ranging signal may be of a single-carrier type, a dual-carrier type, or a multi-carrier type. A type of the ranging signal is not limited in this application.
[0096] In this application, a first distance may be determined based on the first ranging parameter. For example, the first distance may be determined based on the first ranging precision. In this application, the first distance may be an integer multiple of the first ranging precision. If the first ranging parameter includes both the first ranging precision and the first signal-to-noise ratio, the transmit end may determine a parameter to be used to determine the first distance. Alternatively, a system may preset a priority, for example, preferentially use the first ranging precision to determine the first distance. In other words, when the ranging parameter received by the transmit end includes two or more types of parameters, the transmit end may flexibly select a parameter to be used to determine the first distance. This is not limited in this application.
[0097] In this application, bandwidth of the ranging signal may be obtained based on the type of the ranging signal and the first distance, to generate a ranging waveform, and perform ranging on the transmit end and the receive end. In this application, the bandwidth of the ranging signal may be a frequency of a single-carrier signal, a carrier spacing (bandwidth) of a dual-carrier signal, or a non-zero subcarrier frequency spacing of a multi-carrier signal.
[0098] In an example, for a dual-carrier ranging signal, bandwidth of the dual-carrier ranging signal may be calculated based on a dual-carrier bandwidth calculation formula (for example,
where for details, refer to descriptions in a method 400). In another example, for a multi-carrier ranging signal, bandwidth of the multi-carrier ranging signal may be determined based on a multi-carrier bandwidth (where bandwidth may also be understood as a frequency spacing between two adjacent non-zero subcarriers) calculation formula (for example,
where for details, refer to descriptions in the method 400).
[0099] It should be understood that, if the ranging waveform cannot be generated due to a limitation of a system specification, a ranging procedure is ended. For example, a case in which the ranging waveform cannot be generated includes: A frequency of a single-carrier signal reaches a system capability limit; a frequency difference of a dual-carrier signal reaches a system capability limit; or bandwidth of a multi-carrier signal reaches a system capability limit. In this case, the transmit end may end the ranging.
[0100] Step S330: The transmit end sends the first ranging waveform to the receive end.
[0101] In a possible implementation, the transmit end may send the first ranging waveform to the receive end.
[0102] Step S340: The transmit end receives a second ranging parameter from the receive end. The second ranging parameter is determined based on the first ranging waveform. The second ranging parameter includes second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal. The second ranging precision is less than the first ranging precision.
[0103] In a possible implementation, the receive end may determine the second ranging parameter based on the first ranging waveform. For example, the second ranging parameter may be the second ranging precision, or the second ranging parameter may be the second signal-to-noise ratio. It should be understood that the second ranging parameter may alternatively include both the second ranging precision and the second signal-to-noise ratio.
[0104] Step S350: The transmit end determines, based on the second ranging parameter and a threshold of the system, whether to perform a next time of ranging.
[0105] In a possible implementation, when a value of the second ranging parameter does not meet the threshold of the system, the transmit end performs an (N+1).sup.th time of ranging. Alternatively, when a value of the second ranging parameter meets the threshold of the system, the transmit end may end the ranging.
[0106] In an example, when the second ranging precision is greater than a first threshold that is of ranging precision and that is specified by the system, next-stage ranging may be performed. When the second ranging precision is less than or equal to a first threshold that is of ranging precision and that is specified by the system, the ranging procedure is ended.
[0107] In another example, when the second signal-to-noise ratio is less than or equal to a second threshold that is of a signal-to-noise ratio and that is specified by the system, next-stage ranging may be performed. When the second signal-to-noise ratio is greater than a second threshold that is of a signal-to-noise ratio and that is specified by the system, the ranging procedure is ended. In other words, in this application, there may be a specific mapping relationship between the signal-to-noise ratio and the ranging precision. A relationship between the second signal-to-noise ratio and a signal-to-noise ratio threshold (for example, the second threshold) is determined, so that whether the ranging precision meets the ranging precision specified by the system is also obtained, thereby improving flexibility.
[0108] It should be understood that, if the second ranging parameter includes both the second ranging precision and the second signal-to-noise ratio, the transmit end may preferentially use the second ranging precision to determine whether the ranging precision meets the ranging precision specified by the system. Alternatively, the transmit end may determine, based on both the second ranging precision and the second signal-to-noise ratio, whether the ranging precision meets the ranging precision specified by the system. When a result of determining, by the transmit end based on the second signal-to-noise ratio, whether the ranging precision meets the ranging precision specified by the system is inconsistent with a result of determining by the transmit end directly based on the second ranging precision, the transmit end may preferentially use the determining result based on the second ranging precision. Alternatively, provided that it is determined, based on one of the ranging parameters, that the ranging precision specified by the system is met, the transmit end determines that the ranging procedure can be ended. Alternatively, provided that it is determined, based on one of the ranging parameters, that the ranging precision specified by the system is not met, the transmit end determines that the (N+1).sup.th time of ranging can be performed. In other words, when two ranging parameters are fed back at same time, a person skilled in the art can flexibly set a determining rule, so that the transmit end determines whether the ranging precision specified by the system is met.
[0109] According to the method provided in this application, ranging is performed in stages, so that a conflict between a ranging range and the ranging precision is resolved, and the ranging precision is improved while the distance ambiguity is avoided.
[0110] Step S410: A transmit end determines a maximum unambiguous distance #A of a ranging signal.
[0111] In a possible implementation, it is assumed that a ranging range D is supported by a system, the transmit end (for example, a transmitter device) may determine a maximum unambiguous distance D.sub.m of the ranging signal based on the ranging range D supported by the system, where D.sub.m?D. For example, D.sub.1?D. Optionally, in some embodiments, the transmit end may initialize a number of a ranging stage, for example, set m to 1.
[0112] Step S420: The transmit end generates a ranging waveform #W.sub.m.
[0113] In a possible implementation, the transmit end may generate the ranging waveform W.sub.m based on a type of the ranging signal and a relationship between the determined maximum unambiguous distance D.sub.m and a waveform parameter. For example, the transmit end may generate a ranging waveform W.sub.1 based on the type of the ranging signal and a relationship between a determined maximum unambiguous distance D.sub.1 and the waveform parameter.
[0114] It should be understood that, in this application, the ranging waveform W.sub.m refers to a specific implementation of a signal class, for example, a single-carrier type, a dual-carrier type, or a multi-carrier type, and is a waveform W.sub.m(t) corresponding to a continuous time segment. Key parameters of the ranging waveform are the signal class, duration, and a wavelength (for the single-carrier type) or a frequency spacing (for the dual-carrier type and the multi-carrier type).
[0115] In an example, if the ranging signal is a single-carrier ranging signal,
where c is a speed of light, and f is a frequency of the single-carrier signal,
[0116] In an example, if the ranging signal is a dual-carrier ranging signal,
where c is a speed of light, and f.sub.1 and f.sub.2 are frequencies of the two carrier signals.
[0117] In an example, if the ranging signal is a multi-carrier signal (for example, an OFDM signal),
where c is a speed of light, K is a minimum spacing quantity between non-zero power subcarriers, and ?f is a subcarrier spacing frequency.
[0118] The foregoing wavelength (for the single-carrier type) or frequency spacing (for the dual-carrier type and the multi-carrier type) may be calculated based on D.sub.m. After the wavelength and the frequency spacing are determined, the duration of the waveform is determined to determine the ranging waveform W.sub.m.
[0119] Step S430: The transmit end sends the ranging waveform #W.sub.m to a receive end.
[0120] In a possible implementation, the transmit end may send the ranging waveform W.sub.1 to the receive end (for example, a receiver).
[0121] In some embodiments, if the ranging waveform cannot be generated due to a limitation of a system specification, a ranging procedure is ended. For example, a case in which the ranging waveform cannot be generated in this application may include but is not limited to: The frequency of the single-carrier signal reaches a system capability limit; a frequency difference of the dual-carrier signal reaches a system capability limit; or bandwidth of the multi-carrier signal reaches a system capability limit.
[0122] Step S440: The receive end receives the ranging waveform #W.sub.m, and estimates ranging precision #A.
[0123] Manner 1:
[0124] In a possible implementation, the receive end may calculate ranging precision ?.sub.m based on a formula and based on the type of the ranging signal and a signal-to-noise ratio.
[0125] In this application, the signal-to-noise ratio may be estimated by the receiver based on strength and a noise level of the received ranging signal. Alternatively, the signal-to-noise ratio may be estimated by the receiver based on a signal other than the ranging signal. For example, a signal-to-noise ratio of a preamble of a header of a frame may be estimated. In an example, if the ranging signal is the single-carrier ranging signal,
where ? is a constant greater than 0, and may be pre-calibrated based on measured performance, c is a propagation speed of the signal, and f is the frequency of the single-carrier signal. In an example, if the ranging signal is the dual-carrier ranging signal,
where ? is a constant greater than 0, and may be pre-calibrated based on measured performance, c is a propagation speed of the signal, and f.sub.1 and f.sub.2 are the frequencies of the two carrier signals.
[0126] In an example, if the ranging signal is the multi-carrier signal (for example, the OFDM signal),
where ? is a constant greater than 0, and may be pre-calibrated based on measured performance, c is a propagation speed of the signal, and B.sub.RMS is root-mean-square bandwidth of the signal.
[0127] Manner 2:
[0128] In a possible implementation, the receive end may look up a pre-calibrated table based on the type of the ranging signal, a parameter, and an SNR, to obtain estimated ranging precision ?.sub.m.
[0129] It should be noted that, in this application, if a value of a signal-to-noise ratio fed back by the transmit end does not exist in the table, the receive end may determine a value of the SNR by using a nearest neighbor value or an interpolation method, to determine the ranging precision.
[0130] In this embodiment, the table is stored in the receive end, and subsequently the receive end may feed back the queried ranging precision to the transmit end. It may also be understood that, in this embodiment, Table 1 is configured at the receive end.
[0131] In an example, it is assumed that the receive end receives the ranging waveform #W.sub.m, and determines, based on the ranging waveform #W.sub.m, that the signal is of the multi-carrier type, and that root-mean-square bandwidth for the multi-carrier type is 1 MHz. The receive end estimates that the signal-to-noise ratio is 30 dB based on strength and a noise level of the received ranging signal. The system specifies a calibration parameter ?=2, and the receive end may determine that the ranging precision is 19 m.
TABLE-US-00001 TABLE 1 Ranging precision lookup table Signal Calibration SNR Ranging class Signal parameter parameter (dB) precision (m) Single- Frequency f = 700 MHz ? = 2 10 0.271 carrier 20 0.086 30 0.027 Frequency f = 2 GHz ? = 1.8 10 0.085 20 0.027 30 0.009 Dual- Frequency difference ? = 2 10 190 carrier ?f = 1 MHz 20 60 30 19 Frequency difference ? = 1.8 10 17 ?f = 10 MHz 20 5.4 30 1.7 Frequency difference ? = 1.5 10 1.42 ?f = 100 MHz 20 0.45 30 0.142 Multi- Root-mean-square bandwidth ? = 2 10 190 carrier B.sub.RMS = 1 MHz 20 60 30 19 Root-mean-square bandwidth ? = 1.8 10 17 B.sub.RMS = 10 MHz 20 5.4 30 1.7 Root-mean-square bandwidth ? = 1.5 10 1.42 B.sub.RMS = 100 MHz 20 0.45 30 0.142
[0132] Manner 3:
[0133] In a possible implementation, a protocol between the receive end and the transmit end may stipulate that the ranging waveform #W.sub.m is used to perform a plurality of times of ranging, and the ranging precision ?.sub.m is estimated based on a ranging result {R.sub.i} (i=1, 2, 3, . . . , or N). For example, a standard deviation of a sample of the ranging result {R.sub.i} is used as the estimated ranging precision ?.sub.m.
[0134] Step S441: The receive end determines whether the current ranging precision #A meets a requirement of system ranging precision 6.
[0135] In a possible implementation, the receive end determines whether the current ranging precision ?.sub.m meets the requirement of the system ranging precision ?. When ???.sub.m, the ranging procedure may be ended. When ?<?.sub.m, the following steps continue to be performed.
[0136] It should be noted that, in this application, the transmit end may alternatively determine whether the current ranging precision #A meets the requirement of the system ranging precision ?. In this case, the receive end may directly send the ranging precision #A to the transmit end, and the transmit end determines whether to end the ranging procedure or perform a next time of ranging. It should be understood that, in this case, the receive end may skip performing step S441, in other words, step S441 is an optional step.
[0137] Step S450: The receive end sends the ranging precision #A to the transmit end.
[0138] In some embodiments, the method further includes: Step S451: The transmit end determines whether the current ranging precision #A meets the requirement of the system ranging precision ?.
[0139] As described above, the receive end may directly send the ranging precision #A to the transmit end. In this way, the transmit end may determine whether the current ranging precision #A meets the requirement of the system ranging precision ?. In this way, step S451 is an optional step.
[0140] Step S460: The transmit end determines, based on the ranging precision #A, a maximum unambiguous distance #B of the ranging signal for ranging.
[0141] In a possible implementation, the transmit end may determine, based on the fed back ranging precision, the maximum unambiguous distance #B of the ranging signal for ranging, that is, D.sub.m+1???.sub.m, where ? is a constant greater than 0, and a typical value may be 3.
[0142] In other words, in this application, the maximum unambiguous distance of the ranging signal may be re-determined based on precision obtained through each time of ranging. Specifically, the re-determined maximum unambiguous distance may be an integer multiple of the ranging precision. It may also be understood that bandwidth of the ranging signal is increased by gradually decreasing the maximum unambiguous distance of the ranging signal (where for example, for the single-carrier type, the wavelength of the single-carrier signal is reduced, and for the dual-carrier type and the multi-carrier type, the bandwidth of the dual-carrier or multi-carrier signal is increased), to improve the ranging precision.
[0143] Step S470: The transmit end generates a ranging waveform #W.sub.m+1.
[0144] In a possible implementation, the transmit end may generate a ranging waveform W.sub.m+1 based on the type of the ranging signal and a relationship between a determined maximum unambiguous distance D.sub.m+1 and the waveform parameter.
[0145] For details, refer to step S420. Details are not described again.
[0146] Step S480: The transmit end sends the ranging waveform #W.sub.m+1 to the receive end.
[0147] For details, refer to step S430. Details are not described again.
[0148] Step S490: The receive end receives the ranging waveform #W.sub.m+1, and determines ranging precision #B.
[0149] It should be understood that, in this step, the receive end receives the ranging waveform #W.sub.m+1. For details, refer to the manner in step S440 to determine the ranging precision #B. Details are not described again.
[0150] It should be understood that, in this application, step S420 to step S490 may be repeatedly performed for a plurality of times, until the transmit end (or the receive end) determines that ranging precision in a current stage meets the system ranging precision 6. In this way, the ranging procedure may be ended.
[0151] It should be understood that when step S420 to step S490 are repeatedly performed, each time the ranging procedure is repeatedly performed, the number m is increased by 1, that is, m=m+1.
[0152] In an example, it is assumed that the transmit end is a base station, and the receive end is user equipment (UE). In an example in which the ranging signal is an OFDM multi-carrier signal, it is assumed that the subcarrier spacing ?f is 15 kHz, a maximum ranging range D supported by the system is 1000 m, the ranging precision ? required by the system is 10 m, and an actual distance R between the base station and the UE is 85 m. As described in the foregoing step S410 to step S490:
[0153] First stage: The base station may determine, based on that the ranging range D supported by the system is 1000 m, that the maximum unambiguous distance D.sub.1 of the ranging signal is greater than or equal to D, and obtain, based on a multi-carrier formula
=1000 m, that the minimum spacing quantity K between non-zero power subcarriers is 20. In this case, the base station may determine to send the ranging signal on subcarriers with indexes {0, 20}. The UE may perform ranging based on the foregoing multi-carrier ranging method, to obtain that a distance R.sub.1 is 90 m. In this case, the root-mean-square bandwidth B.sub.RMS of the multi-carrier signal is K.Math.?f=300 KHz. Assuming that ? is 2, the UE determines that the signal-to-noise ratio of the ranging signal is 32 dB. In this case, that ranging precision ?.sub.1 is 50 m is obtained based on the formula
for calculating multi-carrier precision in the foregoing Manner 1. The UE determines that the ranging precision ? that is required by the system and that is 10 m is less than the ranging precision that is estimated by the UE and that is 50 m, and determines that next-stage ranging needs to be performed. Ranging results in the first stage are shown in
[0154] Second stage: The UE sends the ranging precision ?.sub.1 in the first stage being 50 m to the base station. The base station determines a maximum unambiguous distance D.sub.2 of the ranging signal in this stage. As described above, D.sub.2???.sub.1, and in this embodiment, it is assumed that a value of ? is 2. In this case, the base station determines that D.sub.2???.sub.1=2?50 m 32 100 m. Based on a multi-carrier formula
that the minimum spacing quantity K between non-zero power subcarriers is 200 is obtained. In this case, the base station may determine to send the ranging signal on subcarriers with indexes [0, 200]. The UE performs ranging, and obtains that a distance R.sub.2 is 84 m. In this stage, the root-mean-square bandwidth B.sub.RMS of the multi-carrier signal is K.Math.?f=3 MHz. Assuming that ? is 2, the UE determines that the signal-to-noise ratio SNR of the ranging signal is 32 dB. In this case, that ranging precision ?.sub.2 is 5 m is obtained based on the formula
for calculating the multi-carrier precision in the foregoing Manner 1. The UE determines that the ranging precision ? that is required by the system and that is 10 m is greater than the ranging precision that is estimated by the UE and that is 5 m, and determines to end the ranging procedure. Ranging results of the second stage are shown in
[0155] According to the method provided in this embodiment, based on a relationship between the maximum unambiguous distance of the ranging signal and a wavelength and a frequency component spacing of the ranging signal, the receive end may directly feed back the ranging precision, and the maximum unambiguous distance of the ranging signal is gradually reduced through multi-stage ranging, to implement high-precision ranging while avoiding distance ambiguity.
[0156]
[0157] For step S710 to step S730, refer to step S410 to step S430 in the step method 400. Details are not described herein again.
[0158] Step S740: The receive end receives a ranging waveform #W.sub.1, and determines a signal-to-noise ratio #A of the ranging waveform.
[0159] In a possible implementation, the receive end may estimate the signal-to-noise ratio based on strength and a noise level of the ranging signal. Alternatively, the receiver may estimate the signal-to-noise ratio based on a signal other than the ranging signal. For example, a signal-to-noise ratio of a preamble of a header of a frame may be estimated.
[0160] In some embodiments, the method further includes: Step S741: The receive end determines ranging precision #A based on the signal-to-noise ratio #A of the ranging waveform.
[0161] In a possible implementation, the transmit end may calculate the ranging precision based on the foregoing Manner 1. For a specific calculation formula, refer to Manner 1 in step S440 in the method 400. Details are not described herein again.
[0162] In a possible implementation, the transmit end may determine the ranging precision based on the foregoing Manner 2. To be specific, the transmit end may also look up a pre-calibrated table based on a type of the ranging signal, a parameter, and an SNR, to obtain estimated ranging precision ?.sub.m. For details, refer to Manner 2 in step S440 in the method 400. details are not described herein again.
[0163] In some embodiments, the method further includes: Step S742: The receive end determines whether the ranging precision #A meets ranging precision specified by the system.
[0164] In a possible implementation, the receive end determines whether the current ranging precision ?.sub.m meets a requirement of system ranging precision ?. When ???.sub.m, a ranging procedure may be ended. When ?<?.sub.m, the following steps continue to be performed.
[0165] It should be noted that, in this application, the receive end may alternatively directly send the signal-to-noise ratio #A to the transmit end. The transmit end determines the ranging precision #A based on the signal-to-noise ratio #A, and the transmit end determines whether the ranging precision #A meets the ranging precision specified by the system. In this case, step S741 and step S742 are optional steps.
[0166] Step S750: The receive end sends the signal-to-noise ratio SNR to the transmit end.
[0167] In some embodiments, the method further includes: Step S751: The transmit end determines the ranging precision #A of the ranging signal based on the received signal-to-noise ratio SNR.
[0168] In a possible implementation, the transmit end may calculate the ranging precision based on the foregoing Manner 1. To be specific, the transmit end may also calculate the ranging precision ?.sub.m based on a formula and based on the type of the ranging signal and the SNR. For a specific calculation formula, refer to Manner 1 in step S440 in the method 400. Details are not described herein again.
[0169] In a possible implementation, the transmit end may determine the ranging precision based on the foregoing Manner 2. To be specific, the transmit end may also look up the pre-calibrated table based on the type of the ranging signal, the parameter, and the SNR, to obtain the estimated ranging precision ?.sub.m. For details, refer to Manner 2 in step S440 in the method 400. Details are not described herein again. It should be noted that, in this embodiment, Table 1 is stored at the transmit end. It may also be understood that, in this embodiment, Table 1 is preconfigured in the transmit end.
[0170] In some embodiments, the method further includes: Step S752: The transmit end determines whether the current ranging precision #A meets the requirement of the system ranging precision ?.
[0171] In a possible implementation, the transmit end determines whether the current ranging precision ?.sub.m meets the requirement of the system ranging precision ?. When ???.sub.m, the ranging procedure may be ended. When ?<?.sub.m, the following steps continue to be performed.
[0172] In other words, when the receive end directly sends the signal-to-noise ratio to the transmit end, the transmit end may determine the ranging precision based on the signal-to-noise ratio and determine whether the ranging precision meets the requirement of the system. In this case, step S751 and step S752 are further included.
[0173] Step S760: The transmit end determines a maximum unambiguous distance #B of the ranging signal.
[0174] In a possible implementation, the transmit end may determine the maximum unambiguous distance #B of the ranging signal for ranging based on the ranging precision #A, that is, D.sub.m+1???.sub.m, where ? is a constant greater than 0, and a typical value of the maximum unambiguous distance #B may be 3.
[0175] Step S770: The transmit end generates a ranging waveform #W.sub.m+1.
[0176] For details, refer to step S720. Details are not described again.
[0177] Step S780: The transmit end sends the ranging waveform #W.sub.m+1 to the receive end.
[0178] For details, refer to step S730. Details are not described again.
[0179] Step S790: The receive end receives the ranging waveform #W.sub.m+1, and determines a signal-to-noise ratio #B of the ranging waveform.
[0180] For details, refer to step S740. Details are not described again.
[0181] It should be understood that, in this application, step S720 to step S790 may be repeatedly performed for a plurality of times, until the transmit end (or the receive end) determines that ranging precision in a current stage meets the system ranging precision 6. In this way, the ranging procedure may be ended.
[0182] According to the method provided in this embodiment, based on a relationship between the maximum unambiguous distance of the ranging signal and a wavelength and a frequency component spacing of the ranging signal, the receive end enables, by feeding back the signal-to-noise ratio, the transmit end to determine the ranging precision, and the maximum unambiguous distance of the ranging signal is gradually reduced through multi-stage ranging, to implement high-precision ranging while avoiding distance ambiguity.
[0183] In OFDM multi-carrier phase-based ranging, signal power is evenly distributed in an entire frequency band, and root-mean-square bandwidth of the signal is less than occupied bandwidth (about 1/?{square root over (3)} of the signal bandwidth). Based on a CRLB, this may result in lower ranging precision than that of dual-carrier ranging at same power. A method 800 is a ranging method provided in this application. In this embodiment, a special OFDM waveform may be used as a ranging signal, in other words, signal power is mainly distributed on left and right sides of a signal frequency band. In comparison with a common OFDM waveform in which power is evenly distributed in a frequency band, the ranging signal in this embodiment has larger root-mean-square bandwidth, and therefore has higher ranging precision.
[0184] The OFDM waveform in this embodiment is used as the ranging signal, and a typical waveform may be shown in (a) in
[0185] In an example, in (a) in
[0186] In an example, in (b) in
[0187] In an example, in (c) in
[0188] It should be understood that the ranging waveform shown in (a) in
[0189] As described above, typical parameters of the OFDM ranging waveform provided in this embodiment of this application are shown in Table 2 below. N is a quantity of subcarriers in fast Fourier transform (FFT), N.sub.0 is a quantity of zero power subcarriers in a spacing, and N.sub.e is a quantity of non-zero power subcarriers.
TABLE-US-00002 TABLE 2 Typical parameters of an OFDM ranging waveform
[0190] It should be understood that typical examples of the parameters in Table 2 are merely examples, and are not limited.
[0191] It should be understood that, in a specific ranging step in this embodiment, ranging may still be performed based on the steps in the method 400 and the method 700, and details are not described again.
[0192] According to the method provided in this embodiment of this application, based on a relationship between the maximum unambiguous distance of the ranging signal and a wavelength and a frequency component spacing of the ranging signal, the maximum unambiguous distance of the ranging signal is gradually reduced through multi-stage ranging, to implement high-precision ranging while avoiding distance ambiguity. In addition, the power distribution of the signal is adjusted in the frequency domain, to increase the root-mean-square bandwidth of the ranging signal, and further improve the ranging precision.
[0193] The foregoing describes in detail the communication methods provided in embodiments of this application with reference to
[0194] The foregoing mainly describes the solutions provided in embodiments of this application from a perspective of interaction between nodes. It may be understood that, to implement the foregoing functions, each node, for example, a transmit end device or a receive end device, includes a corresponding hardware structure and/or a corresponding software module for performing the foregoing functions. A person skilled in the art should be able to aware that, the units and the algorithm steps in the examples described with reference to embodiments disclosed in this specification may be implemented in this application by hardware or a combination of hardware and computer software. Whether a function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each specific application. However, it should not be considered that this implementation goes beyond the scope of this application.
[0195] In embodiments of this application, function modules of the transmit end device or the receive end device may be divided based on the foregoing method examples. For example, function modules may be divided based on functions, 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 functional module. It should be noted that, in embodiments of this application, module division is an example, and is merely logical function division. In actual implementation, another division manner may be used. An example in which function modules are divided based on functions is used below for description.
[0196]
[0197] In a possible design, the ranging apparatus 100 may be the transmit end in the foregoing method embodiments, or may be a chip configured to implement a function of the transmit end in the foregoing method embodiments. It should be understood that the apparatus 100 may correspond to the transmit end in the method 300, the method 400, and the method 700 according to embodiments of this application, and the apparatus 100 may perform the steps corresponding to the transmit end in the method 300, the method 400, and the method 700 in embodiments of this application. It should be understood that a specific process in which the units perform the foregoing corresponding steps is described in detail in the foregoing method embodiments, and for brevity, details are not described herein.
[0198] Specifically, the transceiver unit is configured to receive a first ranging parameter. The first ranging parameter is received in an N.sup.th (where N is an integer greater than 0) time of ranging. The first ranging parameter includes first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal. The processing unit is configured to determine a first ranging waveform based on the first ranging parameter. The transceiver unit is configured to send the first ranging waveform. The transceiver unit is configured to receive a second ranging parameter. The second ranging parameter is determined by the processing unit based on the first ranging waveform. The second ranging parameter includes second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal. The second ranging precision is less than the first ranging precision. When a value of the second ranging parameter does not meet a threshold of a system, the processing unit is configured to perform an (N+1).sup.th time of ranging. Alternatively, when a value of the second ranging parameter meets a threshold of a system, the processing unit is configured to end ranging.
[0199] In a possible design, the ranging apparatus 100 may be the receive end in the foregoing method embodiments, or may be a chip configured to implement a function of the receive end in the foregoing method embodiments. It should be understood that the apparatus 100 may correspond to the receive end in the method 300, the method 400, and the method 700 according to embodiments of this application, and the apparatus 100 may perform the steps corresponding to the receive end in the method 300, the method 400, and the method 700 in embodiments of this application. It should be understood that a specific process in which the units perform the foregoing corresponding steps is described in detail in the foregoing method embodiments, and for brevity, details are not described herein.
[0200] Specifically, the transceiver unit is configured to send a first ranging parameter. The first ranging parameter is sent in an N.sup.th (where N is an integer greater than 0) time of ranging. The first ranging parameter includes first ranging precision of a ranging signal and/or a first signal-to-noise ratio of the ranging signal. The transceiver unit is configured to receive a first ranging waveform. The first ranging waveform is generated based on the first ranging parameter. The processing unit is configured to determine the second ranging parameter based on the first ranging waveform. The second ranging parameter includes second ranging precision of the ranging signal and/or a second signal-to-noise ratio of the ranging signal. The second ranging precision is less than the first ranging precision. When a value of the second ranging parameter does not meet a threshold of a system, the processing unit is configured to perform an (N+1).sup.th time of ranging. Alternatively, when a value of the second ranging parameter meets a threshold of a system, the processing unit is configured to end ranging.
[0201]
[0202] It should be understood that the processor 220 and the memory 230 may be combined into a processing apparatus, and the processor 220 is configured to execute program code stored in the memory 230 to implement the foregoing functions. In specific implementation, the memory 230 may alternatively be integrated into the processor 220, or be independent of the processor 220.
[0203] It should be further understood that the transceiver 210 may include a transceiver (or referred to as a receiver) and a transmitter (or referred to as a transmitter device). The transceiver may further include one or more antennas. The transceiver 210 may be a communication interface or an interface circuit.
[0204] Specifically, the transceiver 210 in the apparatus 200 may correspond to the transceiver unit 110 in the apparatus 100, and the processor 220 in the apparatus 200 may correspond to the processing unit 120 in the apparatus 100.
[0205] It should be understood that a specific process in which the transceiver and the processor perform the foregoing corresponding steps is described in detail in the foregoing method embodiments, and for brevity, details are not described herein.
[0206] In an implementation process, the steps of the foregoing methods may be completed by using an integrated logic circuit of hardware in the processor, or by using instructions in a form of software. The steps of the methods disclosed with reference to embodiments of this application may be directly performed and completed by a hardware processor, or may be performed and completed by using a combination of hardware in the processor and a software module. The software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps of the foregoing methods in combination with hardware of the processor. To avoid repetition, details are not described herein again.
[0207] It should be noted that, the processor in embodiments of this application may be an integrated circuit chip, and has a signal processing capability. In an implementation process, the steps in the foregoing method embodiments may be completed by using an integrated logic circuit of hardware in the processor, or by using instructions in a software form. The foregoing processor may be a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The processor may implement or perform the methods, steps, and logical block diagrams that are disclosed in embodiments of this application. The general purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed with reference to embodiments of this application may be directly performed and completed by a hardware decoding processor, or may be performed and completed by using a combination of hardware and a software module in the decoding processor. The software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or a register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps in the foregoing methods in combination with hardware of the processor.
[0208] It may be understood that the memory in embodiments of this application may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. The non-volatile memory may be a 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 (RAM), and the volatile memory is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as 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 the memory of the system and methods described in this specification includes but is not limited to these memories and any memory of another proper type.
[0209] According to the methods provided in embodiments of this application, this application further provides a computer program product. The computer program product stores compute program code. When the computer program code is run on a computer, the computer is enabled to perform the method in any embodiment of the method 300, the method 400, and the method 700 embodiments.
[0210] According to the methods provided in embodiments of this application, this application further provides a computer-readable medium. The computer-readable medium stores program code. When the program code is run on a computer, the computer is enabled to perform the method in any embodiment of the method 300, the method 400, and the method 700 embodiments.
[0211] According to the methods provided in embodiments of this application, this application further provides a system, including the foregoing apparatuses or devices.
[0212] All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When the software is used to implement embodiments, all or a part of embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or some of the procedures or functions according to embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium, or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a web site, a computer, a server, or a data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a high-density digital video disc (DVD)), a semiconductor medium (for example, a solid state drive (SSD)), or the like.
[0213] The network side device and the terminal device in the foregoing apparatus embodiments correspond to the network side device or the terminal device in the method embodiments. A corresponding module or unit performs a corresponding step. For example, a communication unit (a transceiver) performs a receiving step or a sending step in the method embodiments, and a step other than the sending step and the receiving step may be performed by a processing unit (a processor). For a function of a specific unit, refer to a corresponding method embodiment. There may be one or more processors.
[0214] Terms such as component, module, and system used in this specification indicate computer-related entities, hardware, firmware, combinations of hardware and software, software, or software being executed. For example, a component may be, but is not limited to, a process that runs on a processor, a processor, an object, an executable file, an execution thread, a program, and/or a computer. As illustrated by using figures, both a computing device and an application that runs on the computing device may be components. One or more components may reside in a process and/or a thread of execution, and the components may be located on one computer and/or distributed between two or more computers. In addition, these components may be executed from various computer-readable media that store various data structures. For example, the components may communicate by using a local and/or remote process and based on, a signal having one or more data packets (for example, data from two components interacting with another component in a local system, a distributed system, and/or across a network such as an internet interacting with other systems by using a signal).
[0215] A person of ordinary skill in the art may be aware that the units and algorithm steps in the examples described with reference to embodiments disclosed in this specification may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each specific application. However, it should not be considered that this implementation goes beyond the scope of this application.
[0216] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a specific working process of the foregoing system, apparatuses, and units, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.
[0217] In embodiments provided in this application, it should be understood that the disclosed system, apparatuses and methods may be implemented in another manner. For example, the described apparatus embodiments are merely examples. For example, division into the units is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces, and indirect couplings or communication connections of the apparatuses or units may be in an electrical, a mechanical, or another form.
[0218] The units described as separate components may or may not be physically separate, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected based on an actual requirement to achieve the objectives of the solutions in embodiments.
[0219] In addition, functional units in embodiments of this application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
[0220] When the functions are implemented in the form of a software functional 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 the conventional 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 embodiments of this application. The foregoing storage medium includes media that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disc, or the like.
[0221] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.