Patent Description:
After a terminal device is powered on, the terminal device needs to perform public land mobile network (public land mobile network, PLMN) selection and a cell selection procedure, and then camp on and perform registration in a selected cell, to enjoy a network service. Specifically, a non-access stratum (non-access stratum, NAS) of the terminal device first performs public land mobile network (public land mobile network, PLMN) selection. After a PLMN and a radio access technology (radio access technology, RAT) are selected, an access stratum (access stratum, AS) of the terminal device performs the cell selection procedure. In the cell selection procedure, the terminal device searches for a cell that satisfies a preset condition, and camps on the selected cell. The cell selection condition mainly includes information such as cell parameter information and a cell measurement result. However, the information considered in the cell selection manner is not comprehensive. As a result, communication quality in the cell on which the terminal device camps is undesirable sometimes, leading to relatively poor user experience.

"<NPL> describes a cell selection process, the process includes: cell status and cell reservations are indicated in the SystemInformationBlockType <NUM> message, a "suitable cell" is a cell on which the UE may camp on to obtain normal service, the cell is part of either: the selected PLMN, or: the registered PLMN, or: a PLMN of the Equivalent PLMN list, the cell is not barred and the cell selection criterion S in normal coverage is fulfilled when: Srxlev > <NUM> AND Squal > <NUM>.

"3rd Generation Partnership Project; Technical Specification Group Radio Access Network; Evolved Universal Terrestrial Radio Access (E-UTRA); Radio Resource Control (RRC); Protocol specification (Release <NUM>)", 3GPP TS <NUM> describes MasterInformationBlock comprises dl-bandwidth. A value of the dl-bandwidth can be n6, n15, n25, n50, n75, n100, n6 corresponds to <NUM> resource blocks, n15 to <NUM> resource blocks and so on.

<CIT> describes the <NUM> cell parameters of the next generation RAT (i.e., system information) which are cell specific comprises of: DL/UL bandwidth, TDD configuration, PRACH configuration, PDSCH configuration, Physical Uplink Control Channel (PUCCH) configuration, PUSCH configuration, Sounding Reference Signal (SRS) configuration, UL power control configuration, MAC configuration, RLC configuration, PDCP configuration (i.e. user plane configuration or L1/L2 configuration) etc..

<CIT> discloses that WTRU and network bandwidth capabilities are also introduced as reselection parameters.

<CIT> relates to a handover between a macro and micro base station, in which the bandwidth currently required by a UE is used as one out of several parameters to decide for a handover.

This application provides a cell selection method, a cell reselection method, and a chip, to improve user experience.

According to a first aspect, a cell selection method is provided, including: A terminal device searches for a first candidate cell. The terminal device receives a system message of the first candidate cell. The system message of the first candidate cell includes parameter information of the first candidate cell; bandwidth information of the first candidate cell, where the bandwidth information is used to indicate a bandwidth of the first candidate cell; and information used to indicate the following content: a PLMN of the first candidate cell is a PLMN selected by a NAS, a PLMN of the first candidate cell is a registered PLMN, or a PLMN of the first candidate cell is a PLMN in an equivalent PLMN list; the first candidate cell is a cell that is not barred; and a TAI of the first candidate cell is not a TAI in a list of forbidden tracking areas for roaming. The terminal device determines a cell selection reception level value Srxlev and a cell selection quality value Squal of the first candidate cell based on cell measurement values and the parameter information of the first candidate cell, and determines that Srxlev > <NUM> and Squal > <NUM>. When the bandwidth of the first candidate cell is greater than a preset threshold, the terminal device camps on the first candidate cell.

In this embodiment of this application, the terminal device considers a bandwidth factor of a cell in a cell selection process, so that when selecting a cell on which the terminal device is to camp, the terminal device can preferentially select a cell whose bandwidth is greater than the preset threshold. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

With reference to the first aspect, in a possible implementation, the method further includes: When the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device skips camping on the first candidate cell.

In this embodiment of this application, if the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device skips camping on the candidate cell to continue to search for a cell whose bandwidth is greater than the preset threshold. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

With reference to the first aspect, in a possible implementation, the method further includes: When bandwidths of all candidate cells that satisfy a first preset condition and that are found by the terminal device are less than or equal to the preset threshold, the terminal device determines, from the candidate cells that satisfy the first preset condition, a cell on which the terminal device is to camp. The first preset condition includes: a PLMN of the candidate cell is a PLMN selected by the NAS, a PLMN of the candidate cell is a registered PLMN, or a PLMN of the candidate cell is a PLMN in the equivalent PLMN list; the candidate cell is a cell that is not barred; a TAI of the candidate cell is not a TAI in the list of forbidden tracking areas for roaming; and Srxlev > <NUM> and Squal > <NUM>.

In this embodiment of this application, if the bandwidths of all the found candidate cells that satisfy the first preset condition are less than or equal to the preset threshold, the terminal device selects, from the found cells, a cell on which the terminal device is to camp. This ensures that the terminal device can smoothly camp on the cell, thereby improving user experience.

With reference to the first aspect, in a possible implementation, the method further includes: When the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device marks the first candidate cell as a cell with a lowest priority in a current radio access technology (RAT) or a cell with a lowest priority in all RATs supported by the terminal device.

In this embodiment of this application, the terminal device marks the cell whose bandwidth is less than or equal to the preset threshold as a cell with a lowest priority. In this way, in a subsequent cell reselection process, with reference to locally modified priority information, the terminal device can preferentially camp on a cell whose bandwidth is greater than the preset threshold, thereby improving user experience.

With reference to the first aspect, in a possible implementation, that a terminal device searches for a first candidate cell includes: When the terminal device locally stores a priori message, the terminal device searches for the first candidate cell based on the priori message, where the priori message is used to indicate cell information of a cell on which the terminal device has previously camped.

With reference to the first aspect, in a possible implementation, that a terminal device searches for a first candidate cell further includes: When the first candidate cell is not found based on the priori message, the terminal device determines the first candidate cell through a full-band search.

