This application relates to communications technologies, and in particular, to a random access method and apparatus, a device, and a storage medium.
Currently, a narrowband Internet of Things (NB-IoT) terminal device may initiate random access and monitor paging on a plurality of carriers.
A random access process is a communication procedure initiated by the terminal device, and is one of most basic and important procedures in an NB-IoT system. Objectives of the random access process include establishing a communication connection, obtaining uplink synchronization, applying for an uplink resource, and the like. Initiation of the random access process has several types. For example, the random access process is divided into idle-state random access and connected-state random access based on a status of the terminal device during random access initiation. The connected-state random access is further divided into random access actively initiated by the terminal device and random access initiated by a base station by using a physical downlink control channel (PDCCH) order. When triggering random access of the terminal device by using the PDCCH order, a network indicates, in signaling, a carrier to be used by the terminal device. After one or more times of access attempted by the terminal device on the carrier all fail, the terminal device increases a coverage level, and randomly selects a new carrier that supports the coverage level to re-attempt random access.
However, the base station usually reserves random access resources on some specific carriers, and the terminal device randomly selects a new carrier for access. For the terminal device, it cannot be ensured that the randomly selected carrier and a resource correspondingly used on the carrier are reserved by the base station, and consequently a collision probability greatly increases. In addition, the terminal device may randomly select a reserved resource on another carrier. This causes interference to a terminal device that should have used the resource.
Embodiments of this application provide a random access method and apparatus, a device, and a storage medium, to resolve a problem that a collision probability greatly increases when a terminal device randomly selects a new carrier for access, but it cannot be ensured that the randomly selected carrier and a resource correspondingly used on the carrier are resources reserved by a base station.
A first aspect of this application provides a random access method, including:
determining, by a terminal device, a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier, where the first access carrier is a carrier that is indicated by a base station and on which the terminal device performs access, and the access carrier information list includes information about a carrier that supports random access; and performing, by the terminal device, random access on the second access carrier.
In this solution, the terminal device may pre-obtain a list, namely, the access carrier information list, including all carriers that can support random access. The list may be received from a broadcast of a system, or may be preconfigured on the terminal device. This is not limited in this solution. After initiating a random access process, the base station indicates the first access carrier for performing random access to the terminal device. However, in the access process, due to a possible coverage limitation, after a plurality of times of access performed by the terminal device fail, the terminal device needs to increase a coverage level and redetermine a new access carrier. In this solution, the new second access carrier determined by the terminal device is determined based on the first access carrier, instead of being randomly selected. In this way, the base station may also determine, based on the first access carrier, the access carrier used by the terminal device, so as to configure a reserved resource. This avoids a collision between the terminal device and another terminal device, and reduces interference.
In one embodiment, the determining, by a terminal device, a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier includes:
obtaining, by the terminal device, an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determining, by the terminal device, the second access carrier from the pre-obtained access carrier information list based on the index of the second access carrier.
In one embodiment, the determining, by a terminal device, a second access carrier based on an access carrier information list and information about a first access carrier includes:
obtaining, by the terminal device, a first carrier information list from the access carrier information list, where the first carrier information list includes information about a carrier that supports a new coverage level obtained after the terminal device increases a coverage level;
obtaining, by the terminal device, an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determining, by the terminal device, the second access carrier from the first carrier information list based on the index of the second access carrier.
In one embodiment, the first carrier information list includes information about a non-anchor carrier that supports the new coverage level obtained after the terminal device increases the coverage level or information about all carriers that support the new coverage level obtained after the terminal device increases the coverage level.
In the foregoing solutions, manners in which the terminal device determines the second access carrier based on the first access carrier are provided. One manner is as follows: The index of the second access carrier is directly obtained through calculation based on an index of the first access carrier by using the preset algorithm, and then the second access carrier used for random access is determined in the access carrier information list based on the index of the second access carrier. The other manner is as follows: Screening is performed on the access carrier information list, the information about all the carriers that can support the new coverage level obtained after the terminal device increases the coverage level is screened out from the access carrier information list to obtain the first carrier information list, the index of the second access carrier is obtained through calculation based on an index of the first access carrier by using the preset algorithm, and the second access carrier is determined from the first carrier information list based on the index of the second access carrier. Alternatively, screening is performed on the access carrier information list, information about all non-anchor carriers that can support the new coverage level obtained after the terminal device increases the coverage level is screened out from the access carrier information list to obtain the first carrier information list, and then the second access carrier is determined from the first carrier information list based on the index that is obtained through calculation and that is of the second access carrier. This can avoid selecting an anchor carrier.
Based on any one of the foregoing embodiments, the obtaining, by the terminal device, an index of the second access carrier based on the information about the first access carrier by using a preset algorithm includes:
obtaining, by the terminal device, the index of the second access carrier through calculation based on an index of the first access carrier by using the preset algorithm, where the preset algorithm includes: determining the index of the second access carrier based on the index of the first access carrier and a quantity of all carriers used for the new coverage level, or determining the index of the second access carrier based on the index of the first access carrier and a quantity of non-anchor carriers used for the new coverage level, and the information about the first access carrier includes the index of the first access carrier.
The preset algorithm is that an index of a new access carrier may be determined based on an index of an access carrier specified by a base station and a quantity of available access carriers.
In one embodiment, the index of the second access carrier is equal to a remainder obtained by dividing the index of the first access carrier by a quantity of carriers that support the new coverage level.
If the terminal device determines the second access carrier from the first carrier information list that includes the information about all the carriers that support the new coverage level, the index of the second access carrier is equal to a remainder obtained by dividing the index of the first access carrier by the quantity of all the carriers that support the new coverage level.
If the terminal device determines the second access carrier from the first carrier information list that includes the information about all the non-anchor carriers that support the new coverage level, the index of the second access carrier is equal to a remainder obtained by dividing the index of the first access carrier by the quantity of all the non-anchor carriers that support the new coverage level.
In one embodiment, before the determining, by a terminal device, a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier, the method further includes:
receiving, by the terminal device, the access carrier information list broadcast by a system.
A second aspect of this application provides a random access apparatus, including:
a processing module, configured to determine a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier, where the first access carrier is a carrier that is indicated by a base station and on which the terminal device performs access, and the access carrier information list includes information about a carrier that supports random access; and
an access module, configured to perform random access on the second access carrier obtained by the processing module.
In one embodiment, the processing module is configured to:
obtain an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determine the second access carrier from the pre-obtained access carrier information list based on the index of the second access carrier.
In one embodiment, the processing module is configured to:
obtain a first carrier information list from the access carrier information list, where the first carrier information list includes information about a carrier that supports a new coverage level obtained after the terminal device increases a coverage level;
obtain an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determine the second access carrier from the first carrier information list based on the index of the second access carrier.
In one embodiment, the first carrier information list obtained by the processing module includes information about a non-anchor carrier that supports the new coverage level obtained after the terminal device increases the coverage level or information about all carriers that support the new coverage level obtained after the terminal device increases the coverage level.
In one embodiment, the processing module is configured to:
obtain the index of the second access carrier through calculation based on an index of the first access carrier by using the preset algorithm, where the preset algorithm includes: determining the index of the second access carrier based on the index of the first access carrier and a quantity of all carriers used for the new coverage level, or determining the index of the second access carrier based on the index of the first access carrier and a quantity of non-anchor carriers used for the new coverage level, and the information about the first access carrier includes the index of the first access carrier.
In one embodiment, the apparatus further includes:
a receiving module, configured to receive the access carrier information list broadcast by a system.
It should be understood that, in implementation of the foregoing random access apparatus, the processing module may be implemented as a processor, and the receiving module may be implemented as a receiver.
A third aspect of this application provides a terminal device, including a memory, a processor, and a computer program, where the computer program is stored in the memory, and the processor runs the computer program to perform the random access method according to any of the embodiments.
In one embodiment of the terminal device, there is at least one processor, configured to execute an executable instruction, namely, the computer program, stored in the memory, so that the terminal device exchanges data with a base station through a communications interface to perform the random access method provided in the first aspect or any of the embodiments. In one embodiment, the memory may be further integrated into the processor.
A fourth aspect of this application provides a storage medium, including a readable storage medium and a computer program, where the computer program is used to implement the random access method according to any of the embodiments.
A fifth aspect of this application provides a program product, the program product includes a computer program (namely, an executable instruction), and the computer program is stored in a readable storage medium. At least one processor of a terminal device may read the computer program from the readable storage medium, and the at least one processor executes the computer program, so that the terminal device implements the random access method provided in any of the embodiments.
According to the random access method and apparatus, the device, and the storage medium that are provided in the embodiments, the terminal device determines the second access carrier based on the pre-obtained access carrier information list and the information about the first access carrier that is indicated by the base station and that can be used for access, the access carrier information list includes information about all carriers that support random access, and then the terminal device performs random access on the second access carrier. When performing random access, the terminal device determines the new second access carrier in the access carrier information list based on the first access carrier already known by the base station, instead of randomly selecting an access carrier. The base station may also determine, based on the indicated first access carrier, the second access carrier used by the terminal device, so as to configure an access carrier for another terminal device. This reduces a probability of a collision between the terminal device and the another terminal device, and avoids interference on use of the another terminal device.
Most times of random access are initiated by terminal devices, by directly and randomly selecting available resources based on a configuration broadcast by a system, when the terminal devices have a requirement. A base station is responsible for resolving a generated collision among a plurality of terminal devices. Designing random access triggered by a physical downlink control channel (PDCCH) order and indicating a random access resource for use to a terminal device by using the order are intended for some special scenarios in which the base station wants to reduce a probability of an access collision among some terminal devices. For example, the base station may reserve some resources for only the random access triggered by the order. The terminal device receiving the order uses these reserved resources, so that a collision probability can be greatly reduced.
It can be learned from the solutions in the background that, for some terminal devices triggered by orders to perform random access, after the random access fails for several times, the terminal devices change coverage levels, and randomly select carriers to initiate new attempts. For these terminal devices, it cannot be ensured that the randomly selected carriers and resources correspondingly used on the carriers are reserved by the base station, and consequently a collision probability greatly increases. For a network or another terminal device, because these terminal devices may randomly select reserved resources on other carriers, interference may be caused to terminals that should have used these resources.
A main reason for the foregoing problem is that the carriers selected after the coverage levels of the terminal devices are changed are random, and this is unknowable and uncontrollable to the base station. A new carrier selection method for this scenario needs to be designed. In other words, it needs to be ensured that the terminal devices can select carriers that support new coverage levels, and it further needs to be ensured that the selection is regular and is controllable to the base station. Based on this, this application provides a new access carrier determining solution, so that the base station can perform control, and interference on another terminal device is reduced.
The base station related to this application is also referred to as a radio access network (RAN) device, and is a device connecting a terminal to a wireless network. The base station may be a base transceiver station (BTS) in a global system for mobile communications (GSM) or code division multiple access (CDMA), may be a NodeB (NB) in wideband code division multiple access (WCDMA), or may be an evolved NodeB (eNB or eNodeB) in long term evolution (LTE), a relay station or an access point, a gNodeB in a future 5G network, or the like. This is not limited herein.
S101. A terminal device determines a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier, where the first access carrier is a carrier that is indicated by a base station and on which the terminal device performs access, and the access carrier information list includes information about a carrier that supports random access.
In this operation, the first access carrier is the carrier that is indicated by the base station and on which the terminal device performs random access.
When initiating a random access process, the base station indicates used parameters such as a coverage level, a subcarrier index, and a carrier index to the terminal device, so that the terminal device can send, based on the coverage level, the subcarrier index, and the carrier index that are indicated by the base station, a random access preamble sequence at a corresponding carrier location by using a random access resource configuration corresponding to the coverage level. Normally, the terminal device receives a random access response returned by the base station. However, due to impact of the coverage level of the terminal device and another problem, after the terminal device performs random access for a plurality of times by using the first access carrier, but receives no random access response returned by the base station, the terminal device may adjust an access configuration based on an actual situation, for example, increase the coverage level.
In this case, the terminal device needs to determine, based on a new coverage level obtained after the coverage level is increased, a new random access carrier, namely, the second access carrier in this solution, in the access carrier information list of the carrier that supports random access.
In this solution, the terminal device no longer randomly selects a carrier, but re-determines the new second access carrier from the access carrier information list based on the first access carrier indicated by the base station, so that the base station can determine, based on the first access carrier, a carrier that may be used by the terminal device, so as to perform adjustment and control to avoid interference.
In one embodiment, the terminal device may determine the second access carrier based on the first access carrier in any one of the following manners.
In one embodiment, the terminal device obtains an index of the second access carrier based on the information about the first access carrier by using a preset algorithm, and the terminal device determines the second access carrier from the pre-obtained access carrier information list based on the index of the second access carrier.
The foregoing solution means that the terminal device determines the index of the new second access carrier based on the information about the first access carrier, and then determines the second access carrier from the access carrier information list based on the determined index of the second access carrier. The access carrier information list may be obtained through broadcast by the base station. A calculation manner is determining the index of the second access carrier based on an index of the first access carrier and a quantity of all carriers used for the new coverage level. For example, a remainder obtained by dividing the index of the first access carrier by the quantity of all the carriers that support the new coverage level is used as the index of the second access carrier.
In one embodiment, the terminal device obtains a first carrier information list from the access carrier information list, where the first carrier information list includes information about a carrier that supports the new coverage level obtained after the terminal device increases the coverage level; the terminal device obtains an index of the second access carrier based on information about the first access carrier by using a preset algorithm; and the terminal device determines the second access carrier from the first carrier information list based on the index of the second access carrier.
The foregoing solution means that the terminal device first performs screening on the access carrier information list based on a condition, to screen out the first carrier information list that meets the condition. For example, the first carrier information list includes information about a non-anchor carrier that supports the new coverage level obtained after the terminal device increases the coverage level or information about all carriers that support the new coverage level obtained after the terminal device increases the coverage level. In other words, the information about all the carriers that can support the new coverage level of the terminal device may be screened out from the access carrier information list, to form the new first carrier information list, or information about all non-anchor carriers that can support the new coverage level of the terminal device may be screened out from the access carrier information list, to form the new first carrier information list. Then, the terminal device determines the second access carrier from the first carrier information list.
In one embodiment, the terminal device obtains the index of the second access carrier based on an index in the information about the first access carrier. An obtaining manner may be determining the index of the second access carrier based on the index of the first access carrier and a quantity of all carriers used for the new coverage level, or determining the index of the second access carrier based on the index of the first access carrier and a quantity of non-anchor carriers used for the new coverage level.
In one embodiment, a manner of determining the index of the second access carrier provided in this application is as follows:
If the terminal device determines the second access carrier from the first carrier information list that includes the information about all the carriers that support the new coverage level, the index of the second access carrier is equal to a remainder obtained by dividing the index of the first access carrier by the quantity of all the carriers that support the new coverage level.
If the terminal device determines the second access carrier from the first carrier information list that includes the information about all the non-anchor carriers that support the new coverage level, the index of the second access carrier is equal to a remainder obtained by dividing the index of the first access carrier by the quantity of all the non-anchor carriers that support the new coverage level.
S102. The terminal device performs random access on the second access carrier.
In this operation, after determining the second access carrier, the terminal device performs random access based on the new second access carrier, and may send a random access preamble sequence to the base station based on the new coverage level and the second access carrier, to complete the random access process.
If the terminal device receives a random access response (RAR) returned by the base station, the access succeeds.
If the terminal device receives no random access response returned by the base station, the terminal device may continue to perform the random access process according to the foregoing process.
In one embodiment of the foregoing solution, the access carrier information list may be obtained by the terminal device by receiving a broadcast of the system before determining the second access carrier based on the pre-obtained access carrier information list and the information about the first access carrier.
According to the random access method provided in this embodiment, the terminal device determines the second access carrier based on the pre-obtained access carrier information list and the information about the first access carrier that is indicated by the base station and that can be used for access, the access carrier information list includes information about all carriers that support random access, and then the terminal device performs random access on the second access carrier. When performing random access, the terminal device determines the new second access carrier in the access carrier information list based on the first access carrier already known by the base station, instead of randomly selecting an access carrier. The base station may also determine, based on the indicated first access carrier, the second access carrier used by the terminal device, so as to configure an access carrier for another terminal device. This reduces a probability of a collision between the terminal device and the another terminal device, and avoids interference on use of the another terminal device.
Based on the foregoing embodiment, the following provides several processes or operations to further describe this solution.
A first solution is as follows:
For random access triggered by a PDCCH order, after several attempts of the terminal device fail, the terminal device may increase the coverage level, then determine a new access carrier (the first access carrier) based on Carrier_index (the index of the first access carrier) in the original PDCCH order, and then perform random access on the new access carrier. In one embodiment, a carrier that can be used for the current coverage level obtained after the coverage level increases may be selected based on a carrier configuration in the broadcast of the system and a carrier sequence in the configuration, to form a new carrier list (namely, the first carrier information list).
A new carrier index is calculated by using the following formula:
Carrier_index_new=Carrier_index mod (quantity of carriers that can be used for the current coverage level), where mod represents a modulo operation. Then, the new random access carrier is determined in the new carrier list by using Carrier_index_new.
In the foregoing solution, the new carrier list may include the information about all the carriers that support the new coverage level, or may include only the information about the non-anchor carrier that supports the new coverage level. Because some terminal devices (for example, a terminal of an R-13 type) can perform access on only anchor carriers, load on the anchor carriers may be relatively heavy. Therefore, it is considered that the anchor carriers are avoided from being used during reselection, thereby avoiding a further increase of the load on the anchor carriers.
A second solution is as follows:
For random access triggered by a PDCCH order, after several attempts of the terminal device fail, the terminal device may increase the coverage level. The terminal device determines a new access carrier (the second access carrier) based on Carrier_index (namely, the index of the first access carrier) in the PDCCH order of the base station, and then performs random access on the new access carrier.
For example, when the new access carrier is determined, a new carrier index may be calculated by using the following formula:
Carrier_index_new=Carrier_index mod (quantity of carriers that can be used for the current coverage level), where mod represents a modulo operation. Then, the new random access carrier is determined, by using Carrier_index_new, in a carrier list in a configuration broadcast by the system. For example, an index value 0 represents a first carrier that is in the list and that can be used for random access at the current coverage level, and a value 1 represents a second carrier that is in the list and that can be used for random access at the current coverage level.
In this manner, a carrier used after the coverage level of the terminal device changes is not randomly selected, a selection manner and a corresponding formula are specified in a protocol, and the base station learns which new carrier is used when the terminal changes the coverage level. Therefore, the base station can avoid corresponding interference through configuration.
In a cell reselection process of the terminal device, to increase a probability that the terminal device changes, through reselection, to a cell located at a frequency that supports a multicast service, an offset QoffsetSCPTM for the frequency that supports the multicast service is introduced in related calculation. However, the offset appears in only neighboring cell-related calculation, in one embodiment, in only the following Rn:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp
R
n
=Q
meas,n
−Qoffset−Qoffsettemp
Rs is used for a serving cell, and Rn is used for another neighboring cell. The newly introduced QoffsetSCPTM is included in only calculation of Qoffset. During reselection, a cell reselection condition is that a most appropriate cell is selected, for camping, from all cells in which Rn>Rs. After the reselection is completed, the terminal camps on the cell at the frequency that supports the multicast service. The cell at the frequency that supports the multicast service changes from a previous target neighboring cell to a serving cell. Rs no longer includes QoffsetSCPTM. In this case, if frequencies at which other neighboring cells are located also support a related multicast service, the terminal may change, through reselection, to these cells again. In other words, a “ping-pong effect” is generated.
To avoid the “ping-pong effect”, in this embodiment,
an offset of the multicast service is applied to corresponding calculation of both the serving cell and the neighboring cell.
A possible calculation manner 1 is as follows:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp+QoffsetSCPTM
R
n
=Q
meas,n
−Qoffset−Qoffsettemp+QoffsetSCPTM
In other words, QoffsetSCPTM is used as an independent offset, and is explicitly added to calculation of Rs and Rn. To enable the terminal device to change, through selection as far as possible, to the cell/frequency that supports the multicast service, a value of the offset is a non-negative value or a positive value.
Another calculation manner 2 is as follows:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp−QoffsetSCPTM
R
n
=Q
meas,n
−Qoffset−Qoffsettemp−QoffsetSCPTM
In other words, QoffsetSCPTM is used as an independent offset, and is explicitly added to calculation of Rs and Rn. To enable the terminal device to change, through selection as far as possible, to the cell/frequency that supports the multicast service, a value of the offset is a non-positive value or a negative value.
In addition, the offset may be alternatively used as an implicit offset, and a value of the offset is implicitly added to an existing offset. For example, a calculation manner 3 is as follows:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp
R
n
=Q
meas,n
−Qoffset−Qoffsettemp
In the calculation of the serving cell, if the offset of the multicast service multicast offset exists, a value of QHyst is QHyst plus the multicast offset, for example, QoffsetSCPTM, or a value of Qoffsettemp is a value of Qoffsettemp plus or minus the multicast offset, for example, QoffsetSCPTM. In this case, a value of the multicast offset may be one of a non-positive value, a non-negative value, a positive value, or a negative value.
In the calculation of the neighboring cell, if the multicast offset exists, a value of Qoffsetfrequency is Qoffsetfrequency plus a value of QoffsetSCPTM. In this case, the value of QoffsetSCPTM is a non-positive value or a negative value.
Similarly, another indication manner in which explicit indication and implicit indication are mixed is as follows: In the calculation of the serving cell, the multicast offset explicitly exists. To enable the terminal device to change, through selection as far as possible, to the cell/frequency that supports the multicast service, a value of the offset is a non-negative value or a positive value.
In the calculation of the neighboring cell, the multicast offset implicitly exists. An implicit existence manner in the neighboring cell is the same as an implicit representation in the foregoing calculation of the neighboring cell. In other words, in the calculation of the neighboring cell, if the multicast offset exists, a value of Qoffsetfrequency is Qoffsetfrequency plus a value of QoffsetSCPTM. In this case, the value of QoffsetSCPTM is a non-positive value or a negative value. A calculation manner 4 is as follows:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp+QoffsetSCPTM
R
n
=Q
meas,n
−Qoffset−Qoffsettemp
Similarly, another indication manner in which explicit indication and implicit indication are mixed is as follows: In the calculation of the serving cell, the multicast offset explicitly exists. To enable the terminal device to change, through selection as far as possible, to the cell/frequency that supports the multicast service, a value of the offset is a non-positive value or a negative value.
In the calculation of the neighboring cell, the multicast offset implicitly exists. An implicit existence manner in the neighboring cell is the same as an implicit representation in the foregoing calculation of the neighboring cell. In other words, in the calculation of the neighboring cell, if the multicast offset exists, a value of Qoffsetfrequency is Qoffsetfrequency plus a value of QoffsetSCPTM. In this case, the value of QoffsetSCPTM is a non-positive value or a negative value. A calculation manner 5 is as follows:
R
s
=Q
meas,s
+Q
Hyst
−Qoffsettemp−QoffsetSCPTM
R
n
=Q
meas,n
−Qoffset−Qoffsettemp
In addition, due to use of the offset, many terminal devices camp on a frequency that supports some multicast services. After a multicast service at the frequency at which a terminal device is located ends, if quality of a serving cell is good, the terminal does not trigger a cell reselection service. In this case, a large quantity of terminals camp on the frequency, and consequently load of the frequency may be relatively heavy. This is not conducive to load balancing of a network.
In a current cell reselection measurement rule, to limit measurement performed by a terminal device in an idle state, two measurement thresholds are defined in a system message: an intra-frequency measurement threshold SIntraSearchP and an inter-frequency measurement threshold SnonIntraSearchP. When a measurement quantity of the serving cell is greater than a corresponding threshold, the terminal device performs no corresponding measurement. For example, when a threshold of the serving cell is higher than the intra-frequency measurement threshold, in other words, Srxlev>SIntraSearchP, the terminal device may choose to perform no intra-frequency measurement. When a threshold of the serving cell is higher than the inter-frequency measurement threshold, in other words, Srxlev>SnonIntraSearchP, the terminal device may choose to perform no inter-frequency measurement.
To resolve a problem that after the foregoing multicast service ends, the terminal stays in the serving cell, and triggers no neighboring cell measurement to enable the terminal device to change, through reselection, to another frequency/cell for camping, in a possible implementation, after the multicast service at the frequency at which the terminal is located ends, the terminal device ignores a measurement trigger threshold of the current serving cell, and starts neighboring cell measurement. Details are as follows:
a processing module 11, configured to determine a second access carrier based on a pre-obtained access carrier information list and information about a first access carrier, where the first access carrier is a carrier that is indicated by a base station and on which the terminal device performs access, and the access carrier information list includes information about a carrier that supports random access; and an access module 12, configured to perform random access on the second access carrier obtained by the processing module 11.
The random access apparatus provided in this embodiment is configured to implement the technical solution on a terminal device side in any one of the foregoing method embodiments, and implementation principles and technical effects of the random access apparatus are similar to those of the method embodiment. Details are not described herein again.
Based on the foregoing embodiment, the processing module 11 is configured to:
obtain an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determine the second access carrier from the pre-obtained access carrier information list based on the index of the second access carrier.
In one embodiment, the processing module 11 is configured to:
obtain a first carrier information list from the access carrier information list, where the first carrier information list includes information about a carrier that supports a new coverage level obtained after the terminal device increases a coverage level;
obtain an index of the second access carrier based on the information about the first access carrier by using a preset algorithm; and
determine the second access carrier from the first carrier information list based on the index of the second access carrier.
In one embodiment, the first carrier information list obtained by the processing module 11 includes information about a non-anchor carrier that supports the new coverage level obtained after the terminal device increases the coverage level or information about all carriers that support the new coverage level obtained after the terminal device increases the coverage level.
In one embodiment, the processing module 11 is configured to:
obtain the index of the second access carrier through calculation based on an index of the first access carrier by using the preset algorithm, where the preset algorithm includes: determining the index of the second access carrier based on the index of the first access carrier and a quantity of all carriers used for the new coverage level, or determining the index of the second access carrier based on the index of the first access carrier and a quantity of non-anchor carriers used for the new coverage level, and the information about the first access carrier includes the index of the first access carrier.
a receiving module 13, configured to receive the access carrier information list broadcast by a system.
The random access apparatus provided in this embodiment is configured to implement the technical solution on a terminal device side in any one of the foregoing method embodiments, and implementation principles and technical effects of the random access apparatus are similar to those of the method embodiment. Details are not described herein again.
In one embodiment of the terminal device, there is at least one processor, configured to execute an executable instruction, namely, the computer program, stored in the memory, so that the terminal device exchanges data with a base station through a communications interface to perform the random access method provided in the first aspect or any of the embodiments. In one embodiment, the memory may be further integrated into the processor.
In one embodiment, the terminal device may further include a transmitter, a receiver, and the like.
This application further provides a storage medium, including a readable storage medium and a computer program. The computer program is used to implement the random access method provided in any one of the foregoing embodiments.
This application further provides a program product, the program product includes a computer program (namely, an executable instruction), and the computer program is stored in a readable storage medium. At least one processor of a terminal device may read the computer program from the readable storage medium, and the at least one processor executes the computer program, so that the terminal device implements the random access method provided in the foregoing implementations.
A person of ordinary skill in the art may understand that all or some of the steps or operations of the method embodiments may be implemented by a program instructing related hardware. The program may be stored in a computer readable memory. When the program is executed, the steps or operations of the method embodiments are performed. The memory (storage medium) includes a read-only memory (read-only memory, ROM), a RAM, a flash memory, a hard disk, a solid-state drive, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disc (optical disc), and any combination thereof.
Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of this application, instead of limiting this application.
This application is a continuation of International Application No. PCT/CN2017/078185, filed on Mar. 24, 2017, the disclosure of which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2017/078185 | Mar 2017 | US |
Child | 16579610 | US |