Network searching method and device of electronic equipment, electronic equipment and storage medium
By decreased the registration network system of the SIM card in the electronic device and the search network after restoring the network in another SIM card, the problem of unbalanced SIM cards when recovering the network was solved, and the user experience was improved.
Patent Information
- Application Number
- CN202310934532.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
When an electronic device returns from an environment with weak network signals or no network to an environment with strong signal, one SIM card returns to a higher registered network standard, while the other SIM card cannot recover for a long time.
Provide a network method for electronic devices. When the registered network system of two SIM cards is detected, the registration network system of a SIM card is restored to a higher registered network system. Status, search for the net to restore it to a higher registered network system.
Avoid the imbalance of SIM cards when restoring the network, improve the user experience, so that the two SIM cards can quickly recover to a higher registered network system.
Smart Images

Figure CN119383696A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a network search method and device for an electronic device, an electronic device, and a storage medium. Background Art
[0002] In order to meet the usage needs of users, many electronic devices can be installed with two SIM (Subscriber Identity Module) cards. When using electronic devices in daily life, it is often the case that the user returns to an environment with a strong network signal from an environment with a weak network signal or no network, such as returning to the ground from an underground garage or walking out of an elevator. In this case, one SIM card often recovers to a higher registered network standard, while the other SIM card cannot recover to a higher registered network standard for a long time. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a network search method and device for an electronic device, an electronic device and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a network search method of an electronic device is provided, the method comprising:
[0005] It is detected that the registered network standards of two SIM cards of the electronic device are downgraded;
[0006] When the registered network standard of the first SIM card is restored to the first registered network standard, the second SIM card is searched for a network based on the current network registration state of the second SIM card, and the first registered network standard is higher than the first preset network standard.
[0007] In some embodiments, the detecting that the registered network standards of two SIM cards of the electronic device are lowered includes:
[0008] It is detected that the registered network standard of any one of the two SIM cards is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the other one of the two SIM cards is downgraded.
[0009] In some embodiments, when the registered network standard of the first SIM card is restored to the first registered network standard, searching the network for the second SIM card based on the current network registration state of the second SIM card includes:
[0010] When the registered network standard of the first SIM card is restored to the first registered network standard, detecting the signal strength of the cell registered by the first SIM card;
[0011] When the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration state of the second SIM card.
[0012] In some embodiments, searching the network for the second SIM card based on the current network registration status of the second SIM card includes:
[0013] Within a second preset time period after determining that the signal strength is higher than the preset signal strength, if the second SIM card has not been restored to the second registered network standard, based on the current network registration status of the second SIM card, searching the network for the second SIM card, the second registered network standard is higher than the second preset network standard.
[0014] In some embodiments, searching the network for the second SIM card based on the current network registration status of the second SIM card includes:
[0015] The second SIM card is in the unregistered network state, the first period is set to a first duration, and the second SIM card is searched for a network once every the first duration.
[0016] In some embodiments, searching the network for the second SIM card based on the current network registration status of the second SIM card includes:
[0017] The second SIM card is in the registered network state and the current registered network standard is lower than the second registered network standard, and the frequency point of historical registration saved by the electronic device is searched, and the second registered network standard is higher than the second preset network standard.
[0018] In some embodiments, searching for the frequency points of historical registrations stored by the electronic device includes:
[0019] The highest network standard of the second SIM card is the first network standard, and the first type of frequency point of historical registration stored in the electronic device is searched.
[0020] In some embodiments, searching for the frequency points of historical registrations stored by the electronic device includes:
[0021] The highest network standard of the second SIM card is the second network standard, and the second type of frequency points historically registered and stored in the electronic device are searched. If no registrable second type of frequency points are found, the first type of frequency points historically registered and stored in the electronic device are searched.
[0022] In some embodiments, the method further comprises:
[0023] When the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second period is set to a second duration, and the second SIM card is searched for a network once every the second duration.
[0024] In some embodiments, the method further comprises:
[0025] Restore the set period to the default value.
[0026] In some embodiments, before detecting that the registered network standards of the two SIM cards of the electronic device are lowered, the method further includes:
[0027] The network registration information of the first SIM card and the second SIM card is obtained, where the network registration information includes the highest network standard when each SIM card is a primary data card and the highest network standard when each SIM card is a secondary data card.
[0028] According to a second aspect of an embodiment of the present disclosure, a network search device for an electronic device is provided, the device comprising:
[0029] A network standard reduction module is configured to detect that the registered network standards of two SIM cards of the electronic device are reduced;
[0030] The network search module is configured to search the network of the second SIM card based on the current network registration state of the second SIM card when the registered network standard of the first SIM card is restored to the first registered network standard, and the first registered network standard is higher than the first preset network standard.
[0031] In some embodiments, the network standard reduction module is configured to:
[0032] It is detected that the registered network standard of any one of the two SIM cards is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the other one of the two SIM cards is downgraded.
[0033] In some embodiments, the network search module is configured to:
[0034] When the registered network standard of the first SIM card is restored to the first registered network standard, detecting the signal strength of the cell registered by the first SIM card;
[0035] When the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration state of the second SIM card.
[0036] In some embodiments, the network search module is configured to:
[0037] Within a second preset time period after determining that the signal strength is higher than the preset signal strength, if the second SIM card has not been restored to the second registered network standard, based on the current network registration status of the second SIM card, searching the network for the second SIM card, the second registered network standard is higher than the second preset network standard.
[0038] In some embodiments, the network search module is configured to:
[0039] The second SIM card is in the unregistered network state, the first period is set to a first duration, and the second SIM card is searched for a network once every the first duration.
[0040] In some embodiments, the network search module is configured to:
[0041] The second SIM card is in the registered network state and the current registered network standard is lower than the second registered network standard, and the frequency point of historical registration saved by the electronic device is searched, and the second registered network standard is higher than the second preset network standard.
[0042] In some embodiments, the network search module is configured to:
[0043] The highest network standard of the second SIM card is the first network standard, and the first type of frequency point of historical registration stored in the electronic device is searched.
[0044] In some embodiments, the network search module is configured to:
[0045] The highest network standard of the second SIM card is the second network standard, and the second type of frequency points historically registered and stored in the electronic device are searched. If no registrable second type of frequency points are found, the first type of frequency points historically registered and stored in the electronic device are searched.
[0046] In some embodiments, the network search module is further configured to:
[0047] When the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second period is set to a second duration, and the second SIM card is searched for a network once every the second duration.
[0048] In some embodiments, the apparatus further comprises:
[0049] The cycle recovery module is configured to restore the set cycle to the default value.
[0050] In some embodiments, the apparatus further comprises:
[0051] The information acquisition module is configured to acquire network registration information of the first SIM card and the second SIM card, wherein the network registration information includes the highest network standard when each SIM card is a primary data card and the highest network standard when each SIM card is a secondary data card.
[0052] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0053] processor;
[0054] a memory for storing processor-executable instructions;
[0055] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure.
[0056] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure.
[0057] The above method of the present disclosure has the following beneficial effects:
[0058] The method provided by the embodiment of the present disclosure detects that the registered network standards of two SIM cards of an electronic device have been lowered. When the registered network standard of any one of the SIM cards is restored to a higher first registered network standard, the other SIM card is searched for a network based on the current network registration state of the other SIM card, so that the other SIM card is restored to the higher registered network standard, thereby avoiding the problem that one SIM card is restored to the higher registered network standard while the other SIM card cannot be restored to the higher registered network standard for a long time, thereby improving the user experience.
[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0061] Figure 1 is a flow chart of a network searching method of an electronic device according to an exemplary embodiment;
[0062] Figure 2 is a flow chart of another network searching method of an electronic device according to an exemplary embodiment;
[0063] Figure 3is a flow chart of another network searching method of an electronic device according to an exemplary embodiment;
[0064] Figure 4 is a flow chart of another network searching method of an electronic device according to an exemplary embodiment;
[0065] Figure 5 is a flow chart of another network searching method of an electronic device according to an exemplary embodiment;
[0066] Figure 6 is a block diagram of a network search device of an electronic device according to an exemplary embodiment;
[0067] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0068] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0069] When an electronic device with two SIM cards is installed, when returning from an environment with weak network signals or no network to an environment with strong network signals, one SIM card may be restored to a higher registered network standard, while the other SIM card cannot be restored to a higher registered network standard for a long time. In response to this problem, an embodiment of the present disclosure provides a network search method, in which, when the registered network standard of one SIM card is restored to a higher registered network standard, the other SIM card is searched for network based on the current network registration status of the other SIM card, so that the other SIM card is restored to a higher registered network standard, thereby avoiding the problem that one SIM card is restored to a higher registered network standard, while the other SIM card cannot be restored to a higher registered network standard for a long time, thereby improving the user experience.
[0070] Figure 1 is a flowchart of a network search method of an electronic device according to an exemplary embodiment, which is executed by the electronic device, see Figure 1 , the method comprises the following steps:
[0071] Step S101: It is detected that the registered network standards of two SIM cards of the electronic device are downgraded.
[0072] Among them, two SIM cards are installed in the electronic device, and the registered network standard of the SIM card refers to the RAT (radio access technology) registered by the SIM card, and the registered network standard can be 5G, 4G, 3G, etc. The registered network standard of the SIM card is reduced, which means that the registered network standard of the SIM card is reduced from the registered high RAT network to the RAT network, for example, the RAT registered by the SIM card is reduced from 5G to 4G, or the RAT registered by the SIM card is reduced from 4G to 3G, etc.
[0073] In the disclosed embodiment, the electronic device monitors the registered network standard of the SIM card in real time, and determines whether the monitored registered network standard is the highest network standard of the SIM card. If the monitored registered network standard is not the highest network standard of the SIM card, it is determined that the registered network standard of the SIM card is lowered.
[0074] Step S102, when the registered network standard of the first SIM card is restored to the first registered network standard, based on the current network registration state of the second SIM card, searching the network for the second SIM card, the first registered network standard is higher than the first preset network standard.
[0075] The first SIM card is any one of the two SIM cards, and the second SIM card is a SIM card different from the first SIM card of the two SIM cards, for example, the first SIM card is a data primary card, and the second SIM card is a data secondary card, or the first SIM card is a data secondary card, and the second SIM card is a data primary card. The highest network standard when the first SIM card is a data primary card and the highest network standard when the first SIM card is a data secondary card can be the same or different, and the highest network standard when the second SIM card is a data primary card and the highest network standard when the second SIM card is a data secondary card can be the same or different, that is, the highest network standard when the SIM card is a data primary card and the highest network standard when the SIM card is a data secondary card can be the same or different.
[0076] The first registered network standard is higher than the first preset network standard, which is a pre-set network standard. The first preset network standard is lower than the highest network standard of the first SIM card. For example, the highest network standard of the first SIM card is 5G, then the first preset network standard can be 3G, 2G or other lower network standards.
[0077] Optionally, the first preset network standard includes a preset network standard corresponding to the data main card and a preset network standard corresponding to the data secondary card. When the first SIM card is the data main card, the first registered network standard is higher than the preset network standard corresponding to the data main card. When the first SIM card is the data secondary card, the first registered network standard is higher than the preset network standard corresponding to the data secondary card. The preset network standard corresponding to the data main card and the preset network standard corresponding to the data secondary card may be the same or different.
[0078] The network registration status includes a registered network status and an unregistered network status. The registered network status refers to a registered RAT. The registered RAT may be the highest network standard of the second SIM card or other registered network standards lower than the highest network standard. The unregistered network status refers to an unregistered RAT. For example, the unregistered network status is an OOS (Out Of Service) state.
[0079] When the registered network standard of the first SIM card is restored to the first registered network standard, in order to restore the second SIM card to a higher registered network standard as soon as possible, the second SIM card is searched for network based on the current network registration status of the second SIM card. The network registration status of the second SIM card is different, and the network search method for the second SIM card is also different, that is, based on the current network registration status of the second SIM card, the network search method corresponding to the network registration status is used to search for the second SIM card. Figure 2-Figure 5 The illustrated embodiment describes the network search process of the second SIM card in detail, which will not be repeated here.
[0080] The method provided by the embodiment of the present disclosure detects that the registered network standards of two SIM cards of an electronic device have been lowered. When the registered network standard of any one of the SIM cards is restored to a higher first registered network standard, the other SIM card is searched for a network based on the current network registration state of the other SIM card, so that the other SIM card is restored to the higher registered network standard, thereby avoiding the problem that one SIM card is restored to the higher registered network standard while the other SIM card cannot be restored to the higher registered network standard for a long time, thereby improving the user experience.
[0081] In some embodiments, step S101 includes any one of the following situations:
[0082] The first case: it is detected that the registered network standard of the first SIM card is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the second SIM card is downgraded.
[0083] The second situation: it is detected that the registered network standard of the second SIM card is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the first SIM card is downgraded.
[0084] That is, it is detected that the registered network standard of any one of the two SIM cards is lowered, and within a first preset time period after the lowering is detected, it is detected that the registered network standard of the other one of the two SIM cards is lowered.
[0085] The first preset duration is a preset duration, for example, the first preset duration is 5 seconds. Within the first preset duration after the registered network standard of the first SIM card is reduced, the registered network standard of the second SIM card is also reduced, or within the first preset duration after the registered network standard of the second SIM card is reduced, the registered network standard of the first SIM card is also reduced, indicating that the two SIM cards currently have the problem of reduced registered network standards in a short period of time.
[0086] In some embodiments, a first timer is provided, and the timing duration of the first timer is a first preset duration. After detecting that the registered network standard of the first SIM card is downgraded, the first timer is started, and before the first timer times out, the registered network standard of the second SIM card is detected to be downgraded; or, after detecting that the registered network standard of the second SIM card is downgraded, the first timer is started, and before the first timer times out, the registered network standard of the first SIM card is detected to be downgraded. That is, after detecting that the registered network standard of any SIM card is downgraded, the first timer is started, and before the first timer times out, the registered network standard of the other SIM card is detected to be downgraded.
[0087] It should be noted that there is also a situation where it is detected that the registered network standard of the first SIM card and the registered network standard of the second SIM card are both decreased at the same time.
[0088] Figure 2 is a flow chart of another network search method of an electronic device according to an exemplary embodiment, which is executed by the electronic device, see Figure 2 , the method comprises the following steps:
[0089] Step S201: It is detected that the registered network standards of two SIM cards of the electronic device are downgraded.
[0090] The implementation of step S201 refers to the implementation of step S101 and will not be described in detail here.
[0091] Step S202: when the registered network standard of the first SIM card is restored to the first registered network standard, detecting the signal strength of the cell registered by the first SIM card.
[0092] In the embodiment of the present disclosure, when the registered network standard of the first SIM card is restored to the first registered network standard, the signal strength of the cell registered by the first SIM card is detected. If the signal strength is high, it means that the signal quality in the current environment has been improved and the signal quality has changed significantly. At this time, if the second SIM card is searched for a network, it is likely that the second SIM card can search for a registrable RAT. If the signal strength is weak, it means that the signal quality in the current environment is still poor. At this time, if the second SIM card is searched for a network, it is difficult to search for a registrable RAT for the second SIM card.
[0093] In some embodiments, the RSRP (Reference Signal Receiving Power) of the cell registered with the first SIM card is detected, and the RSRP is used to represent the signal strength.
[0094] After detecting the signal strength of the cell registered with the first SIM card, determine whether the signal strength is higher than the preset signal strength, and if the signal strength is higher than the preset signal strength, execute step S203, and if the signal strength is not higher than the preset signal strength, continue to detect the signal strength of the cell registered with the first SIM card. The preset signal strength is a preset signal strength, for example, when the signal strength is represented by RSRP, the preset signal strength is -1-5dbm.
[0095] Step S203: When the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration status of the second SIM card.
[0096] When the signal strength is higher than the preset signal strength, it indicates that the signal quality in the current environment has been improved and the signal quality has changed significantly. In this case, the second SIM card is searched for a network based on the current network registration status of the second SIM card.
[0097] In some embodiments, if the second SIM card does not recover to the second registered network standard within the second preset time after determining that the signal strength is higher than the preset signal strength, the second SIM card is searched for network based on the current network registration status of the second SIM card. That is to say, within the second preset time after determining that the signal strength is higher than the preset signal strength, the second SIM card is allowed to recover the network automatically. If the second SIM card does not recover to the second registered network standard within the second preset time, it means that the second SIM card cannot recover to the higher registered network standard by itself. At this time, it is necessary to search for network based on the current network registration status of the second SIM card.
[0098] Optionally, when it is determined that the signal strength is higher than the preset signal strength, a second timer is started, and the timing duration of the second timer is a second preset duration. When the second timer times out and the second SIM card has not been restored to the second registered network standard, the second SIM card is searched for the network based on the current network registration status of the second SIM card.
[0099] The second registered network standard is higher than the second preset network standard, the second preset network standard is a pre-set network standard, and the second preset network standard is lower than the highest network standard of the second SIM card. For example, the highest network standard of the second SIM card is 4G, and the second preset network standard is 3G, 3G or other lower network standards. The second preset network standard can be the same as or different from the first preset network standard.
[0100] Optionally, the second preset network standard includes a preset network standard corresponding to the data main card and a preset network standard corresponding to the data secondary card. When the second SIM card is the data main card, the second registered network standard is higher than the preset network standard corresponding to the data main card. When the second SIM card is the data secondary card, the second registered network standard is higher than the preset network standard corresponding to the data secondary card. The preset network standard corresponding to the data main card and the preset network standard corresponding to the data secondary card may be the same or different.
[0101] The method provided by the embodiment of the present disclosure searches the network for the second SIM card based on the current network registration state of the second SIM card when the registered network standard of the first SIM card is restored to a higher first registered network standard and the signal strength of the cell registered by the first SIM card is higher than the preset signal strength, so that the second SIM card searches the network in an environment with good signal quality, thereby restoring the second SIM card to the higher second registered network standard as quickly as possible, avoiding the problem that one SIM card is restored to the higher registered network standard while the other SIM card cannot be restored to the higher registered network standard for a long time, and improving the user experience.
[0102] Figure 3 is a flow chart of another network search method of an electronic device according to an exemplary embodiment, which is executed by the electronic device, see Figure 3 , the method comprises the following steps:
[0103] Step S301: It is detected that the registered network standards of two SIM cards of the electronic device are downgraded.
[0104] The implementation of step S201 refers to the implementation of step S101 and will not be described in detail here.
[0105] Step S302, when the registered network standard of the first SIM card is restored to the first registered network standard and the second SIM card is in an unregistered network state, the first cycle is set to a first duration, and the second SIM card is searched for a network once every the first duration.
[0106] When the second SIM card is in an unregistered network state, the second SIM card is searched for a network by adopting a sleep search mode, wherein the sleep search mode may also be referred to as an OOS search mode, and the sleep search mode refers to a search mode of an electronic device in a sleep mode.
[0107] When using sleep search, as the search time increases, the default search cycle will gradually increase, that is, the first cycle will gradually increase. For example, the interval between the first and second searches is 20 seconds, the interval between the second and third searches is 30 seconds, and the interval between the third and fourth searches is 40 seconds. This search method causes the search speed to gradually slow down.
[0108] In the embodiment of the present disclosure, the first cycle is set to a first duration, and the first period is the duration between two adjacent network searches during sleep network search. The first duration is a preset fixed duration, and then, the second SIM card is searched for a network every first duration. The duration between two adjacent network searches will not increase with the increase in network search time, thereby improving the network search speed of the electronic device in the sleep scenario.
[0109] Step S303, when the registered network standard of the first SIM card is restored to the first registered network standard, the second SIM card is in a registered network state and the current registered network standard is lower than the second registered network standard, searching for the historical registered frequency points saved by the electronic device.
[0110] When the second SIM card is in a registered network state and the current registered network standard is lower than the second registered network standard, it means that a registrable RAT can be searched, but the searched RAT is not a higher registered network standard. In this case, a manual network search can be performed, that is, a registrable RAT can be searched from the historically registered frequency points saved by the electronic device. The historically registered frequency points are the frequency points registered by the first SIM card or the second SIM card of the electronic device.
[0111] In some embodiments, the highest network standard of the second SIM card is the first network standard, and the first type of frequency point of historical registration saved by the electronic device is searched. The first type of frequency point is the frequency point corresponding to the first network standard, for example, the first network standard is LTE (Long Term Evolution), and the first type of frequency point is the LTE frequency point.
[0112] In some embodiments, the highest network standard of the second SIM card is the second network standard, and the second type of frequency points historically registered and saved by the electronic device are searched. If no second type of frequency points that can be registered are searched, the first type of frequency points historically registered and saved by the electronic device are searched. The second type of frequency points are the frequency points corresponding to the second network standard, for example, the second network standard is SA (Standalone, independent network group), and the second type of frequency points are SA frequency points; the second network standard is higher than the first network standard, for example, the second network standard is SA, and the first network standard is LTE.
[0113] After a registrable frequency point is searched, if the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, it means that the second SIM card cannot be restored to a higher registered network standard, and step S304 is executed. If the registered network standard corresponding to the searched frequency point is not lower than the second registered network standard of the second SIM card, it is determined that the second SIM card has been restored to a higher registered network standard, and the network search process for the second SIM card is ended.
[0114] Step S304: when the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second cycle is set to a second duration, and the second SIM card is searched for a network once every second duration.
[0115] When the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second SIM card is searched for a network by using a background search method. The background search method refers to a search method for a higher RAT when the SIM card has a service, that is, a search method for a higher RAT when the SIM card has searched for a registrable network.
[0116] In another embodiment, when no registrable frequency point is found, the second period is set to a second duration, and the second SIM card is searched for a network once every second duration.
[0117] In the embodiment of the present disclosure, the second period is set to a second duration, which is the duration between two adjacent searches during background network search. The second duration is a preset fixed duration, and the second duration is less than the default second period of background network search. For example, if the default second period is 2 minutes, the second duration can be set to 1 minute, that is, the second period is shortened. Then, the second SIM card is searched once every second duration, thereby improving the network search speed of the electronic device during background network search.
[0118] The method provided by the embodiment of the present disclosure can use different network search methods to search for a network according to the different registered network states of the second SIM card, and searching the historically registered frequency points saved by the electronic device can search for a higher network standard more quickly. When using the sleep network search method or the background network search method, the network search cycle can be adjusted to reduce the interval between two adjacent network searches, thereby improving the network search speed.
[0119] Figure 4 is a flow chart of another network search method of an electronic device according to an exemplary embodiment, which is executed by the electronic device, see Figure 4 , the method comprises the following steps:
[0120] Step S401: Acquire network registration information of the first SIM card and the second SIM card.
[0121] The network registration information includes the highest network standard when each SIM card is a primary data card and the highest network standard when each SIM card is a secondary data card.
[0122] Optionally, the network registration information also includes the card slot information of each SIM card, that is, whether the SIM card is a data primary card or a data secondary card. For example, the electronic device is equipped with a first SIM card sim1 and a second SIM card sim2, and the network registration information is expressed as: sim_info{sim1,dds,rat11; sim1,ndds,rat12; sim2,dds,rat21; sim2,ndds,rat22}, wherein (sim1,dds,rat11) indicates that the highest network standard when the first SIM card is a data primary card is rat11, (sim1,ndds,rat12) indicates that the highest network standard when the first SIM card is a data secondary card is rat12, (sim2,dds,rat21) indicates that the highest network standard when the second SIM card is a data primary card is rat21, and (sim2,ndds,rat22) indicates that the highest network standard when the second SIM card is a data secondary card is rat22.
[0123] In some embodiments, the network registration information of the first SIM card and the second SIM card within a previous preset time period is obtained, that is, considering that the card slots of the first SIM card and the second SIM card can be replaced, that is, the SIM card can be changed from a data primary card to a data secondary card, or from a data secondary card to a data primary card, therefore, the network registration information within the preset time period is obtained to avoid the influence of the card slot change of the SIM card within a previous longer time period. For example, the preset time period is 1 day, 12 hours or other time periods.
[0124] In some embodiments, when it is detected that both SIM cards of the electronic device are registered with SA or LTE, step S401 is executed.
[0125] Step S402: It is detected that the registered network standard of any SIM card is downgraded, a first timer is started, and before the first timer times out, it is detected that the registered network standard of another SIM card is downgraded, and a flag is set to a first value.
[0126] Among them, the flag bit is a Boolean value, and the first value is 1.
[0127] The implementation of step S402 refers to the implementation of step S101 and will not be described in detail here.
[0128] Step S403: Detect the network registration status of two SIM cards.
[0129] After detecting that the registered network standards of the two SIM cards are lowered, the network registration status of the two SIM cards is detected. When it is detected that the registered network status of the first SIM card is restored to the first registered network standard, step S404 is executed; otherwise, the network registration status of the two SIM cards continues to be detected.
[0130] Step S404: when the registered network standard of the first SIM card is restored to the first registered network standard, the signal strength of the cell registered by the first SIM card is detected.
[0131] The implementation of step S404 refers to the implementation of step S202 and will not be described in detail here.
[0132] Step S405: when the signal strength is higher than the preset signal strength and the flag bit is a first value, start a second timer.
[0133] The flag bit being the first value indicates that the second SIM card also lowers the registered network standard. When the signal strength is higher than the preset signal strength and the flag bit is the first value, the second timer is started so that the second SIM card can restore the network automatically within the timing of the second timer. Before the second timer times out, if the second SIM card restores to a higher network standard, step S411 is directly executed; if the second SIM card does not restore to a higher registered network standard, step S405 is executed.
[0134] Step S406: after the second timer times out and the second SIM card is in an unregistered network state, start a third timer, set the first period to a first duration, and perform a network search on the second SIM card every first duration.
[0135] The timing duration of the third timer is a third preset duration, which is a preset duration, for example, the third preset duration is 3 seconds, 4 seconds or other durations. After the third timer is started, before the third timer times out, the second SIM card is searched for a network every first duration, and when the third timer times out, or when the second registered network standard is searched before the third timer times out, step S407 is executed.
[0136] Step S407: When the third timer times out, or when the second registered network standard is found, the first period is restored to a default value.
[0137] The first cycle is set to the first duration set during the current network search process. In order not to affect the subsequent network search process, when the third timer times out or the second registered network standard is searched, the first cycle is restored to the default value. The default value is the default network search cycle during sleep network search.
[0138] Step S408: after the second timer times out, if the second SIM card is in a registered network state and the current registered network standard is lower than the second registered network standard, search for the historical registered frequency points saved by the electronic device.
[0139] The implementation of step S408 refers to the implementation of the above step S303 and will not be described in detail here.
[0140] Step S409: when the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, start the fourth timer, set the second period to the second duration, and perform a network search on the second SIM card every second duration.
[0141] The timing duration of the fourth timer is a fourth preset duration, which is a preset duration, for example, the fourth preset duration is 5 minutes, 6 minutes or other durations. After the fourth timer is started, before the fourth timer times out, the second SIM card is searched for a network once every second duration, and when the fourth timer times out, or when the second registered network standard is searched before the fourth timer times out, step S410 is executed.
[0142] Step S410: When the fourth timer times out, or when the second registered network standard is found, the second period is restored to a default value.
[0143] The second period is set to the second duration set during the current network search process. In order not to affect the subsequent network search process, when the fourth timer times out or the second registered network standard is searched, the second period is restored to the default value. The default value is the default network search period during background network search.
[0144] Step S411, deleting the network registration information and setting the flag bit to a second value.
[0145] After the network search is completed, the network registration information is deleted and the flag is set to a second value, which is 0. That is, the information set during the network search is restored to the default or deleted so as not to affect the subsequent network search process.
[0146] The method provided in the embodiment of the present disclosure adaptively adjusts the network search strategy of the second SIM card according to the real-time situation during the network search process, so that when the electronic device returns from an environment with weak network signals or no network to an environment with strong network signals, the two SIM cards of the electronic device can quickly restore to a higher registered network standard, thereby improving the user experience.
[0147] Figure 5 is a flow chart of another network search method of an electronic device according to an exemplary embodiment, which is executed by the electronic device, see Figure 5 , the method comprises the following steps:
[0148] 1. Both SIM cards of the electronic device are registered to SA or LTE.
[0149] 2. Get the network registration information sim_info{sim1,dds,rat11; sim1,ndds,rat12; sim2,dds,rat21; sim2,ndds,rat22} of the two SIM cards within the preset time.
[0150] 3. When it is detected that the RAT registered by SIM1 of the two SIM cards is downgraded from rat11 or rat12 to LTE, 3G, 2G or OOS, and the RAT registered by SIM2 is also downgraded from rat21 or rat22 to LTE, 3G, 2G or OOS within the duration t1, the flag f=1 is set.
[0151] 4. Monitor the network registration status of the two SIM cards. If it is detected that SIM1 is a DDS card and the restored registration network standard is rat11, execute step 5. Otherwise, continue to step 4.
[0152] 5. Check whether the signal strength rat_rsrp of the cell registered by SIM1 is better than the preset signal strength T_rsrp. If yes, proceed to step 6, otherwise continue to step 5;
[0153] 6. Determine whether the flag bit f is 1. If so, execute step 7, otherwise end the process;
[0154] 7. Start timer t2. When timer t2 times out, execute step 8 or 9. When timer t2 does not time out and the registered network standard of SIM2 is restored to rat22, execute step 11.
[0155] 8. When timer t2 times out and SIM2 is in the OOS state, start timer t3 and set the OOS network search interval of SIM2 to the first duration.
[0156] 9. When timer t2 times out and the registered network standard of SIM2 has not been restored to rat22, a manual network search is initiated for SIM2 according to the following rules:
[0157] When rat22 is LTE, the PLMN (Public Land Mobile Network) of the target network is determined to be HPLMN (Home Public Land Mobile Network), the RAT is LTE, and the historically registered LTE frequency points saved by the electronic device are searched.
[0158] When rat22 is SA, the PLMN of the target network is determined to be HPLMN, the RAT is SA, and the SA frequency point of the historical registration saved by the electronic device is searched. If the SA frequency point is not found, the LTE frequency point is continued to be searched.
[0159] After the manual network search, SIM2 is restored to rat22, that is, SIM2 searches for a registrable LTE frequency or SA frequency, then execute step 11, otherwise, execute step 10.
[0160] 10. Start timer t4 and shorten the background network search interval. When timer t4 does not time out and the registered network standard of SIM2 is restored to rat22, execute step 11.
[0161] 11. When SIM2 is restored to rat22, the OOS network search interval in step 8 and the background network search interval in step 10 are restored to the default values; when timer t3 times out, the OOS network search interval changed in step 8 is restored to the default value; when timer t4 times out, the background network search interval changed in step 10 is restored to the default value. In other words, no matter what the situation is, the OOS network search interval and the background network search interval are restored to the default values.
[0162] 12. Clear the network registration information sim_info, restore the flag f to the default value 0, and exit the optimization.
[0163] Figure 5 The implementation methods of the various steps shown are shown in the above Figure 1-Figure 4The illustrated implementation will not be described in detail here.
[0164] Figure 6 is a block diagram of a network search device of an electronic device according to an exemplary embodiment;
[0165] The network standard reduction module 601 is configured to detect that the registered network standards of two SIM cards of the electronic device are reduced;
[0166] The network search module 602 is configured to search the network of the second SIM card based on the current network registration status of the second SIM card when the registered network standard of the first SIM card is restored to the first registered network standard, and the first registered network standard is higher than the first preset network standard.
[0167] The device provided by the embodiment of the present disclosure detects that the registered network standards of two SIM cards of an electronic device are lowered. When the registered network standard of any one of the SIM cards is restored to a higher registered network standard, the other SIM card is searched for a network based on the current network registration status of the other SIM card, so that the other SIM card is restored to the higher registered network standard, thereby avoiding the problem that one SIM card is restored to the higher registered network standard while the other SIM card cannot be restored to the higher registered network standard for a long time, thereby improving the user experience.
[0168] In some embodiments, the network standard reduction module 601 is configured to:
[0169] It is detected that the registered network standard of any one of the two SIM cards is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the other one of the two SIM cards is downgraded.
[0170] In some embodiments, the network search module 602 is configured to:
[0171] When the registered network standard of the first SIM card is restored to the first registered network standard, detecting the signal strength of the cell registered by the first SIM card;
[0172] When the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration state of the second SIM card.
[0173] In some embodiments, the network search module 602 is configured to:
[0174] If the second SIM card has not been restored to the second registered network standard within a second preset time after determining that the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration status of the second SIM card, and the second registered network standard is higher than the second preset network standard.
[0175] In some embodiments, the network search module 602 is configured to:
[0176] The second SIM card is in an unregistered network state, the first cycle is set to a first duration, and the second SIM card is searched for a network once every first duration.
[0177] In some embodiments, the network search module 602 is configured to:
[0178] The second SIM card is in a registered network state and the current registered network standard is lower than the second registered network standard. The frequency points of historical registrations saved by the electronic device are searched, and the second registered network standard is higher than the second preset network standard.
[0179] In some embodiments, the network search module 602 is configured to:
[0180] The highest network standard of the second SIM card is the first network standard, and the first type of frequency point of historical registration saved by the electronic device is searched.
[0181] In some embodiments, the network search module 602 is configured to:
[0182] The highest network standard of the second SIM card is the second network standard, and the second type of frequency points historically registered and saved by the electronic device are searched. If no registrable second type of frequency points are found, the first type of frequency points historically registered and saved by the electronic device are searched.
[0183] In some embodiments, the network search module 602 is further configured to:
[0184] When the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second period is set to the second duration, and the second SIM card is searched for a network once every second duration.
[0185] In some embodiments, the apparatus further comprises:
[0186] The cycle recovery module is configured to restore the set cycle to the default value.
[0187] In some embodiments, the apparatus further comprises:
[0188] The information acquisition module is configured to acquire network registration information of the first SIM card and the second SIM card, wherein the network registration information includes the highest network standard when each SIM card is a primary data card and the highest network standard when each SIM card is a secondary data card.
[0189] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0190] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the network search method of the electronic device in the above embodiment.
[0191] Figure 7 is a block diagram of an electronic device 700 according to an exemplary embodiment.
[0192] Reference Figure 7 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0193] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0194] The memory 704 is configured to store various types of data to support operations on the electronic device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0195] The power supply component 706 provides power to various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0196] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0197] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0198] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0199] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the electronic device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of user contact with the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0200] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0201] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0202] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0203] The embodiments of the present disclosure also provide a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the network search method of the electronic device in the above embodiment.
[0204] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0205] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A network search method for an electronic device, characterized in that: The method comprises: It is detected that the registered network standards of two SIM cards of the electronic device are downgraded; When the registered network standard of the first SIM card is restored to the first registered network standard, the second SIM card is searched for a network based on the current network registration state of the second SIM card, and the first registered network standard is higher than the first preset network standard.
2. The method according to claim 1, characterized in that The detecting that the registered network standards of two SIM cards of the electronic device are lowered includes: It is detected that the registered network standard of any one of the two SIM cards is downgraded, and within a first preset time period after the downgrade is detected, it is detected that the registered network standard of the other one of the two SIM cards is downgraded.
3. The method according to claim 1, characterized in that When the registered network standard of the first SIM card is restored to the first registered network standard, searching the network for the second SIM card based on the current network registration state of the second SIM card includes: When the registered network standard of the first SIM card is restored to the first registered network standard, detecting the signal strength of the cell registered by the first SIM card; When the signal strength is higher than the preset signal strength, the second SIM card is searched for a network based on the current network registration state of the second SIM card.
4. The method according to claim 3, characterized in that: The searching the network for the second SIM card based on the current network registration status of the second SIM card includes: Within a second preset time period after determining that the signal strength is higher than the preset signal strength, if the second SIM card has not been restored to the second registered network standard, based on the current network registration status of the second SIM card, searching the network for the second SIM card, the second registered network standard is higher than the second preset network standard.
5. The method according to claim 1, characterized in that The searching the network for the second SIM card based on the current network registration status of the second SIM card includes: The second SIM card is in an unregistered network state, the first period is set to a first duration, and the second SIM card is searched for a network once every the first duration.
6. The method according to claim 1, characterized in that The searching the network for the second SIM card based on the current network registration status of the second SIM card includes: The second SIM card is in a registered network state and the current registered network standard is lower than the second registered network standard, and the frequency point of historical registration saved by the electronic device is searched, and the second registered network standard is higher than the second preset network standard.
7. The method according to claim 6, characterized in that The searching for the historically registered frequency points stored in the electronic device includes: The highest network standard of the second SIM card is the first network standard, and the first type of frequency point of historical registration stored in the electronic device is searched.
8. The method according to claim 6, characterized in that The searching for the historically registered frequency points stored in the electronic device includes: The highest network standard of the second SIM card is the second network standard, and the second type of frequency points historically registered and stored in the electronic device are searched. If no registrable second type of frequency points are found, the first type of frequency points historically registered and stored in the electronic device are searched.
9. The method according to claim 6, characterized in that The method further comprises: When the registered network standard corresponding to the searched frequency point is lower than the second registered network standard, the second period is set to a second duration, and the second SIM card is searched for a network once every the second duration.
10. The method according to claim 5 or 9, characterized in that: The method further comprises: Restore the set period to the default value.
11. The method according to any one of claims 1 to 9, characterized in that: Before detecting that the registered network standards of the two SIM cards of the electronic device are lowered, the method further includes: The network registration information of the first SIM card and the second SIM card is obtained, where the network registration information includes the highest network standard when each SIM card is a primary data card and the highest network standard when each SIM card is a secondary data card.
12. A network search device for an electronic device, characterized in that: The device comprises: A network standard reduction module is configured to detect that the registered network standards of two SIM cards of the electronic device are reduced; The network search module is configured to search the network of the second SIM card based on the current network registration state of the second SIM card when the registered network standard of the first SIM card is restored to the first registered network standard, and the first registered network standard is higher than the first preset network standard.
13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method as claimed in any one of claims 1 to 11.
14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 11.