With reference to the first aspect, in a possible implementation, that a terminal device searches for a first candidate cell includes: When the terminal device does not locally store a priori message, the terminal device performs a full-band search for the first candidate cell, where the priori message is used to indicate cell information of a cell on which the terminal device has previously camped.

According to a second aspect, a cell reselection method is provided, including: A terminal device receives a system message of a serving cell on which the terminal device camps. The system message includes neighboring cell information, and the neighboring cell information includes priority information and parameter information of a first candidate cell. The terminal device determines, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition. The terminal device receives a system message of the first candidate cell. The system message of the first candidate cell includes bandwidth information of the first candidate cell, and the bandwidth information is used to indicate a bandwidth of the first candidate cell. When the bandwidth of the first candidate cell is greater than a preset threshold, the terminal device hands over from the serving cell to the first candidate cell.

In this embodiment of this application, the terminal device considers a bandwidth factor of a cell in a cell reselection process, so that when selecting a cell on which the terminal device is to camp, the terminal device can preferentially select a cell whose bandwidth is greater than the preset threshold as the cell on which the terminal device is to camp. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

With reference to the second aspect, in a possible implementation, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device determines to continue to camp on the current serving cell.

In this embodiment of this application, in the cell reselection process, if the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device does not hand over to the candidate cell. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

With reference to the second aspect, in a possible implementation, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device marks the first candidate cell as a barred cell.

In this embodiment of this application, the cell whose bandwidth is less than or equal to the preset threshold is marked as a barred cell. In this way, in the cell reselection process, the terminal device can be prevented from camping on a cell whose bandwidth does not satisfy the condition, thereby improving user experience.

With reference to the second aspect, in a possible implementation, that the terminal device determines, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition includes: The terminal device determines, based on the priority information of the first candidate cell, that a priority of the first candidate cell is greater than that of the serving cell. The terminal device determines a cell selection reception level value Srxlev of the first candidate cell based on cell measurement values of the first candidate cell and the parameter information of the first candidate cell. The terminal device determines that Srxlev of the first candidate cell is greater than a first threshold within a preset time period. The terminal device determines that the terminal device has resided in the serving cell for more than one second.

With reference to the second aspect, in a possible implementation, that the terminal device determines, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition includes: The terminal device determines, based on the priority information of the first candidate cell, that a priority of the first candidate cell is equal to that of the serving cell. The terminal device determines a cell-ranking criterion Rn for the first candidate cell based on the parameter information of the first candidate cell. The terminal device determines that Rn is greater than Rs, where Rs represents a cell-ranking criterion for the serving cell.

With reference to the second aspect, in a possible implementation, that the terminal device determines, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition includes: The terminal device determines, based on the priority information of the first candidate cell, that a priority of the first candidate cell is less than that of the serving cell. The terminal device determines a cell selection reception level value Srxlev of the first candidate cell based on cell measurement values of the first candidate cell and the parameter information of the first candidate cell. The terminal device determines that within a preset time period, Srxlev of the first candidate cell is greater than a second threshold, and Srxlev of the serving cell is less than a third threshold. The terminal device determines that the terminal device has resided in the serving cell for more than one second.

According to an unclaimed third aspect, a terminal device is provided. The terminal device has functions of implementing the method performed by the terminal device in the first aspect or the second aspect. These functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the foregoing functions.

According to a fourth aspect, a chip is provided. The chip includes a processor. The processor is configured to invoke a computer program from a memory. When the computer program is executed, a terminal device installed with the chip is enabled to perform the method in the first aspect or the second aspect.

According to an unclaimed fifth aspect, a communications apparatus is provided. The communications apparatus may be the terminal device in the foregoing method embodiments or a chip disposed in a terminal device. The communications apparatus includes a memory and a processor. The memory is configured to store computer-executable program code, and the processor is coupled to the memory. The program code stored in the memory includes instructions. When the processor executes the instructions, the communications apparatus is enabled to perform the method performed by the terminal device in the first aspect or the second aspect.

According to an unclaimed sixth aspect, a computer program product is provided. The computer program product includes computer program code. When the computer program code is run on a computer, the computer is enabled to perform the method in the first aspect or the second aspect.

According to an unclaimed seventh aspect, a computer-readable medium is provided. The computer-readable medium stores program code. When the computer program code is run on a computer, the computer is enabled to perform the method in the first aspect or the second aspect.

The technical solutions in the embodiments of this application may be applied to various communications systems, for example, a global system for mobile communications (global system for mobile communications, GSM), a code division multiple access (code division multiple access, CDMA) system, a wideband code division multiple access (wideband code division multiple access, WCDMA) system, a general packet radio service (general packet radio service, GPRS) system, a long term evolution (long term evolution, LTE) system, an LTE frequency division duplex (frequency division duplex, FDD) system, an LTE time division duplex (time division duplex TDD) system, a universal mobile telecommunications system (universal mobile telecommunications system, UMTS), a worldwide interoperability for microwave access (worldwide interoperability for microwave access, WiMAX) communications system, a future 5th generation (5th generation, <NUM>) system, or a new radio (new radio, NR) system.

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

A network device in the embodiments of this application may be a device configured to communicate with a terminal device. The network device may be an evolved NodeB (evolved NodeB, eNB, or eNodeB) in an LTE system, or may be a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario. Alternatively, the network device may be a relay node, an access point, a vehicle-mounted device, a wearable device, a network device in a future <NUM> network, a network device in a future evolved PLMN network, or the like. This is not limited in the embodiments of this application.

<FIG> is a schematic diagram of a communication scenario according to an embodiment of this application. As shown in <FIG>, the application scenario includes terminal devices <NUM> and network devices <NUM>. The network device <NUM> may be an access network device, for example, a base station. There are one or more cells in a coverage area of each network device <NUM>. When the terminal device <NUM> is moved into a coverage area of a cell, the terminal device <NUM> may perform cell selection or cell reselection. The cell selection refers to a process in which when accessing a network for the first time, the terminal device selects a cell that satisfies a preset condition and camps on the cell. For example, the cell selection may be performed when the terminal device is powered on or when the terminal device re-accesses the network after being disconnected from the network. Alternatively, the cell selection may be performed when the terminal device enters an idle state from a connected state. The cell reselection refers to a process in which the terminal device reselects and camps on a cell after the terminal device accesses a network and when there is a cell with better signal quality than a current serving cell. For example, the cell reselection may be performed when the terminal device is in an idle state.

