CN111050378B - Network searching method and device and electronic equipment - Google Patents

Network searching method and device and electronic equipment Download PDF

Info

Publication number
CN111050378B
CN111050378B CN201911275566.4A CN201911275566A CN111050378B CN 111050378 B CN111050378 B CN 111050378B CN 201911275566 A CN201911275566 A CN 201911275566A CN 111050378 B CN111050378 B CN 111050378B
Authority
CN
China
Prior art keywords
network
electronic equipment
type
electronic device
relative distance
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911275566.4A
Other languages
Chinese (zh)
Other versions
CN111050378A (en
Inventor
帅朝春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911275566.4A priority Critical patent/CN111050378B/en
Publication of CN111050378A publication Critical patent/CN111050378A/en
Application granted granted Critical
Publication of CN111050378B publication Critical patent/CN111050378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a network searching method, a network searching device and electronic equipment, and relates to the technical field of communication. Wherein, the method comprises the following steps: recording a network type to which a network currently connected by the electronic equipment belongs as a priority search type, and taking the position of the electronic equipment when the priority search type is recorded as a target position; when the electronic equipment is disconnected, determining the relative distance between the current position of the electronic equipment and the target position; and judging whether the relative distance reaches a set value, and if not, searching the network with the prior search type. Therefore, when the network is disconnected, the electronic equipment can preferentially search the network covered by the current position, the network searching times are reduced, the network searching speed is improved, and the power consumption waste of the electronic equipment is reduced.

Description

Network searching method and device and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network searching method and apparatus, and an electronic device.
Background
With the rapid development of the fifth generation mobile communication technology (5G), more and more electronic devices have a function of accessing to a 5G network. At present, in the initial stage of 5G construction, the coverage of a 5G base station is low, and electronic equipment cannot search for a 5G network in most environments. However, when the electronic device with the 5G network access function searches for a network, the electronic device usually searches for the 5G network first, which results in long network searching time and slow network searching speed, and causes waste of power consumption of the electronic device.
Disclosure of Invention
In view of the foregoing problems, the present application provides a method and an apparatus for network search, and an electronic device, so as to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a network search method, including: recording a network type to which a network currently connected by the electronic equipment belongs as a priority search type, and taking the position of the electronic equipment when the priority search type is recorded as a target position; when the electronic equipment is disconnected, determining the relative distance between the current position of the electronic equipment and the target position; judging whether the relative distance reaches a set value or not; and if the relative distance does not reach a set value, searching the network with the priority search type.
In a second aspect, an embodiment of the present application provides a network search apparatus, including: the recording module is used for recording the network type to which the network currently connected with the electronic equipment belongs as a priority search type and taking the position of the electronic equipment when the priority search type is recorded as a target position; the determining module is used for determining the relative distance between the current position of the electronic equipment and the target position when the electronic equipment is disconnected; the judging module is used for judging whether the distance reaches a set value or not; and the searching module is used for searching the network with the priority searching type when the distance does not reach a set value.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
Compared with the prior art, the scheme provided by the application records the network type to which the network currently connected by the electronic equipment belongs as the priority search type, and takes the position where the electronic equipment is located when the priority search type is recorded as the target position, so that when the electronic equipment is disconnected, the distance between the position when the electronic equipment is disconnected and the target position is judged, if the relative distance does not reach a set value, the position when the electronic equipment is disconnected and the target position are not far away, and the network of the network type connected by the electronic equipment at the target position, namely the recorded network of the priority search type, can be preferentially searched. Through the design, the situation that the network type network which is not covered at the broken network position is preferentially searched when the network is broken can be reduced, so that the network searching times of the electronic equipment are reduced, the network searching efficiency is improved, and unnecessary power consumption waste is reduced.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application environment suitable for the embodiment of the present application.
Fig. 2 shows a flow chart of a network searching method according to an embodiment of the present application.
Fig. 3 shows a flow diagram of a network search method according to another embodiment of the present application.
Fig. 4 shows a flow chart of a network search method according to yet another embodiment of the present application.
Fig. 5 illustrates another flowchart of the network searching method illustrated in fig. 4.
Fig. 6 illustrates another flowchart of the network searching method illustrated in fig. 4.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present application for executing a network search method according to an embodiment of the present application.
Fig. 8 shows a block diagram of a network search apparatus according to an embodiment of the present application.
Fig. 9 is a storage unit for storing or carrying program codes for implementing a network search method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
When the electronic equipment is in the network disconnection state, network search is carried out to find out and access the mobile communication network with the best signal. With the development of mobile communication technology, currently, common mobile communication networks include a 2-Generation wireless telephone technology (2G) network, a 3rd-Generation 3G network, a fourth-Generation mobile communication technology (4G) network, a 5G network, and the like. In some embodiments, the electronic device supporting 5G network connection generally performs network searches in the order of 5G, 4G, 3G, and 2G, wherein when a network search for a network type ranked earlier fails, a network of a network type ranked later is searched.
However, at present, in the initial stage of 5G construction, the coverage of the 5G base station is very small, only a very small number of areas can search for the 5G network, and the 5G network search performed in these areas by the electronic device supporting 5G network connection is usually ineffective, and the preferential search for the 5G network in these areas may result in an unnecessary increase of the network searching times.
The inventor provides a network searching method, a network searching device and electronic equipment through long-term research, and can reduce unnecessary network searching times of the electronic equipment, thereby improving the network searching speed and reducing the power consumption waste of the electronic equipment. This is explained in detail below.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the present application. The electronic device 100 may access a mobile communication network through the network-side device 200, thereby implementing communication with other devices.
The electronic device 100 may be any device that supports various generations of wireless communication services (such as the above-mentioned 2G, 3G, 4G, and 5G), and may be, for example, a smart terminal (e.g., a mobile phone, an in-vehicle device, etc.), a tablet Computer, a Personal Computer (PC), etc. The network side device 200 may be any device that can provide the electronic device 100 with access to a mobile communication network, for example, may be a base station, and may also be a Remote Radio Unit (RRU) for forming a distributed base station, which is not limited in this embodiment of the present application.
The mobile communication network is typically a cellular network, and each network-side device 200 in the cellular network has a corresponding radio signal coverage area, which is commonly referred to as a Cell or a Cell (Cell). Within the cell, the electronic device 100 may communicate with the network-side device 200 through a wireless signal. As the location of the electronic device 100 changes, the electronic device 100 may access different network-side devices 200, and the cell in which the electronic device is located also changes.
Referring to fig. 2, fig. 2 is a flowchart illustrating a network searching method according to an embodiment of the present application, where the method can be applied to the electronic device 100 shown in fig. 1. The steps involved in the method are explained below.
Step S110, recording a network type to which a network currently connected by the electronic device belongs as a priority search type, and taking the position of the electronic device when the priority search type is recorded as a target position.
In this embodiment, the electronic device 100 may determine the network type to which the network currently connected to the device belongs one or more times. In the scenario of multiple determinations, the time interval between each two determination operations may be the same, for example, the network type of the network to which the electronic device 100 is currently connected is determined according to a fixed time interval. The time interval may also be different, such as randomly determining the time for performing the next determination operation after determining the network type of the network to which the electronic device 100 is currently connected; for another example, an initial time interval may be set, the time interval may be adjusted according to the motion state (e.g., moving speed) of the electronic device 100, and the subsequent determination operation may be performed according to the adjusted time interval, in detail, the moving speed and the time interval may be in an inverse proportional relationship.
In the implementation process, in the case that the electronic device 100 performs one determination operation, the determined network type may be directly recorded as the priority search type of the electronic device 100, where a position where the electronic device 100 records the priority search type is a target position.
In the case that the electronic device 100 performs multiple determination operations, in one embodiment, the network type determined each time may be recorded as a priority search type of the electronic device 100, and a recording time of each priority search type may be saved; in another embodiment, the first determined network type may be recorded as the priority search type of the electronic device 100, and when the network type of the network connected to the electronic device 100 is subsequently determined again, the recorded priority search type may be updated to the determined network type again. The position where the electronic device 100 is located when the priority search type is recorded or updated last time is the target position.
Step S120, when the electronic equipment is disconnected, determining the relative distance between the current position of the electronic equipment and the target position.
In practical applications, the electronic device 100 is in a power-off state when it enters a range that does not cover the mobile communication network or the mobile communication signal is poor, or when it is turned on again after being turned off (for example, within a few seconds). When detecting that the device is in the network disconnection state, the electronic device 100 may detect a relative distance between a current location of the device and the aforementioned target location.
Step S130, determining whether the relative distance reaches a set value. If not, go to step S140, and if so, go to step S150.
Step S140, searching the network with the priority search type.
Step S150, performing a network search according to the set search order.
In this embodiment, the setting value may be flexibly set, for example, according to experience or statistical data. If the relative distance between the position of the electronic device 100 when the network is disconnected and the target position does not reach the set value, it may be determined that the position of the electronic device 100 when the network is disconnected and the target position are relatively close to each other. In view of the fact that the network coverage is substantially fixed in a certain area, if the location of the electronic device 100 when disconnected is close to the target location, the network coverage of the location of the electronic device 100 when disconnected is likely to be the same as the network coverage of the target location, and thus, the network (the recorded network of the priority search type) to which the electronic device 100 is connected at the target location may be searched first. For example, assuming that the area a does not deploy a 5G network, the type of the preferential search recorded or updated by the electronic device 100 at the location s1 in the area a is generally 4G, and correspondingly, if the electronic device 100 is at the location s2 at which the relative distance from the location s1 is smaller than the set value, for example, a network is disconnected due to entering an elevator or an underground garage, etc., the 4G network may be preferentially searched without searching the 5G network, and the number of network searches may be reduced.
Correspondingly, if the relative distance between the location of the electronic device 100 when the network is disconnected and the target location reaches the set value, it indicates that the location of the electronic device 100 when the network is disconnected and the target location are far apart, and the network coverage conditions at the two locations are likely to be different, so that the network search can be performed according to the network search order set in the electronic device 100. The set network searching order may be a network searching order optimized according to a specific strategy, or may be a default network searching order, such as searching in sequence according to 5G, 4G, 3G, and 2G.
Through the process shown in fig. 2, the network preferentially searched by the electronic device during network disconnection is mostly the network covered by the current location, so that the network searching times can be reduced, the network searching speed can be increased, and unnecessary power consumption waste of the electronic device can be reduced.
Referring to fig. 3, fig. 3 is a flowchart illustrating a network searching method according to another embodiment of the present application, where the method can be applied to the electronic device 100 shown in fig. 1, and steps included in the method are described below.
Step S210, recording a network type to which a network currently connected to the electronic device belongs as a priority search type, and taking a position of the electronic device when the priority search type is recorded as a target position.
Step S220, when the cell where the electronic device is located changes, re-determining the network type to which the network currently connected to the electronic device belongs, and updating the priority search type to the re-determined network type.
In this embodiment, the process of determining the network type to which the network currently connected to the electronic device 100 belongs for multiple times may be implemented through steps S210 to S220. The cell in which the electronic device 100 is located refers to a cell in which the electronic device 100 resides. The type of network in which the electronic device 100 is connected to may change, typically, when the cell in which the electronic device 100 is located changes. Therefore, the embodiment takes the cell change where the electronic device 100 is located as a trigger condition to trigger execution of: and determining the network type to which the network currently connected by the electronic device 100 belongs, and updating the recorded priority search type to the redetermined network type. In this way, it is basically ensured that the priority search type of the record is the type of the network to which the electronic device 100 is newly connected, i.e. real-time recording of the type of the network to which the electronic device 100 is connected is basically achieved.
In addition, since the network searching mechanism of the electronic device 100 is to select the network with the best signal quality from the available networks, with the method of the embodiment, when the electronic device 100 is in most cases of network outage, it may determine the best network type covered by the location where the network outage occurs, and preferentially search for the network of the best network type.
Optionally, in this embodiment, when the electronic device 100 records the priority search type for the first time, it may record cell information of a cell in which the electronic device 100 is currently located. And subsequently, if the change of the cell in which the electronic equipment 100 is positioned is detected, updating the recorded cell information. The cell information may be, for example, an ID of a cell, and in one embodiment, the cell information may be a physical layer ID of the cell, and in another embodiment, the cell information may be an ID allocated to the cell by an operator, which is not limited in this embodiment.
Step S230, when the electronic device is disconnected, taking a location where the electronic device has updated the priority search type last time as the target location, and determining a relative distance between the current location of the electronic device and the target location.
Step S240, determining whether the relative distance reaches a set value. If not, go to step S250, and if so, go to step S260.
And step S250, searching the network with the priority search type.
Step S260, a network search is performed according to the set search order.
In this embodiment, if it is detected that the electronic device 100 is in the disconnected state, the relative distance between the position (i.e., the target position) where the electronic device 100 is located when the priority search type is updated last time and the current position of the electronic device 100 is obtained, and whether the relative distance reaches the set value is determined. The process of performing the determination is similar to the steps S130 to S150 in the previous embodiment, and is not described herein again.
Through the process shown in fig. 3, it can be ensured that the electronic device performs the preferential search on the network covered by the location in the network disconnection situation in most of the network disconnection situations, that is, the situation that the electronic device preferentially searches the network not covered by the current location in the network disconnection situation can be reduced, so that the network searching frequency is reduced, the network searching speed is increased, and the power consumption waste caused by performing the invalid network search is reduced.
Optionally, in this embodiment, when the cell in which the electronic device 100 is located changes, before or after the priority search type is updated, the current geographic location of the electronic device 100 may be acquired as the location where the electronic device 100 has been recently updated with the priority search type, so that the current geographic location may be used as the target location when the electronic device 100 is disconnected. The current geographic location of the electronic device 100 may be determined based on current location information of the electronic device 100, which may be, for example, current satellite location information or current network location information.
In this embodiment, in step S230, the step of determining the relative distance between the current position of the electronic device 100 and the target position may be implemented by:
and acquiring the geographical position of the electronic equipment when the network is disconnected, and calculating the distance (for example, the Euclidean distance or the Manhattan distance) between the geographical position of the electronic equipment when the network is disconnected and the target position to obtain the relative distance.
The geographic location of the electronic device 100 when disconnected from the network may be determined based on positioning information (e.g., satellite positioning information or network positioning information) of the electronic device 100 prior to the network being disconnected. Considering that the electronic device 100 has a limited range of location change before and after the time of network disconnection, and the type of the network to which the electronic device 100 is connected changes at least in units of cells, the geographical location of the electronic device 100 determined from the positioning information before the network disconnection of the electronic device 100 may be used as the geographical location of the electronic device 100 when the network is disconnected.
By the method, the relative distance between the position of the electronic equipment and the target position when the network is disconnected can be accurately determined, so that the determined network type firstly searched by the electronic equipment when the network is disconnected is more accurate, and unnecessary network searching times are reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a network searching method according to another embodiment of the present application, where the method can be applied to the electronic device 100 shown in fig. 1, and the electronic device 100 includes a pedometer. The steps of the method are explained below.
Step S310, recording the network type of the network which is currently connected with the electronic equipment as a priority search type, and taking the position of the electronic equipment when the priority search type is recorded as a target position.
Step S320, when the cell where the electronic device is located changes, re-determining the network type to which the network currently connected to the electronic device belongs, and updating the priority search type to the re-determined network type.
And step S330, when the cell where the electronic equipment is located changes, setting the step counting value of the pedometer of the electronic equipment as an initial value, and controlling the pedometer to count steps.
In this embodiment, the process of determining, by the electronic device 100, the network type to which the network currently connected to the device belongs for multiple times may be implemented through steps S310 to S320.
When the electronic device 100 determines the located cell for the first time, the electronic device 100 may execute step S310 and start the pedometer at this time. Before the change of the cell in which the electronic device 100 is located is detected for the first time, if the electronic device 100 is disconnected, the processing may be performed according to step S340, and in detail, the location where the electronic device 100 is located when the priority search type recorded for the last time (i.e., the first time) is taken as the target location, then the step count value of the pedometer when the electronic device 100 is disconnected may represent the relative distance between the location and the target location when the electronic device 100 is disconnected, and then the processing is performed according to steps S350 to S370.
In this embodiment, the initial value of the pedometer may be flexibly set, and for convenience of calculation, for example, may be 0. Correspondingly, when the change of the cell in which the electronic device 100 is located is detected the ith time (i is a positive integer greater than or equal to 1), the electronic device 100 may clear the step count value of the pedometer to restart counting. Then, the processing may be performed in accordance with steps S340 to S370 described later.
It should be noted that, in this embodiment, there is no limitation on the execution order for updating the priority search type and controlling the pedometer to count steps, in other words, there is no limitation on the order of step S320 and step S330, and the steps may be executed sequentially according to a certain order or in parallel.
Step S340, when the electronic device is disconnected, taking a location where the electronic device last updated the priority search type as the target location, and obtaining a step count value of a pedometer of the electronic device when the electronic device is disconnected, as a relative distance between the current location of the electronic device and the target location.
Since the pedometer restarts counting each time the cell in which the electronic device 100 is located changes, and the priority search type is updated each time the cell in which the electronic device 100 is located changes, the step count value of the pedometer when the electronic device 100 is disconnected is characterized by: the distance between the position (target position) where the electronic apparatus 100 is located when its priority search type was updated last time and the current position of the electronic apparatus 100. Based on this, the electronic device 100 may use the step count value acquired when the network is disconnected as the relative distance.
It should be noted that, in practical applications, in one situation, the network disconnection occurs when the electronic device enters a range not covering the mobile communication network or enters a range with poor signal of the mobile communication network. In another situation, a network outage may occur within a period of time (e.g., several seconds) after the electronic device is powered off and restarted.
In the former case, the processing may be directly performed according to steps S340 to S370 shown in fig. 4. For the latter case, in a scenario where the pedometer is used to determine the relative distance between the location of the electronic device 100 and the target location when the network is disconnected, when a shutdown instruction is received, the shutdown time may be stored in the non-transitory memory of the electronic device 100, after the electronic device 100 is powered on, the current time is obtained, the interval between the current time and the stored shutdown time is determined, and if the interval is smaller than a set time length (e.g., 1 minute to 2 minutes), the processing is performed according to steps S340 to S370 shown in fig. 4.
Step S350, determining whether the relative distance reaches a set value. If not, go to step S360, and if yes, go to step S370.
And step S360, searching the network with the priority search type.
In step S370, a network search is performed according to the set search order.
The detailed implementation process of steps S350 to S370 is similar to the implementation process of steps S130 to S150 and steps S240 to S260 in the foregoing embodiment, and is not repeated here.
Through the process shown in fig. 4, the probability that the electronic device performs preferential search on the network which is not covered at the current position when the network is disconnected can be reduced, so that the invalid network searching times are reduced, the network searching efficiency is improved, and unnecessary power consumption waste is reduced.
Alternatively, in this embodiment, the set value may be determined in different manners.
As shown in fig. 5, in an implementation manner, before performing step S350, the network searching method provided in this embodiment may further include the following steps:
step S510, determining a distance threshold corresponding to each network type according to the coverage radius of the base station of the network type, and storing a corresponding relationship between the network type and the distance threshold.
The base stations of different network types have different coverage radii, for example, the coverage radius of the 2G base station is about 5-10 km, the coverage radius of the 3G base station is about 2-5 km, the coverage radius of the 4G base station is about 1-3 km, and the coverage radius of the 5G base station is about 100-300 m. In this embodiment, for each network type, for example, a center value of a coverage radius range of a base station of the network type may be obtained, and the average value is multiplied by a preset multiple (e.g., 2 to 5 times) to obtain a distance value. In the case of calculating the relative distance from the geographic location, the obtained distance value may be directly used as the distance threshold corresponding to the network type, and in the case of determining the relative distance between the location of the electronic device 100 when the network is disconnected and the target location by the pedometer, the obtained distance value may be converted into a step number, and the obtained step number is the distance threshold corresponding to the network type.
Taking a 5G base station as an example, if it can be determined that the center value of the coverage radius range is 200 meters, then the distance value of 600 meters can be obtained by multiplying the 200 meters by a multiple of 3, and in the case of calculating the relative distance by the geographic position, 600 meters can be taken as the distance threshold corresponding to 5G; in the case where the relative distance is determined by the pedometer, the step number converted from 600 meters may be used as the distance threshold corresponding to 5G.
After determining the distance threshold corresponding to each network type, a correspondence between the network type and the distance threshold may be saved, where the correspondence may be a data record including the network type and the distance threshold.
Step S520, finding the distance threshold corresponding to the priority search type according to the corresponding relationship, and using the distance threshold as the set value.
After the electronic device 100 is disconnected and the relative distance between the current location of the device and the target location is determined, the recorded priority search type may be used as an index, a corresponding relationship including the priority search type is searched from the stored corresponding relationship, then the distance threshold in the searched corresponding relationship is used as the set value, and step S350 is executed based on the set value.
As shown in fig. 6, in another embodiment, before executing step S350, the network searching method provided in this embodiment may further include the following steps:
step S610, for each operator network, determining a distance threshold corresponding to the operator and the network type according to the coverage radius of the base station of each network type of the operator network, and storing a corresponding relationship between the operator network, the network type, and the distance threshold.
In this embodiment, the operator network may be any mobile communication network that provides a mobile communication service for a user. For each operator network, the coverage radius of the base station of each network type of the operator may be obtained, and then the distance threshold corresponding to each network type of the operator is determined according to the process similar to the above step S510. The corresponding relationship in step S610 may be a data record including an operator network identifier, a network type, and a distance threshold.
Step S620, determining an operator Network to be currently accessed by the electronic device according to a Public Land Mobile Network (PLMN) currently selected by the electronic device.
When searching for a network, the electronic device 100 typically selects a PLMN and searches for available networks within the PLMN. The PLMN may include a Mobile Country Code (MCC) for identifying a Country to which the electronic device 100 belongs and a Mobile Network number (MNC) for identifying an operator Network to which the electronic device 100 belongs in the Country.
Step S630, according to the correspondence, determining a distance threshold corresponding to the operator network to be currently accessed and the priority search type as the set value.
In an implementation process, the electronic device 100 may use the identifier (e.g., MNC) of the operator network to be accessed currently and the priority search type as an index, search for a corresponding relationship between the identifier of the operator network to be accessed currently and the priority search type from the stored corresponding relationship, use a distance threshold in the searched corresponding relationship as the set value, and then perform step S350 based on the determined set value.
Through the processes shown in fig. 5 and fig. 6, the distance between the position of the electronic device 100 when the network is disconnected and the target position where the priority search type was last recorded or updated can be determined more accurately, so that the situation that the electronic device 100 searches for a network that is not deployed at the current position when the network is disconnected can be reduced as much as possible, the network searching frequency can be further reduced, the network searching speed can be increased, and the power consumption can be reduced.
It is understood that other embodiments of the present application may determine the set value through the flow shown in fig. 5 or fig. 6.
Referring to fig. 7, fig. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 of the embodiment of the application may include one or more of the following components: a processor 101, a memory 102, and one or more programs, wherein the one or more programs may be stored in the memory 102 and configured to be executed by the one or more processors 101, the one or more programs may be configured to perform the network search method described above.
Processor 101 may include one or more processing cores. The processor 101 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 102 and calling data stored in the memory 102. Alternatively, the processor 101 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 101 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 101, but may be implemented by a communication chip.
The Memory 102 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 102 may be used to store instructions, programs, code sets, or instruction sets. The memory 102 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, a communication function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data (e.g., the above-described correspondence, setting values), etc., created by the electronic device 100 in use.
It is understood that the structure shown in fig. 7 is only an example, the electronic device 100 may further include more or less components than those shown in fig. 7, and the embodiment is not limited thereto, for example, the electronic device 100 may further include a communication unit, a pedometer, and the like.
Referring to fig. 8, fig. 8 is a block diagram of a network searching apparatus 800 according to an embodiment of the present disclosure, which can be applied to the electronic device 100 shown in fig. 1. Functionally divided, the network search apparatus 800 may include: a recording module 810, a determining module 820, a judging module 830, and a searching module 840.
The recording module 810 is configured to record a network type to which a network currently connected to the electronic device 100 belongs as a priority search type, and use a position where the electronic device 100 records the priority search type as a target position.
The determining module 820 is configured to determine a relative distance between the current location of the electronic device 100 and the target location when the electronic device 100 is disconnected from the network.
Optionally, in this embodiment, after recording the network type to which the network currently connected by the electronic device belongs as the priority search type, when the cell where the electronic device is located changes, the recording module 810 may further redetermine the network type to which the network currently connected by the electronic device belongs, and update the priority search type to the redetermined network type.
In this case, the determining module 820 may be further configured to, before determining the relative distance between the current location of the electronic device and the target location, regard, as the target location, a location where the electronic device was located when the electronic device updated the priority search type last time when the electronic device was disconnected from the network.
In an alternative embodiment, the apparatus 800 may further include a step counting module.
The step counting module may be configured to set a step counting value of a pedometer of the electronic device as an initial value when the cell where the electronic device is located changes, and control the pedometer to count steps.
In this case, the determining module 820 may determine the relative distance between the current location of the electronic device and the target location by: and acquiring a step counting value of a pedometer of the electronic equipment when the electronic equipment is disconnected as the relative distance.
In another alternative embodiment, the recording module 810 may be further configured to: when the cell where the electronic equipment is located changes, the current geographic position of the electronic equipment is obtained and used as the position where the electronic equipment is located when the priority search type is updated last time. In this case, the determining module 820 may determine the relative distance between the current location of the electronic device and the target location by: and acquiring the geographical position of the electronic equipment when the network is disconnected, and calculating the distance between the geographical position of the electronic equipment when the network is disconnected and the target position to obtain the relative distance.
Optionally, in an implementation manner of the embodiment of the present application, the determining module 820 may be further configured to, before the determining module 830 determines whether the distance reaches a set value, perform the following processing:
determining a distance threshold corresponding to each network type according to the coverage radius of the base station of each network type, and storing the corresponding relation between the network type and the distance threshold; and searching a distance threshold value corresponding to the priority search type according to the corresponding relation to serve as the set value.
In another implementation manner of this embodiment of this application, the determining module 820 may be further configured to, before the determining module 830 determines whether the distance reaches the set value, perform the following processing:
for each operator network, determining a distance threshold corresponding to the operator network and the network type according to the coverage radius of the base station of each network type of the operator network, and storing the corresponding relation among the operator network, the network type and the distance threshold; determining an operator network to be accessed by the electronic equipment currently according to the public land mobile network selected by the electronic equipment currently; and determining a distance threshold value corresponding to the operator network to be accessed currently and the priority search type as the set value according to the corresponding relation.
The determining module 830 is configured to determine whether the distance reaches a set value.
The searching module 840 is configured to search for the network of the priority search type when the distance does not reach a set value. The searching module 840 may be further configured to perform a network search according to a set search order when the relative distance does not reach the set value.
It will be clear to those skilled in the art that, for convenience and brevity of description, the various method embodiments described above may be referred to one another; for the specific working processes of the above-described devices and modules, reference may be made to corresponding processes in the foregoing method embodiments, which are not described herein again.
In several embodiments provided in the present application, the coupling of the modules to each other may be electrical, mechanical or other forms of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. Each module may be configured in different electronic devices, or may be configured in the same electronic device, and the embodiments of the present application are not limited thereto.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 900 has stored therein program code that can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 1000 includes a non-volatile computer-readable storage medium. The computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 910 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A method for network searching, comprising:
recording a network type to which a network currently connected by the electronic equipment belongs as a priority search type, and taking the position of the electronic equipment when the priority search type is recorded as a target position;
when the cell where the electronic equipment is located changes, the network type to which the network currently connected with the electronic equipment belongs is redetermined, and the priority search type is updated to the redetermined network type;
when the electronic equipment is disconnected, taking the position of the electronic equipment, which is located when the priority search type is updated last time, as the target position, and determining the relative distance between the current position of the electronic equipment and the target position;
judging whether the relative distance reaches a set value or not;
and if the relative distance does not reach the set value, performing network search according to a set search sequence.
2. The method of claim 1, further comprising:
when the cell where the electronic equipment is located changes, setting the step counting value of a pedometer of the electronic equipment as an initial value, and controlling the pedometer to count steps;
the determining the relative distance between the current position of the electronic device and the target position comprises:
and acquiring a step counting value of a pedometer of the electronic equipment when the electronic equipment is disconnected as the relative distance.
3. The method of claim 1, further comprising:
when the cell where the electronic equipment is located changes, acquiring the current geographic position of the electronic equipment as the position where the electronic equipment is located when the priority search type is updated last time;
the determining the relative distance between the current position of the electronic device and the target position comprises:
and acquiring the geographical position of the electronic equipment when the network is disconnected, and calculating the distance between the geographical position of the electronic equipment when the network is disconnected and the target position to obtain the relative distance.
4. The method according to any one of claims 1-3, wherein before said determining whether said relative distance reaches a set value, further comprising:
determining a distance threshold corresponding to each network type according to the coverage radius of the base station of each network type, and storing the corresponding relation between the network type and the distance threshold;
and searching a distance threshold value corresponding to the priority search type according to the corresponding relation to serve as the set value.
5. The method according to any one of claims 1-3, wherein before said determining whether said relative distance reaches a set value, further comprising:
for each operator network, determining a distance threshold corresponding to the operator network and the network type according to the coverage radius of the base station of each network type of the operator network, and storing the corresponding relation among the operator network, the network type and the distance threshold;
determining an operator network to be accessed by the electronic equipment currently according to a Public Land Mobile Network (PLMN) selected by the electronic equipment currently;
and determining a distance threshold value corresponding to the operator network to be accessed currently and the priority search type as the set value according to the corresponding relation.
6. A network search apparatus, comprising:
the recording module is used for recording the network type to which the network currently connected with the electronic equipment belongs as a priority search type and taking the position of the electronic equipment when the priority search type is recorded as a target position; when the cell where the electronic equipment is located changes, the network type to which the network currently connected with the electronic equipment belongs is redetermined, and the priority search type is updated to the redetermined network type;
the determining module is used for taking the position of the electronic equipment when the priority search type is updated for the last time as the target position when the electronic equipment is disconnected, and determining the relative distance between the current position of the electronic equipment and the target position;
the judging module is used for judging whether the relative distance reaches a set value or not;
and the searching module is used for searching the network according to a set searching sequence if the relative distance does not reach the set value.
7. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a program code is stored in the computer-readable storage medium, which program code can be called by a processor to perform the method according to any of claims 1-5.
CN201911275566.4A 2019-12-12 2019-12-12 Network searching method and device and electronic equipment Active CN111050378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911275566.4A CN111050378B (en) 2019-12-12 2019-12-12 Network searching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911275566.4A CN111050378B (en) 2019-12-12 2019-12-12 Network searching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111050378A CN111050378A (en) 2020-04-21
CN111050378B true CN111050378B (en) 2022-05-20

Family

ID=70236621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911275566.4A Active CN111050378B (en) 2019-12-12 2019-12-12 Network searching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111050378B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556790B (en) * 2020-04-24 2024-05-14 深圳市万普拉斯科技有限公司 Network type switching method, device, computer equipment and storage medium
EP4149168A4 (en) * 2020-05-27 2023-07-26 Huawei Technologies Co., Ltd. Network searching method and electronic device
CN113747359B (en) * 2020-05-27 2023-07-18 华为技术有限公司 Network searching method and electronic equipment
CN116684935A (en) * 2023-05-29 2023-09-01 荣耀终端有限公司 Communication method, storage medium, and electronic device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401973A (en) * 2019-08-19 2019-11-01 Oppo广东移动通信有限公司 Network search method and device, terminal, storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103906180B (en) * 2012-12-28 2017-07-04 联芯科技有限公司 A kind of method of fast search PLMN
CN105578564A (en) * 2014-10-17 2016-05-11 联芯科技有限公司 Network searching method of mobile terminal
CN105873183B (en) * 2016-03-23 2019-05-28 华为技术有限公司 A kind of method for searching network and user equipment
CN105848253B (en) * 2016-04-28 2020-11-24 泾县谷声信息科技有限公司 Intelligent network searching method and device and mobile terminal
CN109905907B (en) * 2019-01-29 2021-05-14 维沃移动通信(深圳)有限公司 Network searching method and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401973A (en) * 2019-08-19 2019-11-01 Oppo广东移动通信有限公司 Network search method and device, terminal, storage medium

Also Published As

Publication number Publication date
CN111050378A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111050378B (en) Network searching method and device and electronic equipment
US8200217B2 (en) Method and apparatus for channel scanning that improves acquisition probability and power consumption
CN112074011B (en) Network registration method, device, computer equipment and storage medium
CN107995357A (en) Resource allocation method and device
CN111328082B (en) Base station planning method, device, equipment and storage medium
CN1722882A (en) Mobile station apparatus capable of changing access control classes due to low battery condition and method of the same
CN108632309B (en) Method and device for upgrading narrow-band Internet of things terminal
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN107370877B (en) Application program pushing method and device, storage medium and electronic equipment
CN103152799B (en) A kind of method and terminal that cell is resident
CN108804294A (en) Method, apparatus, equipment and the computer readable storage medium that electricity is reminded
CN112367700A (en) Energy-saving control method and device for base station, electronic equipment and storage medium
CN112653989A (en) Broadband user positioning method, device, electronic equipment and storage medium
CN105657789A (en) Device and method for network search in roaming state
CN104899275A (en) Cell search method and terminal
WO2021129489A1 (en) Application precompiling method and apparatus, electronic device, and storage medium
CN105657792A (en) Communication network access method and device
CN112738861A (en) Terminal signal reselection method, related device and computer storage medium
CN114466421B (en) Cell reselection method and device
CN108037839B (en) Character input method and related product
CN113194521B (en) Network searching method and device for 5G communication module, computer equipment and storage medium
CN113038573B (en) Network search control method, device, mobile terminal and storage medium
CN114390646A (en) NSA base station energy saving method and device
CN116761230B (en) Equipment network access method and device, electronic equipment and computer readable storage medium
CN111885628B (en) Communication configuration setting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant