Random access method and user equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a random access method and a user equipment.
Background
In a Long Term Evolution (LTE) network, a User Equipment (UE) needs to establish a communication connection with a base station through Random Access (RA) in some scenarios, for example, when the UE performs handover, the UE initiates Random Access in a target cell, triggers a Random Access Procedure (RA Procedure), establishes a connection with the base station cell, and obtains uplink synchronization. Only if uplink synchronization is achieved, the UE can perform uplink transmission. The random access procedure includes: the UE sends a Preamble to the base station, and the base station returns a response message carrying a Random Access Preamble Identifier (RAPID Identifier, abbreviated as "RAPID") to the UE, where the RAPID is a Preamble index (Preamble index) obtained when the base station detects the Preamble sent by the UE. If the UE finds that the value is the same as the index used when the UE sends the preamble, the RAR is considered to be sent to the UE.
However, for the UE located at the edge of the cell of the base station, when the base station receives the preamble sent by the UE at the edge of the cell, due to the large transmission delay, the RAPID calculated by the base station according to the preamble is inaccurate, actually preamble discovery-1, so that after the base station returns a response message carrying the calculated RAPID to the UE, and the UE detects that the index used when the RAPID is inconsistent with the index used when the preamble is sent, the RAR is discarded, uplink synchronization cannot be completed, and random access failure is caused.
Disclosure of Invention
The embodiment of the invention provides a random access method and user equipment, which are used for solving the problem that random access fails because UE (user equipment) at the edge of a cell of a base station cannot obtain uplink synchronization with the base station.
The embodiment of the invention discloses a random access method, which comprises the following steps:
transmitting a leader sequence to a base station;
receiving a response message returned by the base station aiming at the leader sequence, wherein the response message comprises a random access leader sequence number and a time adjustment amount;
judging whether the current user equipment is at the edge position of the cell corresponding to the base station or not according to the random access preamble sequence number;
and if the mobile terminal is at the edge position, the position for sending the leader sequence is adjusted according to the time adjustment amount, and then the leader sequence is sent again so as to establish communication connection with the base station through random access.
Optionally, the determining, according to the random access preamble sequence number, whether the current ue is located at an edge position of a cell corresponding to the base station includes:
comparing the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detecting whether a difference value between the preamble index and the random access preamble sequence number is within a preset interval range;
and if the time adjustment quantity is within the range of the preset interval, determining that the current user equipment is at the edge position of the cell corresponding to the base station, and taking the time adjustment quantity as the time adjustment quantity required for retransmitting the leader sequence.
Optionally, the determining that the current user equipment is located at the edge position of the cell corresponding to the base station includes:
repeatedly executing the steps of sending a leader sequence to a base station, receiving a response message returned by the base station aiming at the leader sequence, comparing the random access leader sequence number with a leader index corresponding to the sent leader sequence, detecting whether the difference value of the leader index and the random access leader sequence number is within a preset interval range, and counting when the difference value is detected to be within the preset interval range;
detecting whether a count value corresponding to the counting reaches a preset number threshold value;
and if the preset number threshold is reached, determining that the current user equipment is located at the edge position of the cell corresponding to the base station.
Optionally, the detecting whether a difference between the preamble index and the random access preamble sequence number is within a preset interval range includes:
detecting whether the difference value between the preamble index and the random access preamble sequence number is one;
and if so, determining that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range.
Optionally, the preset number threshold does not exceed the number of random access retransmissions configured for the cell.
Correspondingly, the embodiment of the invention also discloses user equipment, which comprises:
a sending module, configured to send a preamble sequence to a base station;
a receiving module, configured to receive a response message returned by the base station for a preamble sequence, where the response message includes a random access preamble sequence number and a time adjustment amount;
a judging module, configured to judge whether the current ue is located at an edge position of a cell corresponding to the base station according to the random access preamble sequence number;
and the sending module is further configured to, when the determination result of the determining module is that the user equipment is in the edge position, adjust the position for sending the preamble sequence according to the time adjustment amount and then resend the preamble sequence, so as to establish a communication connection with the base station through random access.
Optionally, the determining module includes:
a detection unit, configured to compare the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detect whether a difference between the preamble index and the random access preamble sequence number is within a preset interval range;
and a position determining unit, configured to determine, when the detecting unit detects that the difference is within the preset interval range, that the current user equipment is located at the edge position of the cell corresponding to the base station, and use the time adjustment amount as a time adjustment amount required for retransmitting the preamble sequence.
Optionally, the position determining unit is specifically configured to:
counting when the detection unit detects that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range;
detecting whether a count value corresponding to the counting reaches a preset number threshold value;
and if the preset number threshold is reached, determining that the current user equipment is located at the edge position of the cell corresponding to the base station.
Optionally, the detection unit is specifically configured to:
comparing the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detecting whether a difference value between the preamble index and the random access preamble sequence number is one;
and if so, determining that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range.
Optionally, the preset number threshold does not exceed the number of random access retransmissions configured for the cell.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the UE can judge whether the current UE is positioned at the edge of the cell of the base station by sending the leader sequence to the base station and detecting the random access leader sequence number in the response message returned by the base station, when the UE is determined to be positioned at the edge of the cell of the base station, the response message is taken as the response message required by the UE, the position for sending the leader sequence is adjusted according to the time adjustment quantity in the response message and then the leader sequence is sent again, so as to finish the uplink synchronization between the UE and the base station, and further communicate with the base station through random access.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a random access method according to an embodiment of the present invention;
fig. 3 is a flowchart of another random access method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a user equipment according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another user equipment according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the technical solution of the embodiment of the present invention may be specifically applied to a Long term evolution (Long term evolution, LTE for short) system, and with the continuous development of communication technology, the method of the embodiment of the present invention may also be applied to a future network, such as a 5G network, which is not limited herein.
In the embodiment of the present invention, a User Equipment (UE) may also be referred to as a Terminal (Terminal), a Mobile Station (MS), a Mobile Terminal (Mobile Terminal), or the like. Which may communicate with one or more core networks via a Radio Access Network (e.g., RAN), user equipment may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers with mobile terminals that exchange data with the Radio Access Network. The base station may be an evolved node b (eNB) in LTE, such as an eNB or an e-nodeb (evolved nodeb), or a base station in a future network, which is not limited in the embodiment of the present invention.
An application scenario of the embodiment of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. Specifically, as shown in fig. 1, the communication system includes a base station and at least one UE (3 UEs are shown in the figure), and the base station and the UE can communicate with each other through an LTE network or other networks. In some scenarios, such as scenarios in which a Radio connection is established during initial access of the UE, a Radio Resource Control (RRC) connection is reestablished, an uplink is in an "out-of-sync" state, or in order to locate the UE, a random access process of the UE needs to be triggered.
The embodiment of the invention discloses a random access method and user equipment, which can effectively solve the problem that random access fails because UE at the edge of a cell of a base station cannot obtain uplink synchronization with the base station. The details are described below.
Referring to fig. 2, fig. 2 is a flowchart illustrating a random access method according to an embodiment of the present invention. Specifically, the method according to the embodiment of the present invention may be specifically applied to the user equipment, and as shown in fig. 2, the random access method according to the embodiment of the present invention may include the following steps:
101. the preamble sequence is transmitted to a base station.
In a specific embodiment, when it is determined that random access of the UE needs to be triggered to initiate a random access process, the UE needs to determine a preamble sequence to be sent. For example, in general, each base station has 64 available preambles in a corresponding cell (hereinafter referred to as a cell), and the UE may select one of the available preambles as a preamble to be transmitted, or the base station designates the preamble to be transmitted. After determining the preamble to be sent, the UE may determine that the time-frequency domain resource sends the preamble to the base station, so as to inform the base station that there is a random access request currently.
102. And receiving a response message returned by the base station aiming at the leader sequence, wherein the response message comprises a random access leader sequence number and a time adjustment amount.
In a specific embodiment, when receiving a preamble sent by the UE, the base station may detect and receive the preamble on each preamble time-frequency resource because it is unknown on which time-frequency resource the UE will send the preamble, determine a random access preamble sequence number such as RAPID according to the position of the received preamble, and return a response message including the determined RAPID to the UE. In addition, the response message may further include a time adjustment amount ta (time advance) corresponding to the received preamble. And the UE receives a response message returned by the base station. The RAPID is a preamble index obtained when the base station detects the preamble, and the response message may specifically be a Random Access Response (RAR) corresponding to Msg2 in the Random access process.
103. And judging whether the current user equipment is at the edge position of the cell corresponding to the base station or not according to the random access preamble sequence number.
104. And if the mobile terminal is at the edge position, the position for sending the leader sequence is adjusted according to the time adjustment amount, and then the leader sequence is sent again so as to establish communication connection with the base station through random access.
In a specific embodiment, when receiving a response message returned by the base station, the UE may determine whether the UE is located at a cell edge according to a value of RAPID included in the response message. Because the transmission delay between the UE at the cell edge and the base station is relatively large, the value of RAPID determined when the base station receives the preamble sent by the UE is often not matched with the preamble index corresponding to the preamble sent by the UE, and there is a certain difference between the value of RAPID and the value of preamble index. Therefore, when judging whether the current user equipment is located at the edge position of the cell corresponding to the base station according to the random access preamble sequence number, the UE can compare the random access preamble sequence number with the transmitted preamble index corresponding to the preamble sequence, and detect whether the difference value between the preamble index and the random access preamble sequence number is within the range of a preset interval; and if the time adjustment quantity is within the range of the preset interval, determining that the current user equipment is at the edge position of the cell corresponding to the base station, and taking the time adjustment quantity as the time adjustment quantity required for retransmitting the leader sequence.
Specifically, the UE may obtain an RAPID value in a response message returned by the base station, and match and compare the RAPID value with a preamble index corresponding to the preamble determined and sent, and if the RAPID value is not matched, and the difference between the preamble index and the RAPID is within a preset interval range, it may be determined that the UE is located at the cell edge. For example, the preset interval may be set to [0.5,1], so that when the difference between the preamble index and the RAPID is 1, it may be determined that the UE is at the cell edge.
Further, in order to ensure the accuracy of the determined position of the UE located at the edge of the cell, when it is detected that a difference value between a preamble index corresponding to a preamble sent by the UE and a random access preamble sequence number RAPID in the response message is within a preset interval range, the step of sending a preamble sequence to the base station, receiving a response message returned by the base station for the preamble sequence, comparing the random access preamble sequence number with the sent preamble index corresponding to the preamble sequence, detecting whether the difference value between the preamble index and the random access preamble sequence number is within the preset interval range, and counting when it is detected that the difference value is within the preset interval range; detecting whether a count value corresponding to the counting reaches a preset number threshold value; and if the preset number threshold is reached, determining that the current user equipment is located at the edge position of the cell corresponding to the base station. Wherein, the preset number threshold value can be obtained by presetting. That is, if the difference between the preamble index corresponding to the preamble sent by the UE continuously for multiple times (not lower than the preset number threshold) and the RAPID in the response message returned by the base station is within the preset interval range, for example, the difference is 1, the UE is determined to be at the cell edge position, and the response message is determined to be sent to the UE, so that the time adjustment amount in the response message can be used to adjust the position where the preamble is sent, so as to implement uplink synchronization, thereby completing the random access process and communicating with the base station.
In the embodiment of the invention, the UE can judge whether the current UE is positioned at the edge of the cell of the base station by sending the leader sequence to the base station and detecting the random access leader sequence number in the response message returned by the base station, when the UE is determined to be positioned at the edge of the cell of the base station, the response message is taken as the response message required by the UE, the position for sending the leader sequence is adjusted according to the time adjustment quantity in the response message and then the leader sequence is sent again, so as to finish the uplink synchronization between the UE and the base station, and further communicate with the base station through random access.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating another random access method according to an embodiment of the present invention. Specifically, as shown in fig. 3, the random access method according to the embodiment of the present invention may include the following steps:
201. the preamble sequence is transmitted to a base station.
202. And receiving a response message returned by the base station aiming at the leader sequence, wherein the response message comprises a random access leader sequence number and a time adjustment amount.
Specifically, in a scenario where a random access process needs to be initiated, the UE selects one preamble from currently available preamble sequences for transmission, or the base station designates the preamble that needs to be transmitted. After determining the preamble to be sent, the UE may further select the time-frequency domain resource for sending the preamble and send the preamble to the base station based on the time-frequency domain resource, so as to inform the base station that there is a random access request currently. The base station detects and receives the preamble on each preamble time frequency resource, determines a random access preamble sequence number RAPID according to the time frequency domain position of the received preamble, wherein the RAPID is a preamble index obtained when the base station detects the preamble, and returns a response message comprising the RAPID and a time adjustment TA determined according to the transmission delay of the received preamble to the UE. And the UE receives the response message to obtain the RAPID and the time adjustment TA in the response message.
203. Detecting whether the difference value between the preamble index corresponding to the transmitted preamble sequence and the random access preamble sequence number is one; if yes, go to step 204.
204: counting is performed.
205: detecting whether a count value corresponding to the counting reaches a preset number threshold value; if not, go to step 201; if yes, go to step 206.
206. And determining that the current user equipment is at the edge position of the cell corresponding to the base station.
In the specific embodiment, because the transmission delay between the UE at the cell edge and the base station is large, the value of the RAPID determined by the base station when receiving the preamble sent by the UE is often not matched with the preamble match corresponding to the preamble sent by the UE, and there is a certain difference between the value of the RAPID and the preamble, in general, the RAPID determined by the base station: RAPID ═ preambleindex-1. Therefore, the UE can compare the RAPID in the response message with the preamble index corresponding to the preamble sent by the UE, detect whether the difference between the RAPID and the preamble index is 1, count when the difference is 1, and reinitiate the random access process, and if the difference is not 1, that is, the difference is not within the preset interval range, do not process. Specifically, when the difference between the RAPID and the preamble index is 1, step 201 and 204 are executed again, the preamble is sent to the base station, and the response message including the RAPID and the TA value returned by the base station is received, if the UE detects that the difference between the RAPID and the preamble index is 1, the count value is increased by 1, and step 201 and 204 are executed again, and so on. And determining that the UE is positioned at the edge of the cell and determining that the response message is sent to the UE when the counting value reaches a preset number threshold value, namely the RAPIDs in the continuous multiple random access processes are all smaller than the preamble index by 1. Through the continuous multiple random access processes, the accuracy of the determined UE position information is ensured.
It should be noted that the preset number threshold does not exceed the preambleTransMax of the random access retransmission times configured for the cell. Alternatively, the preset number threshold may be set according to the number of random access retransmissions, and the preset number threshold may be set to a number slightly smaller than the preambleTransMax, for example, the preset number threshold may be set to (preambleTransMax-2).
207. And regulating the position for sending the leader sequence according to the time regulation amount, and then resending the leader sequence so as to establish communication connection with the base station through random access.
Further, after the UE is determined to be located at the cell edge position, the response message can be sent to the UE as a response message sent by the base station, so that the UE can adjust the position of sending the preamble by the time adjustment amount in the response message to implement uplink synchronization, complete the random access process, and communicate with the base station.
In the embodiment of the invention, the UE can judge whether the current UE is at the edge of the cell of the base station by sending the preamble to the base station and detecting whether the difference value between the preamble index corresponding to the preamble and the RAPID in the response message returned by the base station is 1, and specifically, when the difference value between the preamble index and the RAPID in the response message returned by the base station is continuously detected for multiple times and is 1, the UE determines that the UE is at the edge of the cell of the base station, so that the UE takes the response message as the response message required by the UE, and retransmits the preamble after adjusting the position for sending the preamble according to the TA value in the response message, thereby realizing the uplink synchronization between the UE and the base station and completing the communication between the random access and the base station.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a user equipment according to an embodiment of the present invention. Specifically, as shown in fig. 4, the ue according to the embodiment of the present invention includes a sending module 11, a receiving module 12, and a determining module 13. Wherein,
the sending module 11 is configured to send a preamble sequence to a base station.
Specifically, in a scenario where a random access process needs to be initiated, the UE selects one preamble from available preamble sequences for transmission, or the base station designates the preamble that needs to be transmitted. After determining the preamble to be sent, the sending module 11 may further select the time-frequency domain resource for sending the preamble and send the preamble to the base station, so as to inform the base station that there is a random access request currently. And informs the receiving module 12 of the readiness to receive the response message returned by the base station.
The receiving module 12 is configured to receive a response message returned by the base station for the preamble sequence, where the response message includes a random access preamble sequence number and a time adjustment amount.
In a specific embodiment, when receiving a preamble sent by the UE, the base station may detect and receive the preamble on each preamble time-frequency resource because it is unknown on which time-frequency resource the UE will send the preamble, determine a random access preamble sequence number such as RAPID according to the position of the received preamble, and return a response message including the determined RAPID to the UE. In addition, the response message may further include a time adjustment amount ta (time advance) corresponding to the received preamble. The UE receives the response message through the receiving module 12. The RAPID is a preamble index obtained when the base station detects the preamble, and the response message may specifically be Msg2 of the random access process.
The judging module 13 is configured to judge whether the current ue is located at an edge position of a cell corresponding to the base station according to the random access preamble sequence number.
The sending module 11 is configured to, when the determination result of the determining module 13 is that the user equipment is in the edge position, adjust the position of sending the preamble sequence according to the time adjustment amount, and then resend the preamble sequence, so as to establish a communication connection with the base station through random access.
In a specific embodiment, when the receiving module 12 receives a response message returned by the base station, the determining module 13 may determine whether the UE is located at a cell edge according to a value of a RAPID included in the response message. Further, when the determining module 13 determines that the UE is located at the edge position, the sending module 11 may adjust the position of sending the preamble according to the time adjustment amount TA in the response message and then resend the preamble, thereby completing uplink synchronization between the UE and the base station, so as to communicate with the base station through random access.
Optionally, in an embodiment of the present invention, the determining module 13 may specifically include (not shown in the figure):
a detecting unit 131, configured to compare the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detect whether a difference between the preamble index and the random access preamble sequence number is within a preset interval range;
a location determining unit 132, configured to determine that the current ue is located at the edge of the cell corresponding to the base station when the detecting unit 131 detects that the difference is within the preset interval range, and use the time adjustment amount as a time adjustment amount required for retransmitting the preamble sequence.
Further optionally, the position determining unit 132 may be specifically configured to:
counting when the detection unit detects that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range;
detecting whether a count value corresponding to the counting reaches a preset number threshold value;
and if the preset number threshold is reached, determining that the current user equipment is located at the edge position of the cell corresponding to the base station.
It should be noted that the preset number threshold does not exceed the preambleTransMax of the random access retransmission times configured for the cell. Alternatively, the preset number threshold may be set according to the number of random access retransmissions, and the preset number threshold may be set to a number slightly smaller than the preambleTransMax, for example, the preset number threshold may be set to (preambleTransMax-2).
Further optionally, in an embodiment of the present invention, the detecting unit 131 may be specifically configured to:
comparing the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detecting whether a difference value between the preamble index and the random access preamble sequence number is one;
and if so, determining that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range.
Further, because the transmission delay between the UE at the cell edge and the base station is relatively large, the value of the RAPID determined by the base station when receiving the preamble sent by the UE is often not matched with the preamble index corresponding to the preamble sent by the UE, and there is a certain difference between the value of the RAPID and the preamble index, and generally, the RAPID determined by the base station is smaller than the preamble index corresponding to the preamble sent by the UE by 1. Therefore, in order to ensure the accuracy of the determined location of the UE at the cell edge, when the detecting unit 131 detects that the difference value between the preamble index corresponding to the preamble sent by the UE and the RAPID in the response message is 1, the sending module 11 may further send the preamble to the base station again, receive the response message returned by the base station for the preamble through the receiving module 12, and compare the RAPID in the response message with the preamble index corresponding to the preamble sent by the detecting unit 131, so as to detect whether the difference value between the preamble index and the RAPID is 1; if the difference value is 1, the sending module 11 sends the preamble to the base station again, the receiving module 12 receives a response message returned by the base station for the preamble, and the detecting unit 131 compares the RAPID in the response message with the preamble index corresponding to the preamble sent, and detects whether the difference value between the preamble index and the RAPID is 1, and so on. The number of times that the difference value is 1, that is, the number of times of repeating the random access procedure, is counted by the position determining unit 132, and when the count value corresponding to the counting reaches the preset number threshold, it can be determined that the current user equipment is located at the edge position of the cell corresponding to the base station. That is, if the difference between the preamble index corresponding to the preamble sent by the UE for a plurality of consecutive times (not lower than the preset number threshold) and the RAPID in the response message returned by the base station is all 1 in the random access process, that is, within the preset interval range, the UE is determined to be at the cell edge position, and the response message is determined to be sent to the UE. Therefore, the time adjustment amount in the response message can be used for adjusting the position for sending the preamble so as to realize uplink synchronization, thereby completing the random access process and communicating with the base station.
In the embodiment of the invention, the UE can judge whether the current UE is positioned at the edge of the cell of the base station by sending the leader sequence to the base station and detecting the random access leader sequence number in the response message returned by the base station, when the UE is determined to be positioned at the edge of the cell of the base station, the response message is taken as the response message required by the UE, the position for sending the leader sequence is adjusted according to the time adjustment quantity in the response message and then the leader sequence is sent again, so as to finish the uplink synchronization between the UE and the base station, and further communicate with the base station through random access.
Further, please refer to fig. 5, where fig. 5 is a schematic structural diagram of another ue according to an embodiment of the present invention. Specifically, as shown in fig. 5, the user equipment according to the embodiment of the present invention includes: a receiver 300, a transmitter 400, a memory 200 and a processor 100, wherein the memory 200 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 200, which is a kind of computer storage medium, stores therein a corresponding application program and the like. The receiver 300, the transmitter 400, the memory 200 and the processor 100 may be connected by a bus, or may be connected by other methods. In this embodiment, a bus connection is described.
Wherein, the processor 100 is configured to call the program code stored in the memory 200 to perform the following steps:
transmitting, by the transmitter 400, a preamble sequence to a base station;
receiving, by the receiver 300, a response message returned by the base station for the preamble sequence, where the response message includes a random access preamble sequence number and a time adjustment amount;
judging whether the current user equipment is at the edge position of the cell corresponding to the base station or not according to the random access preamble sequence number;
if the mobile station is in the edge position, the position for sending the preamble sequence is adjusted according to the time adjustment amount, and then the preamble sequence is sent again through the transmitter 400, so as to establish a communication connection with the base station through random access.
Optionally, the processor 100 executes, in invoking the program code stored in the memory 200, the step of determining whether the current ue is located at the edge position of the cell corresponding to the base station according to the random access preamble sequence number, specifically executing the following steps:
comparing the random access preamble sequence number with a preamble index corresponding to the transmitted preamble sequence, and detecting whether a difference value between the preamble index and the random access preamble sequence number is within a preset interval range;
and if the time adjustment quantity is within the range of the preset interval, determining that the current user equipment is at the edge position of the cell corresponding to the base station, and taking the time adjustment quantity as the time adjustment quantity required for retransmitting the leader sequence.
Further optionally, the processor 100 executes, by calling a program code stored in the memory 200, the step of determining that the current ue is located at the edge position of the cell corresponding to the base station, specifically executing the following steps:
repeatedly executing the steps of sending a preamble sequence to a base station through the transmitter 400, receiving a response message returned by the base station for the preamble sequence through the receiver 300, comparing the random access preamble sequence with a preamble index corresponding to the sent preamble sequence, detecting whether a difference value between the preamble index and the random access preamble sequence is within a preset interval range, and counting when the difference value is detected to be within the preset interval range;
detecting whether a count value corresponding to the counting reaches a preset number threshold value;
and if the preset number threshold is reached, determining that the current user equipment is located at the edge position of the cell corresponding to the base station.
Further optionally, the processor 100, after invoking the program code stored in the memory 200 to perform the detection, whether the difference value between the preamble index and the random access preamble sequence number is within a preset interval range, specifically performs the following steps:
detecting whether the difference value between the preamble index and the random access preamble sequence number is one;
and if so, determining that the difference value between the preamble index and the random access preamble sequence number is within a preset interval range.
Optionally, the preset number threshold does not exceed the number of random access retransmissions configured for the cell.
In the embodiment of the invention, the UE can judge whether the current UE is positioned at the edge of the cell of the base station by sending the leader sequence to the base station and detecting the random access leader sequence number in the response message returned by the base station, when the UE is determined to be positioned at the edge of the cell of the base station, the response message is taken as the response message required by the UE, the position for sending the leader sequence is adjusted according to the time adjustment amount in the response message and then the leader sequence is sent again, so as to finish the uplink synchronization between the UE and the base station, and further communicate with the base station through random access.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The 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 place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.