In an existing cell selection process, when a terminal device is powered on or in another scenario, first, a NAS of the terminal device selects a PLMN, and selects a radio access technology (radio access technology, RAT) in the selected PLMN; and then an AS of the terminal device performs a cell search procedure, and determines whether a found cell satisfies a condition that allows the terminal device to camp on the cell. For example, in a conventional technology, whether a cell satisfies a condition that allows the terminal device to camp on the cell is determined based on the following content:.

An LTE system is used as an example. The parameters used in the foregoing formulas may be listed in Table <NUM>.

In some examples, Qrxlevmeas may be a reference signal received power (reference signal received power, RSRP), and Qqualmeas may be reference signal received quality (reference signal received quality, RSRQ).

Optionally, the measured cell reception level value Qrxlevmeas and the measured cell selection quality value Qqualmeas may also be collectively referred to as cell measurement values. Optionally, other parameters in Formula (<NUM>) and Formula (<NUM>) may be obtained from a system message.

In the cell selection process, after successfully camping on a cell, the terminal device searches for a cell with better signal quality according to cell reselection criteria (cell reselection criteria). For example, based on priority information configured on a network side, the cell reselection criteria may be divided into criteria corresponding to the following three scenarios (a) to (c).

Scenario (a): If a priority of a target cell is higher than that of a serving cell, a condition for triggering cell reselection is as follows:.

Srxlev represents a cell selection reception (reception, RX) level value, and the first threshold represents a threshold condition that Srxlev needs to satisfy when the terminal device reselects a RAT/frequency with a higher priority than a current serving frequency. For example, the first threshold may be represented as ThreshX, High, and its unit may be decibel (dB). Optionally, in this embodiment of this application, a length of the preset time period may be defined according to a standard, and the preset time period may be represented as TreselectionRAT. The length of the preset time period may vary in different cases. For example, a length of the preset time period when frequencies of a candidate cell and the serving cell are the same may be different from a length of the preset time period when the frequencies of the candidate cell and the serving cell are different.

Scenario (b): If the priority of the target cell is the same as that of the serving cell, the condition for triggering cell reselection is as follows:.

Rn for the target cell is greater than Rs within a preset time period.

The cell reselection condition in this scenario may be referred to as a cell-ranking criterion (cell-ranking criterion), or may be referred to as an R criterion for short. Rs and Rn respectively represent a cell-ranking criterion for the serving cell and a cell-ranking criterion for a candidate cell. In an example, Rs and Rn may be respectively represented by using the following formulas: <MAT> <MAT>.

Qmeas,s and Qmeas,n respectively represent reference signal received power (reference signal received power, RSRP) measurement quality used by the serving cell and the candidate cell in cell selection, and Qhyst represents a hysteresis value of a cell-ranking criterion. Qoffset represents a cell offset, and Qoffsettemp represents an offset temporarily applied to a cell. Optionally, the parameters used in Formula (<NUM>) and Formula (<NUM>) may be obtained from a system message.

Scenario (c): If the priority of the target cell is lower than that of the serving cell, the condition for triggering cell reselection is as follows:.

Srxlev represents a cell selection RX level value, and the second threshold and the third threshold respectively represent threshold conditions that Srxlev of the target cell and Srxlev of the serving cell need to satisfy when the terminal device reselects a RAT/frequency with a lower priority than a current serving frequency. For example, the second threshold may be referred to as ThreshSering, LowP, and the third threshold may be referred to as ThreshX, LowP, and their units may be dB. Optionally, in this embodiment of this application, a length of the preset time period may be defined according to a standard, and the preset time period may be represented as TreselectionRAT. The length of the preset time period may vary in different cases. For example, a length of the preset time period when frequencies of a candidate cell and the serving cell are the same may be different from a length of the preset time period when the frequencies of the candidate cell and the serving cell are different.

Optionally, the foregoing cell reselection conditions are not limited to those in the foregoing examples, and several conditions may be added or removed based on the cell reselection conditions in the foregoing examples. Optionally, in the scenario (a) and the scenario (c), Squal may alternatively be used to replace Srxlev as a cell reselection determining condition.

Parameters used for calculating the cell selection and cell reselection criteria are from cell parameters and cell measurement values, and mainly depend on cell priority information and measurement values, without considering a bandwidth (bandwidth) limitation of a cell. Therefore, the terminal device may select and camp on a narrowband (narrowband) cell. In this case, even if signal quality of a cell is relatively desirable, a data transmission rate of the terminal device is relatively low due to a bandwidth limitation, affecting user experience. For example, the data transmission rate may be only a few thousand bits per second (Kbps) or tens of Kbps.

To resolve the foregoing problem, this application provides solutions for cell selection and cell reselection. In the solutions, bandwidth information of a cell is considered in cell selection and cell reselection processes, so that a terminal device camps on a cell with a relatively high data transmission rate, thereby improving user experience.

<FIG> is a schematic flowchart of a cell selection method according to an embodiment of this application. As shown in <FIG>, specific content of the method <NUM> includes the following steps.

S201: A terminal device searches for a first candidate cell.

Optionally, the terminal device searches for the first candidate cell according to a cell selection procedure. Optionally, a candidate cell in this embodiment of this application may also be referred to as a suitable cell (suitable cell).

Optionally, there may be two manners for the cell selection procedure. One manner is referred to as a stored information cell selection (stored information cell selection) procedure, and means that the terminal device performs a search based on priori information when having stored the priori information. The priori information is used to indicate cell information of a cell on which the terminal device has previously camped, for example, frequency information, a carrier frequency, and a cell parameter. For example, the terminal device may perform cell synchronization based on the cell frequency information in the priori information, and obtain a system message of a cell after the cell synchronization. The terminal device may perform a search only in a cell whose cell information is stored. Then, the terminal device determines whether a found cell satisfies a preset condition; and if the found cell satisfies the preset condition, determines whether to camp on the cell; or if the found cell does not satisfy the preset condition, continues to perform the cell selection procedure. The other manner is referred to as an initial cell selection (initial cell selection) procedure, and means that the terminal device performs a full-band search when the terminal device does not store priori information. The terminal device may perform the full-band search based on a capability and a configuration of the terminal device.

Optionally, in some specific examples, before performing S201, a NAS of the terminal device may perform a PLMN selection procedure, and select a PLMN. PLMN selection may also be referred to as network selection. For example, the terminal device may maintain a PLMN list, and select the PLMN from the PLMN list based on a priority order. After the PLMN is selected, the NAS of the terminal device may indicate, to an AS, a radio access technology (radio access technology, RAT) related to the selected PLMN, and indicate the AS of the terminal device to perform the cell selection procedure.

S202: The terminal device receives a system message of the first candidate cell, where the system message of the first candidate cell includes parameter information of the first candidate cell; bandwidth information of the first candidate cell, where the bandwidth information is used to indicate a bandwidth of the first candidate cell; and information used to indicate the following content: a PLMN of the first candidate cell is a PLMN selected by the NAS, a PLMN of the first candidate cell is a registered PLMN, or a PLMN of the first candidate cell is a PLMN in an equivalent PLMN list; the first candidate cell is a cell that is not barred; and a TAI of the first candidate cell is not a tracking area identity (tracking area identity, TAI) in a list of forbidden tracking areas for roaming.

Optionally, an LTE system is used as an example. The bandwidth information may be dl-Bandwidth (bandwidth) information in a master information block (master information block, MIB) message in the system message. For example, in a communication protocol, dl-Bandwidth information may be represented as follows:
<IMG>.

SQUENCE represents a sequence, and ENUMERATED represents enumeration. n6, n15, n25, n50, n75, and the like are used to indicate different bandwidths.

Optionally, an LTE system is used as an example. plmn-IdentityList (PLMN-identity list) information in a system information block type <NUM> (system information block type <NUM>, SIB <NUM>) message may be used to indicate a PLMN of a cell. trackingAreaCode (tracking area code) in the SIB <NUM> message may be used to indicate whether a TAI of the cell is in a list of forbidden tracking areas for roaming, and cellBarred (barred cell) information in the SIB <NUM> message is used to indicate whether the cell is a barred cell. In a communication protocol, the SIB <NUM> information may be represented as follows:
<IMG>.

Optionally, the parameter information of the first candidate cell may include parameters used to calculate a cell selection reception level value Srxlev and a cell selection quality value Squal. The parameter information may also be carried in the SIB <NUM> information. For example, the SIB <NUM> information may include a parameter Qrxlevmin (q-RxLevMin) and a parameter Qrxlevminoffset (q-RxLevMinOffset).

A person skilled in the art can understand that the foregoing descriptions of the information are merely used as examples. The system message may alternatively carry the information at other locations. This is not limited in this embodiment of this application.

S203: The terminal device determines the cell selection reception level value Srxlev and the cell selection quality value Squal of the first candidate cell based on cell measurement values and the parameter information of the first candidate cell, and determines that Srxlev > <NUM> and Squal > <NUM>.

Optionally, the terminal device may determine, based on the system message included in the first candidate cell, whether the first candidate cell satisfies a cell selection condition. In this embodiment of this application, the condition may be referred to as a first preset condition. The first preset condition may include the following content:.

Based on the information in S202, the first candidate cell has satisfied the conditions (<NUM>) to (<NUM>). In S203, the terminal device may determine the cell selection reception level value Srxlev and the cell selection quality value Squal based on the cell measurement values and the parameter information of the first candidate cell, and determine that the cell selection reception level value Srxlev and the cell selection quality value Squal satisfy a requirement of the condition (<NUM>).

The cell measurement values may include a measured cell reception level value Qrxlevmeas and a measured cell selection quality value Qqualmeas. For a specific manner of determining the cell selection reception level value Srxlev and the cell selection quality value Squal, refer to the foregoing descriptions about Formula (<NUM>) and Formula (<NUM>).

S204: When the bandwidth of the first candidate cell is greater than a preset threshold, the terminal device camps on the first candidate cell.

Optionally, on the basis that the first candidate cell satisfies the first preset condition, the terminal device further needs to determine whether the bandwidth of the first candidate cell is greater than the preset threshold; and the terminal device determines to camp on the first candidate cell, only when the bandwidth of the first candidate cell is greater than the preset threshold. The terminal device may determine the bandwidth of the first candidate cell based on the bandwidth information obtained in S202.

In this embodiment of this application, in the cell selection process, the terminal device selects the cell whose bandwidth is greater than the preset threshold as a cell on which the terminal device is to camp. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

In this embodiment of this application, the preset threshold is not limited, and the preset threshold may be set based on communication practice. For example, the preset threshold may be set to make a data transmission rate greater than a preset value when a bandwidth of a cell is greater than the preset threshold.

Optionally, in addition to comparison between the bandwidth and the preset threshold, the terminal device may determine, in another manner, whether the bandwidth of the first candidate cell satisfies a condition that allows the terminal device to camp on the cell. For example, a bandwidth of a cell may correspond to a bandwidth level. For example, bandwidth levels may be divided into a level <NUM>, a level <NUM>, a level <NUM>, a level <NUM>, and the like according to an ascending order of bandwidths. The terminal device may determine, based on a bandwidth level corresponding to the bandwidth of the first candidate cell, whether to camp on the first candidate cell. For example, when the bandwidth level of the first candidate cell is greater than or equal to the level <NUM>, the terminal device determines to camp on the first candidate cell.

In some examples, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device determines not to camp on the first candidate cell. Further, the terminal device may continue to search for another candidate cell that satisfies the first preset condition, and if a bandwidth of a found second candidate cell is greater than the preset threshold, the terminal device camps on the second candidate cell.

In this embodiment of this application, if the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device continues to search for another cell until a cell whose bandwidth satisfies the condition is found. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

