WO2016058159A1 - Cell locking method based on cell location information and mobile terminal - Google Patents

Cell locking method based on cell location information and mobile terminal Download PDF

Info

Publication number
WO2016058159A1
WO2016058159A1 PCT/CN2014/088735 CN2014088735W WO2016058159A1 WO 2016058159 A1 WO2016058159 A1 WO 2016058159A1 CN 2014088735 W CN2014088735 W CN 2014088735W WO 2016058159 A1 WO2016058159 A1 WO 2016058159A1
Authority
WO
WIPO (PCT)
Prior art keywords
cell
serving cell
mobile terminal
distance
location information
Prior art date
Application number
PCT/CN2014/088735
Other languages
French (fr)
Chinese (zh)
Inventor
瞿巍
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/088735 priority Critical patent/WO2016058159A1/en
Priority to CN201480082646.7A priority patent/CN107079378A/en
Publication of WO2016058159A1 publication Critical patent/WO2016058159A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a cell locking method based on cell location information and a mobile terminal.
  • a cell is the smallest unit of the coverage of the operator network.
  • the mobile operator In order to promote its own service or optimize the network configuration, the mobile operator usually wants to limit the mobile terminal to use only within a specific coverage. After leaving the specific coverage, Mobile terminals will be restricted from use.
  • a maximum number of cells that can be collected is preset, and the mobile terminal starts collecting cells after the locked cell function is activated, and adds the collected cells to a cell list ( In cell list, after collecting N cells, the cell list is locked, and no cell is added to the cell list.
  • the mobile terminal camps on a cell, compare the currently camped cell with the cell in the cell list, and if the currently camped cell is in the cell list, allow the mobile terminal to use if the currently camped cell If it is not in the cell list, it restricts the use of the mobile terminal.
  • the mobile terminal In the case that the cell list is not fully collected, the mobile terminal is turned off and taken to another place to be powered on, and then the cell can be continuously collected, so that the mobile terminal can be used in multiple places.
  • the embodiment of the invention provides a method for locking a cell based on cell location information and a mobile terminal, which can effectively limit the scope of use of the mobile terminal.
  • a first aspect of the present invention provides a method for locking a cell based on cell location information, including:
  • the mobile terminal acquires a cell identifier of the serving cell
  • the mobile terminal acquires location information of the serving cell, where the cell list includes a cell identifier and location of at least one cell Information
  • the mobile terminal calculates a to-be-compared distance between the serving cell and a cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list;
  • the mobile terminal adds the cell identifier of the serving cell and the location information of the serving cell to the cell list. And allowing network services to use the serving cell.
  • the distance to be compared includes:
  • the distance between the serving cell and the center point of the coverage formed by the cell in the cell list is the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the method further includes:
  • the mobile terminal prohibits the network service from using the serving cell.
  • the method further includes:
  • the mobile terminal allows the network service to use the serving cell.
  • the mobile terminal acquires the serving cell Location information, including:
  • the mobile terminal receives location information of the serving cell returned by the base station server.
  • the mobile terminal acquires the current service Location information of the cell, including:
  • the mobile terminal acquires location information of the serving cell by using a global positioning system (GPS).
  • GPS global positioning system
  • a second aspect of the present invention provides a mobile terminal, including:
  • An acquiring module configured to acquire a cell identifier of a serving cell of the mobile terminal
  • the acquiring module is further configured to: when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, acquire location information of the serving cell, where the cell list includes at least one cell Cell identification and location information;
  • a calculation module configured to calculate a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
  • Adding a module if the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list And allow network services to use the serving cell.
  • the distance to be compared includes:
  • the distance between the serving cell and the center point of the coverage formed by the cell in the cell list is the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the adding module is further configured to:
  • the network service is prohibited from using the serving cell.
  • the adding module is further configured to:
  • the to-be-compared distance is less than the distance threshold, and the cell list is full, allowing the network service to use the serving cell.
  • the acquiring module is specifically configured to:
  • the acquiring module is specifically configured to:
  • the location information of the serving cell is obtained by GPS.
  • a third aspect of the present invention provides a mobile terminal, including:
  • processor a processor, a memory, a communication interface, and a system bus, wherein the memory and the communication interface are connected to the processor through the system bus and complete communication with each other;
  • the memory is configured to store a computer execution instruction
  • the communication interface is configured to communicate with other devices
  • the processor is configured to execute the computer to execute an instruction, so that the mobile terminal performs the method as follows:
  • the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list, and allowing network services
  • the serving cell is used.
  • the distance to be compared includes:
  • the distance between the serving cell and the center point of the coverage formed by the cell in the cell list is the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the processor is further configured to:
  • the mobile terminal prohibits the network service from using the serving cell.
  • the processor is further configured to:
  • the mobile terminal allows the network service to use the serving cell.
  • the processor is specifically configured to:
  • the processor is specifically configured to:
  • the location information of the serving cell is obtained by GPS.
  • the mobile terminal obtains the cell identity of the serving cell, and obtains the service cell when the cell identity of the serving cell does not exist in the cell list saved in the mobile terminal.
  • the location information of the cell is calculated according to the location information of the serving cell and the location information of the cell in the cell list, and the distance to be compared between the serving cell and the cell in the cell list is calculated, if the to-be-compared distance is less than a preset distance threshold.
  • the mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list, and allows the network service to use the serving cell.
  • the mobile terminal by determining whether the distance to be compared between the serving cell and the cell in the cell list is less than a preset distance threshold, even if the mobile terminal is taken to another place when the cell list is not full, the mobile terminal does not The cells in other places are added to the cell list, thereby limiting the mobile terminal to a certain range for use.
  • FIG. 1 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic diagram of a cell structure
  • FIG. 4 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of another cell structure
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of a mobile terminal according to Embodiment 7 of the present invention.
  • FIG. 1 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method in this embodiment may include the following steps:
  • Step 101 The mobile terminal acquires a cell identifier of the serving cell.
  • Step 102 When the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, the mobile terminal acquires location information of the serving cell, where the cell list includes cell identifier and location information of at least one cell.
  • the mobile terminal when the mobile terminal is used for the first time, that is, the cell identifier and location information of any cell are not stored in the cell list of the mobile terminal, the mobile terminal acquires the cell identifier of the serving cell. And location information is saved in the cell list.
  • the serving cell of the mobile terminal refers to the cell where the mobile terminal camps at the current moment, and the mobile terminal can only reside in one cell at each moment.
  • the mobile terminal acquires the serving cell. After the cell identity, it is first determined whether the cell identity of the serving cell exists in the cell list saved by the mobile terminal. If the cell identifier of the serving cell already exists in the cell list, it indicates that the serving cell has been added to the cell list, and the mobile terminal can use the serving cell. If the cell identifier of the serving cell does not exist in the cell list, indicating that the serving cell has not been added to the cell list, the mobile terminal acquires the location information of the serving cell. The mobile terminal can obtain the location information of the serving cell in the following two ways:
  • the mobile terminal sends the cell identifier of the serving cell to the base station server, so that the base station server returns the location information of the serving cell according to the cell identity of the serving cell, and then the mobile terminal receives the serving cell returned by the base station server. Location information.
  • the mobile terminal After camping in the serving cell, the mobile terminal can obtain the cell identifier of the serving cell, and send the cell identifier of the serving cell to the base station server to obtain the location information of the serving cell.
  • the base station server stores a mapping relationship between the cell identifier and the cell location, where the mapping relationship table stores the cell identifier of all the cells and the location information of the cell corresponding to the cell identifier, and the base station server receives the cell identifier of the serving cell. Then, the mapping relationship table is queried according to the cell identifier of the serving cell to obtain location information of the serving cell.
  • the location information of the serving cell may be the location information of the base station where the serving cell is located, and the base station usually corresponds to multiple cells. Therefore, the location information of multiple cells covered by one base station may be the same, and the location information of the base station is the base station.
  • the location information is stored in advance in the base station server, and the location information of the base station is specifically the latitude and longitude information of the base station.
  • the mobile terminal acquires location information of the serving cell through a Global Positioning System (GPS).
  • GPS Global Positioning System
  • the mobile can determine its own location by GPS, and use its own location information as the location information of the serving cell, and the location information of the serving cell is specifically the current latitude and longitude information of the mobile terminal.
  • Step 103 The mobile terminal calculates a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list.
  • the to-be-compared distance may be any one of the following: a minimum distance between the serving cell and a cell in the cell list; or a maximum distance between the serving cell and a cell in the cell list. Or, the average distance between the serving cell and the cell in the cell list; or the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the distance to be compared may also be other distances, which is not limited in this embodiment, and is at least exemplified herein.
  • Step 104 If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, the mobile terminal adds the cell identifier of the serving cell and the location information of the serving cell to the cell list, and allows the network service to use the Service area.
  • the purpose of the method in this embodiment is to limit the use range of the mobile terminal to a certain available range.
  • the serving cell of the mobile terminal exceeds the available range, the network service on the mobile terminal is prohibited from using the serving cell, and the serving cell of the mobile terminal is used. Within this available range, the network traffic on the mobile terminal is allowed to use the serving cell. Therefore, the mobile terminal determines whether the distance to be compared between the serving cell and the cell in the cell list is less than a preset distance threshold, and if the distance to be compared is less than the distance threshold, the distance of the serving cell from each cell in the cell list is indicated.
  • the serving cell is within the available range of the mobile terminal, and the location of the serving cell is legal, allowing the network service on the mobile terminal to use the serving cell. If the distance to be compared is not less than the distance threshold, the distance between the serving cell and the cells in the cell list is far, the serving cell is not in the available range of the mobile terminal, the location of the serving cell is illegal, and the network service usage service on the mobile terminal is prohibited. Community.
  • the cell list is configured with a maximum number of locked cells, that is, the number of cells that can be saved in the cell list.
  • the maximum value if the total number of cells in the cell list is less than the maximum number of locked cells, the cell list is not collected, and the mobile terminal adds the cell identity and location information of the serving cell to the cell list, allowing the network on the mobile terminal.
  • the service uses the service cell.
  • the cell list has been collected, and the mobile terminal does not add the cell identity and location information of the serving cell to the cell list, but allows the network on the mobile terminal.
  • the service uses the service cell.
  • the serving cell is configured with a status identifier, where the status identifier is used to identify whether the network service on the mobile terminal can use the serving cell, for example, 0 is used to prohibit the network service on the mobile terminal from using the serving cell, and 1 is used as the permission.
  • the network service on the mobile terminal uses the serving cell. If the mobile terminal determines that the location of the serving cell is legal according to the location information of the serving cell, the mobile terminal sets the status identifier of the serving cell to 1, allowing the network service on the mobile terminal to use the serving cell, if the mobile terminal is based on the location of the serving cell.
  • the mobile terminal sets the status identifier of the serving cell to 0, and prohibits the network service on the mobile terminal from using the service. Community.
  • the mobile terminal determines whether it can use the serving cell according to the status identifier of the serving cell.
  • the mobile terminal can initiate the network service normally using the serving cell. .
  • the number of the maximum locked cells is usually set when the mobile terminal is shipped from the factory.
  • the maximum number of locked cells is the maximum number of cells that can be added in the cell list, and the cells in the cell list stored in the cell list are When the total number is equal to the maximum number of locked cells, it indicates that the cell list is full, and the mobile terminal no longer adds cells to the cell list.
  • the mobile terminal Before the cell list is not fully collected, after the mobile terminal camps on a cell, if the cell is not added to the cell list, the mobile terminal acquires the location information of the cell, and then determines whether the location of the cell is based on the location information of the cell. Legitimate, the mobile terminal adds the cell to the cell list only when the cell location is legal.
  • the mobile terminal when the mobile terminal adds the cell to the cell list, not only the identity of the cell but also the location information of the cell is added, so that the subsequent mobile terminal determines whether the location of the cell is determined according to the location information of each cell in the cell list. legitimate.
  • the new serving cell camped by the mobile terminal is not allowed to be used, where the new serving cell refers to a cell other than the cell included in the cell list in which the mobile terminal resides. This can cause a problem. If the operator's network changes, for example, the operator adds a new base station at the location of the mobile terminal, the mobile terminal may camp in the cell of the new base station, but the cell of the new base station Not in the cell list, therefore, the mobile terminal is prohibited from using the cell of the new base station.
  • the mobile terminal after the cell list is collected, if the location of the new serving cell where the mobile terminal resides is legal, the mobile terminal does not add the new serving cell to the cell list, but the mobile terminal allows the new use. Service area. Thus, after the cell list is full, if the operator adds a new base station at the location of the mobile terminal, the mobile terminal is allowed to use the cell of the new base station as long as the cell of the new base station satisfies the above distance condition.
  • the mobile terminal determines the distance to be compared between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list, and determines the distance to be compared.
  • the distance of the distance threshold if the distance to be compared is less than the distance threshold, the mobile terminal determines that the location of the serving cell is legal. If the mobile terminal is turned off and turned on elsewhere, when the other places are far away from the available range of the mobile terminal, the distance to be compared between the serving cell and the cell in the cell list is greater than the distance threshold, and the mobile terminal determines the serving cell. The location is illegal and the serving cell is not added to the cell list, thereby solving the problems of the prior art.
  • the mobile terminal calculates the to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list by acquiring the location information of the serving cell, and then determining Whether the to-be-compared distance is less than the distance threshold, and if the to-be-compared distance is less than the distance threshold, and the cell list is not full, the mobile terminal adds the serving cell to the cell list, and if the to-be-compared distance is not less than the distance threshold, the mobile The terminal does not add the serving cell to the cell list.
  • the mobile terminal by determining whether the distance to be compared between the serving cell and the cell in the cell list is less than the distance threshold, even if the mobile terminal is taken to another place when the cell list is not full, the mobile terminal will not be in other places.
  • the cells are added to the cell list to limit the mobile terminal to a certain range.
  • a mobile terminal separately calculates a serving cell according to location information of a serving cell and location information of each cell in a cell list. The distance from each cell in the cell list is determined, and the minimum distance among the distances between the serving cell and each cell in the cell list is determined, and the minimum distance is used as the distance to be compared.
  • the method provided in this embodiment may include the following steps:
  • Step 201 The mobile terminal determines whether the locked cell activation condition is met.
  • the mobile terminal After the function of the lock cell is activated, the mobile terminal starts to collect the cell. In order to prevent the mobile terminal from collecting the cell and causing the erroneous operation, the mobile terminal determines whether the lock cell activation condition is satisfied, and if so, activates the lock. The cell function starts collecting cells, that is, loops to perform steps 202-209. If not, the mobile terminal waits for a period of time and then returns to step 201 to continue to determine whether the lock cell activation condition is satisfied. This is mainly because the purchase location of the mobile terminal is different from the usual use location. In order to prevent the user from using the purchase location as the user's frequent use location when the user is testing the machine at the purchase location, the cell at the purchase location is added to the cell list.
  • the cell list may be collected.
  • the cell of the frequently used location cannot be added to the cell list. The user is unable to use the mobile terminal at a frequently used location.
  • the lock cell activation condition may be that the number of times the mobile terminal makes a call exceeds a certain number of times, or the duration of the call exceeds a certain time. Therefore, the mobile terminal determines whether the lock cell activation condition is satisfied, specifically: the mobile terminal determines whether the call duration is greater than a preset call duration threshold, and if yes, determines that the lock cell activation condition is satisfied; or the mobile terminal determines whether the call duration is greater than a pre- If the threshold of the number of calls is set, if it is greater, it is determined that the lock cell activation condition is satisfied.
  • the lock cell activation condition may also be other conditions. For example, the user dials the mobile terminal by using a specific number, and when the mobile terminal receives the call of the specific phone number, it determines that the user meets the lock cell activation condition.
  • Step 202 The mobile terminal starts to collect the cell, and after collecting the serving cell, acquires the cell identifier of the serving cell, and determines whether the cell identifier of the serving cell exists in the cell list.
  • the cell list includes the cell identifier and the location information of the at least one cell. If the cell identifier of the serving cell exists in the cell list, step 209 is performed. If the cell identifier of the serving cell does not exist in the cell list, step 203 is performed.
  • Step 203 The mobile terminal acquires location information of the serving cell, and calculates a distance between the serving cell and each cell in the cell list according to the location information of the serving cell and the location information of each cell in the cell list.
  • Step 204 The mobile terminal determines a minimum distance from a distance between the serving cell and each cell in the cell list, where the minimum distance is used as a to-be-compared distance between the serving cell and a cell in the cell list.
  • Step 205 The mobile terminal determines whether the to-be-compared distance is less than a preset distance threshold.
  • step 206 is performed. If the distance to be compared is not less than the distance threshold, step 207 is performed.
  • FIG. 3 is a schematic diagram of a cell structure.
  • Cell 1, cell 2, and cell 3 are cells in a cell list, and cell 4 is a serving cell of a mobile terminal, and the mobile terminal calculates cell 4 to cell 1, cell respectively.
  • the distance between the cell 3 and the cell 3 the distance from the cell 4 to the cell 1 is 20 meters
  • the distance between the cell 4 and the cell 2 is equal to 14 meters
  • the distance from the cell 4 to each cell may be the cell 4
  • the minimum distance between the cells 4 and the cells in the cell list is 14 meters. Therefore, the distance to be compared is 14 meters.
  • the minimum distance between the serving cell and each cell in the cell list is used as the distance to be compared.
  • the mobile terminal may also determine the maximum distance from the distance between the serving cell and each cell in the cell list. The maximum distance is used as the distance to be compared, or the mobile terminal calculates the average distance between the serving cell and each cell in the cell list according to the distance between the serving cell and each cell in the cell list, and uses the average distance as the distance to be compared.
  • the mobile terminal may add the distance between the serving cell and each cell in the cell list to obtain a total distance, and then find a ratio of the total distance to the total number of cells in the cell list, and use the ratio as the ratio. To compare distances.
  • the mobile terminal uses the minimum distance among the distances between the serving cell and each cell in the cell list as the distance to be compared, because the mobile terminal is less likely to have an available range. Still taking the cell shown in FIG. 3 as an example, if the distance threshold is 15 meters, if the minimum distance is used as the distance to be compared, then the distance to be compared is less than the distance threshold, and the location of the cell 4 is legal, indicating that the mobile terminal has no available range. Cell 4 can be added to the cell list. If the maximum distance is used as the distance to be compared, then the distance to be compared is greater than the distance threshold, and the location of the cell 4 is illegal, indicating that the mobile terminal has a usable range, and the mobile terminal prohibits the use of the cell 4.
  • the mobile terminal is more likely to have a usable range.
  • the edge may be The cell is forbidden to use, and if the minimum distance is used as the distance to be compared, the edge cell is allowed to use. The operator can select the appropriate distance as the distance to be compared according to actual needs.
  • Step 206 The mobile terminal determines whether the cell list has been collected.
  • the mobile terminal performs step 208. If the total number of cells in the cell list is equal to the maximum number of locked cells, it is determined. The cell list has been collected, and the mobile terminal performs step 207.
  • Step 207 The mobile terminal updates the status identifier of the serving cell to use prohibition.
  • Step 208 The mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list.
  • step 209 is performed.
  • Step 209 The mobile terminal updates the status identifier of the serving cell to use.
  • the mobile terminal adds the collected cells with legal locations to the cell list by performing steps 202-209 multiple times.
  • the mobile terminal calculates the distance between the serving cell and each cell in the cell list according to the location information of the serving cell and the location information of each cell in the cell list, by using the location information of the serving cell, and the serving cell and the serving cell. Determining a minimum distance among the distances of the cells in the cell list, determining the minimum distance as the distance to be compared, determining whether the to-be-compared distance is smaller than the distance threshold, and if not, determining that the location of the serving cell is legal, allowing the network service to use the serving cell, and When the cell list is not collected, the serving cell is added to the cell list. By comparing the distance between the serving cell and each cell in the cell list, the use range of the mobile terminal can be limited to a certain range.
  • a mobile terminal determines, according to location information of each cell in a cell list, a cell formed by a cell in a cell list.
  • the location information of the central point of the coverage area is then calculated according to the location information of the serving cell and the location information of the central point, and the distance between the serving cell and the central point is calculated, and the distance between the serving cell and the central point is used as the distance to be compared.
  • the method provided in this embodiment may include the following steps:
  • Step 301 The mobile terminal determines whether the locked cell activation condition is met.
  • step 302 is performed. If not, the mobile terminal waits for a period of time and then returns to step 301 to continue to determine whether the locked cell activation condition is met.
  • step 301 for the specific implementation of this step, reference may be made to the related description of step 301 in the second embodiment, and details are not described herein again.
  • Step 302 The mobile terminal starts to collect the cell, and after collecting the serving cell, acquires the cell identifier of the serving cell, and determines whether the cell identifier of the serving cell exists in the cell list.
  • the cell list includes the cell identifier and the location information of the at least one cell. If the cell identifier of the serving cell exists in the cell list, step 310 is performed. If the cell identifier of the serving cell does not exist in the cell list, step 303 is performed.
  • Step 303 The mobile terminal acquires location information of the serving cell, and determines location information of a center point of the coverage formed by each cell in the cell list according to location information of each cell in the cell list.
  • Step 304 The mobile terminal calculates a distance between the serving cell and the central point according to the location information of the serving cell and the location information of the central point, and uses the distance between the serving cell and the central point as the serving cell and the cell list. The distance to be compared between cells.
  • FIG. 5 is a schematic diagram of another cell structure.
  • Cell 1, cell 2, and cell 3 are cells in a cell list, cell 5 is a serving cell, and mobile terminal determines cell 1, cell 2, and small.
  • the center point of the range covered by the area 3, assuming that the black dot in FIG. 5 is the center point of the range covered by the cell 1, the cell 2, and the cell 3, then the mobile terminal calculates the distance between the serving cell and the center point, and The location of the serving cell to the center point is taken as the distance to be compared. Determining the center point of the range covered by the plurality of cells according to the location information of the plurality of cells is not described in the prior art.
  • Step 305 The mobile terminal determines whether the to-be-compared distance is less than a preset distance threshold.
  • step 306 is performed. If the distance to be compared is not less than the distance threshold, step 307 is performed.
  • Step 306 The mobile terminal determines whether the cell list has been collected.
  • step 308 If the total number of cells in the cell list is less than the maximum number of locked cells, it is determined that the cell list is not full, and the mobile terminal performs step 308. If the total number of cells in the cell list is equal to the maximum number of locked cells, it is determined. The cell list has been collected, and the mobile terminal performs step 307.
  • Step 307 The mobile terminal updates the status identifier of the serving cell to use prohibition.
  • Step 308 The mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list.
  • step 309 is performed.
  • Step 309 The mobile terminal updates the status identifier of the serving cell to be allowed to use.
  • the mobile terminal adds the collected cells with legal locations to the cell list by performing steps 302-309 multiple times.
  • the mobile terminal determines the location information of the center point of the coverage formed by each cell in the cell list according to the location information of each cell in the cell list by acquiring the location information of the serving cell, according to the location of the serving cell.
  • the information and the location information of the central point are calculated, the distance between the serving cell and the central point is calculated, and the distance between the serving cell and the central point is used as a distance to be compared, and it is determined whether the to-be-compared distance is smaller than a distance threshold, and if not, the serving cell is determined.
  • the location is legal, the network service is allowed to use the serving cell, and the serving cell is added to the cell list if the cell list is not collected.
  • the mobile terminal may determine the to-be-compared distance of the serving cell by: first, the mobile terminal according to Location information of the serving cell and each small in the cell list The location information of the area calculates the distance between the serving cell and each cell in the cell list. Then, the mobile terminal determines the location information of the central point of the coverage formed by each cell in the cell list according to the location information of each cell in the cell list, and calculates the location information of the serving cell according to the location information of the serving cell. The distance between the serving cell and the center point.
  • the mobile terminal selects a minimum distance from the distance between the serving cell and each cell in the cell list, and compares the minimum distance with the distance between the serving cell and the center point, and the minimum distance and the distance between the serving cell and the center point are The smaller value is used as the distance to be compared, and the mobile terminal may also use the larger value of the minimum distance and the distance between the serving cell and the center point as the distance to be compared. Or the mobile terminal selects a maximum distance from the distance between the serving cell and each cell in the cell list, and compares the maximum distance and the distance between the serving cell and the center point, and the distance between the maximum distance and the distance between the serving cell and the center point is smaller.
  • the larger value of the maximum distance and the distance between the serving cell and the center point may be used as the distance to be compared.
  • the mobile terminal calculates an average distance between the serving cell and each cell in the cell list, and compares the average distance with the distance between the serving cell and the center point, and the smaller of the average distance and the distance between the serving cell and the center point.
  • the larger of the average distance and the distance between the serving cell and the center point may be used as the distance to be compared.
  • the original cell list of the mobile terminal needs to be cleared, and the cell at the new physical location is restarted, and the base station server can use SMS or other means.
  • the mobile terminal is notified to clear the original cell list.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention.
  • the mobile terminal provided in this embodiment includes: an obtaining module 11, a calculating module 12, and an adding module 13.
  • the obtaining module 11 is configured to acquire a cell identifier of a serving cell of the mobile terminal
  • the acquiring module 11 is further configured to: when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, acquire location information of the serving cell, where the cell list includes at least one cell Cell identification and location information;
  • the calculating module 12 is configured to calculate a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list.
  • the adding module 13 is configured to: if the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, add the cell identifier of the serving cell and location information of the serving cell to In the cell list, and allowing network services to use the serving cell. If the distance to be compared is not less than the distance threshold, the network service is prohibited from using the serving cell. Or, if the to-be-compared distance is less than the distance threshold, but the cell list is full, the network service is allowed to use the serving cell.
  • the acquiring module 11 is specifically configured to: send the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identifier of the serving cell, and receives the location information.
  • the location information of the serving cell is acquired by Global Positioning System (GPS).
  • GPS Global Positioning System
  • the distance to be compared includes:
  • the distance between the serving cell and the center point of the coverage formed by the cell in the cell list is the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the mobile terminal provided in this embodiment may be used to perform the technical solution of the first embodiment, and the specific implementation manners and technical effects are similar, and details are not described herein again.
  • the mobile terminal in this embodiment may be used to implement the technical solution provided in the first embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the fifth embodiment of the present invention provides a mobile terminal.
  • the structure of the mobile terminal can be referred to the structure of the mobile terminal shown in FIG. 6.
  • the difference between this embodiment and the fourth embodiment is that, in this embodiment, the computing module is The specific use is: calculating a distance between the serving cell and each cell in the cell list according to location information of the serving cell and location information of each cell in the cell list; The distance between the cell and each cell in the cell list determines the distance to be compared.
  • the calculation module 12 can specifically determine the distance to be compared in the following three ways:
  • the mobile terminal may further include a lock cell activation module, configured to determine whether the lock cell activation condition is met; if yes, activate the lock cell function to start collecting the cell.
  • the lock cell activation module is specifically configured to: determine whether the call duration of the mobile terminal is greater than a preset call duration threshold, and if yes, determine that the lock cell activation condition is satisfied; or determine the mobile terminal call count Whether it is greater than a preset call number threshold, if it is greater, it is determined that the lock cell activation condition is satisfied.
  • the mobile terminal in this embodiment may be used to implement the technical solution provided in the second embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • a fifth embodiment of the present invention provides a mobile terminal.
  • the structure of the mobile terminal can be referred to the structure of the mobile terminal shown in FIG. 6.
  • the computing module 12 is specifically configured to: Calculating the distance from each cell in the cell list according to location information of a cell in the cell list and location information of each cell in the cell list. Then, based on the location information of each cell in the cell list, location information of a center point of the coverage formed by each cell in the cell list in the cell list is determined. Then, the distance between the serving cell and the central point is calculated according to the location information of the serving cell and the location information of the central point, and the distance between the serving cell and the central point is used as the waiting Compare distances.
  • the mobile terminal in this embodiment may be used to implement the technical solution provided in the third embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a mobile terminal according to Embodiment 7 of the present invention.
  • the mobile terminal 200 provided in this embodiment includes: a processor 21, a memory 22, a communication interface 23, and a system bus 24, where the memory 22 and the communication interface 23 are connected to the processor 21 via the system bus 24 and complete communication with each other.
  • the memory 22 is configured to store a computer execution instruction 221; the communication interface 23 is configured to communicate with other devices; and the processor 21 is configured to execute the computer execution instruction 221 to perform the following operations:
  • the cell list is not full, the cell identifier of the serving cell and the location information of the serving cell are added to the cell list, and the network service is allowed to be used.
  • the serving cell If the to-be-compared distance is less than the preset distance threshold, and the cell list is not full, the cell identifier of the serving cell and the location information of the serving cell are added to the cell list, and the network service is allowed to be used.
  • the serving cell If the to-be-compared distance is less than the preset distance threshold, and the cell list is not full, the cell identifier of the serving cell and the location information of the serving cell are added to the cell list, and the network service is allowed to be used.
  • the serving cell If the to-be-compared distance is less than the preset distance threshold, and the cell list is not full, the cell identifier of the serving cell and the location information of the serving cell are added to the cell list, and the network service is allowed to be used.
  • the serving cell If the to-be-compared distance is less than the preset distance threshold
  • the acquiring, by the processor 21, the location information of the serving cell specifically: sending the cell identifier of the serving cell to the base station server, so that the base station server returns the serving cell according to the cell identifier of the serving cell.
  • the location information of the serving cell is acquired by Global Positioning System (GPS).
  • the distance to be compared includes:
  • the distance between the serving cell and the center point of the coverage formed by the cell in the cell list is the distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  • the processor 21 calculates a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list, specifically:
  • a minimum distance is determined among the distances of the cells in the list, and the minimum distance is taken as the distance to be compared.
  • the network service is prohibited from using the serving cell. Or, if the to-be-compared distance is less than the distance threshold, but the cell list is full, the network service is allowed to use the serving cell.
  • the processor 21 is further configured to: determine whether the lock cell activation condition is met; if yes, activate the lock cell function to start collecting the cell.
  • the processor 21 determines whether the lock cell activation condition is satisfied, specifically: determining whether the call duration is greater than a preset call duration threshold, and if yes, determining that the lock cell activation condition is satisfied; or determining, by the mobile terminal, whether the call duration is greater than The preset call number threshold, if greater, determines that the lock cell activation condition is satisfied.
  • the processor 21 is further configured to: when the mobile terminal collects the serving cell, determine whether a cell identifier of the serving cell exists in the cell list.
  • the mobile terminal of this embodiment can be used to implement the technical solutions provided in the first embodiment to the third embodiment, and the implementation principles and technical effect types are not described herein.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided are a cell locking method based on cell location information and a mobile terminal. By acquiring location information about a serving cell, the mobile terminal calculates a distance to be compared between the serving cell and a cell in a cell list according to the location information about the serving cell and the location information about the cell in the cell list, then judges whether the distance to be compared is smaller than a pre-set distance threshold value or not and adds the serving cell into the cell list if the distance to be compared is smaller than the distance threshold value and the cell list is not full. In the method, by judging whether the distance to be compared between the serving cell and the cell in the cell list is smaller than the pre-set distance threshold value or not, even if the mobile terminal is powered on in other places under the situation that the cell list is not fully filled, the mobile terminal cannot add the cell in other places into the cell list, so that the mobile terminal is limited to be used in a given range.

Description

基于小区位置信息的锁小区方法和移动终端Lock cell method based on cell location information and mobile terminal 技术领域Technical field
本发明实施例涉及通信技术,尤其涉及一种基于小区位置信息的锁小区方法和移动终端。The embodiments of the present invention relate to communication technologies, and in particular, to a cell locking method based on cell location information and a mobile terminal.
背景技术Background technique
小区(cell)是运营商网络覆盖范围的最小单位,移动运营商为了推广自己的业务或者优化网络配置,通常希望限制移动终端只能在特定的覆盖范围内使用,离开该特定的覆盖范围后,移动终端将被限制使用。A cell is the smallest unit of the coverage of the operator network. In order to promote its own service or optimize the network configuration, the mobile operator usually wants to limit the mobile terminal to use only within a specific coverage. After leaving the specific coverage, Mobile terminals will be restricted from use.
为了实现上述目的,现有技术中,在移动终端出厂时预置一个最大能搜集的小区的个数,移动终端在锁小区功能激活后开始搜集小区,将搜集到的小区添加到一个小区列表(cell list)中,搜集满N个小区后锁定该小区列表,不再往该小区列表中添加小区。当移动终端驻留到一个小区后,将当前驻留的小区与该小区列表中的小区进行比较,如果当前驻留的小区在该小区列表中,则允许移动终端使用,如果当前驻留的小区不在该小区列表中,则限制移动终端使用。In order to achieve the above object, in the prior art, when the mobile terminal is shipped from the factory, a maximum number of cells that can be collected is preset, and the mobile terminal starts collecting cells after the locked cell function is activated, and adds the collected cells to a cell list ( In cell list, after collecting N cells, the cell list is locked, and no cell is added to the cell list. After the mobile terminal camps on a cell, compare the currently camped cell with the cell in the cell list, and if the currently camped cell is in the cell list, allow the mobile terminal to use if the currently camped cell If it is not in the cell list, it restricts the use of the mobile terminal.
但是现有技术中,也存在以下问题,在小区列表没有搜集满的情况下,将移动终端关机后拿到其他地方开机,则可以继续搜集小区,导致移动终端可以在多个地方使用,达不到运营商锁小区的目的。However, in the prior art, the following problem also exists. In the case that the cell list is not fully collected, the mobile terminal is turned off and taken to another place to be powered on, and then the cell can be continuously collected, so that the mobile terminal can be used in multiple places. The purpose of the lock cell to the operator.
发明内容Summary of the invention
本发明实施例提供一种基于小区位置信息的锁小区方法和移动终端,能够有效限制移动终端的使用范围。The embodiment of the invention provides a method for locking a cell based on cell location information and a mobile terminal, which can effectively limit the scope of use of the mobile terminal.
本发明第一方面提供一种基于小区位置信息的锁小区方法,包括:A first aspect of the present invention provides a method for locking a cell based on cell location information, including:
移动终端获取服务小区的小区标识;The mobile terminal acquires a cell identifier of the serving cell;
当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,所述移动终端获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息; When the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, the mobile terminal acquires location information of the serving cell, where the cell list includes a cell identifier and location of at least one cell Information
所述移动终端根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;The mobile terminal calculates a to-be-compared distance between the serving cell and a cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list;
若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则所述移动终端将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, the mobile terminal adds the cell identifier of the serving cell and the location information of the serving cell to the cell list. And allowing network services to use the serving cell.
结合本发明第一方面,在本发明第一方面的第一种可能的实现方式中,所述待比较距离包括:With reference to the first aspect of the present invention, in a first possible implementation manner of the first aspect of the present invention, the distance to be compared includes:
所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
结合本发明第一方面以及本发明第一方面的第一种可能的实现方式,在本发明第一方面的第二种可能的实现方式中,所述方法还包括:With reference to the first aspect of the present invention and the first possible implementation manner of the first aspect of the present invention, in a second possible implementation manner of the first aspect of the present invention, the method further includes:
若所述待比较距离不小于所述距离阈值,则所述移动终端禁止所述网络业务使用所述服务小区。And if the to-be-compared distance is not less than the distance threshold, the mobile terminal prohibits the network service from using the serving cell.
结合本发明第一方面以及本发明第一方面的第一种可能的实现方式,在本发明第一方面的第三种可能的实现方式中,所述方法还包括:With reference to the first aspect of the present invention and the first possible implementation manner of the first aspect of the present invention, in a third possible implementation manner of the first aspect of the present invention, the method further includes:
若所述待比较距离小于所述距离阈值,且所述小区列表已满,则所述移动终端允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, the mobile terminal allows the network service to use the serving cell.
结合本发明第一方面以及本发明第一方面的第一种至第三种可能的实现方式,在本发明第一方面的第四种可能的实现方式中,所述移动终端获取所述服务小区的位置信息,包括:With reference to the first aspect of the present invention and the first to third possible implementation manners of the first aspect of the present invention, in a fourth possible implementation manner of the first aspect of the present disclosure, the mobile terminal acquires the serving cell Location information, including:
所述移动终端将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息;Sending, by the mobile terminal, the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
所述移动终端接收所述基站服务器返回的所述服务小区的位置信息。The mobile terminal receives location information of the serving cell returned by the base station server.
结合本发明第一方面以及本发明第一方面的第一种至第三种可能的实现方式,在本发明第一方面的第五种可能的实现方式中,所述移动终端获取所述当前服务小区的位置信息,包括:With reference to the first aspect of the present invention and the first to third possible implementation manners of the first aspect of the present invention, in a fifth possible implementation manner of the first aspect of the present invention, the mobile terminal acquires the current service Location information of the cell, including:
所述移动终端通过全球定位系统GPS获取所述服务小区的位置信息。 The mobile terminal acquires location information of the serving cell by using a global positioning system (GPS).
本发明第二方面提供一种移动终端,包括:A second aspect of the present invention provides a mobile terminal, including:
获取模块,用于获取所述移动终端的服务小区的小区标识;An acquiring module, configured to acquire a cell identifier of a serving cell of the mobile terminal;
所述获取模块还用于,当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;The acquiring module is further configured to: when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, acquire location information of the serving cell, where the cell list includes at least one cell Cell identification and location information;
计算模块,用于根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;a calculation module, configured to calculate a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
添加模块,用于若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。Adding a module, if the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list And allow network services to use the serving cell.
结合本发明第二方面,在本发明第二方面的第一种可能的实现方式中,所述待比较距离包括:With reference to the second aspect of the present invention, in a first possible implementation manner of the second aspect of the present invention, the distance to be compared includes:
所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
结合本发明第二方面以及本发明第二方面的第一种可能的实现方式,在本发明第二方面的第二种可能的实现方式中,所述添加模块还用于:With reference to the second aspect of the present invention and the first possible implementation manner of the second aspect of the present invention, in the second possible implementation manner of the second aspect of the present invention, the adding module is further configured to:
若所述待比较距离不小于所述距离阈值,则禁止所述网络业务使用所述服务小区。If the distance to be compared is not less than the distance threshold, the network service is prohibited from using the serving cell.
结合本发明第二方面以及本发明第二方面的第一种可能的实现方式,在本发明第二方面的第三种可能的实现方式中,所述添加模块还用于:With reference to the second aspect of the present invention and the first possible implementation manner of the second aspect of the present invention, in a third possible implementation manner of the second aspect of the present invention, the adding module is further configured to:
若所述待比较距离小于所述距离阈值,且所述小区列表已满,则允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, allowing the network service to use the serving cell.
结合本发明第二方面以及本发明第二方面的第一种至第三种可能的实现方式,在本发明第二方面的第四种可能的实现方式中,所述获取模块具体用于:With reference to the second aspect of the present invention and the first to third possible implementation manners of the second aspect of the present invention, in the fourth possible implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to:
将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息; Sending the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
接收所述基站服务器返回的所述服务小区的位置信息。Receiving location information of the serving cell returned by the base station server.
结合本发明第二方面以及本发明第二方面的第一种至第三种可能的实现方式,在本发明第二方面的第五种可能的实现方式中,所述获取模块具体用于:With reference to the second aspect of the present invention and the first to third possible implementation manners of the second aspect of the present invention, in the fifth possible implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to:
通过全球定位系统GPS获取所述服务小区的位置信息。The location information of the serving cell is obtained by GPS.
本发明第三方面提供一种移动终端,包括:A third aspect of the present invention provides a mobile terminal, including:
处理器、存储器、通信接口和系统总线,所述存储器和所述通信接口通过所述系统总线与所述处理器连接并完成相互间的通信;a processor, a memory, a communication interface, and a system bus, wherein the memory and the communication interface are connected to the processor through the system bus and complete communication with each other;
所述存储器,用于存储计算机执行指令;The memory is configured to store a computer execution instruction;
所述通信接口,用于和其他设备进行通信;The communication interface is configured to communicate with other devices;
所述处理器,用于运行所述计算机执行指令,使所述移动终端执行如下所述的方法:The processor is configured to execute the computer to execute an instruction, so that the mobile terminal performs the method as follows:
获取所述移动终端的服务小区的小区标识;Obtaining a cell identifier of a serving cell of the mobile terminal;
当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;Obtaining location information of the serving cell when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, where the cell list includes cell identifier and location information of at least one cell;
根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;Calculating a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list, and allowing network services The serving cell is used.
结合本发明第三方面,在本发明第三方面的第一种可能的实现方式中,所述待比较距离包括:In conjunction with the third aspect of the present invention, in a first possible implementation manner of the third aspect of the present invention, the distance to be compared includes:
所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
结合本发明第三方面以及本发明第三方面的第一种可能的实现方式,在本发明第三方面的第二种可能的实现方式中,所述处理器还用于: With reference to the third aspect of the present invention and the first possible implementation manner of the third aspect of the present invention, in a second possible implementation manner of the third aspect of the present invention, the processor is further configured to:
若所述待比较距离不小于所述距离阈值,则所述移动终端禁止所述网络业务使用所述服务小区。And if the to-be-compared distance is not less than the distance threshold, the mobile terminal prohibits the network service from using the serving cell.
结合本发明第三方面以及本发明第三方面的第一种可能的实现方式,在本发明第三方面的第三种可能的实现方式中,所述处理器还用于:With reference to the third aspect of the present invention and the first possible implementation manner of the third aspect of the present invention, in a third possible implementation manner of the third aspect of the present invention, the processor is further configured to:
若所述待比较距离小于所述距离阈值,且所述小区列表已满,则所述移动终端允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, the mobile terminal allows the network service to use the serving cell.
结合本发明第三方面以及本发明第三方面的第一种至第三种可能的实现方式,在本发明第三方面的第四种可能的实现方式中,所述处理器具体用于:With reference to the third aspect of the present invention and the first to third possible implementation manners of the third aspect of the present invention, in a fourth possible implementation manner of the third aspect of the present invention, the processor is specifically configured to:
将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息;Sending the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
接收所述基站服务器返回的所述服务小区的位置信息。Receiving location information of the serving cell returned by the base station server.
结合本发明第三方面以及本发明第三方面的第一种至第三种可能的实现方式,在本发明第三方面的第五种可能的实现方式中,所述处理器具体用于:With reference to the third aspect of the present invention and the first to third possible implementation manners of the third aspect of the present invention, in a fifth possible implementation manner of the third aspect of the present invention, the processor is specifically configured to:
通过全球定位系统GPS获取所述服务小区的位置信息。The location information of the serving cell is obtained by GPS.
本发明实施例提供的基于小区位置信息的锁小区方法和移动终端,移动终端获取服务小区的小区标识,当移动终端中保存的小区列表中不存在该服务小区的小区标识时,通过获取该服务小区的位置信息,根据该服务小区的位置信息与小区列表中的小区的位置信息,计算该服务小区与小区列表中的小区之间的待比较距离,若该待比较距离小于预设的距离阈值,且小区列表未满,移动终端将该服务小区的小区标识和该服务小区的位置信息添加到小区列表中,并且允许网络业务使用该服务小区。上述方法中,通过判断服务小区与小区列表中小区的待比较距离是否小于预设的距离阈值,即使在小区列表没有搜集满的情况下将移动终端拿到其他地方开机,移动终端也不会将其他地方的小区添加到小区列表中,从而将移动终端限制在一定的范围内使用。According to the method and the mobile terminal of the cell location information-based cell, the mobile terminal obtains the cell identity of the serving cell, and obtains the service cell when the cell identity of the serving cell does not exist in the cell list saved in the mobile terminal. The location information of the cell is calculated according to the location information of the serving cell and the location information of the cell in the cell list, and the distance to be compared between the serving cell and the cell in the cell list is calculated, if the to-be-compared distance is less than a preset distance threshold. And the cell list is not full, the mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list, and allows the network service to use the serving cell. In the above method, by determining whether the distance to be compared between the serving cell and the cell in the cell list is less than a preset distance threshold, even if the mobile terminal is taken to another place when the cell list is not full, the mobile terminal does not The cells in other places are added to the cell list, thereby limiting the mobile terminal to a certain range for use.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员 来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description Are some embodiments of the invention, to those of ordinary skill in the art In other words, other drawings can be obtained based on these drawings without paying for creative labor.
图1为本发明实施例一提供的基于小区位置信息的锁小区方法的流程图;1 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的基于小区位置信息的锁小区方法的流程图;2 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 2 of the present invention;
图3为一种小区结构示意图;3 is a schematic diagram of a cell structure;
图4为本发明实施例三提供的基于小区位置信息的锁小区方法的流程图;4 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 3 of the present invention;
图5为另一种小区结构示意图;FIG. 5 is a schematic diagram of another cell structure;
图6为本发明实施例四提供的移动终端的结构示意图;FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention;
图7为本发明实施例七提供的移动终端的结构示意图。FIG. 7 is a schematic structural diagram of a mobile terminal according to Embodiment 7 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明实施例一提供的基于小区位置信息的锁小区方法的流程图,如图1所示,本实施例的方法可以包括以下步骤:FIG. 1 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method in this embodiment may include the following steps:
步骤101、移动终端获取服务小区的小区标识。Step 101: The mobile terminal acquires a cell identifier of the serving cell.
步骤102、当移动终端中保存的小区列表中不存在该服务小区的小区标识时,移动终端获取该服务小区的位置信息,该小区列表中包括至少一个小区的小区标识和位置信息。Step 102: When the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, the mobile terminal acquires location information of the serving cell, where the cell list includes cell identifier and location information of at least one cell.
需要说明的是,当所述移动终端的首次被使用,即所述移动终端的小区列表中还没有保存任何小区的小区标识和位置信息时,所述移动终端将获取到的服务小区的小区标识和位置信息保存在该小区列表中。It should be noted that, when the mobile terminal is used for the first time, that is, the cell identifier and location information of any cell are not stored in the cell list of the mobile terminal, the mobile terminal acquires the cell identifier of the serving cell. And location information is saved in the cell list.
移动终端的服务小区指移动终端在当前时刻驻留的小区,移动终端在每个时刻只能驻留在一个小区中。本实施例中,移动终端在获取到该服务小区 的小区标识后,先要判断移动终端保存的小区列表中是否存在该服务小区的小区标识。若该小区列表中已经存在该服务小区的小区标识,说明该服务小区已经被添加到小区列表,移动终端可以使用该服务小区。若小区列表中不存在该服务小区的小区标识,说明该服务小区还没有被添加到小区列表中,则移动终端获取该服务小区的位置信息。移动终端可以通过以下两种方式获取该服务小区的位置信息:The serving cell of the mobile terminal refers to the cell where the mobile terminal camps at the current moment, and the mobile terminal can only reside in one cell at each moment. In this embodiment, the mobile terminal acquires the serving cell. After the cell identity, it is first determined whether the cell identity of the serving cell exists in the cell list saved by the mobile terminal. If the cell identifier of the serving cell already exists in the cell list, it indicates that the serving cell has been added to the cell list, and the mobile terminal can use the serving cell. If the cell identifier of the serving cell does not exist in the cell list, indicating that the serving cell has not been added to the cell list, the mobile terminal acquires the location information of the serving cell. The mobile terminal can obtain the location information of the serving cell in the following two ways:
第一种方式,移动终端将服务小区的小区标识发送给基站服务器,以使基站服务器根据该服务小区的小区标识返回该服务小区的位置信息,然后,移动终端接收该基站服务器返回的该服务小区的位置信息。In the first mode, the mobile terminal sends the cell identifier of the serving cell to the base station server, so that the base station server returns the location information of the serving cell according to the cell identity of the serving cell, and then the mobile terminal receives the serving cell returned by the base station server. Location information.
移动终端在驻留到服务小区后,能够获取到该服务小区的小区标识,通过向该基站服务器发送该服务小区的小区标识,以获取该服务小区的位置信息。该基站服务器中保存有小区标识与小区位置的映射关系表,该映射关系表中保存有所有小区的小区标识,以及小区标识对应的小区的位置信息,基站服务器在接收到该服务小区的小区标识后,根据该服务小区的小区标识查询该映射关系表,以获得该服务小区的位置信息。After camping in the serving cell, the mobile terminal can obtain the cell identifier of the serving cell, and send the cell identifier of the serving cell to the base station server to obtain the location information of the serving cell. The base station server stores a mapping relationship between the cell identifier and the cell location, where the mapping relationship table stores the cell identifier of all the cells and the location information of the cell corresponding to the cell identifier, and the base station server receives the cell identifier of the serving cell. Then, the mapping relationship table is queried according to the cell identifier of the serving cell to obtain location information of the serving cell.
服务小区的位置信息具体可以是服务小区所在的基站的位置信息,一个基站通常对应多个小区,因此,一个基站覆盖下的多个小区的位置信息可以相同,都为该基站的位置信息,基站的位置信息预先保存在基站服务器中,基站的位置信息具体为基站的经纬度信息。The location information of the serving cell may be the location information of the base station where the serving cell is located, and the base station usually corresponds to multiple cells. Therefore, the location information of multiple cells covered by one base station may be the same, and the location information of the base station is the base station. The location information is stored in advance in the base station server, and the location information of the base station is specifically the latitude and longitude information of the base station.
第二种方式,移动终端通过全球定位系统GPS(Global Positioning System,简称GPS)获取服务小区的位置信息。In the second mode, the mobile terminal acquires location information of the serving cell through a Global Positioning System (GPS).
对于具有GPS功能的移动终端,移动可以通过GPS确定自己的位置,将自己的位置信息作为服务小区的位置信息,服务小区的位置信息具体为移动终端当前的经纬度信息。For a mobile terminal with GPS function, the mobile can determine its own location by GPS, and use its own location information as the location information of the serving cell, and the location information of the serving cell is specifically the current latitude and longitude information of the mobile terminal.
步骤103、移动终端根据该服务小区的位置信息与该小区列表中的小区的位置信息,计算该服务小区与该小区列表中的小区之间的待比较距离。Step 103: The mobile terminal calculates a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list.
该待比较距离可以是以下几种中的任意一种:该服务小区与该小区列表中的小区的距离中的最小距离;或者,该服务小区与该小区列表中的小区的距离中的最大距离;或者,该服务小区与该小区列表中的小区的平均距离;或者,该服务小区与该小区列表中的小区所形成的覆盖范围的中心点的距离。 当然,该待比较距离还可以是其他距离,本实施例并不对此进行限制,这里至少举例说明。The to-be-compared distance may be any one of the following: a minimum distance between the serving cell and a cell in the cell list; or a maximum distance between the serving cell and a cell in the cell list. Or, the average distance between the serving cell and the cell in the cell list; or the distance between the serving cell and the center point of the coverage formed by the cell in the cell list. Of course, the distance to be compared may also be other distances, which is not limited in this embodiment, and is at least exemplified herein.
步骤104、若该待比较距离小于预设的距离阈值,且小区列表未满,则移动终端将该服务小区的小区标识和该服务小区的位置信息添加到小区列表中,并且允许网络业务使用该服务小区。Step 104: If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, the mobile terminal adds the cell identifier of the serving cell and the location information of the serving cell to the cell list, and allows the network service to use the Service area.
本实施例方法的目的是将移动终端的使用范围限制在一定的可用范围内,当移动终端的服务小区超出该可用范围,则禁止移动终端上的网络业务使用服务小区,当移动终端的服务小区在该可用范围内,则允许移动终端上的网络业务使用服务小区。因此,移动终端通过判断服务小区与该小区列表中的小区之间的待比较距离是否小于预设的距离阈值,若该待比较距离小于距离阈值,说明服务小区距离小区列表中的各小区的距离较近,服务小区在移动终端的可用范围内,服务小区的位置合法,允许移动终端上的网络业务使用服务小区。若该待比较距离不小于距离阈值,说明服务小区距离小区列表中的各小区的距离较远,服务小区不在移动终端的可用范围内,服务小区的位置非法,禁止移动终端上的网络业务使用服务小区。The purpose of the method in this embodiment is to limit the use range of the mobile terminal to a certain available range. When the serving cell of the mobile terminal exceeds the available range, the network service on the mobile terminal is prohibited from using the serving cell, and the serving cell of the mobile terminal is used. Within this available range, the network traffic on the mobile terminal is allowed to use the serving cell. Therefore, the mobile terminal determines whether the distance to be compared between the serving cell and the cell in the cell list is less than a preset distance threshold, and if the distance to be compared is less than the distance threshold, the distance of the serving cell from each cell in the cell list is indicated. More recently, the serving cell is within the available range of the mobile terminal, and the location of the serving cell is legal, allowing the network service on the mobile terminal to use the serving cell. If the distance to be compared is not less than the distance threshold, the distance between the serving cell and the cells in the cell list is far, the serving cell is not in the available range of the mobile terminal, the location of the serving cell is illegal, and the network service usage service on the mobile terminal is prohibited. Community.
当移动终端确定服务小区与小区列表中的小区之间的待比较距离小于距离阈值之后,进一步判断小区列表是否已满,小区列表设置有一个最大锁小区数目,即小区列表中能够保存的小区数目的最大值,若小区列表中的小区的总数目小于最大锁小区个数,那么小区列表没有搜集满,移动终端将服务小区的小区标识和位置信息添加到小区列表中,允许移动终端上的网络业务使用服务小区。若小区列表中的各小区的总数目等于最大锁小区个数,那么小区列表已经搜集满,移动终端不会将服务小区的小区标识和位置信息添加到小区列表中,但是允许移动终端上的网络业务使用服务小区。After the mobile terminal determines that the to-be-compared distance between the serving cell and the cell in the cell list is less than the distance threshold, further determining whether the cell list is full, the cell list is configured with a maximum number of locked cells, that is, the number of cells that can be saved in the cell list. The maximum value, if the total number of cells in the cell list is less than the maximum number of locked cells, the cell list is not collected, and the mobile terminal adds the cell identity and location information of the serving cell to the cell list, allowing the network on the mobile terminal. The service uses the service cell. If the total number of cells in the cell list is equal to the maximum number of locked cells, the cell list has been collected, and the mobile terminal does not add the cell identity and location information of the serving cell to the cell list, but allows the network on the mobile terminal. The service uses the service cell.
可选的,服务小区设置有一个状态标识,该状态标识用于标识移动终端上的网络业务能否使用服务小区,例如,用0表示禁止移动终端上的网络业务使用服务小区,用1表示允许移动终端上的网络业务使用服务小区。若移动终端根据服务小区的位置信息确定服务小区的位置合法,则移动终端会将服务小区的状态标识设置为1,允许移动终端上的网络业务使用该服务小区,若移动终端根据服务小区的位置信息确定服务小区的位置非法,则移动终端会将服务小区的状态标识设置为0,禁止移动终端上的网络业务使用该服务 小区。当移动终端有网络业务要发起时,移动终端根据服务小区的状态标识确定自己是否能够使用该服务小区,当允许移动终端上的网络业务使用服务小区时,移动终端才能使用服务小区正常发起网络业务。Optionally, the serving cell is configured with a status identifier, where the status identifier is used to identify whether the network service on the mobile terminal can use the serving cell, for example, 0 is used to prohibit the network service on the mobile terminal from using the serving cell, and 1 is used as the permission. The network service on the mobile terminal uses the serving cell. If the mobile terminal determines that the location of the serving cell is legal according to the location information of the serving cell, the mobile terminal sets the status identifier of the serving cell to 1, allowing the network service on the mobile terminal to use the serving cell, if the mobile terminal is based on the location of the serving cell. If the information determines that the location of the serving cell is illegal, the mobile terminal sets the status identifier of the serving cell to 0, and prohibits the network service on the mobile terminal from using the service. Community. When the mobile terminal has a network service to initiate, the mobile terminal determines whether it can use the serving cell according to the status identifier of the serving cell. When the network service on the mobile terminal is allowed to use the serving cell, the mobile terminal can initiate the network service normally using the serving cell. .
上述的最大锁小区个数通常在移动终端出厂时已经设置好,该最大锁小区个数为小区列表中所能添加的小区的最大个数,当小区列表中保存的小区列表中的各小区的总数目等于最大锁小区个数时,说明小区列表已满,移动终端不再往小区列表中添加小区。在小区列表没有搜集满之前,移动终端每次驻留到一个小区后,若小区没有被添加到小区列表中,移动终端都会获取小区的位置信息,然后,根据小区的位置信息判断小区的位置是否合法,只有在小区位置合法时,移动终端才会将小区添加到小区列表中。本实施例中,移动终端在将小区添加到小区列表时,不仅添加小区的标识还添加小区的位置信息,以便于后续移动终端根据小区列表中的各小区的位置信息确定某个小区的位置是否合法。The number of the maximum locked cells is usually set when the mobile terminal is shipped from the factory. The maximum number of locked cells is the maximum number of cells that can be added in the cell list, and the cells in the cell list stored in the cell list are When the total number is equal to the maximum number of locked cells, it indicates that the cell list is full, and the mobile terminal no longer adds cells to the cell list. Before the cell list is not fully collected, after the mobile terminal camps on a cell, if the cell is not added to the cell list, the mobile terminal acquires the location information of the cell, and then determines whether the location of the cell is based on the location information of the cell. Legitimate, the mobile terminal adds the cell to the cell list only when the cell location is legal. In this embodiment, when the mobile terminal adds the cell to the cell list, not only the identity of the cell but also the location information of the cell is added, so that the subsequent mobile terminal determines whether the location of the cell is determined according to the location information of each cell in the cell list. legitimate.
现有技术中,当小区列表搜集满之后,移动终端驻留的新服务小区都不允许使用,这里新服务小区指移动终端驻留的小区列表中包括的小区之外的小区。这样会导致一个问题,如果运营商的网络发生了变化,例如,运营商在移动终端的位置处增加了一个新基站,移动终端可能会驻留到新基站的小区内,但是,新基站的小区不在小区列表中,因此,移动终端被禁止使用新基站的小区。为了解决该问题,本实施例中,当小区列表搜集满之后,如果移动终端驻留的新服务小区的位置合法,移动终端不会将新服务小区添加到小区列表中,但是移动终端允许使用新服务小区。这样,当小区列表搜集满之后,如果运营商在移动终端的位置处增加了一个新基站,只要新基站的小区满足上述距离条件,允许移动终端使用该新基站的小区。In the prior art, after the cell list is collected, the new serving cell camped by the mobile terminal is not allowed to be used, where the new serving cell refers to a cell other than the cell included in the cell list in which the mobile terminal resides. This can cause a problem. If the operator's network changes, for example, the operator adds a new base station at the location of the mobile terminal, the mobile terminal may camp in the cell of the new base station, but the cell of the new base station Not in the cell list, therefore, the mobile terminal is prohibited from using the cell of the new base station. In order to solve this problem, in this embodiment, after the cell list is collected, if the location of the new serving cell where the mobile terminal resides is legal, the mobile terminal does not add the new serving cell to the cell list, but the mobile terminal allows the new use. Service area. Thus, after the cell list is full, if the operator adds a new base station at the location of the mobile terminal, the mobile terminal is allowed to use the cell of the new base station as long as the cell of the new base station satisfies the above distance condition.
另外,现有技术中,当小区列表没有搜集满的情况下,如果将移动终端关机拿到移动终端的可用范围之外的其他地方开机,移动终端会继续搜集小区并添加到小区列表中,导致以后移动终端可以在多个地方使用,不能满足运营商限制移动终端使用范围的问题。为了解决该问题,本实施例中,移动终端根据服务小区的位置信息与小区列表中的小区的位置信息,确定服务小区与小区列表中的小区之间的待比较距离,判断该待比较距离与距离阈值的大小,若该待比较距离小于距离阈值,则移动终端确定服务小区的位置合法。 如果将移动终端关机拿到其他地方开机,当其他地方距离移动终端的可用范围较远时,服务小区与小区列表中的小区之间的待比较距离会大于距离阈值,移动终端会判断该服务小区的位置非法,不会将该服务小区添加到小区列表中,从而解决了现有技术的问题。In addition, in the prior art, when the cell list is not fully collected, if the mobile terminal is shut down and taken to a place other than the available range of the mobile terminal, the mobile terminal continues to collect the cell and adds it to the cell list, resulting in In the future, the mobile terminal can be used in multiple places, and cannot meet the problem that the operator limits the use range of the mobile terminal. In order to solve the problem, in the embodiment, the mobile terminal determines the distance to be compared between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list, and determines the distance to be compared. The distance of the distance threshold, if the distance to be compared is less than the distance threshold, the mobile terminal determines that the location of the serving cell is legal. If the mobile terminal is turned off and turned on elsewhere, when the other places are far away from the available range of the mobile terminal, the distance to be compared between the serving cell and the cell in the cell list is greater than the distance threshold, and the mobile terminal determines the serving cell. The location is illegal and the serving cell is not added to the cell list, thereby solving the problems of the prior art.
本实施例中,移动终端通过获取服务小区的位置信息,根据服务小区的位置信息与小区列表中的小区的位置信息,计算服务小区与小区列表中的小区之间的待比较距离,然后,判断该待比较距离是否小于预设的距离阈值,若该待比较距离小于距离阈值,并且小区列表未满,移动终端才将服务小区添加到小区列表中,若该待比较距离不小于距离阈值,移动终端不会将服务小区添加到小区列表中。上述方法中,通过判断服务小区与小区列表中的小区的待比较距离是否小于距离阈值,即使在小区列表没有搜集满的情况下将移动终端拿到其他地方开机,移动终端也不会将其他地方的小区添加到小区列表中,从而将移动终端限制在一定的范围内使用。In this embodiment, the mobile terminal calculates the to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list by acquiring the location information of the serving cell, and then determining Whether the to-be-compared distance is less than the distance threshold, and if the to-be-compared distance is less than the distance threshold, and the cell list is not full, the mobile terminal adds the serving cell to the cell list, and if the to-be-compared distance is not less than the distance threshold, the mobile The terminal does not add the serving cell to the cell list. In the above method, by determining whether the distance to be compared between the serving cell and the cell in the cell list is less than the distance threshold, even if the mobile terminal is taken to another place when the cell list is not full, the mobile terminal will not be in other places. The cells are added to the cell list to limit the mobile terminal to a certain range.
下面采用几个具体的实施例,对实施例一的技术方案进行详细说明。The technical solutions of the first embodiment are described in detail below by using several specific embodiments.
图2为本发明实施例二提供的基于小区位置信息的锁小区方法的流程图,本实施例中,移动终端根据服务小区的位置信息与小区列表中的各小区的位置信息,分别计算服务小区与小区列表中的各小区的距离,确定服务小区与小区列表中的各小区的距离中的最小距离,将该最小距离作为待比较距离。如图2所示,本实施例提供的方法可以包括以下步骤:2 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 2 of the present invention. In this embodiment, a mobile terminal separately calculates a serving cell according to location information of a serving cell and location information of each cell in a cell list. The distance from each cell in the cell list is determined, and the minimum distance among the distances between the serving cell and each cell in the cell list is determined, and the minimum distance is used as the distance to be compared. As shown in FIG. 2, the method provided in this embodiment may include the following steps:
步骤201、移动终端判断锁小区激活条件是否满足。Step 201: The mobile terminal determines whether the locked cell activation condition is met.
锁小区功能激活后,移动终端就会开始搜集小区,为了避免移动终端一开机就搜集小区引起误操作,设定一个小区激活条件,移动终端判断锁小区激活条件是否满足,若满足,则激活锁小区功能,开始搜集小区,即循环执行步骤202-209,若不满足,则移动终端等待一段时间后返回执行步骤201,继续判断锁小区激活条件是否满足。这主要是由于移动终端的购买地点与经常使用地点通常情况下不同,为了避免用户在购买地点试机时,将购买地点当作用户的经常使用地点,然后,将购买地点的小区添加到小区列表,如果移动终端在购买地点搜到多个小区,小区列表可能会搜集满,那么当用户从购买地点到达经常使用地点后,由于小区列表已经搜集满,经常使用地点的小区将无法加入到小区列表中,导致用户在经常使用地点无法使用移动终端。 After the function of the lock cell is activated, the mobile terminal starts to collect the cell. In order to prevent the mobile terminal from collecting the cell and causing the erroneous operation, the mobile terminal determines whether the lock cell activation condition is satisfied, and if so, activates the lock. The cell function starts collecting cells, that is, loops to perform steps 202-209. If not, the mobile terminal waits for a period of time and then returns to step 201 to continue to determine whether the lock cell activation condition is satisfied. This is mainly because the purchase location of the mobile terminal is different from the usual use location. In order to prevent the user from using the purchase location as the user's frequent use location when the user is testing the machine at the purchase location, the cell at the purchase location is added to the cell list. If the mobile terminal searches for multiple cells at the place of purchase, the cell list may be collected. When the user arrives at the frequently used location from the place of purchase, since the cell list has been collected, the cell of the frequently used location cannot be added to the cell list. The user is unable to use the mobile terminal at a frequently used location.
本实施例中,锁小区激活条件可以为移动终端拨打电话的次数超过一定次数,或者通话时长超过一定时间。因此,移动终端判断锁小区激活条件是否满足,具体为:移动终端判断通话时长是否大于预设的通话时长阈值,若大于,则确定锁小区激活条件满足;或者,移动终端判断通话次数是否大于预设的通话次数阈值,若大于,则确定锁小区激活条件满足。当然,锁小区激活条件还可以是其他条件,例如,用户通过特定号码拨打移动终端,移动终端接收到该特定电话号码的通话时,确定自己满足锁小区激活条件。In this embodiment, the lock cell activation condition may be that the number of times the mobile terminal makes a call exceeds a certain number of times, or the duration of the call exceeds a certain time. Therefore, the mobile terminal determines whether the lock cell activation condition is satisfied, specifically: the mobile terminal determines whether the call duration is greater than a preset call duration threshold, and if yes, determines that the lock cell activation condition is satisfied; or the mobile terminal determines whether the call duration is greater than a pre- If the threshold of the number of calls is set, if it is greater, it is determined that the lock cell activation condition is satisfied. Certainly, the lock cell activation condition may also be other conditions. For example, the user dials the mobile terminal by using a specific number, and when the mobile terminal receives the call of the specific phone number, it determines that the user meets the lock cell activation condition.
步骤202、移动终端开始搜集小区,在搜集到服务小区后,获取该服务小区的小区标识,并判断小区列表中是否存在该服务小区的小区标识。Step 202: The mobile terminal starts to collect the cell, and after collecting the serving cell, acquires the cell identifier of the serving cell, and determines whether the cell identifier of the serving cell exists in the cell list.
小区列表包括至少一个小区的小区标识和位置信息,若小区列表中存在该服务小区的小区标识,则执行步骤209,若小区列表中不存在该服务小区的小区标识,则执行步骤203。The cell list includes the cell identifier and the location information of the at least one cell. If the cell identifier of the serving cell exists in the cell list, step 209 is performed. If the cell identifier of the serving cell does not exist in the cell list, step 203 is performed.
步骤203、移动终端获取该服务小区的位置信息,根据该服务小区的位置信息与小区列表中的各小区的位置信息,分别计算该服务小区与小区列表中的各小区之间的距离。Step 203: The mobile terminal acquires location information of the serving cell, and calculates a distance between the serving cell and each cell in the cell list according to the location information of the serving cell and the location information of each cell in the cell list.
移动终端获取服务小区的位置信息具体方法可参照实施例一中步骤101的描述,这里不再赘述。For a specific method for the mobile terminal to obtain the location information of the serving cell, refer to the description of step 101 in the first embodiment, and details are not described herein again.
步骤204、移动终端从该服务小区与小区列表中的各小区的距离中确定最小距离,将该最小距离作为该服务小区与小区列表中的小区之间的待比较距离。Step 204: The mobile terminal determines a minimum distance from a distance between the serving cell and each cell in the cell list, where the minimum distance is used as a to-be-compared distance between the serving cell and a cell in the cell list.
步骤205、移动终端判断该待比较距离是否小于预设的距离阈值。Step 205: The mobile terminal determines whether the to-be-compared distance is less than a preset distance threshold.
若该待比较距离小于距离阈值,则执行步骤206,若该待比较距离不小于距离阈值,则执行步骤207。If the distance to be compared is less than the distance threshold, step 206 is performed. If the distance to be compared is not less than the distance threshold, step 207 is performed.
请参照图3,图3为一种小区结构示意图,小区1、小区2和小区3为小区列表中的小区,小区4为移动终端的服务小区,则移动终端分别计算小区4到小区1、小区2和小区3之间的距离,假设小区4到小区1的距离为20米,小区4到小区2和小区3的距离相等都为14米,小区4到各小区的距离,可以为小区4的中心点(即正六边形的中心点)到其他小区的中心点的直线距离。通过比较可知小区4到小区列表中的各小区的最小距离为14米,因此,该待比较距离为14米。 Please refer to FIG. 3. FIG. 3 is a schematic diagram of a cell structure. Cell 1, cell 2, and cell 3 are cells in a cell list, and cell 4 is a serving cell of a mobile terminal, and the mobile terminal calculates cell 4 to cell 1, cell respectively. 2, the distance between the cell 3 and the cell 3, the distance from the cell 4 to the cell 1 is 20 meters, the distance between the cell 4 and the cell 2 is equal to 14 meters, and the distance from the cell 4 to each cell may be the cell 4 The linear distance from the center point (the center point of the regular hexagon) to the center point of the other cells. By comparison, the minimum distance between the cells 4 and the cells in the cell list is 14 meters. Therefore, the distance to be compared is 14 meters.
本实施例中,将服务小区与小区列表中的各小区的距离中的最小距离作为待比较距离,当然,移动终端还可以从服务小区与小区列表中的各小区的距离中确定最大距离,将该最大距离作为待比较距离,或者,移动终端根据服务小区与小区列表中的各小区的距离,计算服务小区与小区列表中的各小区的平均距离,将该平均距离作为待比较距离。在计算该平均距离时,移动终端可以将服务小区与小区列表中的各小区的距离加起来得到总距离,然后,求该总距离与小区列表中的各小区的总数目的比值,将该比值作为待比较距离。In this embodiment, the minimum distance between the serving cell and each cell in the cell list is used as the distance to be compared. Of course, the mobile terminal may also determine the maximum distance from the distance between the serving cell and each cell in the cell list. The maximum distance is used as the distance to be compared, or the mobile terminal calculates the average distance between the serving cell and each cell in the cell list according to the distance between the serving cell and each cell in the cell list, and uses the average distance as the distance to be compared. When calculating the average distance, the mobile terminal may add the distance between the serving cell and each cell in the cell list to obtain a total distance, and then find a ratio of the total distance to the total number of cells in the cell list, and use the ratio as the ratio. To compare distances.
本实施例中,移动终端将服务小区与小区列表中的各小区的距离中的最小距离作为待比较距离,是因为这样移动终端更不容易出可用范围。仍以图3所示的小区为例,假设距离阈值为15米,若将最小距离为作为待比较距离,那么待比较距离小于距离阈值,小区4的位置和合法,说明移动终端没有出可用范围,可以将小区4加入到小区列表中。若将最大距离作为待比较距离,那么待比较距离大于距离阈值,小区4的位置非法,说明移动终端出可用范围了,移动终端禁止使用小区4。若将服务小区与小区列表中的各小区的距离中的最大距离作为待比较距离,移动终端更容易出可用范围,对于处在可用范围边缘的小区,若采用最大距离作为待比较距离,可能边缘小区就被禁止使用,若采用最小距离作为待比较距离,边缘小区就被允许使用。运营商可以根据实际需求,选择合适的距离作为待比较距离。In this embodiment, the mobile terminal uses the minimum distance among the distances between the serving cell and each cell in the cell list as the distance to be compared, because the mobile terminal is less likely to have an available range. Still taking the cell shown in FIG. 3 as an example, if the distance threshold is 15 meters, if the minimum distance is used as the distance to be compared, then the distance to be compared is less than the distance threshold, and the location of the cell 4 is legal, indicating that the mobile terminal has no available range. Cell 4 can be added to the cell list. If the maximum distance is used as the distance to be compared, then the distance to be compared is greater than the distance threshold, and the location of the cell 4 is illegal, indicating that the mobile terminal has a usable range, and the mobile terminal prohibits the use of the cell 4. If the maximum distance in the distance between the serving cell and each cell in the cell list is used as the distance to be compared, the mobile terminal is more likely to have a usable range. For the cell at the edge of the available range, if the maximum distance is used as the distance to be compared, the edge may be The cell is forbidden to use, and if the minimum distance is used as the distance to be compared, the edge cell is allowed to use. The operator can select the appropriate distance as the distance to be compared according to actual needs.
步骤206、移动终端判断小区列表是否已经搜集满。Step 206: The mobile terminal determines whether the cell list has been collected.
若小区列表中的各小区的总数目小于最大锁小区个数,则确定小区列表没有搜集满,移动终端执行步骤208,若小区列表中的各小区的总数目等于最大锁小区个数,则确定小区列表已经搜集满,移动终端执行步骤207。If the total number of cells in the cell list is less than the maximum number of locked cells, it is determined that the cell list is not full, and the mobile terminal performs step 208. If the total number of cells in the cell list is equal to the maximum number of locked cells, it is determined. The cell list has been collected, and the mobile terminal performs step 207.
步骤207、移动终端将该服务小区的状态标识更新为禁止使用。Step 207: The mobile terminal updates the status identifier of the serving cell to use prohibition.
步骤208、移动终端将该服务小区的小区标识和该服务小区的位置信息添加到小区列表中。Step 208: The mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list.
在步骤208执行完之后,执行步骤209。After the execution of step 208, step 209 is performed.
步骤209、移动终端将该服务小区的状态标识更新为允许使用。Step 209: The mobile terminal updates the status identifier of the serving cell to use.
本实施例中,移动终端通过多次执行步骤202-209,将搜集到的具有合法位置的小区添加到小区列表中。 In this embodiment, the mobile terminal adds the collected cells with legal locations to the cell list by performing steps 202-209 multiple times.
本实施例中,移动终端通过获取服务小区的位置信息,根据服务小区的位置信息与小区列表中的各小区的位置信息,分别计算服务小区与小区列表中的各小区的距离,从服务小区与小区列表中各小区的距离中确定最小距离,将该最小距离作为待比较距离,判断该待比较距离是否小于距离阈值,若小于则确定服务小区的位置合法,允许网络业务使用服务小区,并在小区列表未搜集满的情况下,将服务小区的添加到小区列表中。通过比较服务小区与小区列表中的各小区的距离,能够将移动终端的使用范围限定在一定范围内。In this embodiment, the mobile terminal calculates the distance between the serving cell and each cell in the cell list according to the location information of the serving cell and the location information of each cell in the cell list, by using the location information of the serving cell, and the serving cell and the serving cell. Determining a minimum distance among the distances of the cells in the cell list, determining the minimum distance as the distance to be compared, determining whether the to-be-compared distance is smaller than the distance threshold, and if not, determining that the location of the serving cell is legal, allowing the network service to use the serving cell, and When the cell list is not collected, the serving cell is added to the cell list. By comparing the distance between the serving cell and each cell in the cell list, the use range of the mobile terminal can be limited to a certain range.
图4为本发明实施例三提供的基于小区位置信息的锁小区方法的流程图,本实施例中,移动终端根据小区列表中的各小区的位置信息,确定小区列表中的各小区所形成的覆盖范围的中心点的位置信息,然后,根据服务小区的位置信息与该中心点的位置信息,计算服务小区与该中心点的距离,将服务小区与该中心点的距离作为待比较距离。如图3所示,本实施例提供的方法可以包括以下步骤:4 is a flowchart of a method for locking a cell based on cell location information according to Embodiment 3 of the present invention. In this embodiment, a mobile terminal determines, according to location information of each cell in a cell list, a cell formed by a cell in a cell list. The location information of the central point of the coverage area is then calculated according to the location information of the serving cell and the location information of the central point, and the distance between the serving cell and the central point is calculated, and the distance between the serving cell and the central point is used as the distance to be compared. As shown in FIG. 3, the method provided in this embodiment may include the following steps:
步骤301、移动终端判断锁小区激活条件是否满足。Step 301: The mobile terminal determines whether the locked cell activation condition is met.
若满足,则执行步骤302,若不满足,则移动终端等待一段时间后返回执行步骤301,继续判断锁小区激活条件是否满足。本步骤的具体实现方式可以参照实施例二中步骤301的相关描述,这里不再赘述。If yes, step 302 is performed. If not, the mobile terminal waits for a period of time and then returns to step 301 to continue to determine whether the locked cell activation condition is met. For the specific implementation of this step, reference may be made to the related description of step 301 in the second embodiment, and details are not described herein again.
步骤302、移动终端开始搜集小区,在搜集到服务小区后,获取该服务小区的小区标识,并判断小区列表中是否存在该服务小区的小区标识。Step 302: The mobile terminal starts to collect the cell, and after collecting the serving cell, acquires the cell identifier of the serving cell, and determines whether the cell identifier of the serving cell exists in the cell list.
小区列表中包括至少一个小区的小区标识和位置信息,若小区列表中存在该服务小区的小区标识,则执行步骤310,若小区列表中不存在该服务小区的小区标识,则执行步骤303。The cell list includes the cell identifier and the location information of the at least one cell. If the cell identifier of the serving cell exists in the cell list, step 310 is performed. If the cell identifier of the serving cell does not exist in the cell list, step 303 is performed.
步骤303、移动终端获取该服务小区的位置信息,根据小区列表中的各小区的位置信息,确定小区列表中的各小区所形成的覆盖范围的中心点的位置信息。Step 303: The mobile terminal acquires location information of the serving cell, and determines location information of a center point of the coverage formed by each cell in the cell list according to location information of each cell in the cell list.
步骤304、移动终端根据该服务小区的位置信息与该中心点的位置信息,计算该服务小区与该中心点的距离,将该服务小区与该中心点的距离作为该服务小区与小区列表中的小区之间的待比较距离。Step 304: The mobile terminal calculates a distance between the serving cell and the central point according to the location information of the serving cell and the location information of the central point, and uses the distance between the serving cell and the central point as the serving cell and the cell list. The distance to be compared between cells.
请参照图5,图5为另一种小区结构示意图,小区1、小区2和小区3为小区列表中的小区,小区5为服务小区,移动终端确定小区1、小区2和小 区3所覆盖的范围的中心点,假设图5中的黑色圆点就是小区1、小区2和小区3所覆盖的范围的中心点,那么移动终端计算该服务小区与该中心点的距离,将该服务小区到该中心点的位置作为待比较距离。根据多个小区的位置信息确定多个小区所覆盖的范围的中心点,为现有技术,这里不做过多描述。Please refer to FIG. 5. FIG. 5 is a schematic diagram of another cell structure. Cell 1, cell 2, and cell 3 are cells in a cell list, cell 5 is a serving cell, and mobile terminal determines cell 1, cell 2, and small. The center point of the range covered by the area 3, assuming that the black dot in FIG. 5 is the center point of the range covered by the cell 1, the cell 2, and the cell 3, then the mobile terminal calculates the distance between the serving cell and the center point, and The location of the serving cell to the center point is taken as the distance to be compared. Determining the center point of the range covered by the plurality of cells according to the location information of the plurality of cells is not described in the prior art.
步骤305、移动终端判断该待比较距离是否小于预设的距离阈值。Step 305: The mobile terminal determines whether the to-be-compared distance is less than a preset distance threshold.
若该待比较距离小于距离阈值,则执行步骤306,若该待比较距离不小于距离阈值,则执行步骤307。If the distance to be compared is less than the distance threshold, step 306 is performed. If the distance to be compared is not less than the distance threshold, step 307 is performed.
步骤306、移动终端判断小区列表是否已经搜集满。Step 306: The mobile terminal determines whether the cell list has been collected.
若小区列表中的各小区的总数目小于最大锁小区个数,则确定小区列表没有搜集满,移动终端执行步骤308,若小区列表中的各小区的总数目等于最大锁小区个数,则确定小区列表已经搜集满,移动终端执行步骤307。If the total number of cells in the cell list is less than the maximum number of locked cells, it is determined that the cell list is not full, and the mobile terminal performs step 308. If the total number of cells in the cell list is equal to the maximum number of locked cells, it is determined. The cell list has been collected, and the mobile terminal performs step 307.
步骤307、移动终端将该服务小区的状态标识更新为禁止使用。Step 307: The mobile terminal updates the status identifier of the serving cell to use prohibition.
步骤308、移动终端将该服务小区的小区标识和该服务小区的位置信息添加到小区列表中。Step 308: The mobile terminal adds the cell identity of the serving cell and the location information of the serving cell to the cell list.
在步骤308执行完之后,执行步骤309。After the execution of step 308, step 309 is performed.
步骤309、移动终端将该服务小区的状态标识更新为允许使用。Step 309: The mobile terminal updates the status identifier of the serving cell to be allowed to use.
本实施例中,移动终端通过多次执行步骤302-309,将搜集到的具有合法位置的小区添加到小区列表中。In this embodiment, the mobile terminal adds the collected cells with legal locations to the cell list by performing steps 302-309 multiple times.
本实施例中,移动终端通过获取服务小区的位置信息,根据小区列表中的各小区的位置信息,确定小区列表中的各小区所形成的覆盖范围的中心点的位置信息,根据服务小区的位置信息与该中心点的位置信息,计算服务小区与该中心点的距离,将服务小区与该中心点的距离作为待比较距离,判断该待比较距离是否小于距离阈值,若小于则确定服务小区的位置合法,允许网络业务使用服务小区,并在小区列表没有搜集满的情况下,将服务小区的添加到小区列表中。通过比较服务小区与小区列表中到的各小区所形成的覆盖范围的中心点的距离,能够将移动终端的使用范围限定在一定范围内。In this embodiment, the mobile terminal determines the location information of the center point of the coverage formed by each cell in the cell list according to the location information of each cell in the cell list by acquiring the location information of the serving cell, according to the location of the serving cell. The information and the location information of the central point are calculated, the distance between the serving cell and the central point is calculated, and the distance between the serving cell and the central point is used as a distance to be compared, and it is determined whether the to-be-compared distance is smaller than a distance threshold, and if not, the serving cell is determined. The location is legal, the network service is allowed to use the serving cell, and the serving cell is added to the cell list if the cell list is not collected. By comparing the distance between the serving cell and the center point of the coverage formed by each cell in the cell list, the use range of the mobile terminal can be limited to a certain range.
结合实施例二和实施例三的方法,在本发明的可行实现方式中,移动终端在获取到服务小区的位置信息之后,也可以通过如下方式确定服务小区的待比较距离:首先,移动终端根据服务小区的位置信息与小区列表中的各小 区的位置信息,分别计算服务小区与小区列表中的各小区的距离。然后,移动终端根据小区列表中的各小区的位置信息,确定小区列表中的各小区所形成的覆盖范围的中心点的位置信息,并根据服务小区的位置信息与该中心点的位置信息,计算服务小区与该中心点的距离。最后,移动终端从服务小区与小区列表中的各小区的距离中选取最小距离,比较该最小距离和服务小区与该中心点的距离,将该最小距离和该服务小区与该中心点的距离中的较小值作为待比较距离,移动终端也可以将该最小距离和服务小区与该中心点的距离中的较大值作为待比较距离。或者,移动终端从服务小区与小区列表中的各小区的距离中选取最大距离,比较最大距离和服务小区与中心点的距离,将该最大距离和服务小区与该中心点的距离中的较小值作为待比较距离,也可以将该最大距离和服务小区与该中心点的距离中的较大值作为待比较距离。或者,移动终端计算服务小区与小区列表中的各小区的平均距离,比较该平均距离和服务小区与该中心点的距离,将该平均距离和服务小区与该中心点的距离中的较小值作为待比较距离,也可以将该平均距离和服务小区与该中心点的距离中的较大值作为待比较距离。With the method of the second embodiment and the third embodiment, in the feasible implementation manner of the present invention, after acquiring the location information of the serving cell, the mobile terminal may determine the to-be-compared distance of the serving cell by: first, the mobile terminal according to Location information of the serving cell and each small in the cell list The location information of the area calculates the distance between the serving cell and each cell in the cell list. Then, the mobile terminal determines the location information of the central point of the coverage formed by each cell in the cell list according to the location information of each cell in the cell list, and calculates the location information of the serving cell according to the location information of the serving cell. The distance between the serving cell and the center point. Finally, the mobile terminal selects a minimum distance from the distance between the serving cell and each cell in the cell list, and compares the minimum distance with the distance between the serving cell and the center point, and the minimum distance and the distance between the serving cell and the center point are The smaller value is used as the distance to be compared, and the mobile terminal may also use the larger value of the minimum distance and the distance between the serving cell and the center point as the distance to be compared. Or the mobile terminal selects a maximum distance from the distance between the serving cell and each cell in the cell list, and compares the maximum distance and the distance between the serving cell and the center point, and the distance between the maximum distance and the distance between the serving cell and the center point is smaller. As the distance to be compared, the larger value of the maximum distance and the distance between the serving cell and the center point may be used as the distance to be compared. Alternatively, the mobile terminal calculates an average distance between the serving cell and each cell in the cell list, and compares the average distance with the distance between the serving cell and the center point, and the smaller of the average distance and the distance between the serving cell and the center point. As the distance to be compared, the larger of the average distance and the distance between the serving cell and the center point may be used as the distance to be compared.
另外,当用户搬家或其他情况导致移动终端的常驻物理位置发生变化时,需要将移动终端原来的小区列表清除,重新开始搜集新物理位置处的小区,这时基站服务器可以通过短信或者其他方式通知移动终端清除原来的小区列表。In addition, when the user moves or other circumstances cause the mobile terminal's resident physical location to change, the original cell list of the mobile terminal needs to be cleared, and the cell at the new physical location is restarted, and the base station server can use SMS or other means. The mobile terminal is notified to clear the original cell list.
图6为本发明实施例四提供的移动终端的结构示意图,如图6所示,本实施例提供的移动终端包括:获取模块11、计算模块12和添加模块13。FIG. 6 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention. As shown in FIG. 6, the mobile terminal provided in this embodiment includes: an obtaining module 11, a calculating module 12, and an adding module 13.
获取模块11,用于获取所述移动终端的服务小区的小区标识;The obtaining module 11 is configured to acquire a cell identifier of a serving cell of the mobile terminal;
所述获取模块11还用于,当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;The acquiring module 11 is further configured to: when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, acquire location information of the serving cell, where the cell list includes at least one cell Cell identification and location information;
计算模块12,用于根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;The calculating module 12 is configured to calculate a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list.
添加模块13,用于若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到 所述小区列表中,并且允许网络业务使用所述服务小区。若所述待比较距离不小于所述距离阈值,则禁止所述网络业务使用所述服务小区。或者,若所述待比较距离小于所述距离阈值,但所述小区列表已满,则允许所述网络业务使用所述服务小区。The adding module 13 is configured to: if the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, add the cell identifier of the serving cell and location information of the serving cell to In the cell list, and allowing network services to use the serving cell. If the distance to be compared is not less than the distance threshold, the network service is prohibited from using the serving cell. Or, if the to-be-compared distance is less than the distance threshold, but the cell list is full, the network service is allowed to use the serving cell.
其中,所述获取模块11具体用于:将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息,并接收所述基站服务器返回的所述服务小区的位置信息。或者,通过全球定位系统GPS获取所述服务小区的位置信息。The acquiring module 11 is specifically configured to: send the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identifier of the serving cell, and receives the location information. The location information of the serving cell returned by the base station server. Alternatively, the location information of the serving cell is acquired by Global Positioning System (GPS).
可选地,所述待比较距离包括:Optionally, the distance to be compared includes:
所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
本实施例提供的移动终端,可用于执行实施例一的技术方案,其具体实现方式和技术效果类似,这里不再赘述。The mobile terminal provided in this embodiment may be used to perform the technical solution of the first embodiment, and the specific implementation manners and technical effects are similar, and details are not described herein again.
本实施例的移动终端,可以用于执行实施例一提供的技术方案,其实现原理和技术效果类似,此处不再赘述。The mobile terminal in this embodiment may be used to implement the technical solution provided in the first embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
本发明实施例五提供一种移动终端,所述移动终端的结构可参照图6所示的移动终端的结构示意图,本实施例和实施例四的区别在于:本实施例中,所述计算模块12具体用于:根据所述服务小区的位置信息与所述小区列表中的各小区的位置信息,分别计算所述服务小区与所述小区列表中的各小区之间的距离;根据所述服务小区与所述小区列表中的各小区的距离确定所述待比较距离。The fifth embodiment of the present invention provides a mobile terminal. The structure of the mobile terminal can be referred to the structure of the mobile terminal shown in FIG. 6. The difference between this embodiment and the fourth embodiment is that, in this embodiment, the computing module is The specific use is: calculating a distance between the serving cell and each cell in the cell list according to location information of the serving cell and location information of each cell in the cell list; The distance between the cell and each cell in the cell list determines the distance to be compared.
所述计算模块12具体可通过以下三种方式确定所述待比较距离:The calculation module 12 can specifically determine the distance to be compared in the following three ways:
(1)从所述服务小区与所述小区列表中的各小区的距离中确定最小距离,将所述最小距离作为所述待比较距离。(1) determining a minimum distance from a distance between the serving cell and each cell in the cell list, and using the minimum distance as the to-be-compared distance.
(2)从所述服务小区与所述小区列表中的各小区的距离中确定最大距离,将所述最大距离作为所述待比较距离。(2) determining a maximum distance from a distance between the serving cell and each cell in the cell list, and using the maximum distance as the to-be-compared distance.
(3)根据所述服务小区与所述小区列表中的各小区的距离,计算所述服 务小区与所述小区列表中的各小区的平均距离,将所述平均距离作为所述待比较距离。(3) calculating the service according to the distance between the serving cell and each cell in the cell list. The average distance between the cell and the cells in the cell list is used as the distance to be compared.
可选地,所述移动终端还可以包括锁小区激活模块,用于判断锁小区激活条件是否满足;若满足,则激活锁小区功能,开始搜集小区。所述锁小区激活模块具体用于:判断所述移动终端的通话时长是否大于预设的通话时长阈值,若大于,则确定所述锁小区激活条件满足;或者,判断所述移动终端的通话次数是否大于预设的通话次数阈值,若大于,则确定所述锁小区激活条件满足。Optionally, the mobile terminal may further include a lock cell activation module, configured to determine whether the lock cell activation condition is met; if yes, activate the lock cell function to start collecting the cell. The lock cell activation module is specifically configured to: determine whether the call duration of the mobile terminal is greater than a preset call duration threshold, and if yes, determine that the lock cell activation condition is satisfied; or determine the mobile terminal call count Whether it is greater than a preset call number threshold, if it is greater, it is determined that the lock cell activation condition is satisfied.
本实施例的移动终端,可以用于执行实施例二提供的技术方案,其实现原理和技术效果类似,此处不再赘述。The mobile terminal in this embodiment may be used to implement the technical solution provided in the second embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
本发明实施例五提供一种移动终端,所述移动终端的结构可参照图6所示的移动终端的结构示意图,本实施例和实施例四的区别在于:所述计算模块12具体用于:根据所述小区列表中的小区的位置信息与所述小区列表中的各小区的位置信息,分别计算所述与所述小区列表中的各小区的距离。然后,根据所述小区列表中的各小区的位置信息,确定所述小区列表中的小区列表中的各小区所形成的覆盖范围的中心点的位置信息。其次,然后,根据所述服务小区的位置信息与所述中心点的位置信息,计算所述服务小区与所述中心点的距离,将所述服务小区与所述中心点的距离作为所述待比较距离。A fifth embodiment of the present invention provides a mobile terminal. The structure of the mobile terminal can be referred to the structure of the mobile terminal shown in FIG. 6. The difference between this embodiment and the fourth embodiment is that the computing module 12 is specifically configured to: Calculating the distance from each cell in the cell list according to location information of a cell in the cell list and location information of each cell in the cell list. Then, based on the location information of each cell in the cell list, location information of a center point of the coverage formed by each cell in the cell list in the cell list is determined. Then, the distance between the serving cell and the central point is calculated according to the location information of the serving cell and the location information of the central point, and the distance between the serving cell and the central point is used as the waiting Compare distances.
本实施例的移动终端,可以用于执行实施例三提供的技术方案,其实现原理和技术效果类似,此处不再赘述。The mobile terminal in this embodiment may be used to implement the technical solution provided in the third embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
图7为本发明实施例七提供的移动终端的结构示意图,如图7所示,本实施例提供的移动终端200包括:处理器21、存储器22、通信接口23和系统总线24,所述存储器22和所述通信接口23通过所述系统总线24与所述处理器21连接并完成相互间的通信。所述存储器22,用于存储计算机执行指令221;所述通信接口23,用于和其他设备进行通信;所述处理器21,用于运行所述计算机执行指令221,以执行如下操作:FIG. 7 is a schematic structural diagram of a mobile terminal according to Embodiment 7 of the present invention. As shown in FIG. 7, the mobile terminal 200 provided in this embodiment includes: a processor 21, a memory 22, a communication interface 23, and a system bus 24, where the memory 22 and the communication interface 23 are connected to the processor 21 via the system bus 24 and complete communication with each other. The memory 22 is configured to store a computer execution instruction 221; the communication interface 23 is configured to communicate with other devices; and the processor 21 is configured to execute the computer execution instruction 221 to perform the following operations:
获取所述移动终端的服务小区的小区标识;Obtaining a cell identifier of a serving cell of the mobile terminal;
当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区 的小区标识和位置信息;Obtaining location information of the serving cell when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, where the cell list includes at least one cell Cell identification and location information;
根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;Calculating a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,允许网络业务使用所述服务小区。If the to-be-compared distance is less than the preset distance threshold, and the cell list is not full, the cell identifier of the serving cell and the location information of the serving cell are added to the cell list, and the network service is allowed to be used. The serving cell.
所述处理器21获取所述服务小区的位置信息,具体为:将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息,然后,接收所述基站服务器返回的所述服务小区的位置信息。或者,通过全球定位系统GPS获取所述服务小区的位置信息。The acquiring, by the processor 21, the location information of the serving cell, specifically: sending the cell identifier of the serving cell to the base station server, so that the base station server returns the serving cell according to the cell identifier of the serving cell. Location information, and then receiving location information of the serving cell returned by the base station server. Alternatively, the location information of the serving cell is acquired by Global Positioning System (GPS).
可选地,所述待比较距离包括:Optionally, the distance to be compared includes:
所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
处理器21根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离,具体为:The processor 21 calculates a to-be-compared distance between the serving cell and the cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list, specifically:
(1)根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,分别计算所述服务小区与所述小区列表中的各小区的距离;从所述服务小区与所述小区列表中的各小区的距离中确定最小距离,将所述最小距离作为所述待比较距离。或者,从所述服务小区与所述小区列表中的各小区的距离中确定最大距离,将所述最大距离作为所述待比较距离。或者,根据所述服务小区与所述小区列表中的各小区的距离,计算所述服务小区与所述小区列表中的各小区的平均距离,将所述平均距离作为所述待比较距离。(1) calculating a distance between the serving cell and each cell in the cell list according to location information of the serving cell and location information of a cell in the cell list, respectively, from the serving cell and the cell A minimum distance is determined among the distances of the cells in the list, and the minimum distance is taken as the distance to be compared. Or determining a maximum distance from a distance between the serving cell and each cell in the cell list, and using the maximum distance as the to-be-compared distance. Or calculating an average distance between the serving cell and each cell in the cell list according to a distance between the serving cell and each cell in the cell list, and using the average distance as the to-be-compared distance.
(2)根据所述小区列表中的小区的位置信息,确定所述小区列表中的各小区所形成的覆盖范围的中心点的位置信息;根据所述服务小区的位置信息与所述中心点的位置信息,计算所述服务小区与所述中心点的距离,将所述 服务小区与所述中心点的距离作为所述待比较距离。(2) determining, according to the location information of the cell in the cell list, location information of a center point of the coverage formed by each cell in the cell list; according to the location information of the serving cell and the central point Position information, calculating a distance between the serving cell and the center point, The distance between the serving cell and the center point is taken as the distance to be compared.
(3)根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,分别计算所述服务小区与所述小区列表中的各小区的距离;然后,根据所述小区列表中的小区的位置信息,确定所述小区列表中的各小区所形成的覆盖范围的中心点的位置信息;其次,根据所述服务小区的位置信息与所述中心点的位置信息,计算所述服务小区与所述中心点的距离;最后,从所述服务小区与所述小区列表中的各小区的距离中选取最小距离,比较所述最小距离和所述服务小区与所述中心点的距离,将所述最小距离和所述服务小区与所述中心点的距离中的较小值作为所述待比较距离。(3) calculating a distance between the serving cell and each cell in the cell list according to location information of the serving cell and location information of a cell in the cell list, and then, according to the cell list, Position information of the cell, determining location information of a center point of the coverage formed by each cell in the cell list; secondly, calculating the serving cell according to the location information of the serving cell and the location information of the central point a distance from the center point; finally, selecting a minimum distance from the distance between the serving cell and each cell in the cell list, comparing the minimum distance and the distance between the serving cell and the center point, The minimum distance and the smaller of the distance between the serving cell and the center point are used as the distance to be compared.
本实施例中,若所述待比较距离不小于所述距离阈值,则禁止所述网络业务使用所述服务小区。或者,若所述待比较距离小于所述距离阈值,但所述小区列表已满,则允许所述网络业务使用所述服务小区。In this embodiment, if the to-be-compared distance is not less than the distance threshold, the network service is prohibited from using the serving cell. Or, if the to-be-compared distance is less than the distance threshold, but the cell list is full, the network service is allowed to use the serving cell.
可选地,处理器21还用于:判断锁小区激活条件是否满足;若满足,则激活锁小区功能,开始搜集小区。处理器21判断锁小区激活条件是否满足,具体为:判断通话时长是否大于预设的通话时长阈值,若大于,则确定所述锁小区激活条件满足;或者,所述移动终端判断通话次数是否大于预设的通话次数阈值,若大于,则确定所述锁小区激活条件满足。Optionally, the processor 21 is further configured to: determine whether the lock cell activation condition is met; if yes, activate the lock cell function to start collecting the cell. The processor 21 determines whether the lock cell activation condition is satisfied, specifically: determining whether the call duration is greater than a preset call duration threshold, and if yes, determining that the lock cell activation condition is satisfied; or determining, by the mobile terminal, whether the call duration is greater than The preset call number threshold, if greater, determines that the lock cell activation condition is satisfied.
可选地,处理器21还用于:当所述移动终端搜集到所述服务小区时,判断所述小区列表中是否存在所述服务小区的小区标识。Optionally, the processor 21 is further configured to: when the mobile terminal collects the serving cell, determine whether a cell identifier of the serving cell exists in the cell list.
本实施例的移动终端,可用于执行实施例一至实施例三提供的技术方案,其实现原理和技术效果类型,这里不再赘述。The mobile terminal of this embodiment can be used to implement the technical solutions provided in the first embodiment to the third embodiment, and the implementation principles and technical effect types are not described herein.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (18)

  1. 一种基于小区位置信息的锁小区方法,其特征在于,包括:A method for locking cells based on cell location information, comprising:
    移动终端获取服务小区的小区标识;The mobile terminal acquires a cell identifier of the serving cell;
    当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,所述移动终端获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;When the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, the mobile terminal acquires location information of the serving cell, where the cell list includes a cell identifier and location of at least one cell information;
    所述移动终端根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;The mobile terminal calculates a to-be-compared distance between the serving cell and a cell in the cell list according to the location information of the serving cell and the location information of the cell in the cell list;
    若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则所述移动终端将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, the mobile terminal adds the cell identifier of the serving cell and the location information of the serving cell to the cell list. And allowing network services to use the serving cell.
  2. 根据权利要求1所述的方法,其特征在于,所述待比较距离包括:The method of claim 1 wherein the distance to be compared comprises:
    所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
    所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    若所述待比较距离不小于所述距离阈值,则所述移动终端禁止所述网络业务使用所述服务小区。And if the to-be-compared distance is not less than the distance threshold, the mobile terminal prohibits the network service from using the serving cell.
  4. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    若所述待比较距离小于所述距离阈值,且所述小区列表已满,则所述移动终端允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, the mobile terminal allows the network service to use the serving cell.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述移动终端获取所述服务小区的位置信息,包括:The method according to any one of claims 1-4, wherein the acquiring, by the mobile terminal, the location information of the serving cell comprises:
    所述移动终端将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息;Sending, by the mobile terminal, the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
    所述移动终端接收所述基站服务器返回的所述服务小区的位置信息。The mobile terminal receives location information of the serving cell returned by the base station server.
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,所述移动终端获取所述服务小区的位置信息,包括: The method according to any one of claims 1-4, wherein the acquiring, by the mobile terminal, the location information of the serving cell comprises:
    所述移动终端通过全球定位系统GPS获取所述服务小区的位置信息。The mobile terminal acquires location information of the serving cell by using a global positioning system (GPS).
  7. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    获取模块,用于获取所述移动终端的服务小区的小区标识;An acquiring module, configured to acquire a cell identifier of a serving cell of the mobile terminal;
    所述获取模块还用于,当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;The acquiring module is further configured to: when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, acquire location information of the serving cell, where the cell list includes at least one cell Cell identification and location information;
    计算模块,用于根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;a calculation module, configured to calculate a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
    添加模块,用于若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。Adding a module, if the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list And allow network services to use the serving cell.
  8. 根据权利要求7所述的移动终端,其特征在于,所述待比较距离包括:The mobile terminal according to claim 7, wherein the distance to be compared comprises:
    所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
    所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  9. 根据权利要求7或8所述的移动终端,其特征在于,所述添加模块还用于:The mobile terminal according to claim 7 or 8, wherein the adding module is further configured to:
    若所述待比较距离不小于所述距离阈值,则禁止所述网络业务使用所述服务小区。If the distance to be compared is not less than the distance threshold, the network service is prohibited from using the serving cell.
  10. 根据权利要求7或8所述的移动终端,其特征在于,所述添加模块还用于:The mobile terminal according to claim 7 or 8, wherein the adding module is further configured to:
    若所述待比较距离小于所述距离阈值,且所述小区列表已满,则允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, allowing the network service to use the serving cell.
  11. 根据权利要求7-10中任一项所述的移动终端,其特征在于,所述获取模块具体用于:The mobile terminal according to any one of claims 7 to 10, wherein the obtaining module is specifically configured to:
    将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息;Sending the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
    接收所述基站服务器返回的所述服务小区的位置信息。 Receiving location information of the serving cell returned by the base station server.
  12. 根据权利要求7-10中任一项所述的移动终端,其特征在于,所述获取模块具体用于:The mobile terminal according to any one of claims 7 to 10, wherein the obtaining module is specifically configured to:
    通过全球定位系统GPS获取所述服务小区的位置信息。The location information of the serving cell is obtained by GPS.
  13. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    处理器、存储器、通信接口和系统总线,所述存储器和所述通信接口通过所述系统总线与所述处理器连接并完成相互间的通信;a processor, a memory, a communication interface, and a system bus, wherein the memory and the communication interface are connected to the processor through the system bus and complete communication with each other;
    所述存储器,用于存储计算机执行指令;The memory is configured to store a computer execution instruction;
    所述通信接口,用于和其他设备进行通信;The communication interface is configured to communicate with other devices;
    所述处理器,用于运行所述计算机执行指令,使所述移动终端执行如下所述的方法:The processor is configured to execute the computer to execute an instruction, so that the mobile terminal performs the method as follows:
    获取所述移动终端的服务小区的小区标识;Obtaining a cell identifier of a serving cell of the mobile terminal;
    当所述移动终端中保存的小区列表中不存在所述服务小区的小区标识时,获取所述服务小区的位置信息,其中,所述小区列表包括至少一个小区的小区标识和位置信息;Obtaining location information of the serving cell when the cell identifier of the serving cell does not exist in the cell list saved in the mobile terminal, where the cell list includes cell identifier and location information of at least one cell;
    根据所述服务小区的位置信息与所述小区列表中的小区的位置信息,计算所述服务小区与所述小区列表中的小区之间的待比较距离;Calculating a to-be-compared distance between the serving cell and a cell in the cell list according to location information of the serving cell and location information of a cell in the cell list;
    若所述待比较距离小于预设的距离阈值,且所述小区列表未满,则将所述服务小区的小区标识和所述服务小区的位置信息添加到所述小区列表中,并且允许网络业务使用所述服务小区。If the to-be-compared distance is less than a preset distance threshold, and the cell list is not full, adding a cell identifier of the serving cell and location information of the serving cell to the cell list, and allowing network services The serving cell is used.
  14. 根据权利要求13所述的移动终端,其特征在于,所述待比较距离包括:The mobile terminal according to claim 13, wherein the distance to be compared comprises:
    所述服务小区与所述小区列表中的小区的距离中的最小距离;或者,a minimum distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区的距离中的最大距离;或者,The maximum distance between the serving cell and the cell in the cell list; or
    所述服务小区与所述小区列表中的小区的平均距离;或者,An average distance between the serving cell and a cell in the cell list; or
    所述服务小区与所述小区列表中的小区所形成的覆盖范围的中心点的距离。The distance between the serving cell and the center point of the coverage formed by the cell in the cell list.
  15. 根据权利要求13或14所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal according to claim 13 or 14, wherein the processor is further configured to:
    若所述待比较距离不小于所述距离阈值,则所述移动终端禁止所述网络业务使用所述服务小区。 And if the to-be-compared distance is not less than the distance threshold, the mobile terminal prohibits the network service from using the serving cell.
  16. 根据权利要求13或14所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal according to claim 13 or 14, wherein the processor is further configured to:
    若所述待比较距离小于所述距离阈值,且所述小区列表已满,则所述移动终端允许所述网络业务使用所述服务小区。And if the to-be-compared distance is less than the distance threshold, and the cell list is full, the mobile terminal allows the network service to use the serving cell.
  17. 根据权利要求13-16中任一项所述的移动终端,其特征在于,所述处理器具体用于:The mobile terminal according to any one of claims 13 to 16, wherein the processor is specifically configured to:
    将所述服务小区的小区标识发送给基站服务器,以使所述基站服务器根据所述服务小区的小区标识返回所述服务小区的位置信息;Sending the cell identifier of the serving cell to the base station server, so that the base station server returns location information of the serving cell according to the cell identity of the serving cell;
    接收所述基站服务器返回的所述服务小区的位置信息。Receiving location information of the serving cell returned by the base station server.
  18. 根据权利要求13-16中任一项所述的移动终端,其特征在于,所述处理器具体用于:The mobile terminal according to any one of claims 13 to 16, wherein the processor is specifically configured to:
    通过全球定位系统GPS获取所述服务小区的位置信息。 The location information of the serving cell is obtained by GPS.
PCT/CN2014/088735 2014-10-16 2014-10-16 Cell locking method based on cell location information and mobile terminal WO2016058159A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/088735 WO2016058159A1 (en) 2014-10-16 2014-10-16 Cell locking method based on cell location information and mobile terminal
CN201480082646.7A CN107079378A (en) 2014-10-16 2014-10-16 Cell locking method and mobile terminal based on location information of cell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/088735 WO2016058159A1 (en) 2014-10-16 2014-10-16 Cell locking method based on cell location information and mobile terminal

Publications (1)

Publication Number Publication Date
WO2016058159A1 true WO2016058159A1 (en) 2016-04-21

Family

ID=55745971

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088735 WO2016058159A1 (en) 2014-10-16 2014-10-16 Cell locking method based on cell location information and mobile terminal

Country Status (2)

Country Link
CN (1) CN107079378A (en)
WO (1) WO2016058159A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738719B (en) * 2019-10-28 2022-06-17 中国移动通信集团湖南有限公司 Method for determining geographic area covered by communication cell and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075911A (en) * 2011-01-17 2011-05-25 中兴通讯股份有限公司 Method and device for locking cell
CN102480717A (en) * 2010-11-30 2012-05-30 中国移动通信集团浙江有限公司 Method, device and system for locking cell
CN104023372A (en) * 2013-03-01 2014-09-03 中兴通讯股份有限公司 Method and device for locking cell by fixed wireless terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237706B (en) * 2008-02-27 2010-12-15 华为终端有限公司 Terminal network lock method and device
CN101668285B (en) * 2009-10-23 2013-01-16 中兴通讯股份有限公司 Subdistrict locking method for mobile terminal and mobile terminal capable of locking subdistrict

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480717A (en) * 2010-11-30 2012-05-30 中国移动通信集团浙江有限公司 Method, device and system for locking cell
CN102075911A (en) * 2011-01-17 2011-05-25 中兴通讯股份有限公司 Method and device for locking cell
CN104023372A (en) * 2013-03-01 2014-09-03 中兴通讯股份有限公司 Method and device for locking cell by fixed wireless terminal

Also Published As

Publication number Publication date
CN107079378A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
CN111866733B (en) Method and device for determining position of terminal device
US9826498B2 (en) Method and apparatus for maintaining access point information
BR102014016779A2 (en) method of selecting a sim for a location service and multiple sim device using the same
JP6560352B2 (en) Information push method and device
JP6474011B2 (en) Method and mobile device for performing geofencing
WO2014108755A1 (en) Verifying stored location data for wlan access points
US20150373562A1 (en) Updating stored information about wireless access points
EP2911450B1 (en) Cell reselection method and apparatus
US9641983B2 (en) Location management for access points
WO2016058159A1 (en) Cell locking method based on cell location information and mobile terminal
US10848916B2 (en) Service provision device, service provision method, and program storage medium
CN109962826B (en) Network connection method and device
KR101585140B1 (en) Localized secure user plane location (supl) emergency session
GB2513359A (en) Communication Method And Device
AU2020241738B2 (en) Dynamically allowing a guest device to a join a private CBRS network
US20220264310A1 (en) Core network node, access mobility management apparatus, and communication method
WO2013182092A2 (en) Method for fixed wireless terminal locking cell and fixed wireless terminal
KR102055001B1 (en) Method And Apparatus for Positioning by Using Grouping
CN104750382A (en) Automatic mobile device unlocking/locking system and method
CN113949992B (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
WO2014166382A1 (en) Management method for mobile terminal communication and mobile terminal
WO2018090379A1 (en) Method, device and system for user terminal to give alarm
US9736632B2 (en) User apparatus and area information notification method
WO2015161501A1 (en) Method, device and apparatus for acquiring emergency call number
CN107615837B (en) Positioning method, device and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14903960

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14903960

Country of ref document: EP

Kind code of ref document: A1