CN116801362A - Network search method, device, electronic equipment and readable storage medium - Google Patents
Network search method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN116801362A CN116801362A CN202310941476.4A CN202310941476A CN116801362A CN 116801362 A CN116801362 A CN 116801362A CN 202310941476 A CN202310941476 A CN 202310941476A CN 116801362 A CN116801362 A CN 116801362A
- Authority
- CN
- China
- Prior art keywords
- network
- sim card
- time interval
- electronic device
- network search
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a network searching method, a network searching device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. Wherein the method comprises the following steps: acquiring first information under the condition that the SIM card fails to register to a first network through the first user identity identification; the first information is used to indicate any one of: the screen state of the electronic equipment and the service type of the executable service of the first SIM card; limiting the network searching operation of the first network executed by the first SIM card under the condition that the first information meets a first preset condition; wherein the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
Description
Technical Field
The application belongs to the technical field of communication, and particularly relates to a network searching method, a device, electronic equipment and a readable storage medium.
Background
In general, in the case where a Subscriber identity module (Subscriber IdentityModule, SIM) card is inserted into an electronic device and the SIM card supports a code division multiple access (code division MultipleAccess, CDMA) network, the electronic device performs a network search procedure of a long term evolution (Long Term Evolution, LTE) network or a new air interface (new radio, NR) network through the SIM card multiple times, so as to switch a CDMA network registered through the SIM card to the LTE network or the NR network in the case where the CDMA network is of poor quality.
However, since the case that the SIM card does not support the LTE network or the NR network may occur, that is, the case that the electronic device fails to register to the LTE network or the NR network through the SIM card may occur, the electronic device may perform the network search procedure of the LTE network or the NR network through the SIM card multiple times, which results in greater power consumption of the electronic device.
Disclosure of Invention
The embodiment of the application aims to provide a network searching method, a network searching device, electronic equipment and a readable storage medium, which can solve the problem of larger power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides a network searching method, where the method includes: acquiring first information under the condition that registration to a first network through a first SIM card fails; the first information is used to indicate any one of: the screen state of the electronic equipment and the service type of the executable service of the first SIM card; limiting the network searching operation of the first network executed by the first SIM card under the condition that the first information meets a first preset condition; wherein the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
In a second aspect, an embodiment of the present application provides a network searching apparatus, including: the acquisition module is used for acquiring first information under the condition that the registration to the first network through the first SIM card fails; the first information is used to indicate any one of: screen state of the network searching device, and service type of the executable service of the first SIM card. The processing module is used for limiting the network searching operation of the first network executed by the first SIM card under the condition that the first information acquired by the acquisition module meets a first preset condition; wherein the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executed by at least one processor to carry out the steps of the method according to the first aspect.
In the embodiment of the application, the screen state of the electronic equipment can be acquired under the condition that the electronic equipment fails to register to the first network through the first SIM card, and the network searching operation of the first network is limited under the condition that the screen state is in the screen-off state, namely under the condition that a user does not use the electronic equipment, so that the execution times of the network searching operation of the first network through the first SIM card can be reduced while the situation that the electronic equipment cannot register to the first network in time when the first SIM card can register to the first network is avoided; or, the electronic device may acquire the service type of the service executable by the first SIM card in the case that the registration to the first network by the first SIM card fails, and limit the network searching operation performed by the first SIM card in the case that the service type of the service executable by the first SIM card is only a voice service type, that is, in the case that the user does not need to perform the data service by using the first network by the electronic device, so that the number of times of performing the network searching operation performed by the first SIM card by the first network may be reduced while the user performs the data service by the electronic device is not affected; in this way, the power consumption of the electronic device can be reduced without affecting the use of the first network by the user.
Drawings
FIG. 1 is one of the flow diagrams of a network searching method provided by some embodiments of the present application;
FIG. 2 is a second flowchart of a network searching method according to some embodiments of the present application;
FIG. 3 is a third flow chart of a network searching method according to some embodiments of the present application;
fig. 4 is a schematic diagram of a time interval for an electronic device to execute a network search procedure according to an embodiment of the present application;
FIG. 5 is a fourth flow chart of a network searching method according to some embodiments of the present application;
FIG. 6 is a second schematic diagram of a time interval for an electronic device to perform a network searching process according to an embodiment of the present application;
FIG. 7 is a third schematic diagram of a time interval for an electronic device to execute a network searching process according to an embodiment of the present application;
FIG. 8 is a fifth flow chart of a network searching method according to some embodiments of the present application;
FIG. 9 is a flowchart illustrating a network searching method according to some embodiments of the present application;
FIG. 10 is a flow chart of a network searching method according to some embodiments of the present application;
FIG. 11 is a schematic diagram of a network searching apparatus according to some embodiments of the present application;
FIG. 12 is a schematic diagram of one of the hardware structures of an electronic device provided by some embodiments of the present application;
fig. 13 is a second schematic diagram of a hardware structure of an electronic device according to some embodiments of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced otherwise than as specifically described or illustrated herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, such as the first information may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims, mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
The network searching method, the device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The network searching method provided by the embodiment of the application can be applied to the scene of network searching of the electronic equipment provided with the abnormal SIM card. The abnormal SIM card may be a SIM card that can be registered to a CDMA network and cannot be registered to an LTE network or an NR network; or the abnormal SIM card may be a SIM card that cannot be registered with the CDMA network and cannot be registered with the LTE network or the NR network.
The abnormal SIM card is a SIM card which can be registered to a CDMA network and cannot be registered to an LTE network or an NR network.
Assuming that the abnormal SIM card is installed in the electronic device, the electronic device may register to the CDMA network through the abnormal SIM card to perform a voice service or a data service using the CDMA network in case that the electronic device is in a power-on state, and may perform a network search operation of the LTE network or the NR network through the abnormal SIM card at a default time interval to switch the CDMA network to the LTE network or the NR network in case that the CDMA network is of poor quality. However, since the abnormal SIM card cannot be registered in the LTE network or the NR network, the electronic device may perform the network search operation of the LTE network or the NR network through the abnormal SIM card at a default time interval, which results in a large power consumption of the electronic device.
However, in the embodiment of the present application, in the case where it is determined that registration to the CDMA network through the abnormal SIM card and registration to the LTE network or the NR network through the abnormal SIM card fail, the electronic device may acquire information for indicating a screen state of the electronic device, and in the case where the screen state is a screen off state, perform, through the abnormal SIM card, a network search operation of the LTE network or the NR network at intervals greater than the above-described default interval, so as to limit the network search operation of the LTE network or the NR network performed through the abnormal SIM card. It can be understood that the electronic device limits the network searching operation of the LTE network or the NR network performed by the abnormal SIM card when the user does not use the electronic device, so that the number of times of performing the network searching operation of the LTE network or the NR network performed by the abnormal SIM card can be reduced while avoiding the situation that the electronic device cannot register to the LTE network or the NR network in time when the abnormal SIM card can register to the LTE network or the NR network, and thus, the power consumption of the electronic device can be reduced without affecting the use of the LTE network or the NR network by the user.
The abnormal SIM card is a SIM card which cannot be registered to the CDMA network and cannot be registered to the LTE network or the NR network.
Assuming that the abnormal SIM card is installed in the electronic device, in case that the electronic device is in a power-on state, the electronic device may simultaneously perform a network search operation of the CDMA network and the LTE network or the NR network through the abnormal SIM card at a default time interval to register on any one of the CDMA network, the LTE network, and the NR network and perform a service using the any one of the networks. However, since the abnormal SIM card cannot be registered with the CDMA network and the LTE network or the NR network, the electronic device may perform the network search operation of the CDMA network and the LTE network or the NR network through the abnormal SIM card a plurality of times according to a default time, thereby causing a large power consumption of the electronic device.
However, in the embodiment of the present application, the electronic device may acquire the number of failures to register the CDMA network through the abnormal SIM card when determining that the registration to the CDMA network through the abnormal SIM card fails, and prohibit the execution of the network registration operation of the CDMA network through the abnormal SIM card for a certain preset duration when the number of failures is greater than or equal to a preset number of times; and, the electronic device may acquire information indicating a service type of the abnormal SIM card executable service in case that it is determined that registration to the LTE network or the NR network through the abnormal SIM card fails, and prohibit the network search operation of the LTE network or the NR network through the abnormal SIM card in case that the service type of the abnormal SIM card executable service is only a voice service type, so as to limit the network search operation of the LTE network or the NR network through the abnormal SIM card. It can be understood that the electronic device may prohibit execution of the network registration operation of the CDMA network directly for a certain preset duration in the case where it is determined that the registration to the CDMA network by the abnormal SIM card fails and the number of failures to register the CDMA network is greater than or equal to the preset number of times, so that the number of times the electronic device executes the network registration operation of the CDMA network may be reduced, and thus, power consumption of the electronic device is reduced. And, the electronic device limits the network searching operation of the LTE network or the NR network through the abnormal SIM card under the condition that the user does not need to execute the data service through the electronic device by using the LTE network or the NR network, so that the execution times of the network searching operation of the LTE network or the NR network through the abnormal SIM card can be reduced while the user is not influenced to execute the data service through the electronic device, and the power consumption of the electronic device can be reduced while the user is not influenced to use the LTE network or the NR network.
According to the network searching method provided by the embodiment of the application, the execution main body can be a network searching device, or an electronic device, or a functional module or entity in the electronic device. In the embodiment of the application, the network searching method provided by the embodiment of the application is described by taking the method of executing the network searching by the electronic equipment as an example.
Fig. 1 shows a flow chart of a network searching method according to an embodiment of the present application. As shown in fig. 1, a network searching method provided by an embodiment of the present application may include the following steps 101 and 102.
Step 101, under the condition that the electronic equipment fails to register to the first network through the first SIM card, the electronic equipment acquires first information.
In some embodiments of the application, the electronic device may be a device supporting at least one SIM card.
In some embodiments of the present application, the first SIM card may be any one of the following: a physical SIM card, a virtual SIM card.
The physical SIM card may be any one of the following: a universal subscriber identity module (UniversalSubscriber Identity Module, USIM) card, a Removable User identity module (IdentityModule, RUIM) card, a User identity module (User Identity Module, UIM) card, an embedded subscriber identity module (eSIM) card. The virtual SIM card may be: virtual subscriber identity module (vSIM) cards.
In some embodiments of the present application, the network that supports registration of the first SIM card may include at least one of: CDMA network, LTE network, NR network.
In some embodiments of the present application, the first network may be any one of the following: CDMA network, LTE network, NR network. The network that the first SIM card supports registration may include the first network or may not include the first network.
In some embodiments of the present application, in a case where the network in which the first SIM card supports registration includes a first network, the network format of the first network may be a network with a highest network format among the networks in which the first SIM card supports registration.
For example, assuming that the network supported by the first SIM card is a CDMA network, an LTE network, and an NR network, the first network is the highest network standard among the CDMA network, the LTE network, and the NR network, that is, the first network is the NR network.
In some embodiments of the present application, in a case where the network in which the first SIM card supports registration does not include the first network, a network format of the first network may be higher than a network format of the network in which the first SIM card supports registration.
For example, assuming that the networks supported by the first SIM card are a CDMA network and an LTE network, the network system of the first network may be higher than the network system of the CDMA network and the LTE network, i.e., the first network is an NR network.
In some embodiments of the present application, in a case where the electronic device turns on the "abnormal card or special card optimization" function, the electronic device may determine whether it can be registered to the first network through the first SIM card, so that the electronic device may acquire the first information in a case where it is determined that the registration to the first network through the first SIM card fails.
It should be noted that, the above "abnormal card" can be understood as: a SIM card that fails to register with a certain network; for example, a SIM card that supports registration with the certain network and fails to register with the certain network due to some cases, or a SIM card that does not support registration with the certain network; wherein the certain circumstances may be arrearages, etc. The above "special card" can be understood as: a SIM card that is only registered to a certain network.
It can be understood that the first SIM card is an abnormal card or a special card. For example, the first SIM card may be a SIM card that supports registration with the first network and fails to register with the first network due to some circumstances, or may be a SIM card that does not support registration with the first network.
In some embodiments of the present application, the electronic device may acquire subscription data in the first SIM card, where the subscription data includes information of each network to which the first SIM card has subscribed, that is, the first SIM card supports each network, so that the electronic device may determine that registration with the first network through the first SIM card fails when the first network is not included in each network.
In some embodiments of the present application, the electronic device may perform the network registration operation of the first network through the first SIM card multiple times, and if the number of failures to register the first network through the first SIM card is greater than or equal to a preset threshold, determine that registration to the first network through the first SIM card fails. The preset threshold may be a preset number of times in the following embodiments.
In an embodiment of the present application, the first information is used to indicate any one of the following: screen state of the electronic equipment, and service type of the executable service of the first SIM card.
In some embodiments of the present application, the screen status may be any of the following: a bright screen state and a screen-off state.
In some embodiments of the present application, in the case where the first information is used to indicate a screen state of the electronic device, the first information may specifically be a luminance value of a backlight of a display screen of the electronic device.
Under the condition that the brightness value is larger than or equal to the brightness threshold value, the electronic equipment can determine that the screen state is a bright screen state, namely the first information is used for indicating that the screen state is the bright screen state; in the case that the luminance value is smaller than the luminance threshold value, the electronic device may determine that the screen state is an off-screen state, that is, the first information is used to indicate that the screen state is an off-screen state.
In some embodiments of the present application, the service type of the first SIM card executable service may be any one of the following: voice traffic type, data traffic type, and voice traffic type.
In some embodiments of the present application, in the case where the first information is used to indicate a service type of the executable service of the first SIM card, the first information may specifically be primary and secondary card information of the first SIM card, where the primary and secondary card information indicates that the first SIM card is a primary card or a secondary card.
Under the condition that the main and auxiliary card information indicates that the first SIM card is the main card, the electronic equipment can determine the service type of the executable service of the first SIM card as a data service type and a voice service type, namely the first information is used for indicating that the service type of the executable service of the first SIM card is the data service type and the voice service type; under the condition that the main and sub card information indicates that the first SIM card is a sub card, the electronic equipment can determine that the service type of the executable service of the first SIM card is a voice service type, namely the service type of the executable service of the first SIM card indicated by the first information is a voice service type.
Step 102, the electronic device limits the network searching operation of the first network executed by the first SIM card when the first information meets a first preset condition.
In an embodiment of the present application, the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
In the embodiment of the application, if the screen state is the screen-off state, the user can be considered to not use the electronic device, that is, the situation that the user needs to use the first network through the first SIM card does not exist, so that the electronic device can limit the network searching operation of executing the first network through the first SIM card, and the execution times of executing the network searching operation of the first network are reduced under the condition that the user does not influence the use of the first network through the first SIM card.
If the service type of the executable service of the first SIM card is only a voice service type, the first SIM card may be considered as a secondary card, that is, the user may need to perform voice call only through the first SIM card, that is, there may be no case that the user needs to use the first network through the first SIM card, so the electronic device may display the network searching operation performed through the first SIM card to perform the first network, so as to reduce the execution times of performing the network searching operation of the first network without affecting the user to use the first network through the first SIM card.
In some embodiments of the present application, the electronic device may lengthen a time interval for performing the network searching operation of the first network through the first SIM card, or the electronic device may prohibit the network searching operation of the first network through the first SIM card to limit the network searching operation of the first network through the first SIM card.
It may be appreciated that the longer the time interval for performing the network search operation of the first network, the fewer the number of times the electronic device performs the network search operation of the first network within the same duration, and thus, the electronic device may limit the number of times the network search operation of the first network is performed by the first SIM card by lengthening the time interval for performing the network search operation of the first network.
A specific scheme in which the electronic device restricts the network search operation performed on the first network by the first SIM card will be exemplified below.
In some embodiments of the present application, as shown in fig. 2 in conjunction with fig. 1, the above step 102 may be implemented specifically by the following step 102a or step 102 b.
Step 102a, under the condition that the first information meets the first preset condition, the electronic device executes the network searching operation of the first network according to the first time interval through the first SIM card.
In some embodiments of the present application, the first time interval may be any one of the following: the method comprises the steps of presetting a time interval by a user and carrying out a maximum time interval of network searching operation supported by electronic equipment.
In the embodiment of the present application, the first time interval is greater than the second time interval, where the second time interval is: a default time interval for performing the network search operation.
It will be appreciated that, prior to step 102 described above, the electronic device performs a network search operation of the first network at a second time interval via the first SIM card.
In some embodiments of the present application, the electronic device may first obtain the target history registration information, where the target history registration information includes information of each network in which the electronic device successfully performs the network registration operation through the first SIM card, so that the electronic device may perform the network search operation of the first network by performing the first time interval in a case where the screen state is in the off-screen state and the first network is included in each network, or in a case where the service type of the service executable by the first SIM card is only the voice service type and the first network is included in each network.
It is understood that, in this example, the first information may be the brightness value of the backlight and the target history registration information, or may be the main-sub card information and the target history registration information; the first information is used for indicating the screen state of the electronic equipment and each network of which the electronic equipment successfully performs the network registration operation, or is used for indicating the service type of the first SIM card executable service and each network of which the electronic equipment successfully performs the network registration operation. The first preset condition includes any one of the following: the screen state is a screen off state, and the first network is not included in the networks; the service type of the first SIM card executable service is only a voice service type, and the first network is not included in the respective networks.
In the embodiment of the present application, if the above-mentioned respective networks include the first network, it may be considered that the electronic device has been successfully registered to the first network through the first SIM card, that is, the first SIM supports registration to the first network, and the temporary registration to the first network fails due to some of the above-mentioned cases, that is, the first SIM card may be a temporary abnormal card, so that the electronic device may perform the network searching operation of the first network according to the first time interval only if the first information satisfies the first preset condition, so as to avoid the situation that the electronic device cannot register to the first network through the first SIM card in time when the first SIM card can register to the first network.
It should be noted that, for the description of the above-mentioned network registration operation performed by the electronic device, reference may be made to the specific description in the related art, and the embodiments of the present application are not repeated herein.
In some embodiments of the present application, the electronic device may perform a cell search on a first frequency band of the historical search frequency bands of the first SIM card at intervals of a first time interval to perform a network search operation of the first network. The first frequency band is a frequency band where the first network is located.
As can be seen from this, since the electronic device can lengthen the time interval for executing the network search operation of the first network when the screen state is the off-screen state or the service type of the service executable by the first SIM card is only the voice service type, that is, when the user does not need to use the first network through the first SIM card, the number of times of executing the network search operation of the first network by the electronic device can be reduced while the user does not influence the use of the first network by the first SIM card, so that the power consumption of the electronic device can be reduced while the user does not influence the use of the first network.
In some embodiments of the present application, in order to further reduce power consumption of the electronic device, the electronic device may further adjust the time interval for performing the network search operation of the first network again in the case that the screen state is in the off-screen state for a long time. Optionally, the screen state is a screen off state. Illustratively, in conjunction with fig. 2, as shown in fig. 3, after the step 102a, the method for searching a network according to an embodiment of the present application may further include the following step 201.
Step 201, if the electronic device detects that the screen state is still in the off-screen state after the second period of time, the electronic device executes the network searching operation of the first network according to the third time interval through the first SIM card.
It is understood that, in the present embodiment, the above-described first information is used to indicate the screen state.
In the embodiment of the present application, the second period of time is: a time period lasting a second time period from execution of the network search operation of the first network, the second time period being a time period of the first time interval; the third time interval is greater than the first time interval.
In some embodiments of the present application, the second duration may be a duration of at least one first time interval.
In some embodiments of the present application, when the first information meets a first preset condition, the electronic device may start a first timer of the electronic device, where a time duration of the first timer is a second time duration, and detect, in real time, a screen state when the first timer is not overtime, so that the electronic device may determine that the screen state is still in a screen-off state after the second period when the first timer is overtime and the screen state is not detected to be in a screen-on state.
In some embodiments of the present application, the electronic device may perform, at the end of the second period of time, a network search operation of the first network at a third time interval through the first SIM card.
Fig. 4 is a schematic diagram illustrating a time interval for an electronic device to perform a network searching operation according to an embodiment of the present application. Assume that the duration of the first time interval is t 1 The second duration of the second time period is t 2 As shown in FIG. 4, the t 2 For the duration of two first time intervals, i.e. t 2 =2t 1 The electronic device may detect the screen state in real time if the first information satisfies the first preset condition, and determine that the screen state is t 2 In the case of being still in the off-screen state after that, at the end time 10 of the second time period, the network searching operation of the first network is executed by the first SIM card according to the third time interval, namely, from the end time 10 of the second time period, the duration t of every third time interval 3 Performing a network search operation of the first network through the first SIM card, the t 3 Greater than t 1 。
In the embodiment of the application, if the screen state is still in the screen-off state after the second duration, the user can be considered that the user may not need to use the first network through the first SIM card for a longer time, so that the electronic device can further lengthen the time interval for executing the network searching operation of the first network through the first SIM card, so that the execution times of executing the network searching operation of the first network by the electronic device are further reduced under the condition that the user is not influenced to use the first network through the first SIM card.
As can be seen from this, since the electronic device can further reduce the number of times the electronic device performs the network search operation of the first network without using the first network through the first SIM card for a long period of time, the power consumption of the electronic device can be reduced without affecting the use of the first network by the user.
In some embodiments of the present application, after a time interval during which the electronic device performs the network searching operation of the first network is prolonged, a situation may also occur in which the electronic device uses the electronic device, where the electronic device may determine, according to a time when the screen state is detected to be updated to the bright screen state, a time when the network searching operation of the first network is performed by the first SIM card, so as to avoid increasing the number of times of performing the network searching operation of the first network in a case where the first SIM card fails to register to the first network, or avoid a case where the electronic device cannot register to the first network in time by the first SIM card in a case where the first SIM card can register to the first network. Optionally, the screen state is a screen off state. Illustratively, in conjunction with fig. 2, as shown in fig. 5, after the step 102a, the method for searching a network according to the embodiment of the present application may further include the following step 301 or step 302.
Step 301, when the electronic device detects that the screen state is updated to the bright screen state at the first time and the first time is located in the first time period, the electronic device executes a network searching operation of the first network at the end time of the first time period through the first SIM card.
It is understood that, in the present embodiment, the above-described first information is used to indicate the screen state.
It should be noted that, with respect to the execution sequence of the step 301 and the step 201, embodiments of the present application are not limited herein; in one possible implementation, the electronic device may perform step 301 first and then step 201, in another possible implementation, the electronic device may perform step 201 first and then step 301, and in yet another possible implementation, the electronic device may perform step 201 while performing step 301.
In the embodiment of the present application, the first period of time is: a time period lasting a first time period from performing a network search operation of the first network, the first time period being a time period of the second time interval.
Fig. 6 is a schematic diagram illustrating a time interval for an electronic device to perform a network searching operation according to an embodiment of the present application. Assume that the duration of the second time interval is t 4 I.e. the first duration of the first time period is t 4 The electronic device detects that the screen state is updated to the bright screen state at the first time T, as shown in fig. 6, and is located at the first time T in the first time period 4 In this case, the electronic device may perform a network search operation of the first network through the first SIM card at the end time 11 of the first period.
In the embodiment of the application, if the electronic device detects that the moment when the screen state is updated to the bright screen state is within the first time period, the time interval from the last time the electronic device determines that the first SIM card fails to register to the first network is shorter, and the first SIM card may still fail to register to the first network, so the electronic device may execute the network searching operation of the first network at the ending moment of the first time period, that is, execute the network searching operation of the first network again after the default time interval of executing the network searching operation, so as to avoid increasing the execution times of executing the network searching operation of the first network under the condition that the first SIM card fails to register to the first network.
As can be seen, since the electronic device performs the network searching operation of the first network after the default time interval of performing the network searching operation when the screen state is updated to the bright screen state is within the first time period, instead of directly performing the network searching operation of the first network, it is possible to avoid increasing the number of times of performing the network searching operation of the first network in case that the first SIM card fails to register to the first network, and thus, it is possible to reduce power consumption of the electronic device.
Step 302, when the electronic device detects that the screen state is updated to the bright screen state at the first time and the first time is located outside the first time period, the electronic device executes a network searching operation of the first network at the first time through the first SIM card.
In the embodiment of the present application, the first period of time is: a time period lasting a first time period from performing a network search operation of the first network, the first time period being a time period of the second time interval.
Fig. 7 is a schematic diagram of a time interval for an electronic device to perform a network search operation of a first network according to an embodiment of the present application. Assume that the duration of the second time interval is t 4 I.e. the first duration of the first time period is t 4 The electronic device detects that the screen state is updated to the bright screen state at the first time T, as shown in fig. 7, and is located at the first time T of the first time period 4 In other cases, the electronic device may perform the network search operation of the first network directly at the first time T through the first SIM card.
In the embodiment of the application, if the moment when the electronic device detects that the screen state is updated to the bright screen state is located outside the first time period, the time interval from the last time the electronic device determines that the first network fails to be registered through the first SIM card is longer, and the first SIM card may be registered to the first network, so that the electronic device can directly execute the network searching operation of the first network at the first moment, and the situation that the electronic device cannot be registered to the first network through the first SIM card in time under the condition that the first SIM card can be registered to the first network is avoided.
Therefore, the electronic device can directly execute the network searching operation of the first network without waiting for a long time under the condition that the moment of updating the screen state to the bright screen state of the electronic device is outside the first time period, so that the situation that a user needs to use the first network through the first SIM card and the electronic device cannot register to the first network through the first SIM card in time can be avoided.
Step 102b, the electronic device prohibits the execution of the network search operation of the first network through the first SIM card if the first information satisfies the first preset condition.
In some embodiments of the application, the electronic device may disable the capability of the packet switched (Packet Switching Technology, PS) domain of the first SIM card to disable the network search operation of the first network by the first SIM card.
In some embodiments of the present application, when the electronic device prohibits the network searching operation of the first network through the first SIM card, a second timer of the electronic device may be started, and in a case that the second timer is timed out, the network searching operation of the first network is performed through the first SIM card.
As can be seen from this, since the electronic device can directly prohibit the network search operation of the first network by the first SIM card when the screen state is in the off-screen state or the service type of the service executable by the first SIM card is only the voice service type, that is, when the user does not need to use the first network by the first SIM card, the number of times of executing the network search operation of the first network by the electronic device can be reduced without affecting the user to use the first network by the first SIM card, and thus, the power consumption of the electronic device can be reduced without affecting the user to use the first network.
In some embodiments of the present application, when the electronic device can also satisfy a certain condition after the electronic device prohibits the execution of the network searching operation of the first network through the first SIM card, the execution of the network searching operation of the first network through the first SIM card is resumed, so as to avoid a situation that the electronic device cannot register to the first network through the first SIM card in time. Illustratively, in conjunction with fig. 2, as shown in fig. 8, after the step 102b, the method for searching a network according to an embodiment of the present application may further include the following step 401.
Step 401, the electronic device performs a network search operation of the first network through the first SIM card if the second preset condition is satisfied.
In an embodiment of the present application, the second preset condition includes any one of the following:
the electronic equipment generates a preset event;
the electronic equipment generates a preset event and is successfully registered to a first network through a first SIM card;
the service type of the executable service of the first SIM card is changed into a data service type and a voice service type;
the electronic equipment generates a preset event and successfully executes voice service through the first SIM card;
the duration of the network search operation of the first network through the first SIM card is prohibited from being performed for greater than or equal to a first preset duration.
In the embodiment of the present application, the preset event may include any one of the following: restarting, turning on the flight mode, turning off the flight mode, taking out the SIM card, and inserting the SIM card.
In the embodiment of the application, because some faults of the electronic equipment, such as software faults, hardware faults and the like, may occur, the electronic equipment fails to register to the first network through the first SIM card, and the electronic equipment can solve the some faults through any one of restarting, starting the flight mode, closing the flight mode, taking out the SIM card and inserting the SIM card, namely, the electronic equipment can register to the first network through the first SIM card at the moment, so that the electronic equipment can resume executing the network searching operation of the first network in time.
In the embodiment of the application, because the situation that the electronic equipment fails to register to the first network through the first SIM card may occur due to the above certain situations, and in the case that the electronic equipment has the preset event and the electronic equipment successfully registers to the first network through the first SIM card, the electronic equipment may be considered to be registered to the PS domain, that is, the above certain situations may be considered to be solved, that is, the electronic equipment may register to the first network through the first SIM card at this time, so that the electronic equipment may resume executing the network searching operation of the first network in time.
In the embodiment of the application, the service type of the executable service of the first SIM card is changed into the data service type and the voice service type, so that the first SIM card can be considered to be switched from the auxiliary card to the main card, namely the electronic equipment can need to execute the data service by using the first network through the first SIM card, and therefore, the electronic equipment can resume executing the network searching operation of the first network in time.
In the embodiment of the application, the situation that the registration to the first network through the first SIM card fails due to the poor signal quality of the position where the electronic equipment is located may occur, and in the case that the electronic equipment generates the preset event and the electronic equipment successfully executes the voice service through the first SIM card, the position where the electronic equipment is located may be considered to be changed, and the signal quality is better, that is, the electronic equipment may possibly register to the first network through the first SIM card at this time, so that the electronic equipment can resume the network searching operation of executing the first network in time.
In some embodiments of the present application, the time duration of the second timer may be a first preset time duration, so that the electronic device may perform, when the second timer expires, a network searching operation of the first network through the first SIM card.
In some embodiments of the present application, the electronic device may clear the timing of the second timer and perform the network search operation of the first network through the first SIM card if the second preset condition is satisfied.
In the embodiment of the application, if the duration of the network searching operation of the first network is prohibited from being executed by the first SIM card is longer than or equal to the first preset duration, the electronic device may be considered to have prohibited the network searching operation of the first network for a longer time, and at this time, the electronic device may have been registered with the first network through the first SIM card, so that the electronic device may resume executing the network searching operation of the first network in time.
Therefore, the situation that the electronic equipment cannot be registered to the first network through the first SIM card in time under the condition that the first SIM card can be registered to the first network can be avoided.
The embodiment of the application provides a network searching method, which can be used for acquiring first information for indicating a screen state of electronic equipment or a service type of a first SIM card executable service under the condition that registration to a first network through a first SIM card fails, and limiting network searching operation of the first network through the first SIM card under the condition that the screen state is a screen-off state or the service type of the first SIM card executable service is only a voice service type. Because the electronic device can acquire the screen state of the electronic device under the condition that the registration of the first SIM card to the first network fails, and can limit the network searching operation of the first network by the first SIM card under the condition that the screen state is in a screen-off state, namely under the condition that a user does not use the electronic device, the execution times of the network searching operation of the first network by the first SIM card can be reduced while avoiding the situation that the electronic device cannot register to the first network in time when the first SIM card can register to the first network; or, the electronic device may acquire the service type of the service executable by the first SIM card in the case that the registration to the first network by the first SIM card fails, and limit the network searching operation performed by the first SIM card in the case that the service type of the service executable by the first SIM card is only a voice service type, that is, in the case that the user does not need to perform the data service by using the first network by the electronic device, so that the number of times of performing the network searching operation performed by the first SIM card by the first network may be reduced while the user performs the data service by the electronic device is not affected; in this way, the power consumption of the electronic device can be reduced without affecting the use of the first network by the user.
And in addition, the electronic equipment can reduce the execution times of the network searching operation of the first network through the first SIM card, so that the radio frequency resources occupied by the network searching operation can be reduced, and the radio frequency resources of the electronic equipment can be saved.
In some embodiments of the present application, after the electronic device obtains the first information, a situation may also occur that the first information does not meet the first preset condition, where the electronic device may determine, according to a use situation of the electronic device by a user, whether to limit the execution times of executing the network search operation of the first network through the first SIM card. Optionally, the first information is used to indicate a screen state. Illustratively, in conjunction with fig. 1, as shown in fig. 9, after the above step 101, the network searching method provided by the embodiment of the present application may further include the following step 501.
In step 501, in the case that the screen state is the bright screen state, the electronic device executes the network searching operation of the first network according to the second time interval through the first SIM card.
It will be appreciated that step 102 described above may be replaced with step 501.
In the embodiment of the present application, the second time interval is: a default time interval for performing the network search operation.
In the embodiment of the application, if the screen state is the bright screen state, the user can be considered to be using the electronic device, that is, the situation that the user needs to use the first network through the first SIM card exists, so that the electronic device can execute the network searching operation of the first network at intervals of default time intervals so as to avoid influencing the use of the first network through the first SIM card by the user.
Therefore, the electronic device can execute the network searching operation of the first network according to the default time interval under the condition that the user needs to use the first network through the first SIM card, so that the situation that the user cannot use the first network in time is avoided.
In some embodiments of the present application, the electronic device may further obtain the target history registration information, where the target history registration information includes information of each network in which the electronic device successfully performs the network registration operation through the first SIM card, so that the electronic device may directly limit the network search operation performed through the first SIM card when the first network is not included in each network.
It will be appreciated that in this example, the first information described above may be target history registration information, which indicates respective networks for which the electronic device successfully performs the network registration operation. The first preset condition may be that the first network is not included in the respective networks.
In the embodiment of the present application, if the first network is not included in each network, the electronic device may be considered to be successfully registered with the first network from the first SIM card, that is, the first SIM card may not support registration with the first network, that is, the first SIM card may be a special card only supporting registration with a certain network, so the electronic device may directly limit the network searching operation performed on the first network by using the first SIM card, so as to reduce the execution times of the network searching operation performed on the first network.
In some embodiments of the present application, a situation may also occur that the first SIM card cannot register to another network due to some situations described above, and at this time, the electronic device may determine, according to the number of failures of registering to the other network through the first SIM card, whether to prohibit the execution of the network registration operation of the second network through the first SIM card for a period of time, so as to reduce power consumption of the electronic device. Illustratively, in conjunction with fig. 1, as shown in fig. 10, the network searching method provided by the embodiment of the present application may further include the following steps 601 and 602.
Step 601, under the condition that the electronic equipment fails to register to the second network through the first SIM card, the electronic equipment acquires the first time number.
It should be noted that, the execution sequence of the above step 601 and step 101 is not limited herein. In one possible example, the electronic device may perform step 601 first and then perform step 101; in another possible example, the electronic device may perform step 101 first and then step 601; in yet another possible example, the electronic device may perform step 101 at the same time as performing step 601. In fig. 10, the electronic device performs step 601 first, and then performs step 101.
In some embodiments of the present application, the second network may be any one of the following: CDMA network, LTE network, NR network. The first SIM card may include a second network in the network supporting registration.
In some embodiments of the present application, in the case where the electronic device turns on the "abnormal card or special card optimization" function, the electronic device may determine whether it can register to the second network through the first SIM card, so that the electronic device may acquire the first number in the case where it is determined that the registration to the second network through the first SIM card fails.
In the embodiment of the present application, the first number of times is: the electronic device registers the failure times of the second network through the first SIM card.
In some embodiments of the present application, the electronic device further includes a first counter, and in case that the electronic device fails to register with the second network through the first SIM card, the electronic device may control the count value of the first counter to increase by a target value, so that in case that the electronic device fails to register with the second network through the first SIM card, the electronic device reads the count value of the first counter, and calculates the first number of times according to the count value.
Alternatively, in the embodiment of the present application, the target value may be specifically 1. In this way, in the event that the electronic device fails to register with the second network through the first SIM card, the electronic device may directly determine the count value of the first counter as the first number of times.
Step 602, the electronic device prohibits the execution of the network registration operation of the second network by the first SIM card within a second preset duration when the first number is greater than or equal to the preset number.
In the embodiment of the application, if the first time number is greater than or equal to the preset times, the number of times that the electronic device fails to execute the network registration operation of the second network can be considered to be more, and the first SIM card may still fail to register to the second network, so that the electronic device can prohibit the electronic device from executing the network registration operation of the second network through the first SIM card within the second preset time length.
In some embodiments of the present application, when the electronic device prohibits the network registration operation of the second network through the first SIM card, the electronic device may start a third timer, where the time duration of the third timer is a second preset time duration, so that the electronic device may prohibit the network registration operation of the second network from being performed if the third timer does not timeout.
In some embodiments of the present application, the electronic device may resume the network registration operation of the second network through the first SIM card in case that the above-mentioned third timer expires.
As can be seen from this, the electronic device may acquire the number of failures of the electronic device to register with the second network, that is, the first number of failures, when the electronic device fails to register with the second network through the first SIM card, and prohibit the execution of the network registration operation of the second network in the second preset duration when the first SIM card is still unable to register with the second network, that is, when the first SIM card is still unable to register with the second network, so as to reduce the number of times of executing the network registration operation of the second network when the electronic device fails to register with the second network.
According to the network searching method provided by the embodiment of the application, the execution subject can be a network searching device. In the embodiment of the application, a network searching device is taken as an example to execute a network searching method.
Fig. 11 shows a schematic diagram of a possible configuration of a network searching apparatus according to an embodiment of the present application. As shown in fig. 11, the network searching apparatus 50 provided in the embodiment of the present application may include: an acquisition module 51 and a processing module 52.
The acquiring module 51 is configured to acquire first information in case of failure in registration with the first network via the first SIM card; the first information is used to indicate any one of: screen state of the network searching apparatus 50, service type of the first SIM card executable service. The processing module 52 is configured to limit, if the first information acquired by the acquiring module 51 meets a first preset condition, a network searching operation performed on the first network by the first SIM card. Wherein the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
The embodiment of the application provides a network searching device, which can acquire the screen state of the network searching device under the condition that the network searching device fails to register to a first network through a first SIM card, and can limit the network searching operation of executing the first network through the first SIM card under the condition that the screen state is in a screen-off state, namely under the condition that a user does not use the network searching device, so that the network searching device can reduce the execution times of executing the network searching operation of the first network through the first SIM card while avoiding the situation that the network searching device cannot register to the first network in time when the first SIM card can register to the first network; or, the network searching device may acquire the service type of the first SIM card executable service in the case of failure in registration to the first network through the first SIM card, and may limit the network searching operation performed through the first SIM card in the case that the service type of the first SIM card executable service is only a voice service type, that is, in the case that the user does not need to use the first network to perform the data service through the network searching device, so it is possible to reduce the number of times of performing the network searching operation performed through the first SIM card while not affecting the user to perform the data service through the network searching device; in this way, the power consumption of the network searching apparatus can be reduced without affecting the use of the first network by the user.
In one possible implementation manner, the processing module 52 is specifically configured to perform, by using the first SIM card, a network searching operation of the first network at a first time interval; or, the network searching operation of the first network is prohibited from being performed through the first SIM card. Wherein, the first time interval is greater than the second time interval, and the second time interval is: a default time interval for performing the network search operation.
In one possible implementation, the screen state is a screen off state. The processing module 52 is further configured to, after performing, by the first SIM card, a network search operation of the first network at a first time interval, and if it is detected that the screen state is updated to the on-screen state at a first time and the first time is located in the first time period, perform, by the first SIM card, the network search operation of the first network at an end time of the first time period; or under the condition that the screen state is detected to be updated to be in the bright screen state at the first moment and the first moment is located outside the first time period, executing the network searching operation of the first network at the first moment through the first SIM card. Wherein, the first time period is: a time period lasting a first time period from performing a network search operation of the first network, the first time period being a time period of the second time interval.
In one possible implementation, the screen state is a screen off state. The processing module 52 is further configured to perform, after performing, by the first SIM card, a network search operation of the first network at a first time interval, and in the case where it is detected that the screen state is still in the off-screen state after the second time period, perform, by the first SIM card, the network search operation of the first network at a third time interval. Wherein, the second time period is as follows: a time period lasting a second time period from execution of the network search operation of the first network, the second time period being a time period of the first time interval; the third time interval is greater than the first time interval.
In a possible implementation manner, the processing module 52 is further configured to perform, after prohibiting the performing of the network searching operation of the first network by the first SIM card, the network searching operation of the first network by the first SIM card if the second preset condition is met. Wherein the second preset condition includes any one of the following: the web search device 50 generates a preset event including any one of the following: restarting, starting a flight mode, closing the flight mode, taking out the SIM card, and inserting the SIM card; the network searching device 50 generates a preset event and successfully registers to the first network through the first SIM card; the service type of the executable service of the first SIM card is changed into a data service type and a voice service type; the network searching device 50 generates a preset event and successfully executes voice service through the first SIM card; the duration of the network search operation of the first network through the first SIM card is prohibited from being performed for greater than or equal to a first preset duration.
In one possible implementation, the first information is used to indicate a screen state. The processing module 52 is further configured to execute, by means of the first SIM card, a network search operation of the first network at a second time interval when the screen state is the bright screen state after the first information is acquired by the acquiring module 51. Wherein, the second time interval is: a default time interval for performing the network search operation.
In a possible implementation manner, the obtaining module 51 is further configured to obtain the first number of times in case of failure in registering to the second network through the first SIM card; the first time is as follows: the network searching means 50 registers the number of failures of the second network through the first SIM card. The processing module 52 is further configured to prohibit, in a second preset duration, the execution of the network registration operation of the second network by the first SIM card if the first number of times acquired by the acquiring module 51 is greater than or equal to the preset number of times.
The network searching device in the embodiment of the application can be electronic equipment or a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile internet device (mobile internet device, MID), an Augmented Reality (AR)/Virtual Reality (VR) device, a robot, a wearable device, a super mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), or the like, and may also be a server, a network attached storage (network attached storage, NAS), a personal computer (personal computer, PC), a Television (TV), an teller machine, a self-service machine, or the like, which is not particularly limited in the embodiments of the present application.
The network searching device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The network searching device provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 10, and in order to avoid repetition, a description is omitted here.
In some embodiments of the present application, as shown in fig. 12, an electronic device 60 is further provided in the embodiments of the present application, which includes a processor 61 and a memory 62, where a program or an instruction that can be executed on the processor 61 is stored in the memory 62, and when the program or the instruction is executed by the processor 61, the program or the instruction implements each process step of the above-mentioned network searching method embodiment, and the same technical effect can be achieved, so that repetition is avoided and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 13 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 13 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to obtain first information when registration to the first network through the first SIM card fails; the first information is used to indicate any one of: the screen state of the electronic equipment and the service type of the executable service of the first SIM card; and limiting the network searching operation of the first network executed by the first SIM card under the condition that the first information meets the first preset condition.
Wherein the first preset condition includes any one of the following: the screen state is a screen off state, and the service type of the executable service of the first SIM card is only a voice service type.
The embodiment of the application provides an electronic device, which can acquire the screen state of the electronic device under the condition that the electronic device fails to register to a first network through a first SIM card, and can limit the network searching operation of the first network through the first SIM card under the condition that the screen state is in a screen-off state, namely under the condition that a user does not use the electronic device, so that the execution times of the network searching operation of the first network through the first SIM card can be reduced while avoiding the situation that the electronic device cannot register to the first network in time when the first SIM card can register to the first network; or, the electronic device may acquire the service type of the service executable by the first SIM card in the case that the registration to the first network by the first SIM card fails, and limit the network searching operation performed by the first SIM card in the case that the service type of the service executable by the first SIM card is only a voice service type, that is, in the case that the user does not need to perform the data service by using the first network by the electronic device, so that the number of times of performing the network searching operation performed by the first SIM card by the first network may be reduced while the user performs the data service by the electronic device is not affected; in this way, the power consumption of the electronic device can be reduced without affecting the use of the first network by the user.
In some embodiments of the present application, the processor 110 is specifically configured to perform, through the first SIM card, a network search operation of the first network at a first time interval; or, the network searching operation of the first network is prohibited from being performed through the first SIM card.
Wherein, the first time interval is greater than the second time interval, and the second time interval is: a default time interval for performing the network search operation.
In some embodiments of the present application, the screen state is a screen off state.
The processor 110 is further configured to, after performing, by the first SIM card, a network search operation of the first network at a first time interval, and if it is detected that the screen state is updated to the bright screen state at a first time and the first time is located within the first time period, perform, by the first SIM card, the network search operation of the first network at an end time of the first time period; or the network searching operation of the first network is executed at the first moment through the first SIM card under the condition that the screen state is detected to be updated to the bright screen state at the first moment and the first moment is located outside the first time period.
Wherein, the first time period is: a time period lasting a first time period from performing a network search operation of the first network, the first time period being a time period of the second time interval.
In some embodiments of the present application, the screen state is a screen off state.
The processor 110 is further configured to perform, after performing, by the first SIM card, a network search operation of the first network at a first time interval, and in the case where it is detected that the screen state is still in the off-screen state after the second time period, perform, by the first SIM card, the network search operation of the first network at a third time interval.
Wherein, the second time period is as follows: a time period lasting a second time period from execution of the network search operation of the first network, the second time period being a time period of the first time interval; the third time interval is greater than the first time interval.
In some embodiments of the present application, the processor 110 is further configured to perform a network searching operation of the first network through the first SIM card if the second preset condition is satisfied after the network searching operation of the first network through the first SIM card is prohibited.
Wherein the second preset condition includes any one of the following: the electronic equipment generates a preset event, and the preset event comprises any one of the following: restarting, starting a flight mode, closing the flight mode, taking out the SIM card, and inserting the SIM card; the electronic equipment generates a preset event and is successfully registered to a first network through a first SIM card; the service type of the executable service of the first SIM card is changed into a data service type and a voice service type; the electronic equipment generates a preset event and successfully executes voice service through the first SIM card; the duration of the network search operation of the first network through the first SIM card is prohibited from being performed for greater than or equal to a first preset duration.
In some embodiments of the application, the first information is used to indicate a screen status.
The processor 110 is further configured to perform, after the first information is acquired, a network search operation of the first network at a second time interval through the first SIM card in a case where the screen state is a bright screen state.
Wherein, the second time interval is: a default time interval for performing the network search operation.
In some embodiments of the present application, the processor 110 is further configured to obtain a first number of times in case of a failure to register with the second network via the first SIM card; the first time is as follows: the electronic equipment registers the failure times of the second network through the first SIM card; and prohibiting the network registration operation of the second network by the first SIM card from being executed within a second preset duration when the first number is greater than or equal to the preset number.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (graphics processing unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (ddr SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (synchronous linkDRAM, SLDRAM), and direct memory bus RAM (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above network searching method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the network searching method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the network searching method embodiment described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310941476.4A CN116801362A (en) | 2023-07-28 | 2023-07-28 | Network search method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310941476.4A CN116801362A (en) | 2023-07-28 | 2023-07-28 | Network search method, device, electronic equipment and readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116801362A true CN116801362A (en) | 2023-09-22 |
Family
ID=88036514
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310941476.4A Pending CN116801362A (en) | 2023-07-28 | 2023-07-28 | Network search method, device, electronic equipment and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116801362A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118474831A (en) * | 2024-05-29 | 2024-08-09 | 荣耀终端有限公司 | Network searching method and related equipment |
-
2023
- 2023-07-28 CN CN202310941476.4A patent/CN116801362A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118474831A (en) * | 2024-05-29 | 2024-08-09 | 荣耀终端有限公司 | Network searching method and related equipment |
| CN118474831B (en) * | 2024-05-29 | 2025-10-24 | 荣耀终端股份有限公司 | Network search method and related equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3211527A1 (en) | Multi-screen sharing based application management method and device, and storage medium | |
| US20150215524A1 (en) | Method and apparatus for varying focal length of camera device, and camera device | |
| US9280663B2 (en) | Apparatus and method for analyzing malware in data analysis system | |
| US20240381288A1 (en) | Disaster roaming control method and apparatus, terminal, and network side device | |
| WO2025044989A1 (en) | Network registration method and apparatus, electronic device, and storage medium | |
| US9727351B2 (en) | Method and device for setting status of application | |
| CN116801362A (en) | Network search method, device, electronic equipment and readable storage medium | |
| CN112738865B (en) | Service processing method and device and electronic equipment | |
| EP4550896A1 (en) | Communication processing method and apparatus, and terminal and readable storage medium | |
| US12200615B2 (en) | Network information processing method and terminal device | |
| WO2024078383A1 (en) | Network-searching frequency determination method, network-searching frequency determination apparatus and electronic device | |
| CN112199149A (en) | Interface rendering method and device and electronic equipment | |
| CN109314902B (en) | Access control method, device and storage medium | |
| CN109429302B (en) | Recovery method and device after off-line of multi-card terminal | |
| US20240397304A1 (en) | Dialing method and apparatus, and electronic device | |
| CN116456389A (en) | Resource control method, device, terminal, network equipment and readable storage medium | |
| CN112703755A (en) | Pseudo base station processing method, pseudo base station processing device, mobile terminal and storage medium | |
| CN115002877B (en) | Network search method and device | |
| US20230345340A1 (en) | Network-changing method and apparatus, and terminal | |
| CN118660343A (en) | SIM card control method, device, terminal and storage medium | |
| CN113676969B (en) | Cell reselection method, device, terminal and readable storage medium | |
| CN113709837B (en) | Information processing method, device and electronic device | |
| CN114698058B (en) | Network access method, device and terminal | |
| CN115209491B (en) | Information processing method, device, terminal and network side equipment | |
| CN114040461B (en) | Call method and device |
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 |