In some examples, when bandwidths of all candidate cells that satisfy the first preset condition and that are found by the terminal device are less than or equal to the preset threshold, the terminal device determines, from the candidate cells that satisfy the first preset condition, a cell on which the terminal device is to camp. The candidate cells that satisfy the first preset condition include the first candidate cell.

For example, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device may not camp on the first candidate cell temporarily, and continue to search for another candidate cell; and if bandwidths of all found candidate cells are less than or equal to the preset threshold, the terminal device selects any cell from the found candidate cells, and camps on the cell. In addition, the terminal device may enable a periodic search to search for a cell whose bandwidth is greater than the preset threshold, and if a cell that satisfies the condition is found, the terminal device may perform a handover between cells in a cell reselection procedure. Alternatively, the terminal device may determine, in another equivalent or changed manner, whether a bandwidth of a cell satisfies a condition that allows the terminal device to camp on the cell. This is not limited in this embodiment of this application.

In this embodiment of this application, if none of the bandwidths of the found candidate cells satisfies the preset condition, the terminal device selects, from the found cells that satisfy the first preset condition, a cell on which the terminal device is to camp. This ensures that the terminal device can smoothly camp on a cell, thereby improving user experience.

Optionally, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device marks the first candidate cell as a cell with a lowest priority in a current RAT or a cell with a lowest priority in all RATs supported by the terminal device. The current RAT is a RAT corresponding to a cell on which the terminal device currently camps. Generally, one PLMN may support a plurality of RATs. For example, China Mobile may support GSM, time division-synchronous code division multiple access (time division-synchronous code division multiple access, TD-SCDMA), and LTE.

For example, the terminal device may obtain priority information of the first candidate cell from the system message. Optionally, priorities of cells in ascending order may be represented by numbers <NUM> to <NUM>. If the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device may locally modify the priority information of the first candidate cell, and modify the first candidate cell to a cell with a lowest priority in the current RAT, or mark the first candidate cell as a cell with a lowest priority in all the RATs supported by the terminal device. For example, a lowest priority in an LTE standard is <NUM>. If a priority of the first candidate cell is to be modified in the current RAT, the priority of the first candidate cell may be modified to <NUM>. If the priority of the first candidate cell is to be modified in all the RATs, the priority of the first candidate cell may be modified to <NUM>. After the priority is modified, the terminal device may perform a subsequent cell reselection process with reference to locally modified priority information.

In this embodiment of this application, the terminal device locally marks the cell whose bandwidth is less than or equal to the preset threshold as a cell with a lowest priority. In this way, in the subsequent cell reselection process, the terminal device can preferentially camp on a cell whose bandwidth is greater than the preset threshold, thereby improving user experience.

Optionally, when the terminal device locally stores a priori message, the terminal device searches for the first candidate cell based on the priori message, where the priori message is used to indicate cell information of a cell on which the terminal device has previously camped. In some examples, when the terminal device does not locally store a priori message, the terminal device performs a full-band search for the first candidate cell, where the priori message is used to indicate cell information of a cell on which the terminal device has previously camped.

Optionally, when the terminal device does not locally store a priori message, the terminal device performs a full-band search for the first candidate cell, where the priori message is used to indicate cell information of a cell on which the terminal device has previously camped.

In an example of the cell selection method, it is assumed that the terminal device is located in coverage areas of a first cell A and a second cell B and both the first cell A and the second cell B satisfy the first preset condition. A bandwidth of the first cell A is less than the preset threshold, and a bandwidth of the second cell B is greater than the preset threshold. In this case, according to a cell selection procedure in a conventional technology, if the terminal device first finds the first cell A, the terminal device chooses to camp on the first cell A without considering a bandwidth factor. Due to a bandwidth limitation, a data transmission rate of the terminal device is far lower than a data transmission rate expected by a user, resulting in relatively poor user experience. By contrast, in this embodiment of this application, if the terminal device first finds the first cell A in the cell selection procedure, because the bandwidth of the first cell A is less than the preset threshold, the terminal device does not camp on the first cell A, but continues to search for another candidate cell that satisfies the first preset condition, until the second cell B is found. Because the bandwidth of the second cell B is greater than the preset threshold, the terminal device finally camps on the second cell B. This ensures the data transmission rate of the terminal device, thereby improving user experience.

<FIG> is a schematic diagram of a cell selection method according to another embodiment of this application. As shown in <FIG>, the cell selection method <NUM> includes the following content.

S301: ANAS of a terminal device selects a PLMN, and indicates an AS of the terminal device to perform a cell selection procedure.

Optionally, for specific content of the cell selection procedure, refer to the related descriptions in <FIG>.

S302: If the terminal device stores priori information, the terminal device performs a stored information cell selection procedure.

For example, if the terminal device finds a candidate cell that satisfies a first preset condition, the terminal device determines whether a bandwidth of the candidate cell is greater than a preset threshold. If the bandwidth of the candidate cell is greater than the preset threshold, the terminal device camps on the candidate cell. If the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device may mark the candidate cell as a cell with a lowest priority in a current RAT or a cell with a lowest priority in all RATs; and then the terminal device continues to perform the stored information cell selection procedure. If bandwidths of all candidate cells found by the terminal device are less than the preset threshold, the terminal device may select a cell from the found candidate cells as a cell on which the terminal device is to camp.

Optionally, if the terminal device does not find a candidate cell that satisfies the preset condition by performing the stored information cell selection procedure, the terminal device may continue to perform S303.

S303: If the terminal device does not store priori information or does not find a candidate cell according to the stored information cell selection procedure, the terminal device performs an initial cell selection procedure.

In a specific example, the terminal device may perform a full-band search for a candidate cell that satisfies the first preset condition. If a bandwidth of the candidate cell is greater than the preset threshold, the terminal device camps on the candidate cell. If the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device may mark the candidate cell as a cell with a lowest priority in the current RAT or a cell with a lowest priority in all the RATs; and then the terminal device continues to perform the initial cell selection procedure. If bandwidths of all candidate cells found by the terminal device are less than the preset threshold, the terminal device may select, from the found candidate cells that satisfy the first preset condition, a cell as a cell on which the terminal device is to camp. In addition, the terminal device may enable a periodic search, where the periodic search is used to search for a cell whose bandwidth is greater than the preset threshold.

In a specific example, if the terminal device does not find a candidate cell according to the initial cell selection procedure, the terminal device performs any cell search (any cell search) procedure. The any cell search procedure is a process in which the terminal device attempts to camp on a restricted cell when the terminal device cannot obtain a normal service. A serving cell on which the terminal device camps according to the any cell search procedure provides only an emergency service. The cell on which the terminal device camps further needs to satisfy the following conditions: (<NUM>) The cell is not a barred cell; and (<NUM>) the cell satisfies a basic cell camping criterion. Alternatively, the terminal device may report a search failure, and trigger a network selection procedure again.

The following describes a cell reselection method <NUM> in an embodiment of this application with reference to <FIG>. The method <NUM> includes the following content.

S401: A terminal device receives a system message of a serving cell on which the terminal device camps, where the system message includes neighboring cell information, and the neighboring cell information includes priority information and parameter information of a first candidate cell.

The parameter information of the first candidate cell may include a parameter used to determine whether the cell satisfies a cell reselection condition. For example, in the foregoing scenario (a) and scenario (c) corresponding to the cell reselection criteria, the parameter information may include a parameter required for calculating Srxlev or Squal. In the scenario (b) corresponding to the cell reselection criterion, the parameter information may include parameters required for calculating Rs and Rn, and the like.

For example, in an LTE system, the neighboring cell information may be located in system information block type <NUM> (system information block type <NUM>, SIB4) information, system information block type <NUM> (system information block type <NUM>, SIB5) information, and/or system information block type <NUM> (system information block type <NUM>, SIB6) information in the system message.

S402: The terminal device determines, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition.

For example, the terminal device may compare, based on the priority information of the first candidate cell, a priority of the first candidate cell with a priority of the cell on which the terminal device currently camps, to determine that a current scenario is which one of the scenarios (a) to (c) corresponding to the cell reselection criteria. Then, the terminal device further determines, based on a cell measurement result and the parameter information, whether the first candidate cell satisfies the cell reselection condition.

For specific content of the cell reselection criteria corresponding to the foregoing scenarios (a) to (c), refer to the foregoing related descriptions. For brevity, details are not described herein again.

S403: The terminal device receives a system message of the first candidate cell, where the system message of the first candidate cell includes bandwidth information of the first candidate cell, and the bandwidth information is used to indicate a bandwidth of the first candidate cell.

For example, the terminal device may obtain frequency information of the first candidate cell based on the neighboring cell information, perform cell synchronization with the first candidate cell based on the frequency information of the first candidate cell, and then receive the system message of the first candidate cell. For example, in an LTE system, the bandwidth information may be dl-Bandwidth (bandwidth) information in a master information block (master information block, MIB) message in the system message.

S404: When the bandwidth of the first candidate cell is greater than a preset threshold, the terminal device hands over from the serving cell to the first candidate cell.

Optionally, the serving cell on which the terminal device currently camps may also be referred to as a source cell, and the first candidate cell may also be referred to as a suitable cell (suitable cell). When the terminal device determines to hand over to the first candidate cell, the first candidate cell may be referred to as a target cell.

Optionally, on the basis that the first candidate cell satisfies the cell reselection condition, the terminal device further needs to determine whether the bandwidth of the first candidate cell is greater than the preset threshold; and the terminal device determines to hand over to the first candidate cell, only when the bandwidth of the first candidate cell is greater than the preset threshold. The terminal device may determine the bandwidth of the first candidate cell based on the bandwidth information obtained in S403.

In this embodiment of this application, in the cell reselection process, the terminal device chooses to hand over to the cell whose bandwidth is greater than the preset threshold. This can ensure that a case in which a data transmission rate is reduced due to a bandwidth is avoided, thereby improving user experience.

In some examples, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device determines to continue to camp on the current serving cell.

In some examples, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device may locally mark the first candidate cell as a barred cell. After the first candidate cell is marked as a barred cell, the terminal device is forbidden to camp on the first candidate cell within a preset time period. A length of the preset time period may be determined based on practice. This is not limited in this embodiment of this application.

For example, when the bandwidth of the first candidate cell is less than or equal to the preset threshold, the terminal device may add the first candidate cell to a cell barred list for a limited bandwidth (cell barred list for a limited bandwidth) to forbid the terminal device to camp on the first candidate cell, and then the terminal device ends the cell reselection procedure. Alternatively, the terminal device may not process the first candidate cell, but may determine that the cell reselection fails, and continue to camp on the current serving cell.

In an example of the cell reselection method, it is assumed that the terminal device currently camps on a second cell B and a first cell A is a neighboring cell of the cell in which the terminal device is located. Based on the system message, it can be learned that a priority of the first cell A is higher than that of the second cell B and the first cell A satisfies a cell reselection condition in a conventional technology (for details, refer to the foregoing scenario (a) corresponding to the cell reselection criterion). A bandwidth of the first cell A is less than the preset threshold, and a bandwidth of the second cell B is greater than the preset threshold. If the terminal device selects a cell according to an existing cell reselection solution, the terminal device hands over to the first cell A. Due to a bandwidth limitation, a data transmission rate of the terminal device is far lower than a data transmission rate expected by a user, resulting in relatively poor user experience. By contrast, in this embodiment of this application, because the bandwidth of the first cell A is less than the preset threshold, the terminal device does not hand over to the first cell A, but continues to camp on the second cell B.

In addition, if the terminal device finds the first cell A in a previous cell selection or cell reselection process, the terminal device locally marks the first cell A as a cell with a lowest priority. Therefore, the first cell A is not preferentially considered in the cell reselection process. This ensures the data transmission rate of the terminal device, thereby improving user experience.

<FIG> is a schematic flowchart of a cell reselection method according to another embodiment of this application. As shown in <FIG>, a procedure of the cell reselection method <NUM> is as follows:
S501: A terminal device camps on a source cell.

S502: The terminal device performs cell measurement on a candidate cell, and determines, based on a cell measurement result, to start a cell reselection procedure.

S503: If the candidate cell satisfies a cell reselection condition, the terminal device obtains bandwidth information of the candidate cell.

The cell reselection condition is described above, and details are not described herein again.

Optionally, the terminal device may determine whether the terminal device stores the bandwidth information of the candidate cell. If the terminal device does not store the bandwidth information of the candidate cell, the terminal device may obtain the bandwidth information of the candidate cell by receiving a system message of the candidate cell. The system message of the candidate cell includes the bandwidth information.

Optionally, if the candidate cell does not satisfy the cell reselection condition, the terminal device continues to perform cell measurement and the cell reselection procedure.

S504: The terminal device determines, based on the bandwidth information of the candidate cell, whether to hand over from the source cell to the candidate cell.

For example, if a bandwidth of the candidate cell is greater than a preset threshold, the terminal device hands over from the source cell to the candidate cell.

For example, if the bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device camps on the source cell. Optionally, the terminal device may add the candidate cell to a cell barred list for a limited bandwidth, and end the cell reselection procedure. In this case, the terminal device is forbidden to camp on the candidate cell within a period of time. Alternatively, the terminal device may not perform any special processing on the candidate cell, but may determine that the cell reselection fails, and continue to camp on the source cell.

<FIG> is a schematic flowchart of a cell selection and cell reselection method according to another embodiment of this application. <FIG> shows a detailed procedure of cell selection and cell reselection.

For example, a NAS of the terminal device selects a network from a prestored PLMN list, and selects a PLMN. For example, the terminal device may select the PLMN from the PLMN list based on a priority order. After the PLMN is selected, the NAS of the terminal device may indicate, to an AS, a RAT related to the selected PLMN, and indicate the AS of the terminal device to perform a cell selection procedure. The AS of the terminal device performs, based on whether the terminal device stores cell information corresponding to the PLMN, a stored information cell selection procedure or an initial cell selection procedure. The cell information includes priori information.

S602: If the terminal device stores the cell information corresponding to the PLMN, the terminal device performs the stored information cell selection procedure.

The cell selection procedure is used to search for a candidate cell that satisfies a first preset condition. For example, the terminal device may search, based on frequency information that is of a cell on which the terminal device has previously camped and that is in the priori information, for a candidate cell that satisfies the first preset condition. Optionally, if the terminal device does not find a candidate cell that satisfies the first preset condition according to the stored information cell selection procedure, the terminal device performs S603.

S603: If the terminal device does not store the cell information corresponding to the PLMN, or the terminal device does not find a candidate cell that satisfies the first preset condition in the stored information cell selection procedure, the terminal device performs the initial cell selection procedure.

The initial cell selection procedure includes performing a full-band search for a candidate cell that satisfies the first preset condition.

S604: If the terminal device finds a candidate cell that satisfies the first preset condition, the terminal device determines whether a bandwidth of the candidate cell is greater than a preset threshold.

If the terminal device finds the candidate cell that satisfies the preset condition according to S602 or S603, the terminal device determines whether the bandwidth of the candidate cell is greater than the preset threshold. The terminal device camps on the candidate cell if the bandwidth of the candidate cell is greater than the preset threshold. If the bandwidth of the candidate cell is less than the preset threshold, the terminal device returns to continue to perform the cell selection procedure in S602 or S603.

The terminal device may obtain bandwidth information of the candidate cell from a system message. For example, the bandwidth information of the candidate cell may be dl-Bandwidth (bandwidth) information in a MIB message in the system message.

Optionally, when the bandwidth of the candidate cell is greater than the preset threshold, if NAS registration performed by the terminal device in the selected PLMN is rejected due to some causes (some causes), the terminal device may perform any cell selection procedure in step S608.

S605: If the terminal device finds one or more candidate cells that satisfy the first preset condition in S603 and S604, but bandwidths of all the found candidate cells are less than or equal to the preset threshold, the terminal device selects a cell from the candidate cells and camps on the cell; or if the terminal device does not find a candidate cell that satisfies the first preset condition in S603 and S604, the terminal device performs the any cell selection procedure in S608.

S606: When returning from a connected state to an idle state or an inactive state, the terminal device may perform a cell selection procedure performed after the terminal device exits the connected state. The terminal device first searches for a previous cell on which the terminal device camps, determines whether the previous cell on which the terminal device camps satisfies the first preset condition, and performs S604. If the previous cell on which the terminal device camps does not satisfy the first preset condition, the terminal device performs the stored information cell selection procedure in S602.

For example, after camping on a cell, the terminal device exits an idle state and/or an inactive state, and is in a connected state. When returning from the connected state to the idle state and/or the inactive state, the terminal device may perform the cell selection procedure performed after the terminal device exits the connected state. In the cell selection procedure performed after the terminal device exits the connected state, the terminal device preferentially attempts to camp on the previous serving cell on which the terminal device camps; and if the terminal device cannot camp on the previous serving cell on which the terminal device camps, the terminal device searches for another cell, and attempts to camp on the another cell.

S607: After camping on a serving cell, the terminal device may trigger a cell reselection procedure when detecting a candidate cell that satisfies a cell reselection condition.

For the cell reselection condition, refer to the related descriptions about the cell reselection criteriain the foregoing descriptions. After finding the candidate cell that satisfies the cell reselection condition, the terminal device may perform step S604 to determine whether to hand over from the source cell on which the terminal device camps to the candidate cell. If a bandwidth of the candidate cell is less than or equal to the preset threshold, the terminal device may end the cell reselection procedure, and camp on the source cell again. Alternatively, if the terminal device does not find a candidate cell that satisfies the reselection condition, the terminal device may perform the any cell selection procedure in S608.

S608: The terminal device performs the any cell selection procedure.

If the terminal device does not find a candidate cell that satisfies the first preset condition in the cell selection process, or does not find a cell that satisfies the cell reselection condition in the cell reselection process, or the terminal device finds a candidate cell that satisfies the first preset condition, but NAS registration is rejected, the terminal device may perform the any cell selection procedure. The any cell selection procedure may also be referred to as any cell search procedure, and is a process in which the terminal device attempts to camp on a restricted cell when the terminal device cannot obtain a normal service. For related content of the any cell search procedure, refer to the related descriptions in <FIG>.

<FIG> is a schematic structural diagram of a terminal device <NUM> according to an embodiment of this application. The terminal device <NUM> may be configured to perform the cell selection methods or steps performed by the terminal device in the method embodiments of this application. As shown in <FIG>, the terminal device <NUM> includes a search unit <NUM>, a receiving unit <NUM>, and a processing unit <NUM>.

The search unit <NUM> is configured to search for a first candidate cell. The receiving unit <NUM> is configured to receive a system message of the first candidate cell. The system message of the first candidate cell includes parameter information of the first candidate cell; bandwidth information of the first candidate cell, where the bandwidth information is used to indicate a bandwidth of the first candidate cell; and information used to indicate the following content: a PLMN of the first candidate cell is a PLMN selected by a non-access stratum (NAS), a PLMN of the first candidate cell is a registered PLMN, or a PLMN of the first candidate cell is a PLMN in an equivalent PLMN list; the first candidate cell is a cell that is not barred; and a TAI of the first candidate cell is not a TAI in a list of forbidden tracking areas for roaming. The processing unit <NUM> is configured to: determine a cell selection reception level value Srxlev and a cell selection quality value Squal of the first candidate cell based on cell measurement values and the parameter information of the first candidate cell, and determine that Srxlev > <NUM> and Squal > <NUM>. The processing unit <NUM> is further configured to: when the bandwidth of the first candidate cell is greater than a preset threshold, determine that the terminal device is to camp on the first candidate cell.

<FIG> is a schematic structural diagram of a terminal device <NUM> according to an embodiment of this application. The terminal device <NUM> may be configured to perform the cell reselection methods or steps performed by the terminal device in the method embodiments of this application. As shown in <FIG>, the terminal device <NUM> includes a receiving unit <NUM> and a determining unit <NUM>.

The receiving unit <NUM> is configured to receive a system message of a serving cell on which the terminal device <NUM> camps. The system message includes neighboring cell information, and the neighboring cell information includes priority information and parameter information of a first candidate cell. The determining unit <NUM> is configured to determine, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition. The receiving unit <NUM> is further configured to receive a system message of the first candidate cell. The system message of the first candidate cell includes bandwidth information of the first candidate cell, and the bandwidth information is used to indicate a bandwidth of the first candidate cell. The determining unit <NUM> is further configured to: when the bandwidth of the first candidate cell is greater than a preset threshold, determine that the terminal device is to hand over from the serving cell to the first candidate cell.

<FIG> is a schematic structural diagram of a terminal device <NUM> according to another embodiment of this application. The terminal device <NUM> may be configured to perform the methods or steps performed by the terminal device in the method embodiments of this application. As shown in <FIG>, the terminal device <NUM> includes:.

In one example, when the program is executed, the processor <NUM> is configured to: search for a first candidate cell; receive a system message of the first candidate cell by using the transceiver <NUM>, where the system message of the first candidate cell includes parameter information of the first candidate cell; bandwidth information of the first candidate cell, where the bandwidth information is used to indicate a bandwidth of the first candidate cell; and information used to indicate the following content: a PLMN of the first candidate cell is a PLMN selected by a NAS, a PLMN of the first candidate cell is a registered PLMN, or a PLMN of the first candidate cell is a PLMN in an equivalent PLMN list; the first candidate cell is a cell that is not barred; and a TAI of the first candidate cell is not a TAI in a list of forbidden tracking areas for roaming; determine a cell selection reception level value Srxlev and a cell selection quality value Squal of the first candidate cell based on cell measurement values and the parameter information of the first candidate cell, and determine that Srxlev > <NUM> and Squal > <NUM>; and when the bandwidth of the first candidate cell is greater than a preset threshold, determine that the terminal device is to camp on the first candidate cell.

In another example, when the program is executed, the processor <NUM> is configured to: receive, by using the transceiver <NUM>, a system message of a serving cell on which the terminal device <NUM> camps, where the system message includes neighboring cell information, and the neighboring cell information includes priority information and parameter information of a first candidate cell; determine, based on the priority information and the parameter information of the first candidate cell, that the first candidate cell satisfies a cell reselection condition; receive, by using the transceiver <NUM>, a system message of the first candidate cell, where the system message of the first candidate cell includes bandwidth information of the first candidate cell, and the bandwidth information is used to indicate a bandwidth of the first candidate cell; and when the bandwidth of the first candidate cell is greater than a preset threshold, determine that the terminal device is to hand over from the serving cell to the first candidate cell.

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

The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or other forms.

If the function is implemented in the form of a software functional unit and sold or used as an independent product, the function 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 a 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, a network device, or the like) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (read-only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disc.

Claim 1:
A cell selection method, comprising:
searching, by a terminal device, for a first candidate cell;
receiving, by the terminal device, a system message of the first candidate cell, wherein the system message of the first candidate cell comprises parameter information of the first candidate cell; bandwidth information of the first candidate cell, wherein the bandwidth information is used to indicate a bandwidth of the first candidate cell; and information used to indicate the following content: a public land mobile network (PLMN) of the first candidate cell is a PLMN selected by a non-access stratum (NAS), a PLMN of the first candidate cell is a registered PLMN, or a PLMN of the first candidate cell is a PLMN in an equivalent PLMN list; the first candidate cell is a cell that is not barred; and a tracking area identity (TAI) of the first candidate cell is not a TAI in a list of forbidden tracking areas for roaming;
determining, by the terminal device, a cell selection reception level value Srxlev and a cell selection quality value Squal of the first candidate cell based on cell measurement values and the parameter information of the first candidate cell, and determining that Srxlev > <NUM> and Squal > <NUM>; and
when the bandwidth of the first candidate cell is greater than a preset threshold, camping, by the terminal device, on the first candidate cell.